Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Please confirm my transistor circuit -- relay driver

Status
Not open for further replies.

AnalogNewb

Junior Member level 1
Joined
Jul 4, 2010
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,457
Hello everyone,

I've got to put a 12V relay on my new board, driven from a 3.3V logic output. Could you please take a look a my circuit and confirm that I've done it right?

Q1 is a 2N3904, used because I'm slightly familiar with it. I know that Hfe is an unreliable number, but it seems to have a minimum Hfe of 40.

K1A is the relay coil, 1028 Ohms (+/- 10%). Max pick-up voltage is 9V. Min drop-out volate is 1.2V.

So, figuring on an Hfe of 20 (for margin), and knowing that I want at least 11.6 ma (12V/1028Ohms) to flow through the coil, I need a base current of 11.6/20 or 0.58ma.

Subtracting the voltage drop from my logic voltage of 3.3V gives me 2.6 volts, which means I need at most a 4444Ohm base resistor. I've halved that for good measure, so R83 is a 2.21K resistor.

That should cause the little transistor man inside the transistor to do whatever he can to make 93 ma flow from collector to emitter. Of course that will never happen because the relay is has a 1028 Ohm resistance, but it will ensure that the transistor is plenty "turned on" to activate the relay.

Throughout all this it looks like my transistor will dissipate:

(2.6V * .00117A) + (11.3V * .0117A) = 0.135 watts

Which is well under it's maximum power dissipation of 625mW.

As far as turning the relay off goes, R84 is a 10.0K resistor from base to ground. I don't know *exactly* why this is needed if my logic output goes to zero volts, but I've heard (horowitz and hill) that it's a good idea.

Of course the Diode is for back-EMF protection.

THANK YOU for helping me with this. This is going to be a very expensive board to manufacture, and I am doing everything I can to try to get it right the first time.
 

Hi,
For me is an interesting question what means + & - on your Relay?
If is + for the Anode an built in diode: its yet revrsed in the circuit...
But I didnt understand: do you have some problems pls. or you likes some "supervisoring"?
K.
 

    AnalogNewb

    Points: 2
    Helpful Answer Positive Rating
resistor r84(10k) may malfunction the transistor.
horowitz's use of that resistor may be in a different context.
for the present application 2904. gets approx 2.7v initially.
afterwards once it is on it may be clamped to 0.7v.
IMHO it may have a chance for 2904 to go off.
 

    AnalogNewb

    Points: 2
    Helpful Answer Positive Rating
According to me you should remove the resistor which is placed across the base and the emitter of the transistor................... :!:
as it may lead to unwanted voltage drop across the the base emitter junction...........

and otherwise you design seems not to be having any problem...........

keep Smiling
Nikhil.............:D
 

    AnalogNewb

    Points: 2
    Helpful Answer Positive Rating
karesz said:
Hi,
For me is an interesting question what means + & - on your Relay?
If is + for the Anode an built in diode: its yet revrsed in the circuit...
But I didnt understand: do you have some problems pls. or you likes some "supervisoring"?
K.

I haven't built the board yet; I want to make sure that it works when I do. Yes, I could definitely use some "supervisoring".

Regarding the +/- on the relay, it is a panasonic TN2-12V, and there is a permanent magnet used on the inside, which requires correct polarization of the coil. There is no built-in diode. I believe that I do have the relay hooked up correctly.

srizbf and nikhilsigma: Thanks for the notes on the 10K resistor. H&H mentioned using it when making a simple transistor switch to turn on a light bulb. However in that case he has a mechanical switch hooked up to the base, and it is floating when the switch is turned off. Thus the 10K resistor to ensure it is pulled to ground.

I will remove that resistor since you guys think it is a bad idea.
 

Hi,
:) Tnx!
I think too, that in the situation is your relay OK polarized!
You can design in the base resistor (to GND) & declared as an "option"! :) _means: in some need/situation ( can/will be populated) if the card has enough place...
Do you have an electrolytic not so far from the relay/transistor pls? If not I would put a i.e. 10 uF/16..25V type...
K.
 

    AnalogNewb

    Points: 2
    Helpful Answer Positive Rating
karesz said:
Hi,
:) Tnx!
I think too, that in the situation is your relay OK polarized!
You can design in the base resistor (to GND) & declared as an "option"! :) _means: in some need/situation ( can/will be populated) if the card has enough place...
Do you have an electrolytic not so far from the relay/transistor pls? If not I would put a i.e. 10 uF/16..25V type...
K.

Good tip on the bypass cap, I put that in between +12 and SERVO_GND.
 

:) tnx!
Than: go to the post!:)
Or do you have some other parts of said print to ask?
K.
 

AnalogNewb said:
karesz said:
Hi,
For me is an interesting question what means + & - on your Relay?
If is + for the Anode an built in diode: its yet revrsed in the circuit...
But I didnt understand: do you have some problems pls. or you likes some "supervisoring"?
K.

I haven't built the board yet; I want to make sure that it works when I do. Yes, I could definitely use some "supervisoring".

Regarding the +/- on the relay, it is a panasonic TN2-12V, and there is a permanent magnet used on the inside, which requires correct polarization of the coil. There is no built-in diode. I believe that I do have the relay hooked up correctly.

srizbf and nikhilsigma: Thanks for the notes on the 10K resistor. H&H mentioned using it when making a simple transistor switch to turn on a light bulb. However in that case he has a mechanical switch hooked up to the base, and it is floating when the switch is turned off. Thus the 10K resistor to ensure it is pulled to ground.

I will remove that resistor since you guys think it is a bad idea.





Great now you got it..........:idea:

there is no need of that resistor as in both states the transistors base is at zero or one logically..

and even in some conditions, you have to pull down the base then place the large resistor between input and the ground, not between base n gnd.. as that will prevent the unwanted potential drop across the base-emitter junction...and will also pull down the input stage during open gate condition.............

Keep Smiling...
Nikhil

Added after 4 minutes:

Hey Guy...........
Please help me out with this..........



Thanking you very much...........
Keep Smiling...........:D
Nikhil
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top