LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting reed switch and LED

Thank you ! So would something like attached work ? 

 

Let me know. I'd want to know when the switch opens and closes by both NI and the LED.

 

Thanks.

0 Kudos
Message 11 of 13
(402 Views)

Hi Sam,

 

yes.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 13
(389 Views)

Hi Sam,

In you diagram, it appears you trying to put the NI in serial with the switch and LED.

A better way would be to put the LED and Switch in series and put the DAQ in parallel with the LED. Something like this.

 

image.png

 

As GerdW points out, this is really basic electronics. LEDs require a current limiting resistor or the LED will burn out immediately. I look at the LED in McMaster and there is no indication if the LED module contains a current limiting resistor. If you are not getting any light from the LED with the above circuit, then you just fried you expensive LED.

FYI LED generally consume between 15 to 20 mA. Why do you think it will draw >1A? (Again, basic electronics)

 

Hope this helps

---------------------------------------------
Certified LabVIEW Developer (CLD)
There are two ways to tell somebody thanks: Kudos and Marked Solutions
Message 13 of 13
(379 Views)