RaspbJan
Posts: 3
Joined: Fri Apr 11, 2014 9:57 am

Additional power supply for circuits controlled by GPIO

Fri Apr 11, 2014 10:52 am

Good day guys,

I'm a total noob and I believe this question treats about very common practice, but I can't find satisfying info :D
Could you tell me pls some general rules about connecting external current sources to circuits controlled by raspberry GPIO and NOT burn RPI? :)
Assuming I would like to experiment with this circuit: http://arduino.cc/en/tutorial/ShiftOut (using RPI ofc) and connect much more LEDs... RPI could not support so much current, so there's some external power needed.

Pls give some advices :)
greetings

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

Re: Additional power supply for circuits controlled by GPIO

Fri Apr 11, 2014 2:10 pm

Hi,
RaspbJan wrote:Could you tell me pls some general rules about connecting external current sources to circuits controlled by raspberry GPIO and NOT burn RPI? :)
Supply the external circuit with additional power supply and connect negative poles (GNDs) together. DO NOT connect positive output from this additional power supply to GPIO's power pin(s).

Take care that voltage levels are proper (they are if you supply this external circuit with 3.3V, they are probably not if you supply it with 5V or any other voltage).
Be aware that some protocols-related elements can create significantly higher (or even negative) voltages on their outputs - for example you must not connect circuit with RS232 output directly to GPIO even if this circuit is supplied with 3.3V.


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

RaspbJan
Posts: 3
Joined: Fri Apr 11, 2014 9:57 am

Re: Additional power supply for circuits controlled by GPIO

Fri Apr 11, 2014 7:11 pm

Thanks for your reply Ivan,

So, if I understand well - I should connect GNDs together, but Vcc goes ONLY from external? And GPIO 3.3v (+) pin (meaning pin nb 1 on raspberry gpio board) I just left unused? Sounds interesting, I thought when connecting some chip, there always must be its Vcc and GND connected from the same power source (to enclose current circulation) :)

Thx again, I'll try it!

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

Re: Additional power supply for circuits controlled by GPIO

Fri Apr 11, 2014 7:27 pm

Hi,
RaspbJan wrote:So, if I understand well - I should connect GNDs together, but Vcc goes ONLY from external?
Correct.
RaspbJan wrote:And GPIO 3.3v (+) pin (meaning pin nb 1 on raspberry gpio board) I just left unused?
Yes. This means that your circuit is supplied from external power supply and not from RasPi.
RaspbJan wrote:I thought when connecting some chip, there always must be its Vcc and GND connected from the same power source (to enclose current circulation) :)
It is. As said, you have to have GNDs connected together. Consequently, the Vcc and GND of the chip are connected to the same power source - external power supply.
So, the supply power has circulation via external power supply, where the inputs into this circuit (= outputs from GPIO) have current circulation throught GND back into RasPi.


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

RaspbJan
Posts: 3
Joined: Fri Apr 11, 2014 9:57 am

Re: Additional power supply for circuits controlled by GPIO

Fri Apr 11, 2014 8:45 pm

All clear :)
good night!

InvisibleStrike
Posts: 2
Joined: Fri Dec 09, 2016 12:55 pm

Re: Additional power supply for circuits controlled by GPIO

Sun Apr 16, 2017 12:41 am

Sorry for poking this topic again, but I have a small question, just to clarify. I have a Breadboard with its own power supply. Now if I want to power an LED without any IC (so just led+resistor) using the PI's power I would just take some free GPIO pin and ground, connect those up and I can control the LED. But how do I make that setup use the breadboard's power supply and not draw power from the pi?

rzusman
Posts: 349
Joined: Fri Jan 01, 2016 10:27 pm

Re: Additional power supply for circuits controlled by GPIO

Sun Apr 16, 2017 4:37 am

Use a transistor or FET.

Return to “Interfacing (DSI, CSI, I2C, etc.)”