How do I power an LED from a 2.8V CMOS GPIO pin?

Pins are specified as being push-pull output (therefore "no pull-up resistor is required"). Some of the GPIO pins are listed as having "Internal Pull up" of 4.7Kohn, while others have 47Kohm.

Answer:
I'd use a 2N3904 to drive the LED.

One possible configuration...

2.8V /--------------------
... ... . . . . . . |
.. . . . . . . . . . . . . . . . ---
. . . . . . . . . . . . . . . . . \/ LED
. . . . . . . . . . . . . . . . . --
. . . . . . . . . . . . . . . . . .| c
. . . . . . . . . . . . . . . . ./
.GPIO-- 0-----------| 2N3904
. . . . . . . . . . . . . . b \ e
. . . . . . . . . . . . . . . . . | . . . . . . . . . . .R = 2V / 10ma
. . . . . . . . . . . . . . . . . ------/\/\/\/\/\/--. . . = 0.2 k (or 200 ohms)
. . . . . . . . . . . . . . . . . .. . . . . . . . . . |
. . . . . . . . . . . . . . . . . .. . . . . . . . . . |
. . . . . . . . . . . . . . . . . .. . . . . . . . . . |
. . . . . . . . . . . . . . . . . .. . . . . . . . . Gnd

The point is depending on the type of MCU in general you don't want your MCU supplying the 10 ma.
Put about 68 ohm in series with the LED and remember to wire the LED the right way round, then it should work OK for 2.8V. If it is a complementary ("push-pull") output then you can connect the resistor and LED either from the output to ground, or the output to the supply rail, depending on whether you want the LED to light when the output is high or when it is low. Good luck!
You need to look at several factors.

1. What is the current output specification of the GPIO pin?
2. What is the voltage drop of the LED?
3. What is the current required for the LED?

The answers post by the user, for information only, FunQA.com does not guarantee the right.



More Questions and Answers:
  • Voltage Homework?
  • Can a mech engg graduate do M.S. or M.Tech in control systems?if yes,then how are the job prospects&salaries?
  • Use polynomial, rational, exponential and logarithmic functions.?
  • Objest can only hold a load of 150kg/m^2. Wat is the max vol of water height that can the size of 1.2X0.9m be?
  • Alternate Zippo Fuel?
  • My UPTU rank is 2042. i want to go for electrical engineering from HBTI,will i get it?
  • How to know if electricity transmission line has negative effect to human healthy when it is near your house?
  • What is difference between response specrtum and static analysis methods for seismic forces?
  • Can i add a solar panel to an electric scooter??
  • Is water drag a force?