How to Activate Relay using Transistor?

In summary: The title already said the question of this thread.As I searched the internet, transistors were configured in common-emitter configuration. They also show me that in order to activate the relay, the transistor should be operated in saturation and cut-off mode. How to make my BC547 Transistor operate to saturation mode (using common-emitter configuration) in order to activate my 24 VDC Relay using 24 VDC Source? How to decide proper Resistor Values?In summary, the conversation is about using a BC547 transistor in a common-emitter configuration to activate a 24VDC relay using a 24VDC source. There is a discussion about the necessary resistor values and the use of a protection diode. The conversation
  • #36
nicy12 said:
Those in red is what "negative currents" I am talking about.

How did you invent those? When the LDR has a value of 160kΩ, the voltage at the first base is below the turn-on point and no current enters the base. If you could pull a current out of the base (that is what you are implying with negative currents), then no current would flow in the transistor. It gets worse. In your two circuits you draw both sets of current with the same direction and you name them positive in one instance and negative in the other. Do you mean that the transistors suddenly start to act as voltage sources, pushing current back into the battery?
 
Engineering news on Phys.org
  • #37
yah
Svein said:
How did you invent those? When the LDR has a value of 160kΩ, the voltage at the first base is below the turn-on point and no current enters the base. If you could pull a current out of the base (that is what you are implying with negative currents), then no current would flow in the transistor. It gets worse. In your two circuits you draw both sets of current with the same direction and you name them positive in one instance and negative in the other. Do you mean that the transistors suddenly start to act as voltage sources, pushing current back into the battery?

Yahoo! Thank You Sir Svein! You clear all the doubts in my regarding this circuit (at this moment of time). The only thing to do is buy an BC547 transistors so I could make it in reality. The theoretical part was done because of you! I just need to make the circuit so I can figure out if the calculations are correct. I believed it was correct because You together with others help me to accomplish my goal. Thank You very much! Please don't hesitate to help those who like me (who is really stubborn and slow-minded). God Bless.
Problem Solved Meme.jpg
 
  • #38
nicy12 said:
The only problem here is the voltage in that point is 5.8 V, which is very close to the 6 V maximum rating as it shows here:
That actually is the reverse voltage maximum for the base-emitter junction. (Notice how they refer to it as emitter-to-base?) That rating does not concern you here, it won't be reversed at all.

I can understand you wanting to pursue this circuit in the interests of learning about transistors. However, as I pointed out early in the piece, it can't be made to work reliably with even a pair of BC547 transistors. (There are products in that small signal family with gains of around 300, maybe you'd like to buy a couple and try them?)

If you eventually admit defeat, I'll return to the possibility of using a FET, it's worth a second look as I think it will manage to do what you are wanting.
 
  • #39
NascentOxygen said:
However, as I pointed out early in the piece, it can't be made to work reliably with even a pair of BC547 transistors

How about this:
Relay driver circuit 7.JPG

.Does the circuit above won't work? The calculated voltages and currents satisfy the condition of transistors and relay. Please explain why it won't work reliably.
 
  • #40
While the transistors are specified as β >110 it is wise to design for, say, 50, to allow a comfortable margin of safety. A design that borders on the margin of operation is not going to be reliable. HOWEVER, if you are willing to actually measure the β of whatever transistors you buy and use those with higher gain, you should be able to get the circuit going for demonstration purposes. Don't be surprised if it doesn't survive long.

I make IB1 to be 3μA. Did you factor in what is lost through the dark LDR? If the second transistor doesn't get an excess of base current, it won't saturate and may burn out.
 
  • #41
When the light level in your application changes from "dark" to "light" will the transition be rapid (like when a room light is switched on), or might it be slow and unsteady (like the sun rising through a broken cloudy sky)?
 
  • #42
NascentOxygen said:
When the light level in your application changes from "dark" to "light" will the transition be rapid (like when a room light is switched on), or might it be slow and unsteady (like the sun rising through a broken cloudy sky)?

