I'm a noob doing some projects with the arduino development environment and learning as I go.
I have a problem with a very simple test circuit I made on a breadboard consisting of a 9v battery, some jumpers, a switch and an LED. This is obviously a DC circuit but the switch I'm using is a Radio Shack AC switch rated at 250VAC and 1.5A. The switch is connected between +V and GND and works with expected results turning the LED off and on.
However, in the off position, the 9v battery starts to heat up significantly. Can somebody hazard a guess as to what is going on? Is it the switch, do I need a DC-rated switch? Or, can I fix this some way by adding a resistor, capacitor or diode?
Thanks in advance for any insight you can offer!