Here is a better circuit:
View attachment 80749
I believe that the resistance of the LDR near where you want things to happen is about 5 to 10KΩ, so I reconfigured the bridge so that the trip point is closer to the full sunlight resistance. That might in-and-of-itself cure the cloudy day problem. I also reduced the current through the two arms of the bridge, to reduce the standby current.
I also greatly increased the amount of the hysteresis by increasing the positive feedback around the opamp.
Finally, I took a look at the output circuit, and because the '741 doesn't pull all the way to 0V when low, with the 1K base resistor, I had to add the LED in series. The LED lights up when the relay is pulled in, but more importantly, its forward voltage drop (~2.2V for a red LED) subtracts from V(out) of the opamp to guarantee that the NPN turns off. That is further improved by the 10K from base to gnd.
Hi
I have built this circuit.
When I cover the LDR the LED goes off. When the LDR is uncovered the LED comes on but does not switch on the relay. The voltage after the LED is 9.7 volts but after the 1 K resistor there is no voltage. I tested the Resistor and it was fine.
Not really sure what to do.
Thanks
Rodney
Last edited:
