rszimm / sprinklers_pi

Sprinkling System Control Program for the Raspberry Pi
GNU General Public License v2.0
310 stars 100 forks source link

Wiring #59

Closed morejava closed 8 years ago

morejava commented 8 years ago

I have everything all setup! I just can't figure out the wiring? I'm using JBtek 8 Channel DC 5V Relay Module for Arduino Raspberry Pi DSP AVR PIC ARM (link below). How do I at the power to trigger the solenoid? Any help would be great. I've searched a bunch but surprisingly can't find a good match for my setup. Thanks

http://www.amazon.com/JBtek-Channel-Relay-Arduino-Raspberry/dp/B00KTELP3I/ref=sr_1_1?ie=UTF8&qid=1462561495&sr=8-1&keywords=raspberry+pi+relay

nhorvath commented 8 years ago

The wiringpi pin numbers correspond to the zones in sprinklerpi: https://projects.drogon.net/raspberry-pi/wiringpi/pins/ so you just match those to your inputs on that relay board and connect ground and VDC.

On the sprinkler solenoid side you need a 24VAC transformer usually (check your solenoids) which can be found any place that sells sprinkler stuff. You wire the common wire from your transformer to the common wire of all your solenoids then wire the hot wire to what looks like the left screw terminal on each relay (you're going to have to either use jumper wires between each or make a pigtail and wire them all together). Then you wire the hot wire from your solenoid to the right screw terminal of the relay (one relay per solenoid). When you run irrigation wire you need # solenoids + 1 wires run from your control box to your solenoids. 1 wire per solenoid to be inline with the relay to switch it on and off and 1 common wire that is used for all solenoids.

PS I hope that relay board has some voltage shifting going on because the logic pins on the pi are only 3.3v not 5v. Hopefully this guy's comment is accurate: "Yes, I drive this at 3.3v with a beaglebone black. The trick is to feed +5v to the JD-VCC pin, +3.3v to VCC, and 3.3v GPIO to the signal pins. The odd thing is that signal ground turns the relay on, and 3.3V turns the relay off. The +5v to JD-VCC actually powers the relay. "

On Fri, May 6, 2016 at 3:07 PM, Andy notifications@github.com wrote:

I have everything all setup! I just can't figure out the wiring? I'm using JBtek 8 Channel DC 5V Relay Module for Arduino Raspberry Pi DSP AVR PIC ARM (link below). How do I at the power to trigger the solenoid? Any help would be great. I've searched a bunch but surprisingly can't find a good match for my setup. Thanks

http://www.amazon.com/JBtek-Channel-Relay-Arduino-Raspberry/dp/B00KTELP3I/ref=sr_1_1?ie=UTF8&qid=1462561495&sr=8-1&keywords=raspberry+pi+relay

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/59

morejava commented 8 years ago

​In case you haven't guess, Im VERY inexperienced with circuitry to pardon my lack of understanding. Teach me!

So now the relay isnt "clicking" when the LED lights up. ​ Here is my setup. ​ Everything was clicking when I activated that zone (though no solenoid wires were connected to it) so I tried to connected the 5v and ground RaspPi to the other VCC and ground on the relay board. Now there is no clicking. Coincidence or did I fry something? Anyway to reset something?

Pi - Relay Board pin 2 - VCC +5 pin 9 - GND pin 12 - Relay 1 pin 13 - Relay 2 pin 15 - Relay 3 pin 16 - Relay 4 pin 18 - Relay 5 pin 22 - Relay 6

​I have the 24VAC plu from my previous controller. Sorry...but... is the Red wire coming out of the 24VAC plug the "hot"? ​Weird it's red, blue and green?

MAn...I feel like I'm so close...

On Fri, May 6, 2016 at 2:20 PM, Nick Horvath notifications@github.com wrote:

The wiringpi pin numbers correspond to the zones in sprinklerpi: https://projects.drogon.net/raspberry-pi/wiringpi/pins/ so you just match those to your inputs on that relay board and connect ground and VDC.

On the sprinkler solenoid side you need a 24VAC transformer usually (check your solenoids) which can be found any place that sells sprinkler stuff. You wire the common wire from your transformer to the common wire of all your solenoids then wire the hot wire to what looks like the left screw terminal on each relay (you're going to have to either use jumper wires between each or make a pigtail and wire them all together). Then you wire the hot wire from your solenoid to the right screw terminal of the relay (one relay per solenoid). When you run irrigation wire you need # solenoids + 1 wires run from your control box to your solenoids. 1 wire per solenoid to be inline with the relay to switch it on and off and 1 common wire that is used for all solenoids.

PS I hope that relay board has some voltage shifting going on because the logic pins on the pi are only 3.3v not 5v. Hopefully this guy's comment is accurate: "Yes, I drive this at 3.3v with a beaglebone black. The trick is to feed +5v to the JD-VCC pin, +3.3v to VCC, and 3.3v GPIO to the signal pins. The odd thing is that signal ground turns the relay on, and 3.3V turns the relay off. The +5v to JD-VCC actually powers the relay. "

On Fri, May 6, 2016 at 3:07 PM, Andy notifications@github.com wrote:

I have everything all setup! I just can't figure out the wiring? I'm using JBtek 8 Channel DC 5V Relay Module for Arduino Raspberry Pi DSP AVR PIC ARM (link below). How do I at the power to trigger the solenoid? Any help would be great. I've searched a bunch but surprisingly can't find a good match for my setup. Thanks

http://www.amazon.com/JBtek-Channel-Relay-Arduino-Raspberry/dp/B00KTELP3I/ref=sr_1_1?ie=UTF8&qid=1462561495&sr=8-1&keywords=raspberry+pi+relay

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/59

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/59#issuecomment-217535383

​​ Andy

morejava commented 8 years ago

how does this look? http://www.anites.com/2013/09/automated-sprinkler-system-first-look.html

but where does the sprinkler ground connect too?

I'd really appreciate help!

On Fri, May 6, 2016 at 9:06 PM, Andy Stumpf andy.stumpf77@gmail.com wrote:

​In case you haven't guess, Im VERY inexperienced with circuitry to pardon my lack of understanding. Teach me!

So now the relay isnt "clicking" when the LED lights up. ​ Here is my setup. ​ Everything was clicking when I activated that zone (though no solenoid wires were connected to it) so I tried to connected the 5v and ground RaspPi to the other VCC and ground on the relay board. Now there is no clicking. Coincidence or did I fry something? Anyway to reset something?

Pi - Relay Board pin 2 - VCC +5 pin 9 - GND pin 12 - Relay 1 pin 13 - Relay 2 pin 15 - Relay 3 pin 16 - Relay 4 pin 18 - Relay 5 pin 22 - Relay 6

​I have the 24VAC plu from my previous controller. Sorry...but... is the Red wire coming out of the 24VAC plug the "hot"? ​Weird it's red, blue and green?

MAn...I feel like I'm so close...

On Fri, May 6, 2016 at 2:20 PM, Nick Horvath notifications@github.com wrote:

The wiringpi pin numbers correspond to the zones in sprinklerpi: https://projects.drogon.net/raspberry-pi/wiringpi/pins/ so you just match those to your inputs on that relay board and connect ground and VDC.

On the sprinkler solenoid side you need a 24VAC transformer usually (check your solenoids) which can be found any place that sells sprinkler stuff. You wire the common wire from your transformer to the common wire of all your solenoids then wire the hot wire to what looks like the left screw terminal on each relay (you're going to have to either use jumper wires between each or make a pigtail and wire them all together). Then you wire the hot wire from your solenoid to the right screw terminal of the relay (one relay per solenoid). When you run irrigation wire you need # solenoids + 1 wires run from your control box to your solenoids. 1 wire per solenoid to be inline with the relay to switch it on and off and 1 common wire that is used for all solenoids.

PS I hope that relay board has some voltage shifting going on because the logic pins on the pi are only 3.3v not 5v. Hopefully this guy's comment is accurate: "Yes, I drive this at 3.3v with a beaglebone black. The trick is to feed +5v to the JD-VCC pin, +3.3v to VCC, and 3.3v GPIO to the signal pins. The odd thing is that signal ground turns the relay on, and 3.3V turns the relay off. The +5v to JD-VCC actually powers the relay. "

On Fri, May 6, 2016 at 3:07 PM, Andy notifications@github.com wrote:

I have everything all setup! I just can't figure out the wiring? I'm using JBtek 8 Channel DC 5V Relay Module for Arduino Raspberry Pi DSP AVR PIC ARM (link below). How do I at the power to trigger the solenoid? Any help would be great. I've searched a bunch but surprisingly can't find a good match for my setup. Thanks

http://www.amazon.com/JBtek-Channel-Relay-Arduino-Raspberry/dp/B00KTELP3I/ref=sr_1_1?ie=UTF8&qid=1462561495&sr=8-1&keywords=raspberry+pi+relay

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/59

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/59#issuecomment-217535383

​​ Andy

​​ Andy

morejava commented 8 years ago

here is the image i'm referring too

http://4.bp.blogspot.com/-yVkOljxF1_U/UiTju_rEg2I/AAAAAAAAAT8/B7inN2hCQKc/s1600/raspberry-pi-sprinkler-controller.png

On Sun, May 8, 2016 at 10:50 PM, Andy Stumpf andy.stumpf77@gmail.com wrote:

how does this look? http://www.anites.com/2013/09/automated-sprinkler-system-first-look.html

but where does the sprinkler ground connect too?

I'd really appreciate help!

On Fri, May 6, 2016 at 9:06 PM, Andy Stumpf andy.stumpf77@gmail.com wrote:

​In case you haven't guess, Im VERY inexperienced with circuitry to pardon my lack of understanding. Teach me!

So now the relay isnt "clicking" when the LED lights up. ​ Here is my setup. ​ Everything was clicking when I activated that zone (though no solenoid wires were connected to it) so I tried to connected the 5v and ground RaspPi to the other VCC and ground on the relay board. Now there is no clicking. Coincidence or did I fry something? Anyway to reset something?

Pi - Relay Board pin 2 - VCC +5 pin 9 - GND pin 12 - Relay 1 pin 13 - Relay 2 pin 15 - Relay 3 pin 16 - Relay 4 pin 18 - Relay 5 pin 22 - Relay 6

​I have the 24VAC plu from my previous controller. Sorry...but... is the Red wire coming out of the 24VAC plug the "hot"? ​Weird it's red, blue and green?

MAn...I feel like I'm so close...

On Fri, May 6, 2016 at 2:20 PM, Nick Horvath notifications@github.com wrote:

The wiringpi pin numbers correspond to the zones in sprinklerpi: https://projects.drogon.net/raspberry-pi/wiringpi/pins/ so you just match those to your inputs on that relay board and connect ground and VDC.

On the sprinkler solenoid side you need a 24VAC transformer usually (check your solenoids) which can be found any place that sells sprinkler stuff. You wire the common wire from your transformer to the common wire of all your solenoids then wire the hot wire to what looks like the left screw terminal on each relay (you're going to have to either use jumper wires between each or make a pigtail and wire them all together). Then you wire the hot wire from your solenoid to the right screw terminal of the relay (one relay per solenoid). When you run irrigation wire you need # solenoids + 1 wires run from your control box to your solenoids. 1 wire per solenoid to be inline with the relay to switch it on and off and 1 common wire that is used for all solenoids.

PS I hope that relay board has some voltage shifting going on because the logic pins on the pi are only 3.3v not 5v. Hopefully this guy's comment is accurate: "Yes, I drive this at 3.3v with a beaglebone black. The trick is to feed +5v to the JD-VCC pin, +3.3v to VCC, and 3.3v GPIO to the signal pins. The odd thing is that signal ground turns the relay on, and 3.3V turns the relay off. The +5v to JD-VCC actually powers the relay. "

On Fri, May 6, 2016 at 3:07 PM, Andy notifications@github.com wrote:

I have everything all setup! I just can't figure out the wiring? I'm using JBtek 8 Channel DC 5V Relay Module for Arduino Raspberry Pi DSP AVR PIC ARM (link below). How do I at the power to trigger the solenoid? Any help would be great. I've searched a bunch but surprisingly can't find a good match for my setup. Thanks

http://www.amazon.com/JBtek-Channel-Relay-Arduino-Raspberry/dp/B00KTELP3I/ref=sr_1_1?ie=UTF8&qid=1462561495&sr=8-1&keywords=raspberry+pi+relay

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/59

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/59#issuecomment-217535383

​​ Andy

​​ Andy

​​ Andy

nhorvath commented 8 years ago

That looks correct to me. Just make sure that you connect the +24V wire and all the jumper wires to the common pin of the relay and the sprinkler zone wires to the normally open pin. The sprinkler ground cable is the neutral wire from the transformer that should be connected to all of the neutral wires from the solenoids (usually white, if you have 2 same color wires it doesn't matter just connect 1 wire on each).

On Sun, May 8, 2016 at 11:52 PM, Andy notifications@github.com wrote:

here is the image i'm referring too

http://4.bp.blogspot.com/-yVkOljxF1_U/UiTju_rEg2I/AAAAAAAAAT8/B7inN2hCQKc/s1600/raspberry-pi-sprinkler-controller.png

On Sun, May 8, 2016 at 10:50 PM, Andy Stumpf andy.stumpf77@gmail.com

wrote:

how does this look? http://www.anites.com/2013/09/automated-sprinkler-system-first-look.html

but where does the sprinkler ground connect too?

I'd really appreciate help!

On Fri, May 6, 2016 at 9:06 PM, Andy Stumpf andy.stumpf77@gmail.com wrote:

​In case you haven't guess, Im VERY inexperienced with circuitry to pardon my lack of understanding. Teach me!

So now the relay isnt "clicking" when the LED lights up. ​ Here is my setup. ​ Everything was clicking when I activated that zone (though no solenoid wires were connected to it) so I tried to connected the 5v and ground RaspPi to the other VCC and ground on the relay board. Now there is no clicking. Coincidence or did I fry something? Anyway to reset something?

Pi - Relay Board pin 2 - VCC +5 pin 9 - GND pin 12 - Relay 1 pin 13 - Relay 2 pin 15 - Relay 3 pin 16 - Relay 4 pin 18 - Relay 5 pin 22 - Relay 6

​I have the 24VAC plu from my previous controller. Sorry...but... is the Red wire coming out of the 24VAC plug the "hot"? ​Weird it's red, blue and green?

MAn...I feel like I'm so close...

On Fri, May 6, 2016 at 2:20 PM, Nick Horvath notifications@github.com wrote:

The wiringpi pin numbers correspond to the zones in sprinklerpi: https://projects.drogon.net/raspberry-pi/wiringpi/pins/ so you just match those to your inputs on that relay board and connect ground and VDC.

On the sprinkler solenoid side you need a 24VAC transformer usually (check your solenoids) which can be found any place that sells sprinkler stuff. You wire the common wire from your transformer to the common wire of all your solenoids then wire the hot wire to what looks like the left screw terminal on each relay (you're going to have to either use jumper wires between each or make a pigtail and wire them all together). Then you wire the hot wire from your solenoid to the right screw terminal of the relay (one relay per solenoid). When you run irrigation wire you need # solenoids + 1 wires run from your control box to your solenoids. 1 wire per solenoid to be inline with the relay to switch it on and off and 1 common wire that is used for all solenoids.

PS I hope that relay board has some voltage shifting going on because the logic pins on the pi are only 3.3v not 5v. Hopefully this guy's comment is accurate: "Yes, I drive this at 3.3v with a beaglebone black. The trick is to feed +5v to the JD-VCC pin, +3.3v to VCC, and 3.3v GPIO to the signal pins. The odd thing is that signal ground turns the relay on, and 3.3V turns the relay off. The +5v to JD-VCC actually powers the relay. "

On Fri, May 6, 2016 at 3:07 PM, Andy notifications@github.com wrote:

I have everything all setup! I just can't figure out the wiring? I'm using JBtek 8 Channel DC 5V Relay Module for Arduino Raspberry Pi DSP AVR PIC ARM (link below). How do I at the power to trigger the solenoid? Any help would be great. I've searched a bunch but surprisingly can't find a good match for my setup. Thanks

http://www.amazon.com/JBtek-Channel-Relay-Arduino-Raspberry/dp/B00KTELP3I/ref=sr_1_1?ie=UTF8&qid=1462561495&sr=8-1&keywords=raspberry+pi+relay

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/59

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub < https://github.com/rszimm/sprinklers_pi/issues/59#issuecomment-217535383>

​​ Andy

​​ Andy

​​ Andy

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/59#issuecomment-217770978

morejava commented 8 years ago

Got it working! Thanks Nick! closed

On Mon, May 9, 2016 at 8:36 AM, Nick Horvath notifications@github.com wrote:

That looks correct to me. Just make sure that you connect the +24V wire and all the jumper wires to the common pin of the relay and the sprinkler zone wires to the normally open pin. The sprinkler ground cable is the neutral wire from the transformer that should be connected to all of the neutral wires from the solenoids (usually white, if you have 2 same color wires it doesn't matter just connect 1 wire on each).

On Sun, May 8, 2016 at 11:52 PM, Andy notifications@github.com wrote:

here is the image i'm referring too

http://4.bp.blogspot.com/-yVkOljxF1_U/UiTju_rEg2I/AAAAAAAAAT8/B7inN2hCQKc/s1600/raspberry-pi-sprinkler-controller.png

On Sun, May 8, 2016 at 10:50 PM, Andy Stumpf andy.stumpf77@gmail.com

wrote:

how does this look?

http://www.anites.com/2013/09/automated-sprinkler-system-first-look.html

but where does the sprinkler ground connect too?

I'd really appreciate help!

On Fri, May 6, 2016 at 9:06 PM, Andy Stumpf andy.stumpf77@gmail.com wrote:

​In case you haven't guess, Im VERY inexperienced with circuitry to pardon my lack of understanding. Teach me!

So now the relay isnt "clicking" when the LED lights up. ​ Here is my setup. ​ Everything was clicking when I activated that zone (though no solenoid wires were connected to it) so I tried to connected the 5v and ground RaspPi to the other VCC and ground on the relay board. Now there is no clicking. Coincidence or did I fry something? Anyway to reset something?

Pi - Relay Board pin 2 - VCC +5 pin 9 - GND pin 12 - Relay 1 pin 13 - Relay 2 pin 15 - Relay 3 pin 16 - Relay 4 pin 18 - Relay 5 pin 22 - Relay 6

​I have the 24VAC plu from my previous controller. Sorry...but... is the Red wire coming out of the 24VAC plug the "hot"? ​Weird it's red, blue and green?

MAn...I feel like I'm so close...

On Fri, May 6, 2016 at 2:20 PM, Nick Horvath < notifications@github.com> wrote:

The wiringpi pin numbers correspond to the zones in sprinklerpi: https://projects.drogon.net/raspberry-pi/wiringpi/pins/ so you just match those to your inputs on that relay board and connect ground and VDC.

On the sprinkler solenoid side you need a 24VAC transformer usually (check your solenoids) which can be found any place that sells sprinkler stuff. You wire the common wire from your transformer to the common wire of all your solenoids then wire the hot wire to what looks like the left screw terminal on each relay (you're going to have to either use jumper wires between each or make a pigtail and wire them all together). Then you wire the hot wire from your solenoid to the right screw terminal of the relay (one relay per solenoid). When you run irrigation wire you need # solenoids + 1 wires run from your control box to your solenoids. 1 wire per solenoid to be inline with the relay to switch it on and off and 1 common wire that is used for all solenoids.

PS I hope that relay board has some voltage shifting going on because the logic pins on the pi are only 3.3v not 5v. Hopefully this guy's comment is accurate: "Yes, I drive this at 3.3v with a beaglebone black. The trick is to feed +5v to the JD-VCC pin, +3.3v to VCC, and 3.3v GPIO to the signal pins. The odd thing is that signal ground turns the relay on, and 3.3V turns the relay off. The +5v to JD-VCC actually powers the relay. "

On Fri, May 6, 2016 at 3:07 PM, Andy notifications@github.com wrote:

I have everything all setup! I just can't figure out the wiring? I'm using JBtek 8 Channel DC 5V Relay Module for Arduino Raspberry Pi DSP AVR PIC ARM (link below). How do I at the power to trigger the solenoid? Any help would be great. I've searched a bunch but surprisingly can't find a good match for my setup. Thanks

http://www.amazon.com/JBtek-Channel-Relay-Arduino-Raspberry/dp/B00KTELP3I/ref=sr_1_1?ie=UTF8&qid=1462561495&sr=8-1&keywords=raspberry+pi+relay

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/59

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub < https://github.com/rszimm/sprinklers_pi/issues/59#issuecomment-217535383

​​ Andy

​​ Andy

​​ Andy

— You are receiving this because you commented. Reply to this email directly or view it on GitHub < https://github.com/rszimm/sprinklers_pi/issues/59#issuecomment-217770978>

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/59#issuecomment-217865815

​​ Andy