Re: 300 mA from a microcontroller pin
- From: Arlet Ottens <usenet+5@xxxxxxxxxx>
- Date: Fri, 30 Nov 2007 08:07:14 +0100
rickman wrote:
On Nov 29, 1:07 pm, Tomás Ó hÉilidhe <t...@xxxxxxxxxxx> wrote:Arlet Ottens:
What are you driving that you need 3-state 300 mA outputs ? Depending onA bi-colour LED that has only two pins (they're in parallel facing in
the application, there may be alternative solutions.
different directions). If the microcontroller pin is high, then it'll be
red. If low, it'll be green. If high impedance, it'll be off.
The maximum current rating for the LED package is 30 mA... except I'm
flashing a display and will only have them lit one sixteenth of the time,
so I'm gonna put a burst of 300 mA through them. (I've seen experiments
where people flashed an LED putting an entire amp through it, so I don't
think 300 mA will be a problem for a duty cycle of one sixteenth).
--
Tomás Ó hÉilidhe
There you go. Arlet said there might be alternate solutions and there
is one. You don't need the tri-state control. You can drive the LED
forward with one pin high and the other low, backward by switching the
two and off by bringing them both high or both low. Can't be much
easier than that! You will still need two pins from your controller,
but you don't need a complex driver circuit. Just a pair of FETs, 1 P
channel and 1 N channel on each leg of the LED. If you are driving
from a high enough voltage that the N channel FET will be fully off
(or using a low threshold part), you don't have to worry too much
about shoot through. To eliminate it, you can put your current
limiting resistors in between the drains of the two FETs and connect
the load between the drains of the N channel FETs. That's pretty
simple, four FETs and two resistors... about $0.40 per LED. You can
even get a pair of FETs in an SC-70 package, only 2 mm square. I'm
not sure SC-70 FETs are rated for 300 ma though. You may have to go
to the SOT-23 package at 3 mm square...
I assumed the OP wanted to put the 16 LEDs in a 4x4 grid, and control them with 8 pins on the PIC (4 row and 4 column), which would require tri-state control.
However, using discrete components is probably the easiest solution (assuming there's space on the board).
.
- Follow-Ups:
- Re: 300 mA from a microcontroller pin
- From: CBFalconer
- Re: 300 mA from a microcontroller pin
- From: Ph. Marek
- Re: 300 mA from a microcontroller pin
- References:
- 300 mA from a microcontroller pin
- From: Tomás Ó hÉilidhe
- Re: 300 mA from a microcontroller pin
- From: Arlet Ottens
- Re: 300 mA from a microcontroller pin
- From: Tomás Ó hÉilidhe
- Re: 300 mA from a microcontroller pin
- From: rickman
- 300 mA from a microcontroller pin
- Prev by Date: Re: 8051 compilers
- Next by Date: Re: 8051 compilers
- Previous by thread: Re: 300 mA from a microcontroller pin
- Next by thread: Re: 300 mA from a microcontroller pin
- Index(es):
Relevant Pages
|