sylvain15
Posts: 3
Joined: Sun Jul 13, 2014 2:24 pm

external power supply for relay

Sun Jul 13, 2014 2:39 pm

hello everyone,

i've got a problem with raspberry , gpio and a relay.

i choose an external power supply 5v for a little relay board. Relay will be command by gpio 23.

The relay didnt commute when i asked it when it is powered by external power supply but works when it is powered by 5v raspberry gpio.

I test with a voltmeter and 5v is correctly the delivered by external power supply and relay's red del is brightful.
I tried another power supply without good result.

ive got the same matter with a wireless 433 PT2262 board which work with raspberry 5v and not with external power supply.

is there any configuration to modify to allow gpio pin working without using the 5v, or the ground of the rpi ?

thanks for your advice,

Sylvain

PS: iove got the same configuration (other rpi but same relay) at home and it works perfectly... i really dont unterstand why its not working here ! i'm stuck :-S

User avatar
Gert van Loo
Posts: 2487
Joined: Tue Aug 02, 2011 7:27 am
Contact: Website

Re: external power supply for relay

Sun Jul 13, 2014 3:10 pm

Did you connect the ground of the external supply to the ground of the Pi?

sylvain15
Posts: 3
Joined: Sun Jul 13, 2014 2:24 pm

Re: external power supply for relay

Sun Jul 13, 2014 3:16 pm

no. there is only the gpio plug on the raspberry nothing else.

i should plug power supply ground to rpi ground ?

drgeoff
Posts: 10829
Joined: Wed Jan 25, 2012 6:39 pm

Re: external power supply for relay

Sun Jul 13, 2014 3:51 pm

sylvain15 wrote:no. there is only the gpio plug on the raspberry nothing else.

i should plug power supply ground to rpi ground ?
Yes you must join the grounds (negatives) of the RPi PSU and the external PSU.
Quis custodiet ipsos custodes?

User avatar
FLYFISH TECHNOLOGIES
Posts: 1750
Joined: Thu Oct 03, 2013 7:48 am
Location: Ljubljana, Slovenia
Contact: Website

Re: external power supply for relay

Sun Jul 13, 2014 3:53 pm

Hi,
sylvain15 wrote:i should plug power supply ground to rpi ground ?
By default.

Even the simplest battery has two terminals. If you'd like to get some power from it, you must connect both terminals.
This principle is applicable to all kind of electrical circuits - when you add a power supply, you must connect its both terminals somehow/somewhere. Connecting grounds together is to be the first item on your list of possibilities...


Best wishes, Ivan Zilic.
Running out of GPIO pins and/or need to read analog values?
Solution: http://www.flyfish-tech.com/FF32

sylvain15
Posts: 3
Joined: Sun Jul 13, 2014 2:24 pm

Re: external power supply for relay

Sun Jul 13, 2014 3:56 pm

yes it works !

thants a lot :)

Return to “Troubleshooting”