Turn off an always on led with transistor

ledswitchestransistors

I've been trying to turn off a always on led with a push bottom and a transistor? What I want to do is to turn off the led when I push the botton.

schematic

simulate this circuit – Schematic created using CircuitLab

Best Answer

I'm assuming your power supply is 5 volts, not 1 volt. As connected, the NPN transistor will attempt to short-circuit the power supply, which probably won't work. Try

schematic

simulate this circuit – Schematic created using CircuitLab