Controling 300mA with a transistor from an I/O. schematic needed
I want to control 5-10 LEDs all on or all off no lighting effects. each LED is 30mA so x10 that's where I'm getting the 300mA. I can find transistors at this rating and the data sheet will usually give a sample circuit but in this case they don't. and I haven't been able to find one on the web
Is this the best option? should I just use a solid state relay or something? can someone point me to a circuit for this.
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
Is this the best option? should I just use a solid state relay or something? can someone point me to a circuit for this.
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
Comments
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
You'd need 5 of these strings for a total of 10 LEDs and a total current of 150 mA ... very switchable with pretty much any switching transistor (like a 2N2222 or 2N3604).
Connect the resistor ends all to the +12V supply, then the anodes of the 1st LEDs go to the resistor and the anodes of the 2nd LEDS go to the cathodes of the 1st LEDs. The cathodes of all the 2nd LEDs are connected together and to the collector of the switching transistor. The emitter of the switching transistor should be connected to ground and the base should be connected through a 220 ohm resistor to an I/O pin. The LEDs should come on when the pin is made HIGH.
There are plenty of sample schematics in the StampWorks and the Industrial Control tutorial.
The five 12-ohm resistors help to balance the LED currents in case their forward voltages vary. The emitter resistor, along with the two 470-ohm bias resistors are what set the overall current limit. A lower value emitter resistor will give you more current; a higher value, less current. If the emitter resistor gets too hot, replace it with a 1/2-watter. The transistor will be dissipating about 380mW, which is well within its capabilities. If you alter the number of LED strings, you will have to change one or more of the resistor values.
-Phil
Addendum: If your battery voltage can range more than a volt or so above 12V, the transistor may get too hot. If this is a possibility, it will be necessary to adjust the bias and emitter resistor values, so the emitter resistor drops more voltage.
Post Edited (Phil Pilgrim (PhiPi)) : 11/14/2007 7:32:56 PM GMT
Thanks a lot guys I really appreciate it
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
-Phil
-again thanks for the help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
-Phil