What I would like to know is can this 5volts (or less) be from an outside source? Say I had a 5 volt battery (negative connected to arduino ground) and a switch connected to pin 10 instead of the onboard 5v would this work or would I see smoke emanate from the arduino?
Isn't pin 10 the output pin with the LED connected to it? You can't do input and output on the same pin. Or did you mean something else?I think the problem is in your basic description. You don't pass 5V from the input pin to the output pin to light the LED. They are completely separate. You read the value of the input pin (which may be high or low) and then in the code you make a decision based on that value whether to set the output pin high (5V) or low (0V) to light the LED or not.Steve
read on an independent site that you risked damaging the board if you used an outside voltage to do the switching,