Illuminated toggle switch

I have a illuminated toggle switch which i am running off the 3.3v on the arduino board.

I have it connected to a digital input. I noticed that it glows dimly when connected with or with out the 3.3 connected to the + side of the illuminated switch.

Do i need to add a resistor?

Why is digital input 8 putting out power?

The help would be appreciated.

I took over this project and was adding was swapping out the toggle switches.

Hi,
I think the voltage of 3.3 volt will not turn on very bright the led. You may need a higher voltage.

Why do you have it connected to an input ?
schematic ?
code ?

coolsapper:
I have a illuminated toggle switch which i am running off the 3.3v on the arduino board.

I have it connected to a digital input. I noticed that it glows dimly when connected with or with out the 3.3 connected to the + side of the illuminated switch.

Do i need to add a resistor?

Why is digital input 8 putting out power?

The help would be appreciated.

I took over this project and was adding was swapping out the toggle switches.

Link to a datasheet or product page. There are a number of ways the illumination circuit could be wired up, and it would just be a waste of time to guess. If you don't know those things, find a part number on it or post some pictures of it. Give us something to go off of.

Without a schematic or code , there is no way to know what is happening . (hint, it might have something to do with your configuration. It's possible the switch led needs a current sink and the input pullup is pulling it high.

No schematic
No code
No help

You dont even mention the COLOR of the led either.. (nor the requested datasheet)

an led should be connected to an OUTPUT... not configured as an INPUT (I hope your just mincing words and thats not truly how its set-up).. the switch signal/control lines should be connected to pins configured as INPUTS... but not the LED portion of the switch

I think you need to use a meter and find out what the forward voltage of the LED is (for that you may want to read a tutorial on LED resistor calculation) - if you do not have a data sheet or any information about the illuminated button / switch (since you did not explain if it was a LED or what type of bulb it is).

There are a bunch of confusing styles of buttons and switches, some 12v with only 3 terminals combine light power and load, 4 or 5 terminal types, could be 24v - DC or AC is anyone's guess. Sometimes there is stamps or emboss / raised lettering around the mount that can explain some details if you get close with a magnifying lens.

It's a good idea to use a limit resistor for every light and/or LED on every circuit. Also a good practice to test that on it's own separate circuit from Arduino (or anything else) so you can become familiar with which pins to use.