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.
simulate this circuit – Schematic created using CircuitLab
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.
simulate this circuit – Schematic created using CircuitLab
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
simulate this circuit – Schematic created using CircuitLab