

The GPIOs on all Pis output 3.3V (logic level 1 or "high"). However you need to limit the current flowing through a LED with a resistor whether it's connected to a GPIO and 0V (active high) or a GPIO and 3.3V (active low), the "other way around" (remember, it's a Light Emitting Diode). FWIW, some typical resistor values etc. can be seen in this simple circuit used to monitor a Pis supply rails and the Rx & Tx (serial port) GPIOs:dman777 wrote:I want to use 2 led's for a Pi 2.... can I use 5v or does pi 2 only output 3.3v?

Probably depends on the LED - I have some 3mm blue leds that are fine (see the link in my previous post). Tend to agree w.r.t. white LEDs but, then again, nokia-style lcd's with "white" backlights seem to work fine with 22ohms in series (from the 3.3V supply rail) or via a transistor buffer:pluggy wrote:Just don't expect a blue or white LED to work at 3.3 volts.

I think you may have put m's where you didn't mean to?boyoh wrote:A standard red led will give a good light with 1.8/ 2v
dropped across it. and a current of 0.01ma ( 10ma )
GPIO o/p 3.3V+------------( 130R )-----(a led k )-----0v-
5v+--------( 300R )-----------( a led k )------------------0v-
3.3v - 2v = 1.3v / 0.01ma = 130r
5v - 2v = 3v / 0.01ma = 300r
Thanks for correcting me, I've lost countBurngate wrote:I think you may have put m's where you didn't mean to?boyoh wrote:A standard red led will give a good light with 1.8/ 2v
dropped across it. and a current of 0.01ma ( 10ma )
GPIO o/p 3.3V+------------( 130R )-----(a led k )-----0v-
5v+--------( 300R )-----------( a led k )------------------0v-
3.3v - 2v = 1.3v / 0.01ma = 130r
5v - 2v = 3v / 0.01ma = 300r