is there any reason why I should use either a npn or pnp transistor to drive
a relay ?
In most of the circuits I have seen, a pnp is used. Is there a reason for
that ?
Cheers,
Koen.
leon...@village.uunet.be
place dot after leo if you want to mail me.
>Hi all,
>
>is there any reason why I should use either a npn or pnp transistor to drive
>a relay ?
>In most of the circuits I have seen, a pnp is used. Is there a reason for
>that ?
Strange because it is generally easier to drive things with NPN
transistors based on the assumption that the rest of the circuit is
referenced to 0v so the base drive for a transistor referenced to 0v
is usually simpler.
Industrial systems more often use PNP output drives (probably required
by some safety regualtions now). The reasoning for that is you are
more likely short wiring to ground than +ve supply and the relay won't
turn on which is presumed to be safer.
Cheers Terry...
On Tue, 13 Jul 1999 19:18:12 +0200, "Koen Velle"
<leon...@village.uunet.be> wrote:
>Hi all,
>
>is there any reason why I should use either a npn or pnp transistor to drive
>a relay ?
>In most of the circuits I have seen, a pnp is used. Is there a reason for
>that ?
>
>
You want to set up a relay-driving transistor such that the Emitter is at
ground, and the relay connects between the collector and VCC. So, if you have a
negative ground system, use an NPN transistor. If you have a positive-ground
system, use a PNP transistor.
You don't generally want to drive the relay between the emitter and ground,
because this might affect the performance and life of the transistor as the base
will have to be raised to a higher voltage than the emitter, and once the
transistor conducts this voltage will drop thereby causing a higher base current
and possibly damaging the transistor.
-TBB
- The base of the transistor requires significant current (on the order of
1 - 10 mA, perhaps), in general, to drive a moderate sized relay. Many
digital output devices can sink current much better than they can source it,
therefore they are better suited to driving a PNP transistor base without
using any buffering.
- The logic sense of the application may require an active-low signal to
drive the relay, and a transistor switch turns on with a logic low drive
signal if the transistor is PNP.
Todd
Koen Velle <leon...@village.uunet.be> wrote in message
news:7mfshk$91h$1...@nickel.uunet.be...
>Hi all,
>
>is there any reason why I should use either a npn or pnp transistor to drive
>a relay ?
>In most of the circuits I have seen, a pnp is used. Is there a reason for
>that ?
>
>
>Cheers,
>
>Koen.
>
>leon...@village.uunet.be
>place dot after leo if you want to mail me.
>
>
Most, if not all, TV relay startup circuits I've seen use an NPN, with
the transistor bringing the low side of the relay to ground when
switched on.
Tom
Terry Harris wrote:
> "Koen Velle" <leon...@village.uunet.be> wrote:
>
> >Hi all,
> >
> >is there any reason why I should use either a npn or pnp transistor to drive
> >a relay ?
> >In most of the circuits I have seen, a pnp is used. Is there a reason for
> >that ?
>
Terry Harris wrote:
> notj...@worldnet.att.net (James Meyer) wrote:
>
> >>Strange because it is generally easier to drive things with NPN
> >>transistors based on the assumption that the rest of the circuit is
> >>referenced to 0v so the base drive for a transistor referenced to 0v
> >>is usually simpler.
> >
> > If the circuit providing the low level signal for the
> >transistor is TTL based, then a PNP with its emitter referenced to the
> >Vcc supply is a better choice because TTL outputs can sink current
> >better than they can source it.
>
> But that also means the relay supply voltage can not exceed the the
> PNP transistor base driver working voltage - 5v for most TTL.
>
> Cheers Terry...
>"Koen Velle" <leon...@village.uunet.be> wrote:
>
>>In most of the circuits I have seen, a pnp is used. Is there a reason for
>>that ?
>
>Strange because it is generally easier to drive things with NPN
>transistors based on the assumption that the rest of the circuit is
>referenced to 0v so the base drive for a transistor referenced to 0v
>is usually simpler.
If the circuit providing the low level signal for the
transistor is TTL based, then a PNP with its emitter referenced to the
Vcc supply is a better choice because TTL outputs can sink current
better than they can source it.
Jim
>>Strange because it is generally easier to drive things with NPN
>>transistors based on the assumption that the rest of the circuit is
>>referenced to 0v so the base drive for a transistor referenced to 0v
>>is usually simpler.
>
> If the circuit providing the low level signal for the
>transistor is TTL based, then a PNP with its emitter referenced to the
>Vcc supply is a better choice because TTL outputs can sink current
>better than they can source it.
But that also means the relay supply voltage can not exceed the the
>notj...@worldnet.att.net (James Meyer) wrote:
>
>> If the circuit providing the low level signal for the
>>transistor is TTL based, then a PNP with its emitter referenced to the
>>Vcc supply is a better choice because TTL outputs can sink current
>>better than they can source it.
>
>But that also means the relay supply voltage can not exceed the the
>PNP transistor base driver working voltage - 5v for most TTL.
>
>Cheers Terry...
Not too big a deal. There are many 5 volt relays available.
And if a relay with a higher voltage coil were the only one available,
then a second supply could be added. A negative voltage supply.
Jim
>Not true. I know you'll find this hard to believe but if the higher coil
>voltage power supply is floated relative to the TTL ground- then he can
>still activate the relay with his TTL driven PNP. The common of the relay
>power supply is attached to the coil return and positive side of the supply
>is connected to the TTL Vcc.
Or connected to ground. It makes little difference as long
the coil current is less than the TTL circuit's operating current.
Plus, if it's connected to ground, you get an extra 5 volts for the
relay for free.
Jim
>Not true. I know you'll find this hard to believe but if the higher coil
>voltage power supply is floated relative to the TTL ground- then he can
>still activate the relay with his TTL driven PNP. The common of the relay
>power supply is attached to the coil return and positive side of the supply
>is connected to the TTL Vcc.
Not hard to believe, but hanging a higher voltage relay supply line
off TLL VCC? how many hoops do you wan't to jump through in order to
use a PNP drive? Probably rather use an N channel MOSFET anyway.
Say it was automotive with a 12v relay, would you really sit your
control logic 0v at +7v so you could use PNP drivers? Well possibly
but for most applications it would cause far too many other problems
with input signal referencing and power supply regulator isolation
etc.
Cheers Terry...
James Meyer wrote:
> On Tue, 13 Jul 1999 22:07:17 -0400, Robert <rom...@earthlink.net>
> wrote:
>
> >Not true. I know you'll find this hard to believe but if the higher coil
> >voltage power supply is floated relative to the TTL ground- then he can
> >still activate the relay with his TTL driven PNP. The common of the relay
> >power supply is attached to the coil return and positive side of the supply
> >is connected to the TTL Vcc.
>
>You have to keep the current direction from emitter to collector in the PNP so
>the positive of the coil supply must be connected to the TTL Vcc.
If the positive of the coil supply is connected to the TTL
logic ground, then the voltage from the emitter to the negative of the
coil supply will be the sum of the +5 volts and the coil supply. The
polarity and current direction *will* be correct.
For example, if a 12 volt relay were used, you would only need
to add a supply with 12 - 5 or 7 volts if you returned the coil supply
to ground. Returning it to the +5 volt rail would require a 12 volt
added supply.
Make a little sketch and trace the currents and voltages. I
think you'll eventually see that the return for the coil supply does
not *have* to be the +5 rail.
Jim
> If the circuit providing the low level signal for the
> transistor is TTL based, then a PNP with its emitter referenced to the
> Vcc supply is a better choice .....
Not so. The high level output of TTL is only guaranteed to be 2.4
volts. It is usually higher but not always. This means that when the
PNP transistor should be off it will still have 2.6 volts between
base and emitter, easily sufficient to turn it on, if only partly. In
designs where I have used PNP output drives it was because the device
being driven required a higher supply voltage than +5v and I always
put an NPN transistor in front of the PNP to ensure that the latter
really turned off.
John
--
janet.a...@zetnet.co.uk
Yes so, John.
The output voltage representing a high level on TTL devices is
specified so that it is guaranteed to be at least 2.4 volts. The high
level output voltage of an *un-loaded* TTL will never be 5 volts.
However, that does not mean that a TTL high voltage will be a
rock solid 3.0 volts (to pick a number). The seemingly low level of a
TTL high output results from the output stage's inability to actually
*drive* the voltage any higher. Note that that does *not* mean that
it *can't* go any higher.
The output can be pulled higher with a resistor connected
between the +5 volt rail and the output. The resistor can be a very
large value and the output will still go up to 5 volts. That's
because the output stage is not biased to allow current to flow into
the output when it is at a high logic state.
Breadboard a TTL device, set its inputs for a high level
output, put a 100K Ohm pull-up resistor between the output and the +5
supply, and measure the output voltage with a digital multimeter. Or
you can do the same thing without the pull-up resistor and put a
microamp meter between the output and the +5 supply. You will quickly
see that a TTL output won't pull a PNP transistor's base down. In
fact a PNP transistor will pull the output *up*.
It's a "rule of thumb" to use a lot of bypass capacitors in
digital circuits. It's also a rule of thumb to use base-emitter
resistors to eliminate problems with leakage currents. If you use
even a 100K Ohm B-E resistor on your PNP transistor, you will have no
problems driving it from a TTL output.
Oh, and don't forget the current limiting resistor between the
base and the TTL output either.
Jim
Nope. Either can be used with similiar efficiency. With a npn, your switching
the ground connection to your relay....with a pnp, your switching the
+DCvoltage to your relay.
Good luck
NPN PNP
O O
| |
LOAD B |/v E
| LO=ON o---\/\/\/-----|
| |\ C
B |/ C |
HI=ON o---\/\/\/---| |
|\v E LOAD
| |
_|_ _|_
- -
You don't want to use the NPN as a source because the base voltage
required to turn-on will grow as the ON process brings up the load
voltage, and the ON process can oscillate. Likewise with the PNP,
you want to avoid using it for a sink, because the base can be pulled
below ground (the emitter!) by saturation.
-Steve
--
-Steve Walz rst...@armory.com ftp://ftp.armory.com:/pub/user/rstevew
-Electronics Site!! 1000 Files/50 Dirs!! http://www.armory.com/~rstevew
Europe Naples Italy: http://ftp.unina.it/pub/electronics/ftp.armory.com
must be current limited to 2 or 3 ma for low power transistors. A 2k2 value is
good
for a 5 volt supply and 6k2 should work with a 12 volt rail.
Bob - W3TGG
Koen Velle wrote:
> Hi all,
>
> is there any reason why I should use either a npn or pnp transistor to drive
> a relay ?
> In most of the circuits I have seen, a pnp is used. Is there a reason for
> that ?
>
>and should have a spike absorbing diode connected across it. The base drive
>
> must be current limited to 2 or 3 ma for low power transistors. A 2k2 value is
> good
> for a 5 volt supply and 6k2 should work with a 12 volt rail.
> Bob - W3TGG
>
> Koen Velle wrote:
>
> > Hi all,
> >
> > is there any reason why I should use either a npn or pnp transistor to drive
> > a relay ?
> > In most of the circuits I have seen, a pnp is used. Is there a reason for
> > that ?
> >
> > Cheers,
> >
> > Koen.
> >
> > leon...@village.uunet.be
> > place dot after leo if you want to mail me.
--
Steve wrote:
> AND on the PNP the emitter, that is!
> -Steve
---
I don't think so.
For the common emitter configuration the coil always goes between the collector and
a supply rail. Positive for the NPN and negative for the PNP.
The emitter of the NPN goes to the negative rail, the emitter of the PNP goes to the
positive rail, and either transistor is turned on by driving the base toward the
rail supplying the collector.
But you already knew that...
Must've been a typo?
---
John Fields Austin Instruments, Inc.
El Presidente Austin, Republic of Texas
"I speak for the company" http://www.austininstruments.com