![]() I didn’t set up automations in Home Assistant yet, those will come soon. You can see that the 3 template switches, when turning on and off, they set the correct polarity and enable the output current from the driver. This is the scheme (I recently learned using Fritzing a bit… what a wonderful piece of software!)Īnd this is the relevant code of ESPHome: switch: ![]() I learned a lot reading the source code and the hardware implementation details. I thank a lot Ray Wang of OpenSprinkler for building such a wonderful piece of engineering. (Hunter and OpenSprinkler did a different job: they used a capacitor because their power supply is very constrained, I just went with bazooka) I found out that 12V are enough to drive my valves, so instead of using a capacitor like OpenSprinkler and Hunter control unit did, I just supplied the 12V current from the PSU to valves through the drivers. The motor drivers I found are very handy, because they also output a 5V current that I used to supply power to the ESP8266. The rest is just an ESP8266 (NodeMCU), a 12V PSU and cables That was the big unknown part of the project. I searched a lot and came up with using a motor drivers (L298) to drive valves. They need a strong brief current to open and a similar current (with inverted polarity) to close. ![]() Here are the details of my project: I didn’t replace valves and nozzles, so the important detail here is that the valves are solenoids. But my house didn’t burn yet, so I am happy. So my projects are primitive and probably stuffed with errors and not safe. I am a web developer and got into electronics just recently thanks to ESPHome and Home Assistant. ![]() So I decided to build a new one by myself!ĭisclaimer: I am not an electronics expert at all. change core to use 3.0. Last year I replaced the control unit with an OpenSprinkler Bee, but unfortunately a couple of weeks ago I broke it while tinkering with the firmware (to flash it I had to disconnect it a couple of times and maybe I wasn’t enough gentle). OpenSprinkler / OpenSprinkler-Firmware Public master 5 branches 13 tags Code tonyrui address github issue 217 5970a3a on Jan 7 422 commits examples/ mainArduino check in initial version that support OTC 7 months ago html adjust table padding 6 months ago tools initial change to prepare fw 2.2.0. I have a little garden with a sprinkler system based on Hunter hardware (3 valves, several nozzles and a 9V battery control unit). ![]()
0 Comments
Leave a Reply. |