How to activate a relay using a phototransistor

  • Thread starter Thread starter Sauce6378
  • Start date Start date
  • Tags Tags
    Relay
AI Thread Summary
To activate a relay using a phototransistor, it's important to note that the phototransistor may not provide sufficient current due to its high resistance, even in bright light. An amplifier circuit is recommended to boost the current, and using a small power transistor like a TIP31 or BD139 can be effective. Adjusting the voltage to around 9 volts and including a series resistor of about 1000 ohms may improve performance. For reversing the relay action, specific resistor values must be calculated to ensure the transistor receives adequate base current. Properly configuring the circuit will allow the relay to operate based on the phototransistor's state in varying light conditions.
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
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Back
Top