Categories: Electrical Reviews
Number of views: 22876
Comments on the article: 3

12 volt photo relay with Aliexpress

 

A photorelay is a useful automation device that allows you to automatically control the light depending on external lighting.

The device arrived hermetically sealed in an antistatic.

Photo relay in antistatic bag

It is a small neat board. All connections on terminal blocks.

12 volt photo relay with Aliexpress
Photo relay board

The installation is excellent, the board is washed. Light sensor (photoresistor) on the connector, wire length 30cm.

photoresistor

The supply voltage is 12V, the current consumption when the relay is off is 3.75mA, when it is on, it is 36mA.

There is protection against reverse polarity of the power supply (diode).

The power supply is indicated by a red LED, when the relay is activated, the blue LED lights up. A tuning resistor adjusts the sensitivity of the photo relay. When the illumination decreases below the threshold, the relay is activated. The sensitivity adjustment range is wide enough.

The circuit is a simple dual analog device comparator LM2903 (variety operational amplifier).

comparator LM2903

Switching relay with changeover contact.

Switching relay

I would not count on the declared 10A and it is better not to load it over 5A.

Real photo relay circuit:

photo relay circuit

The Chinese habitually burn with circuits.

1. Ripples and impulse noise in the power supply cause false alarms near the switching point.

2. Connect both comparators in parallel at the inputs - this has yet to be thought out (I have never met this before). One comparator controls the relay, the other provides switching hysteresis. This cannot be done for one simple reason - even between the comparators there is always a spread of parameters between the comparators, which causes them to not work simultaneously when the input signal changes slowly.

3. The hysteresis comparator does not have a pull-up of the power supply (the output is with an open collector!), Which leads to the disappearance of hysteresis in the trimmer state near the extreme positions, and accordingly to the bounce of the photo relay contacts.


If necessary, problem 1 can be solved by adding a 100μF / 25V capacitor for power supply after the diode.

Problems 2 and 3 are most easily solved by a small alteration of the circuit - to remove the 47kΩ resistor and solder the 100kΩ resistor from the back of the board according to the circuit.

Something like this:
Alteration scheme
Alteration scheme

After the alteration, only one comparator functionally works, which is more correct. The relay works clearly in any position of the trimmer.

If necessary, by selecting the resistance of the resistor 100k, you can change the value of the hysteresis of switching the photo relay. If you go even further, you can add an adjustable delay to turn off the relay (sometimes it is very useful, for example, in a car to automatically control the dimensions or headlights).

photo relay circuit

In this scheme, an adjustable photocell shutdown delay occurs for a period of about 1 second to 4 minutes. Dear Chinese friends, please complete the device and add a shutdown delay :)

See also at bgv.electricianexp.com:

  • Electronic thermostat W1209 with Aliexpress
  • Photo relay schemes for lighting control
  • Comparator circuits
  • How to protect against voltage fluctuations
  • Schmitt trigger - general view

  •  
     
    Comments:

    # 1 wrote: Nikolay | [quote]

     
     

    "Like the Chinese, not everyone can do. Rather, not only everyone can do ..."
    Or maybe they had a different plan? It is necessary to look at the topology of the board. Maybe the second comparator was designed to delay the time off. Yes, instead of a comparator, the installation of an operative was probably conceived. But I agree, the Chinese do not pay due attention to implementation. But cheap.

     
    Comments:

    # 2 wrote: | [quote]

     
     

    And where is the second trimmer on the converted board?
    Thanks.

     
    Comments:

    # 3 wrote: Valery | [quote]

     
     

    Photoresistors have a very strong temperature dependence.Such a photo relay can only be used at a constant temperature, otherwise you will have to adjust it all the time.