Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Better way to connect LEDs to the MCU pin

Status
Not open for further replies.

tiwari.sachin

Full Member level 6
Joined
Aug 1, 2009
Messages
341
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
India
Activity points
4,449
Whats the better way to connect LEDs to MCU (microcontroller) pins

1. MCU Pin to Anode of LED (Source Current)

2. MCU Pin to cathode of LED (Sink Current)


I have had some issues when sourcing current (option 1). after continuous usage, the pin of MCU was damaged.
 

The best way is to use a general purpose NPN transistor to drive anything larger than a few milliamps out of a MCU port.
 

the best way is to read the max current ratings and use the recommended rating instead.
Some are asymmetrical with more sink current, meanwhile some LEDs are ultrabright at 2~3mA
 

I don't think 20 mA output current is supported by all microcontrollers.
Use the NPN transistor I advised.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top