I have a dark sensor circuit for my LED night security light. The issue is that as dusk falls and the resistance in my LDR increases, my light flickers erratically for several minutes before either staying energized or staying off altogether. This is happening consistently on several prototypes, some worse than others. If the light stays off after the flickering, I can disconnect the 12v battery and plug it back in and the unit is energized as intended. I have done a lot of research and have not honed in on the problem. Bench testing in the shop with electrical tape on the LDR has the light working perfectly as expected. I analyzed a std PIR sensor module that can utilize an LDR and see approx 12+ capacitors on the board, both ceramic SMT and electrolytic thru hole. I'm guessing that I may need one of the following solutions?
- resistor to stabilize the IRF9Z34N mossfet? If so, what size and where?
- adjustment in my resistor sizes related to the LM393 comparator?
- another capacitor somewhere?
All of this being said, the LM393 was originally needed for a voltage level comparison at PIN 5/6, but that is no longer needed. Should I eliminate the LM393 altogether and simplify things? Or, is there a simple solution to what I already have? What is missing or what adjustment needs to be made?
I really could use your help in stabilizing this circuit so that the 12v power is either OFF or ON and not floating/flickering.
The LDR I am using has the following resistance:
3.6 M ohm in 100% darkness
270 ohm in daylight (cloudy day at noon)
Thx for any help
John

- resistor to stabilize the IRF9Z34N mossfet? If so, what size and where?
- adjustment in my resistor sizes related to the LM393 comparator?
- another capacitor somewhere?
All of this being said, the LM393 was originally needed for a voltage level comparison at PIN 5/6, but that is no longer needed. Should I eliminate the LM393 altogether and simplify things? Or, is there a simple solution to what I already have? What is missing or what adjustment needs to be made?
I really could use your help in stabilizing this circuit so that the 12v power is either OFF or ON and not floating/flickering.
The LDR I am using has the following resistance:
3.6 M ohm in 100% darkness
270 ohm in daylight (cloudy day at noon)
Thx for any help
John


