nice idea. this obsoletes about 50% of my mysenors related bookmarks
Best posts made by dakky
-
RE: OpenHardware.io
-
RE: openHAB 2.0 binding
Dammit ... found the error
created a pull request: https://github.com/tobof/openhab2-addons/pull/18
Greetings
Dakky -
RE: Guide: Setting up and testing MQTT Client Gateway
@dakky said:
The gateway tries to open a lot of connections and all of them seem to die after a short while
Any idea?Narghs!
Seems to be a hardware problem. I changed the w5100 module with an w5100 arduino shield and now it works fine:
0;0;3;0;9;Starting gateway (RNNGA-, 1.6.0-beta) 0;0;3;0;9;Radio init successful. IP: 192.168.100.10 0;0;3;0;9;Attempting MQTT connection... 0;0;3;0;9;MQTT connected 0;0;3;0;9;Init complete, id=0, parent=0, distance=0
I'm still interested in the reason. Hardware broken or wiring fail?
- pinging the arduino worked
- i can see the connections on the broker
=> basic networking seems to work, but "delivering content" failed. Any guesses?
Strange fact: with the "broken" hardware:
0;0;3;0;9;Radio init successful. IP: 0.40.68.10
with the shield:
0;0;3;0;9;Radio init successful. IP: 192.168.100.10
Same sketch, 192.168.100.10 is the correct Ip (obviously)
Greeting
Dakky -
RE: Relay turns on when input is LOW?!
Ah that explains it for me. Thanks for the dettailed answer. I will @mfalkvidd's and switch the defines. thank you all
Greetings
-
RE: Simple irrigation setup based on pro mini
@mfalkvidd said:
- Yes you can use analog input as digital input if you like (but not as output). A5, A6 and A7 don't have internal pullups though so you might need to solder external pullups. EDIT: The distance sensor doesn't need pullups so you don't need to add any in this case. However, the TRIG signal to the HC-SR04 needs to be an output pin so you can't move that. You can move the moisture sensors, if you add external pullups (or buy sensors with built-in pullups).
Ok sounds reasonable. Have to read more about that pullup/pulldown thing
- There is no way you can power everything through the voltage regulator on the Pro Mini. The absolute maximum total power rating for the Pro Mini is 150mA when powering through raw. Also note that most Arduino clones do not survive 12V raw input, and that the nrf radio needs approximately 3.3V.
Ok I'll use one LM2596 in order to power all components directly + another 5V=>3V voltage regulator for the radio. This should work
- The relays are controlled by the output pins on the Arduino. The relays control power (12V in your case) that is coming from elsewhere. Relays often consume quite a lot of power (from the Arduino) when switching so make sure you add capacitors. You could also consider using FETs instead of relays. We've seen many threads on relay problems that were caused by power issues.
Is that a problem too, when powering the relay directly from the LM2596? Otherwise i have to learn something about FETs
- Probably But the best way to learn is to try
So true the problem is the "lost" time when waiting for another china package
An alternative to getting 8 pumps is to get 1 pump and 8 valves. That will probably be cheaper.
Hmm I did not find any cheap valves. One of the pumps is about $6. And valves cause one problem imho: they need pressure in order to work and this requires to activate the pump some seconds bevor triggering the valve => increased complexity
@dbemowsk said:
Are you aware of this project that is in the build section of the site?
https://www.mysensors.org/build/irrigationI saw this one, but it's more a "standalone" solution imho. quite complex. I wanted just a stupid "tell me the moisture values and switch a relay"-solution
@rest:
hmm interesting. I will read something about these components, although I'm a little bit afraid of the required code changes