|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Turning LEDs on/off
I have an LED wired to the digital side car power and ground pins. I want to be able to turn it on/off programatically, but it always stays on. I am using Labview to open a digital output sand setting it to false, but the LED is always staying on.
I have the jumper on the DSC's port. What am I ding wrong? Should the LED be wired to the ground and signal pins? |
|
#2
|
|||||
|
|||||
|
Re: Turning LEDs on/off
Wiring to the signal pin sounds like it would work.
|
|
#3
|
||||
|
||||
|
Re: Turning LEDs on/off
Quote:
|
|
#4
|
||||
|
||||
|
Re: Turning LEDs on/off
I think you are right when you say that you should wire to signal and ground, just don't mix up positive and negative on the LED, they make a nice pop sometimes, you can also run LEDs on spike relays if they are 12 volt
Edit: Also the signal may not carry enough current to power LEDs in which case you should use a spike |
|
#5
|
||||
|
||||
|
Re: Turning LEDs on/off
LEDs from SuperBrightLED
Qty | Product / Options | Price/ea | ================================================== ========== 12 | RL5-G7532: 5mm Green LED | $ 0.54 | RL5-G7532: Green LED ---------------------------------------------------------- Resistors from www.MOUSER.com 299-82-RC 299-82-RC 82ohms Assuming the flat side of the LED is the negative side. Going to try the ground/signal setup now.... thanks |
|
#6
|
||||
|
||||
|
Re: Turning LEDs on/off
Last edited by Ether : 07-07-2012 at 22:13. |
|
#7
|
|||
|
|||
|
Re: Turning LEDs on/off
Quote:
Reversing polarity on a LED will not damage the LED (or the Digital Sidecar, for that matter) -- it will simply not night. LEDs are diodes. Feeding them too much power, however, can make them pop. |
|
#8
|
||||
|
||||
|
Re: Turning LEDs on/off
Quote:
And like flameout said it won't hurt the sidecar or the LED at that voltage. An LED is a diode so it only lets current through in one direction and also happens to light up. |
|
#9
|
||||
|
||||
|
Re: Turning LEDs on/off
Quote:
A high voltage high impedance source might work fine in the forward direction but damage the LED if polarity is reversed. |
|
#10
|
||||
|
||||
|
Re: Turning LEDs on/off
I used the calculator linked below to determine the resistor. Forward current was 20mA, source voltage was 5v and the forward voltage was taken from the LED specs.
http://led.linear1.org/1led.wiz When I switched to the signal tonight, there was no light when I set the DIO to true or false. When the LED is on power and ground, it comes on Last edited by rsisk : 07-07-2012 at 23:28. |
|
#11
|
||||
|
||||
|
Re: Turning LEDs on/off
Quote:
Disconnect your LED circuit and put a voltmeter (a cheap $10 one will do) between signal and ground at the DIO output. Flip the DIO true/false and confirm that you are getting 5 volts and zero volts. Now connect your LED circuit (leaving the voltmeter connected between signal and ground). My guess is that you will no longer see 5 volts. The load from the LED acting on the impedance of the signal source will drop the voltage below that necessary to provide the current to light the LED. Last edited by Ether : 08-07-2012 at 00:43. |
|
#12
|
||||
|
||||
|
Re: Turning LEDs on/off
Quote:
If I use a spike to control it, I assume I will need a different resistor to handle a 12v input? Or I run 5v throught the spike? |
|
#13
|
||||
|
||||
|
Re: Turning LEDs on/off
Quote:
I'll draw a sketch and post it here in a few minutes. |
|
#14
|
||||
|
||||
|
Re: Turning LEDs on/off
Very cool thanks Ether.
|
|
#15
|
||||
|
||||
|
Re: Turning LEDs on/off
Something like this.
edit: corrected resistor value Last edited by Ether : 08-07-2012 at 03:25. Reason: corrected resistor value |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|