Hello,
what do I wrong?
I connected the 74HC595N as shown in the diagramm. The original diagramm, I cannot understand.
But in default all relais are on. When i start eg. Relais 1 (S01) than it goes OFF and after the selected time ON again.
Each relay has two contact pins, one is normally open (NO) one is normally closed (NC). Why not just use the other contact pin, which counteracts the reversed logic.
I connected a 74HC595N to a raspberry pi and I had the same problem, by default all relais are on. To solve the problem
I edit OpenSprinkler.cpp on the OpenSprinkler-firmware directory and in the function “OpenSprinkler::apply_all_station_bits()” at line 1079 add a “~” like this: “digitalWrite(pin_sr_data, (~sbits & ((byte)1<<(7-s))) ? HIGH : LOW );” and recompile the firmware.
Thanks for this great point! I just have a question. How should I compile it for raspberry pi?
Would it also work if I copy all the content from https://github.com/OpenSprinkler/OpenSprinkler-Firmware to my own github account and change the OpenSprinkler.cpp there?
We are currently away till Friday, January 24. Any orders placed during this period will be shipped on Saturday, January 25. Thank you for your understanding! Dismiss