How to activate a relay using a phototransistor

  • Thread starter Sauce6378
  • Start date
  • Tags
    Relay
In summary, the relay will not energize when the phototransistor is conducting because the phototransistor has too much resistance for the relay to work. To solve this issue, an amplifier or a circuit with resistors can be used to adjust the resistance and allow enough current to flow for the relay to work. To reverse the action, a different circuit with different resistor values can be used.
  • #1
Sauce6378
3
0
I am trying to use some 6 volt phototransistor sensors as inputs to a plc. Can someone tell me how come the relay will not energize when the phototransistor is conducting? Thank You
RELAY2.jpg
 
Engineering news on Phys.org
  • #2
The relay needs quite a large current to make it work and the phototransistor has too much resistance, even in bright light, to let that much current flow.

So, you need an amplifier like this:

http://dl.dropbox.com/u/4222062/Relay%20driver%203.JPG

Although you might need a bit more than 6 volts (maybe 9 volts) and you might need a resistor in series with the phototransistor (maybe 1000 ohms). But it might work well enough as shown.

The transistor can be a small power transistor like a TIP31 or a BD139.
 
Last edited by a moderator:
  • #3
Thank You So Much! Sauce
 
  • #4
Thanks for the personal mail.

To reverse the action, you would need to use a circuit like this:
http://dl.dropbox.com/u/4222062/Relay%20driver%204.JPG

To find out the right values for the resistors, R1 and R2 you will need to find out the value of base resistor that gives enough collector current to pull the relay in.

Suppose you found that 4700 ohms instead of R1 and R2 would make the relay pull in.
(You would do this without the phototransistor.)
Then you could make R1 and R2 both 2.2K.
R1 should equal R2 and the two should add up in value to the total resistance you found would turn the transistor on.

If the phototransistor is on, (in bright light) then the junction of R1 and R2 will be low causing the transistor to turn off and the relay to drop out.
When the phototransistor is off (ie in darkness) the relay will pull in because the transistor will get normal base current.
 
Last edited by a moderator:
  • #5
Thanks Again! Sauce
 

Related to How to activate a relay using a phototransistor

1. How does a phototransistor activate a relay?

A phototransistor is a type of sensor that converts light into an electrical signal. When light hits the phototransistor, it allows current to flow through it, activating the relay connected to it.

2. What is the purpose of using a phototransistor to activate a relay?

Using a phototransistor to activate a relay allows for a non-contact method of controlling the relay. This is useful in situations where physical contact is not desired or feasible.

3. Can any type of phototransistor be used to activate a relay?

Not all types of phototransistors are suitable for activating a relay. The phototransistor must be able to handle the voltage and current requirements of the relay. It is important to check the datasheet of the phototransistor to ensure it is compatible with the relay.

4. How do I connect a phototransistor to a relay?

To activate a relay using a phototransistor, the phototransistor is typically connected in series with a resistor and the base of a transistor. The collector of the transistor is then connected to the coil of the relay. When the phototransistor is activated by light, it allows current to flow through the base of the transistor, turning it on and activating the relay.

5. Are there any precautions to take when using a phototransistor to activate a relay?

When using a phototransistor to activate a relay, it is important to ensure that the phototransistor is not exposed to too much light, as this can damage or destroy it. It is also important to use the appropriate resistor to limit the current through the phototransistor and transistor. Additionally, proper grounding and insulation techniques should be used to avoid any electrical hazards.

Similar threads

  • Electrical Engineering
Replies
4
Views
1K
Replies
12
Views
2K
Replies
31
Views
2K
  • Electrical Engineering
Replies
17
Views
2K
Replies
37
Views
3K
  • Electrical Engineering
Replies
6
Views
1K
  • Electrical Engineering
Replies
3
Views
699
Replies
3
Views
1K
  • Electrical Engineering
Replies
5
Views
3K
  • Electrical Engineering
Replies
5
Views
829
Back
Top