darlington driver
jlang
Posts: 5
I started this project·3 years ago while living overseas and gave up after getting stuck.· I since moved back and wanted to finish this project once and for all.· I have a BS2 that I am trying to use 6 digital outputs to drive 20 LED's each at 20mA per LED.· According to my calcs, this comes to ~80mA's per pin.· I decided to go with a Darlington Driver (ULN2803APG) to energize the 12VDC LED circuit but for the life of me cannot get this to work.· I tried first to source to the load then tried sinking the load with no luck.· I'm able to get the darlington to switch by reading the output with my voltmeter and I'm able to get the LED's to turn on by simply·putting a battery across the circuit, I'm just not able to get the darlington to enable the led's.· Below is a rouch overview of my pinout...
P11 > Pin 1 of Darlington
Dar Pin·9 > Vss
12VDC > LED Anode
LED Cathode > Dar Pin 10
Dar Pin 18 > 12VDC Common
If anybody has a better configuration idea, I'll be glad to listen as I've been struggling for a while on this one.·
Thanks,
Jeremy
P11 > Pin 1 of Darlington
Dar Pin·9 > Vss
12VDC > LED Anode
LED Cathode > Dar Pin 10
Dar Pin 18 > 12VDC Common
If anybody has a better configuration idea, I'll be glad to listen as I've been struggling for a while on this one.·
Thanks,
Jeremy
Comments
Not sure where you got 80 mA/pin, but basically you need to make LED strings that operate from 5V. MAYBE 3 red LEDS will fire from 5V, but a better bet is 2 LEDs in series with the right current-limiting resistor to make ~20 mA through those two LEDs. With that 500 mA limit, you could parallel up to 25 strings of 2 LEDs, or 50 LEDs per channel.
Now, you probably can't have all 8 channels of the 2803 sourcing 500 mA simultaneously. That would be 4 amps total flowing through pin 10. So go easy on that poor chip.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/vol1/col/nv6.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
P11 > Pin 1 of Darlington
Dar Pin 9 > Vss
12VDC > LED Anode
LED Cathode > Dar Pin 10 Dar Pin 18 Needs series resistor!
Dar Pin 18 Dar pin 10 > 12VDC Common for the catch diodes.
The individual Darlingtons are rated up to 50 V when off, 500 mA when on.
How are you multiplexing this out to 20 channels? There are ICs such as the A6833 that have an SPI interface to 32 outputs. The predecessor UCN5833 came in a 40 pin DIP, obsolete now, but you can still find them around.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Tracy, I had the wrong connections then. I did not try the series resistor on the cathode of the LED. Also, are you indicating that I can use a seperate power supply (12VDC) on the output of the Darlington than on the input (5VDC from BS2 board)?
I'm not sure what you mean by the "separate power supply". If you have two different power supplies, the grounds have to be connected together. 5V from the Stamp output will turn on the Darlington. The Darlington is like a switch to ground. The power supply for the output collector side can be different, say 12 volts. Again, be sure to connect the grounds together.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
The catch diodes that come out at pin 10 are there to protect each channel against kickback from inductive loads, such as relays or solenoids that might be found in an impact print head. (Light blue line on the diagram puts them across the load, to catch any reverse of voltage that can occur when an inductive load suddenly turns off). For your LEDs, there is no inductive load, so you could safely leave pin 10 open, not connected to anything.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com