g1naveen
Posts: 5
Joined: Sun Dec 07, 2014 7:56 am
Location: India

12V Relay Setup

Thu Dec 11, 2014 7:22 pm

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?

User avatar
Laurens-wuyts
Posts: 716
Joined: Wed Aug 21, 2013 7:35 pm
Location: Belgium
Contact: Website

Re: 12V Relay Setup

Thu Dec 11, 2014 7:26 pm

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

gordon77
Posts: 4004
Joined: Sun Aug 05, 2012 3:12 pm

Re: 12V Relay Setup

Thu Dec 11, 2014 7:33 pm

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

g1naveen
Posts: 5
Joined: Sun Dec 07, 2014 7:56 am
Location: India

Re: 12V Relay Setup

Sat Dec 13, 2014 9:12 am

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.

sagar502
Posts: 4
Joined: Sun Jan 22, 2017 12:34 pm

Re: 12V Relay Setup

Sun Jan 22, 2017 12:42 pm

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 ???

Return to “Beginners”