Main Content

You may have seen many light-sensitive switch circuits based on an LDR sensor. Usually, the sensitivity of the LDR based light sensor is poor. We wanted a very sensitive light switch hence we decided to make a circuit based on a light sensor rather than LDR. After a little research on the internet, we found the OPT101 light sensor chip which includes a photodiode and a transimpedance amplifier in one package. The OPT101 light sensor provides an analog voltage output linearly proportional to light intensity.

This board has a dual function, it can act as a Light Sensor and a Light Sensitive switch. The operating supply of the circuit is 12V DC and draws 45mA current when Relay is ON. When light falls on the OPT101 sensor and the intensity of light reaches above the set point it triggers the relay. A separate header connector is provided to output the sensor analog value. The output of the sensor is almost 0 (Zero) when it’s in a dark area and goes high till 11.25V when it has access to full light. The sensitivity of the switch is adjustable using the onboard trimmer pot. LM358 op-amp acts as a comparator, BC847 transistor helps to drive the relay, diode D1 protects the transistor from back-EMF of inductive load (Relay). D2 is the power LED and D3 LED indicates the relay ON/OFF function. Relay has SPDT switch with NO (normally open)/NC (Normally Closed) contacts. The contact rating of the relay is 10A and the switching voltage 277V AC, 28V DC Max.”

Link to article