Re: 300 mA from a microcontroller pin



In article <KdD3j.23516$j7.444069@xxxxxxxxxxxxxx>, toe@xxxxxxxxxxx
says...
Arlet Ottens:

What are you driving that you need 3-state 300 mA outputs ? Depending on
the application, there may be alternative solutions.


A bi-colour LED that has only two pins (they're in parallel facing in
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.


Are you assuming that you can control this LED with just one pin? The
only way I can see to do that is like


P1.1---- LED --- R1 ---- 2.5V

Then alternating P1.1 between 0 and 5V would change the direction of
current flow. However, selecting R1 and getting a stable 2.5V
current source/sink is another set of problems.


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).


You don't really need a tri-state driver, then. If both LED pins are
at the same level (either high or low), the LED will be off.


If total power dissipation isn't a concern, your circuit could
simplify to:


+5 +5
| |
R1 R2
| |
|---- LED ----|
| |
P1.1---T1 P1.2---T2
| |
| |
gnd gnd


T1 and T2 are logic-level N-channel mosfets controlled by
your MPU pins.

R1 and R2 are current-limiting resistors---and can be different
to balance the apparent brightness of the LEDs

When P1.1 and P1.2 are low, T1 and T2 are off and the LED is
off.

When P1.1 is high and P1.2 is low, current flows through
R2 and the LED to ground. Current also flows through
R1 to ground---wasted power, essentially. Assume that this
is the Green direction of the LED.


When P1.2 is high and P1.1 is low, current flows through
R1 and the LED to ground. Current also flows through
R2 to ground---wasted power, essentially. Assume that
this is the RED direction of the LED.

When both P1.1 and P1.2 are high, the LED is off and
current flow through R1 and R2 keeps your circuit board
warm! ;-)

If you don't want to warm the PC board as much, you can replace
R1 and R2 with a combination of a P-Channel mosfet and a resistor.

+5 +5
| |
P1.1---T3 P1.2---T4
| |
R1 R2
| |
|---- LED ----|
| |
P1.1---T1 P1.2---T2
| |
| |
gnd gnd


You can probably find small packages with two or
more integrated transistors in the Digi-Key catalog.
You will have to do a bit of research on gate voltages
and current handling, though.


Mark Borgerson
.



Relevant Pages

  • Re: System 80 Power Supply - no +5v LED
    ... to the MPU board. ... I noticed the power supply ... Did you change the connectors and pins? ... connector lit the LEDs and whammo, ...
    (rec.games.pinball)
  • Re: Analog multiplexor help
    ... if all your input signals are between the digital supply rails (like ... The signal to the pins is from a picaxe, so its probaly around 4.7V and the supply is about 4.7V too. ... When I power the chip, it still sends out power to 2 of the LEDS. ... I can disconnect the pin3 that holds the power I want to switch and they keep lit, so its using its own power to lit these 2 leds. ...
    (sci.electronics.basics)
  • Re: Grow-Tron, For Sale!
    ... Then, with the controller logic removed, there are questions about ... "DO NOT PLUG THE GROW-TRON POWER SUPPLY JACK PLUGS INTO THE MEDIA CARD ... So, that levity aside as I'm still an idiot about the LEDs, hmm... ...
    (rec.gardens)
  • Re: 12 LED resistance circuit help
    ... be more humble and merely post "Circuit designer"? ... >Perhaps "dissipate more power" would have been more appropriate than ... "Since there are two LEDs in series, one may hog more current than the ... >> dissipation spec of an LED with Vf max in series with an LED with Vf ...
    (sci.electronics.basics)
  • Re: Solar Powered PIC
    ... Costco which also include a solar panel for each one, ... In my case, I think the voltage is 2.4V or so, so I agree with your ... low voltage desire for your power source. ... How many of these LEDs would you consider using ...
    (sci.electronics.design)