J
James W
Guest
I need to switch a 12Vdc load. I'd like to use a PNP transistor, because
this would allow me to simply ground the base(though a resistor) to
turns things on. However, this circuit will generally be driven by a
microprocessor.
My understanding is that one would typically use a PNP as a top-side
switch, i.e. connect the emitter to 12V, and the collector to the load,
and finally, the load to ground.
A pullup on the base would switch the transistor OFF, and pulling the
base down through a resistor, would turn the transistor ON.
However, this means that there will be 12V on the base, and the
microprocessor is at 5V, so things are not good.
Clearly, one doesn't have this issue using a bottom-side NPN transistor,
but then one has a tougher time turning the transistor ON when the
microprocessor is not present.
(If this 'switch stuff' is confusing.. just realize that I'd like to be
albe to 'override' the microprocessor with a physical switch from time
to time)
So, is there any simple design that allows me to have a simple "ground
this pin with a switch' override of a microprocessor controlled
transistor switch for 12V?
p.s. Load current is ~150mA inductive (a coil relay to be specific)
this would allow me to simply ground the base(though a resistor) to
turns things on. However, this circuit will generally be driven by a
microprocessor.
My understanding is that one would typically use a PNP as a top-side
switch, i.e. connect the emitter to 12V, and the collector to the load,
and finally, the load to ground.
A pullup on the base would switch the transistor OFF, and pulling the
base down through a resistor, would turn the transistor ON.
However, this means that there will be 12V on the base, and the
microprocessor is at 5V, so things are not good.
Clearly, one doesn't have this issue using a bottom-side NPN transistor,
but then one has a tougher time turning the transistor ON when the
microprocessor is not present.
(If this 'switch stuff' is confusing.. just realize that I'd like to be
albe to 'override' the microprocessor with a physical switch from time
to time)
So, is there any simple design that allows me to have a simple "ground
this pin with a switch' override of a microprocessor controlled
transistor switch for 12V?
p.s. Load current is ~150mA inductive (a coil relay to be specific)