01-16-2015 03:55 AM
i tried to implement the example program of led interfacing but the led is not glowing as per the conditions given...
the led should glow when 5v supply given and should turn off when the stop button is pressed
kindly help...
Solved! Go to Solution.
01-16-2015 04:01 AM
01-17-2015 01:34 AM
we made connections as shown,(The LED is wired in series with a 330Ω resistor .We will supply power to this circuit using Digital Line 0 of the myDAQ, and ground the circuit to Digital Ground of the myDAQ )
01-18-2015 05:06 AM
this program we have implemented...
not getting properly what went wrong..
our labview version is 2012
01-18-2015 11:09 AM
01-19-2015 10:30 AM
There is something very fundamentally wrong with that circuit. According the the paper, the LED will be drawing ~15mA. But the specification for the DIO on the myDAQ states that the maximum current it can output is 4mA. Therefore, the myDAQ will not be able to light that LED with a direct connection. You need to use a digital buffer chip that can output the current as a go between. Something like the 74HCT125N should work.
01-19-2015 03:11 PM
@crossrulz wrote:
There is something very fundamentally wrong with that circuit. According the the paper, the LED will be drawing ~15mA. But the specification for the DIO on the myDAQ states that the maximum current it can output is 4mA. Therefore, the myDAQ will not be able to light that LED with a direct connection. You need to use a digital buffer chip that can output the current as a go between. Something like the 74HCT125N should work.
it should be this way
DIO-----|<-----/\/\/\/------+5V
LED 330
Then of course you will have to invert your logic in your program because a LOW on the DIO pin will turn the LED on.
01-19-2015 05:20 PM
@RTSLVU wrote:
it should be this way
DIO-----|<-----/\/\/\/------+5V
LED 330Then of course you will have to invert your logic in your program because a LOW on the DIO pin will turn the LED on.
The other problem with that setup is what happens when the DAQ is shut off? The DIO goes low, causing the LED to turn on. This is likely not desired. Now getting an open-collector buffer would work well with that setup (True into the buffer causes the buffer line to go low instead of high impedence, therefore turning on the LED).
01-20-2015 08:07 PM
@crossrulz wrote:
@RTSLVU wrote:
it should be this way
DIO-----|<-----/\/\/\/------+5V
LED 330Then of course you will have to invert your logic in your program because a LOW on the DIO pin will turn the LED on.
The other problem with that setup is what happens when the DAQ is shut off? The DIO goes low, causing the LED to turn on. This is likely not desired. Now getting an open-collector buffer would work well with that setup (True into the buffer causes the buffer line to go low instead of high impedence, therefore turning on the LED).
But if the DAQ is shut off woulden't the +5V from the DAQ also be off?