![]() | ![]() | ![]() |
| | |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| This should be a fairly simple question. I have a microcontroller activating a TIP120 that will drive a relay. I would like a status LED that tells me that the microcontroller is turning the TIP120 on. I figured I could kill 2 birds with one stone here and use an LED to show me the status and to limit current to the base of the TIP120. I've tried it out and it works. I simply replaced the 10k current limiting resistor with an LED. Using a multimeter it shows the specific LED's I would be using have 8k resistance, which should be fine. Since the TIP120 is pulling current it also prevents the LED from getting too much current in turn. I just wanted to make sure there's nothing technicaly wrong with doing this. Also, if the LED blows for any reason, will it stop the circuit all together, or will current still pass though?
__________________ Mark Higgins | |
| |
| | (permalink) | |
| Quote:
You are running a 5V system so the micro presumably outputs about this many volts when you "turn on" the TIP120? (+5V to anode of LED) Is this how you have it hooked up? | ||
| |
| | (permalink) |
| I'm using a 3.3v microcontroller, but otherwise, yes, that's exactly it. uC -> LED -> Base Emitter -> GND Collector -> relay coil I have a protective diode here to catch the back current from the coil when it deactivates. Do I need this? I noticed that the internal schematic of the TIP120 shows a built in diode.
__________________ Mark Higgins | |
| |
| | (permalink) |
| The LED same as zener diode with about 2V if this is a red LED (the voltage depend from LED color). The TIP120 is a darlington so the E-B voltage is 1.4V. Not a correct solution, because these voltages depending from temperature. | |
| |
| | (permalink) |
| This is why I asked. It's never as simple as I want it to be. The final circuit will need to work reliably in a fairly wide range of temperatures. Thanks.
__________________ Mark Higgins | |
| |
| | (permalink) |
| Yes, you need the back swing diode, it prevents the voltage from going too high. The internal diode prevents the voltage from going too low.
__________________ see my website: www.geocities.com/russlk | |
| |
| | (permalink) |
| Leave the resistor from the uprocessor to the base of the TIP120. Connect a current limiting resistor in series with the LED, and connect this series assembly in parallel with the relay coil. When the TIP120 is turned on the LED will be on also.
__________________ The great thing about electronics is unlimited ways to do the job. The only limit is one\'s imagination. I generally think my way is best. Show me a different way. I have an open mind. | |
| |
| | (permalink) |
| You mean put the LED on the other side of the transistor. The same power that activates the 12v coil? This power is pretty dirty. This is going in a car engine bay, the relay itself will be powering some fans. I'm worried that voltage spikes will kill the LED's.
__________________ Mark Higgins | |
| |
| | (permalink) |
| Sjould work fine, I have used this approach many times. That is assuming you have the relay connected between the collector of the TIP120 and + 12 volts, so when the TIP120 turns on the collector goes near ground and turns on the relay. If you use a 1.2K ohm 1/2W resistor the LED current will be about 10mA.
__________________ The great thing about electronics is unlimited ways to do the job. The only limit is one\'s imagination. I generally think my way is best. Show me a different way. I have an open mind. | |
| |
| | (permalink) |
| Very improper. An LED has a very nonlinear IV curve so that it NEEDS a current limiting resistor, something with a straight IV. It doesn't function as a current limiter. It's not impossible that it turns on, but it's not limiting current the way it's supposed to and you can blow both the LED and transistor under the wrong conditions. So I'd recommend putting the resistor back in, and adding a resistor/LED combination to the logic output if you want to watch it turn on. | |
| |
| | (permalink) |
| Okay, the final circuit then. I wanted to avoid putting the LED on the 12v side of the circuit, but it looks like the only way. Thanks for your help.
__________________ Mark Higgins | |
| |
| | (permalink) |
| Looks like the led is in series with the coil..I believe the led will stay lit all the time, dim with output low and bright with output high..
__________________ gerty | |
| |
| | (permalink) |
| No, Gerty, when Q1 turns on, the LED goes out.
__________________ see my website: www.geocities.com/russlk | |
| |
| | (permalink) |
| Oops. I made that incorrectly. I'll update the schematic. I have it here on a breadboard, I just copied it down wrong. EDIT: updated. Is the Diode in the right place, or should it be on the other side of the LED, or does it matter?
__________________ Mark Higgins | |
| |
| | (permalink) |
| Russell, you're right.. Q1 will shunt the led...Tooo tired ...must sleep.
__________________ gerty | |
| |