I have an npn transistor set up as a switch driving an LED.
If everything is connected to the 5v dc supply it works fine. But I want it to switch a 12v supply using a 5v microcontroller output. If I connect everything to the 12 v supply it works great to.
But when the base is controlled by the 5V supply and the collector -emitter/led is connected to the 12 v rail it doesn't work.
I've got the software working and everything but it's frustrating because I can't work out why it won't drive my 12V motors with the transistor base using a 5V supply.
What am I missing?
If everything is connected to the 5v dc supply it works fine. But I want it to switch a 12v supply using a 5v microcontroller output. If I connect everything to the 12 v supply it works great to.
But when the base is controlled by the 5V supply and the collector -emitter/led is connected to the 12 v rail it doesn't work.
I've got the software working and everything but it's frustrating because I can't work out why it won't drive my 12V motors with the transistor base using a 5V supply.
What am I missing?
