Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC Pin power

Status
Not open for further replies.

GatorGnet

New Member
I know that each pin can't handle a lot but would I be able to get away with driving a 5mm red LED and a transistor from one pic pin?
 
I know that each pin can't handle a lot but would I be able to get away with driving a 5mm red LED and a transistor from one pic pin?

hi Gator,
The PIC is rated to source up to approx 20mA on a output pin.

If you assumed that the RED led had a Vdrop of 2v, then thats 3V/0.01= 300R for 10mA thru the led.
This leaves about 10mA for the transistor base resistor.

OK.?
 
Connect the LED + resistor in series with the base of the transistor, then the LED current also drives the transistor.

Something like the schematic in this document show.

**broken link removed**
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top