Re: 300 mA from a microcontroller pin
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Fri, 30 Nov 2007 11:39:52 -0500
Mark Borgerson wrote:
toe@xxxxxxxxxxx says....... snip ...
A bi-colour LED that has only two pins (they're in parallelimpedance, it'll be off.
facing in different directions). If the microcontroller pin is
high, then it'll be red. If low, it'll be green. If high
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.
Ignoring total dissipation, a single tri-state driver will do:
+5
|
R1
|
tri state here >---|X|-----+
LED |
R2
|
GND
with R1 approximately equal to R2. The ratio controls brightness.
--
Chuck F (cbfalconer at maineline dot net)
<http://cbfalconer.home.att.net>
Try the download section.
--
Posted via a free Usenet account from http://www.teranews.com
.
- Follow-Ups:
- Re: 300 mA from a microcontroller pin
- From: Mark Borgerson
- Re: 300 mA from a microcontroller pin
- From: DJ Delorie
- Re: 300 mA from a microcontroller pin
- From: Spehro Pefhany
- 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: Mark Borgerson
- 300 mA from a microcontroller pin
- Prev by Date: Re: 300 mA from a microcontroller pin
- Next by Date: Re: 300 mA from a microcontroller pin
- Previous by thread: Re: 300 mA from a microcontroller pin
- Next by thread: Re: 300 mA from a microcontroller pin
- Index(es):
Relevant Pages
|