Categories: Practical Electronics, Home automation
Number of views: 220157
Comments on the article: 16

Photo relay schemes for lighting control

 

PhotodiodeOne of the tasks performed by photosensors, is an lighting control. Such schemes are called photo relay, most often this is a simple inclusion of lighting in the dark. For this purpose, a lot of circuits were developed by ham radio operators, here are some of them.

Probably the simplest scheme is shown in Figure 1. The number of parts in it is small, it will not work less, and the efficiency, read the sensitivity, is quite high.

This is achieved by the fact that transistors VT1 and VT2 are connected by a composite transistor circuit, also called a Darlington circuit. With this inclusion, the gain is equal to the product of the gain of the components of the transistors. In addition, such a circuit provides a high input impedance, which allows the connection of high-impedance signal sources, such as the PR1 resistor shown in the circuit.

Scheme of a simple photo relay

Figure 1. Scheme of a simple photo relay

The operation of the circuit is quite simple. The resistance of the photoresistor PR1 with an increase in illumination decreases to several KOhms (the dark resistance is several MOhms), which will lead to the opening of the transistor VT1. Its collector current will open the transistor VT2, which will turn on the relay K1, which with its contact will turn on the load.

The diode VD1 protects the circuit from the self-induction EMF that occurs when the relay K1 is turned off. Thus, a very low-power signal of the photoresistor is converted to a signal sufficient to turn on the relay coil.

The sensitivity of this simple circuit is quite high, sometimes simply excessive. To reduce it, and adjust it to the necessary limits, you can add a variable resistor R1 to the circuit, shown in dotted form on the circuit.

The supply voltage is indicated within 5 ... 15V, - depends on the operating voltage of the relay. For a voltage of 6V, relays RES9, RES47 are suitable, and for voltage 12V, RES49, RES15. With the transistors indicated in the diagram, the current of the relay winding should not exceed 50 mA.

If instead of transistor VT2 we put, for example, KT815, then the output current may be larger, which will allow the use of more powerful relays. In general, the higher the supply voltage, the higher the sensitivity of the photo relay.



Photo relay circuit with photodiode

The scheme of this photo relay is shown in Figure 2.

Photo relay circuit with photodiode

Figure 2. Diagram of a photorelay with a photodiode

Like the previous one, it also contains a minimum number of parts, thanks to the application operational amplifier (OU). In this scheme, the opamp is turned on according to the scheme comparator (comparator). It is easy to see that the photodiode LED1 is turned on in the photodiode mode - the power is supplied so that the photodiode is biased in the opposite direction.

Therefore, with a decrease in the level of illumination, the resistance of the LED Led1 increases, which leads to a decrease in the voltage drop across the resistor R1, and therefore at the inverting input of the comparator OP1.

The voltage at the non-inverting input of the op-amp is set using a variable resistor R2, and is a threshold - sets the response threshold. As soon as the voltage at the inverting input becomes less than the threshold, a high voltage level will appear at the output of the comparator, which will open the transistor T1, which will turn on the relay K1.

The relay and transistor in this circuit can be selected, guided by the recommendations for the circuit shown in Figure 6. As a comparator, you can use the op amp type K140UD6, K140UD7 or the like. Any power source for the circuit is suitable, even a transformerless one, without galvanic isolation from the network. In this case, when setting up, you should be careful to comply with safety regulations. The ideal option is to use an isolation transformer to configure the circuit, or, as it is sometimes called safety transformer.

Setting up the device comes down to setting the threshold voltage in such a way that switching on occurs even at dusk. In order not to wait for this natural moment, it is possible in the darkened room to illuminate the photodiode with an incandescent lamp switched on through a thyristor power regulator. The same technique is suitable for tuning other photo relay circuits.

It is possible that when the photo relay is triggered, the relay will rattle. You can get rid of this phenomenon by connecting parallel to the coil electrolytic capacitor several hundred microfarads.


Photo relay on the chip

Specialized microchip KR1182PM1 represents a phase power regulator, the same as a conventional thyristor. A very important and valuable property of such a power regulator is that it is included in the circuit as a two-terminal device, without requiring an additional power cable: it simply turned on in parallel with the switch and everything already works! On the image 4 It is shown how a simple photo relay can be built on this microcircuit.

