It's easier to interface an NPN transistor. 'High voltage' relays will probably require a minimum of 12v to operate them. It is likely that the 5v micro supply may be derived from the 12v supply by means of a 7805 regulator, so that the 5v and 12v supplies share a common -ve rail.Originally posted by muruga86@Mar 24 2005, 02:41 PM
Can any one give me technical details why we use NPN transitors mostly over PNP for switching high voltage relays using Microcntrollers.
[post=6352]Quoted post[/post]
You are correct in stating that transistors are current controlled devices.Originally posted by muruga86@Mar 25 2005, 12:30 AM
thanks for ur replay,
but transitors are current controlled devices hence amount of base current determines the switching on state current conduction, can any one explain more technically...
murugan
[post=6372]Quoted post[/post]
Absolutely, hgmjrOriginally posted by hgmjr@Mar 25 2005, 12:44 PM
............Right? pebe.
[post=6379]Quoted post[/post]
Originally posted by hgmjr@Mar 25 2005, 06:14 PM
You are correct in stating that transistors are current controlled devices.
That is what pebe is saying.
When you are using 5 volt logic signals from your microcontroller to control relays that frequently require +12V and sometimes higher voltages to energize them, you need to translate from the 5V logic signal to a 12V relay drive signal. In this case, it is more convenient to develop the controlling current relative to ground. Thus you use a single NPN transistor.
As pebe pointed out, if you choose to use a PNP transistor to drive the 12V relay then you will require an NPN device to level shift between the 5v control signal and the 12v drive signal used to switch the PNP driving the relay. This is because the emitter of the PNP must be connected to the +12V relay power rail and so in order to shut the PNP off, since transistors are current controlled devices, you must deprive the base of current which you cannot accomplish with a base drive that does not swing very close to the +12V power rail.
Right? pebe.
[post=6379]Quoted post[/post]
You are connecting the PNP base to uC pin and the relay to the emitter. So you must be connecting the other end of the relay to +12v and the collector to 0v. Right? That is using the transistor in common collector mode.Originally posted by buddyengineers@Mar 25 2005, 05:29 PM
i wuld like to raise a query here..,after reading ur discussion on PNP Transistors.., i feel that using using a PNP Transistor will be more effective. When using Micrcontroller (uC) if the o/p goes logic low then i can use PNP to drive the relay .., Cant I???? i seriously didnt understand ur reply abt the transistor not being able to turn off.., do u mean tht the o/p of the uC is logic high (abt 5v) and so u using a PNP transistor is waste or wat??? Reading ur discussion has actually confused me a lot..,
I am really confused now hang on: I want to control a 12v relay thru a microcontroller (uC). So i use a PNP transistor with base at uC pin and emmiter connected to relay, now when the uC pin goes logic low, the PNP Transistor turns ON and the relay is activated and when the pin goes logic high the transistor is OFF. So here my aim is achieved. Now wat i want to ask u is am i wrong anywhere..
Please do reply
[post=6386]Quoted post[/post]
buddyengineers,Originally posted by buddyengineers@Mar 25 2005, 12:29 PM
i wuld like to raise a query here..,after reading ur discussion on PNP Transistors.., i feel that using using a PNP Transistor will be more effective. When using Micrcontroller (uC) if the o/p goes logic low then i can use PNP to drive the relay .., Cant I???? i seriously didnt understand ur reply abt the transistor not being able to turn off.., do u mean tht the o/p of the uC is logic high (abt 5v) and so u using a PNP transistor is waste or wat??? Reading ur discussion has actually confused me a lot..,
I am really confused now hang on: I want to control a 12v relay thru a microcontroller (uC). So i use a PNP transistor with base at uC pin and emmiter connected to relay, now when the uC pin goes logic low, the PNP Transistor turns ON and the relay is activated and when the pin goes logic high the transistor is OFF. So here my aim is achieved. Now wat i want to ask u is am i wrong anywhere..
Please do reply
[post=6386]Quoted post[/post]
Originally posted by pebe@Mar 25 2005, 11:46 PM
You are connecting the PNP base to uC pin and the relay to the emitter. So you must be connecting the other end of the relay to +12v and the collector to 0v. Right? That is using the transistor in common collector mode.
Yes, with a low on the uC pin the transistor will turn on. The emitter and so the bottom end of the relay would go down from +12v to +0.6v (the emitter must be 0.6v above the base). The relay will have 11.4v across it so would pull in.
But how would you turn the PNP off? You need to take its base to +12v. But even with uC pin high, the base can only go to +5v.
With +5v on the base its emitter can only rise to +5.6v. With the voltage across the relay now reduced from 12v to 6.4v (12 - 5.6) the relay will almost certainly stay pulled in. To turn off the PNP you need +12v on the base. and you cannot get it from a 5v supply.
I hope that makes sense.
[post=6387]Quoted post[/post]
muruga86,Originally posted by muruga86@Mar 25 2005, 12:30 AM
thanks for ur replay,
but transitors are current controlled devices hence amount of base current determines the switching on state current conduction, can any one explain more technically...
murugan
[post=6372]Quoted post[/post]
This thread is really helpful. I was messing up with PNP to make Relay working out.You are connecting the PNP base to uC pin and the relay to the emitter. So you must be connecting the other end of the relay to +12v and the collector to 0v. Right? That is using the transistor in common collector mode.
Yes, with a low on the uC pin the transistor will turn on. The emitter and so the bottom end of the relay would go down from +12v to +0.6v (the emitter must be 0.6v above the base). The relay will have 11.4v across it so would pull in.
But how would you turn the PNP off? You need to take its base to +12v. But even with uC pin high, the base can only go to +5v.
With +5v on the base its emitter can only rise to +5.6v. With the voltage across the relay now reduced from 12v to 6.4v (12 - 5.6) the relay will almost certainly stay pulled in. To turn off the PNP you need +12v on the base. and you cannot get it from a 5v supply.
I hope that makes sense.
by Duane Benson
by Robert Keim
by Robert Keim
by Aaron Carman