Dark sensor circuit using LM393 question.... unstable OFF/ON... flickering

Thread Starter

johnaustinkaty

Joined Jul 16, 2021
284
78L05:
I'll check to see what the total current is in my 5v circuit. That circuit powers the two 5mm LEDs (28mA), the ATTINY and the PIR sensor. I should be well under 100mA. I'll pick up some 1uF SMD caps for the Vout side and will use my 10uF SMD caps on the Vin side. Thx for the suggestion and confirmation for making this change!! And, thx to Eric for working so diligently on the hysteresis Arduino code!
We're almost there I believe.
 

ericgibbs

Joined Jan 29, 2010
21,464
hj john,
This the LDR << ADC count plot for this morning, looks OK to me,
E
BTW: ref the 78L05 regulator.
You are dropping from 12V to 5V at say 0.1A, that is 7V*0.1A= 0.7 Watts, check the 78L05 datasheet for its specified power limit.


EG 1972.gifEG 1975.gif
 
Last edited:

Thread Starter

johnaustinkaty

Joined Jul 16, 2021
284
hj john,
This the LDR << ADC count plot for this morning, looks OK to me,
E
BTW: ref the 78L05 regulator.
You are dropping from 12V to 5V at say 0.1A, that is 7V*0.1A= 0.7 Watts, check the 78L05 datasheet for its specified power limit.


View attachment 362032View attachment 362033
That's great!! Those results look ideal... I can't wait to test it on the attiny. I assume that adjusting the light/dark levels will be easy enough for me to address in the code if needed. I'll study the coding closely so I can better understand exactly what it is doing. And yes, I will check the power limit on the 78L05.
Thx again!!
 

Thread Starter

johnaustinkaty

Joined Jul 16, 2021
284
The 78L05 will actually be dissipating only .2 watts after sghioto pointing out my misstatement about the two 5mm LEDs being on that 5v circuit. Those are actually on the 12v circuit. It looks like the 78L05 can dissipate .5 watts, so we're good to go!!!
 
Last edited:

Thread Starter

johnaustinkaty

Joined Jul 16, 2021
284
Can an LM78L05 be used with my SI2321 in my reverse polarity protection circuit to replace the zener and resistor. If I can get rid of that microscopic zener, I'll be happy. This was in the datasheet (attached)
1768425192365.png
1768425492675.png
1768425544538.png
 

Attachments

Last edited:
Top