Quote from: ruvy on Jan 09, 2013, 10:58 amHi all,is there a simple way in the setup to recognize if a led is connected on a digital out?Thanks for any hints,RudiNo, there is no easy or indeed difficult way to do this.
Hi all,is there a simple way in the setup to recognize if a led is connected on a digital out?Thanks for any hints,Rudi
What are you trying to do Rudi ?
Heres a plan that might work to see if your sensor box is plugged in :-If you run the LED from an Analog pin , which is set to input, and high ( so as to set its pullup resistor ) you could then AnalogRead the voltage on the pin.If there is no LED to ground you will get 5v, but if the LED ( red?) is connected you will see 2v.The LED will probably glow from the current of the pull-up resistor, but once you have established the LED is there, you can switch the pin back to output to turn on the LED when you want.