Microchip KR1182PM1

Fig. 3. The chip KR1182PM1

Photo relay circuit on the KR1182PM1 chip

Picture 4. Photo relay circuit on the KR1182PM1 chip

The control pins of microcircuit 3 and 6. If you just connect a simple single-pole switch between them, then when it is closed, the load will turn off! If you open it, the load will connect. By the way, without additional external thyristors or triacs, and even without a radiator, the microcircuit can withstand loads of up to 150W. This is the case if there is no inrush current when the load is switched on, like incandescent lamps. An incandescent lamp in this embodiment can be turned on with a power of not more than 75W.

Just connect the switch to these pins no matter how, if only in combination with other parts. If you do not pay attention to the phototransistor and electrolytic capacitor, mentally leave only the variable resistor R1, then you just get a phase power regulator: when moving its motor up in the circuit, terminals 3 and 6 are short-circuited, thereby disconnecting the load, as mentioned above. When moving the engine down according to the scheme, the power in the load changes from 0 ... 100%. Everything is clear and simple here.

If we connect an electrolytic capacitor to these conclusions (we believe that there is no phototransistor in the circuit yet), then we get just a smooth switching on of the load. How?

The resistance of the discharged capacitor is small, so at first the control terminals of the microcircuit 3 and 6 are practically short-circuited and the load is disconnected. As the charge increases, the capacitor resistance increases (just recall the check of the capacitors with an ohmmeter), the voltage on it also grows, and the power in the load gradually increases. It turns out a device for smooth switching on the load. Moreover, the load will be supplied with power as much as the engine of the variable resistor R1 is introduced. When the device is disconnected from the network, the capacitor is discharged through the resistor R1, preparing the device for the next turn on. If the capacitor does not have time to discharge, then it will not turn on smoothly.

Now we got to the most important thing, to the photo relay. If you now connect a phototransistor to control pins 3 and 6, you get a photo relay. It works as follows. During high daylight, the phototransistor is open, so the resistance of its collector-emitter section is small, pins 3 and 6 are closed to each other, and the load is off.

With a smooth decrease in illumination in the evening hours, the phototransistor will gradually open, gradually increasing the power in the load, that is, in the lamp. There are no threshold elements in this circuit, so the lamp will light up and go out gradually.

So that the photo relay does not work at the moment when its own lamp turns on, it is desirable to protect the phototransistor from such a backlight. The easiest way to do this is with a plastic tube.

Read also on this topic: The easiest twilight do-it-yourself switch

Boris Aladyshkin

