! please don’t forget the flyback diode !
OpenSprinklerPi usually works with AC because Alternating Current is most effective if you are working with coils. (due to the inductance) In an allotment garden where we only have solar power – DC is the thing. 🙂
The RaspberryPi works with DC of course and even the OpenSprinkler board works normally with DC. The only thing which is different to the DC version is that triacs are used to control the valves. So we have to change them.
The good thing: they are controlled just like a transistor. The Gate on a triac is what the Base is on a transistor.
We can use a NPN BC337 wich may be to small for some projects. As i want to switch 1A for a couple of minutes i will use a TIP120. (see below)
![](https://voir.pt/wp-content/uploads/2018/12/opensprinkler_ac_to_dc_02-1024x768.jpg)
![](https://voir.pt/wp-content/uploads/2018/12/opensprinkler_ac_to_dc_bt1308-768x1024.jpg)
Every diode works like the 1N4001.
![](https://voir.pt/wp-content/uploads/2018/12/opensprinkler_ac_to_dc_01-1024x768.jpg)
But now the TIP120 build in :