It is not very rapid (compared to room light is switched on). Why did you ask Sir? does it have a major role in the circuit?

NascentOxygen said:
While the transistors are specified as β >110 it is wise to design for, say, 50, to allow a comfortable margin of safety.

The minimum Beta of BC547 is 110. I think it should be designed in minimum because the range between maximum and minimum Beta is large (about 800).

beta.JPG


NascentOxygen said:
Don't be surprised if it doesn't survive long.

Why would it be? We design the circuit according to its data sheet and without exceeding ecah of their maximum ratings.

NascentOxygen said:
I make IB1 to be 3μA

it will only produce 36.3 mA (using minimum Beta of 110) in the second transistor's collector side. Not enough to operate the relay.

NascentOxygen said:
Did you factor in what is lost through the dark LDR?

I don't get this. What factor are you saying Sir? I think that "factor" should be consider in this circuit.

NascentOxygen said:
If the second transistor doesn't get an excess of base current, it won't saturate and may burn out.

How and Why the second transistor might not get an excess of base current ( making it won't saturate and may burn out).
 

Attachments

  • upload_2015-1-20_19-20-42.png
    upload_2015-1-20_19-20-42.png
    11.1 KB · Views: 565
  • #43
When the LDR is 1.5MΩ in the dark, there will be current through it to ground, roughly 1.2V/1.5MΩ. This is current through RB that won't be going into the base of Q1.

While the BC547 seems to be guaranteed to have β>110 don't be surprised if you buy a couple to find one that doesn't. There are wide variations in β. So buy half a dozen and pick out the two with highest gain.
 
  • #44
I think it is time to ask for more information here. There is concern about operation in between cutoff and saturation. The circuit is set up so the relay turns on when it gets dark. This implies that it is being used to control a light when it gets dark. And of course that implies that there will be times when the transistor is neither on nor off.
 
  • #45
Averagesupernova said:
I think it is time to ask for more information here. There is concern about operation in between cutoff and saturation. The circuit is set up so the relay turns on when it gets dark. This implies that it is being used to control a light when it gets dark. And of course that implies that there will be times when the transistor is neither on nor off.

Yes. That is why I prefer using a comparator. I put a rough schematic in one of my previous answers.
 
  • #46
I don't think this is too much to handle at all with discreet transistors. The current level of understanding by the OP presents a challenge though. With a comparator we will still have a transistor to drive the relay. If we use a darlington transistor with a little positive feedback to add in some hysteresis I think we will have a pretty reliable setup. I would advise a different LRD though.
 
  • #47
Averagesupernova said:
I don't think this is too much to handle at all with discreet transistors. The current level of understanding by the OP presents a challenge though. With a comparator we will still have a transistor to drive the relay. If we use a darlington transistor with a little positive feedback to add in some hysteresis I think we will have a pretty reliable setup. I would advise a different LRD though.

I used this thread to talk about using transistor as switching elements. In real life, I have taken a couple of automatic dusk light switches apart, and they all use a comparator with enough output capability to drive a relay, and a small potentiometer for adjusting the trigger light level. They also use LDRs, not phototransistors.

There is, however, a small, interesting problem left. If the relay is used to turn on a light source which again shines on the LDR - how do you keep your circuit from deciding to turn the light off again? There are several solutions to this problem, but I will not disclose them for the moment. Treat it as a challenge - describe how you would solve it, and what it would cost...
 
  • #48
@nicy12 Is this project still in the works? Have you reconsidered any aspect?
 
Last edited:
  • #49
NascentOxygen said:
@nicy12 Is this project still in the works? Have you reconsidered any aspect?

Yes Sir NascentOxygen. It is still in process. Gathering additional information to improve its design by means of my current understanding. In fact, this self-assessment project is still on scratch. I still haven't bought yet the needed materials.

I would like to thank all of you who helped me on designing this self-assessment project. I would also want to apologize because I became unfair. I've just thanked Sir Svein.

Please don't bother to help me again. Thank You All! God Bless Us!
 

Similar threads

Back
Top