See also at bgv.electricianexp.com:

  • The easiest twilight switch (photo relay)
  • 12 volt photo relay with Aliexpress
  • Simple power control for smooth lamp on
  • What practical schemes can be done on the 555 timer
  • Homemade dimmers. Part Five Some more simple schemes

  •  
     
    Comments:

    # 1 wrote: | [quote]

     
     

    Although the article is nothing new, the presented schemes are described in great detail and intelligibly. It is noteworthy that the author considered photorelay circuits using all the main photoelectronic devices - a photoresistor, a photodiode and a phototransistor, and involved all levels of circuitry: transistor, on a typical op-amp and using a specialized microcircuit. I liked the article.

     
    Comments:

    # 2 wrote: Aliona | [quote]

     
     

    The article is good and very accessible, everything is literally “chewed”, as if your acquaintance is explaining to you, and not some abstruse book, where there are a lot of not clear definitions, and to understand it you need to recall physics from scratch)

     
    Comments:

    # 3 wrote: | [quote]

     
     

    transistor of the wrong polarity !!!

     
    Comments:

    # 4 wrote: | [quote]

     
     

    I would like to hear something about energy-saving devices. Type "Economich" Chinese-made. In Russia - like MIM. Who knows - please rate.

     
    Comments:

    # 5 wrote: Bomzhara | [quote]

     
     

    Everything is available, and it works!

     
    Comments:

    # 6 wrote: Nikolay | [quote]

     
     

    passed by,
    not polarity, but structures. And still it is necessary to indicate where exactly.

     
    Comments:

    # 7 wrote: | [quote]

     
     

    And I took KT315 g (which was on hand) to the first circuit and for some reason nothing works for me .... I reassembled the circuit 10 times. Tell me!

     
    Comments:

    # 8 wrote: | [quote]

     
     

    - = iten = -, before asking for help, first tell me specifically what you did, what parts you applied, other than transistors, did you use the potentiometer shown by the dashed line, what voltage was applied to the circuit, what results did it get - the relay does not work, or on the contrary, does not let go - in general, all the details. Well, and at the same time, double-check whether the circuit was correctly soldered, if the polarity of the diode was reversed, which relay was used (type, passport) (maybe this relay is not able to operate at this current at all)

     
    Comments:

    # 9 wrote: | [quote]

     
     

    Hello! Thank you for responding. I didn’t use the potentiometer, I turned out to have a broken photoresistor - I made my own from the MP14 transistor, in the dimming 3 kOhm, in the light 2 kOhm resistance. Instead of a relay, there is now an LED in the correct polarity. I soldered the circuit 10 times ... Power supply - charging from a mobile phone gives 6 volts without load. I checked both kt315 g transistors - workers.

     
    Comments:

    # 10 wrote: | [quote]

     
     

    Some changes: found a working photodiode, gives 10 kOhm in the light, set a potentiometer. Between the collector of the 2nd transistor and relay 0v. Why is that? What am I doing wrong?

     
    Comments:

    # 11 wrote: Boris Aladyshkin | [quote]

     
     

    The photo relay circuit can be slightly modified. In order not to solder two transistors, it is easier to use a composite transistor, for example, KT972A. The circuit will turn out approximately as shown in the figure.

    Picture. Compound transistor photo relay circuit - bgv.electricianexp.com/fotorele.jpg

    This circuit was assembled and tested on a breadboard, the operation of the circuit is shown in the video.

    Video - bgv.electricianexp.com/mvi6822.avi

    If you need to adjust the threshold, then in series with resistor R1, you can substitute the trimmer to 20 ... 30 KOhm. The smaller its value, the smoother and more accurate the setting.

    Instead of an LED, it is quite possible to install a relay, naturally with a parallel damping diode - the collector current of KT972A is as much as 4A. A small-sized relay of Chinese manufacture with a 12V coil and a contact current of 10A is quite suitable here.

     
    Comments:

    # 12 wrote: Sergei | [quote]

     
     

    The main element of the photo relay is a photocell. In photocells, light energy is converted into electrical energy, which, having passed the amplification cascade, is fed to the coil of an electromagnetic relay.

     
    Comments:

    # 13 wrote: | [quote]

     
     

    Quote: Boris Aladyshkin
    The photo relay circuit can be slightly modified. In order not to solder two transistors, it is easier to use a composite transistor, for example, KT972A. The circuit will turn out approximately as shown in the figure.

    Assembled a circuit using the KT972A transistor! Everything really works. I confirm. But there is one minus in the scheme. (I’ll honestly say, I don’t know whether this is a minus or a plus) Power in the circuit using KT972A is supplied to the relay coil at the time of lighting the photoresistor. That is, it turns out that the relay will be powered up all daylight, and will be turned off at night. In other schemes, power to the relay is supplied only at night. When the photoresistor is not lit. I don’t know if this can be changed?

     
    Comments:

    # 14 wrote: | [quote]

     
     

    Is it possible to upgrade the circuit with a phototransistor so that when the illumination decreases, the output power also decreases?
    That is, when it is light, then the brightness should be at maximum, and when it becomes dark, the brightness of the load decreases (so that it shines less in the eyes, and even saves energy).

     
    Comments:

    # 15 wrote: | [quote]

     
     

    Good afternoon, tell me what's wrong. I assembled the circuit correctly, the only photodiode installed BPW34 so that the relay would operate at a wavelength of 650. When you turn on the circuit, the relay immediately closes and does not release until you turn off the power.

     
    Comments:

    # 16 wrote: Max | [quote]

     
     

    Assembled the first circuit with a photoresistor. Used:
    photoresistor GL5528
    Transistors S8050
    Relay SRD-05VDC-SL-C
    10K potentiometer
    5 volt stabilized switching power supply
    The circuit does NOT work.