How to activate a relay using a phototransistor

  • Thread starter Thread starter Sauce6378
  • Start date Start date
  • Tags Tags
    Relay
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 7K views
Sauce6378
Messages
3
Reaction score
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
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:
Thank You So Much! Sauce
 
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:
Thanks Again! Sauce