Page 1 of 1

12V Relay Setup

Posted: Thu Dec 11, 2014 7:22 pm
by g1naveen
Am a beginner to Raspberry pi GPIO (not to RPi).
I have brought a 12V 8 Channel relay and tried setting it up and later i found some issues.
I powered the relay with an 12V DC. My RPi is powered by another 5v 1A power source.
Then i connected the GPIO pins to the relay inputs,
As of now, relay were not functioning because only the gpio pins were alone connected.
Should i need to connect the ground of the relay to the GPIO in the RPi? Is it safe?

Re: 12V Relay Setup

Posted: Thu Dec 11, 2014 7:26 pm
by Laurens-wuyts
You'll need some components to connect the relay.
1. Transistor (BC547)
2. Resistor (4K7)
Image
http://2.bp.blogspot.com/-8XPDmQ79eLc/U ... ircuit.png

Re: 12V Relay Setup

Posted: Thu Dec 11, 2014 7:33 pm
by gordon77
g1naveen wrote:Am a beginner to Raspberry pi GPIO (not to RPi).
I have brought a 12V 8 Channel relay and tried setting it up and later i found some issues.
I powered the relay with an 12V DC. My RPi is powered by another 5v 1A power source.
Then i connected the GPIO pins to the relay inputs,
As of now, relay were not functioning because only the gpio pins were alone connected.
Should i need to connect the ground of the relay to the GPIO in the RPi? Is it safe?
Can you provide a link to what you bought

Re: 12V Relay Setup

Posted: Sat Dec 13, 2014 9:12 am
by g1naveen
I powered the relay with a 12V Power Adopter and i connected the ground of the adopter to the ground of the RPi and it worked like charm.
I thank you for your responses.

Re: 12V Relay Setup

Posted: Sun Jan 22, 2017 12:42 pm
by sagar502
hii I'm beginner in RPi
Unfortunately i bought 12v relay Module
now i want to control relay with rpi3
i googled and found some external source connected and controlling 12v relay i dont understand properly plz help how to connect
external power source and how to connect GND to GND
. :D :D ???