Maker Pro
Maker Pro

Simple LED timer circuit

GPG

Sep 18, 2015
452
Joined
Sep 18, 2015
Messages
452
What current for the led. Or a link to data
 

wingnut

Aug 9, 2012
255
Joined
Aug 9, 2012
Messages
255
Wingnut,


About R3,
It is in the correct location as it's purpose is to limit the initial current drown from the battery
at the first moment.
Assume the Cap is fully discharge,
at the first moment you close the switch the battery feels a short on it's terminals(limited only by a very low internal resistance of the cap-practically a short).
That is not a good thing for the battery and it's life time...

Yes,It will slower the charging time , but nothing you could notice:

Assuming C=1000uF and R=47 ohm, we get a time constant of T=0.047 seconds
the cap will be 99% charged in about 5*T=0.25Sec,
which is less than the time a person presses the push-button...

Thanks very much for the above explanation of R3.

I assume that R1 leaks away current/voltage till it drops to a level below what the chip recognises as an "on" voltage, at which point, the output changes post-haste. Nice :)
 

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
Non of them will do:
The 4000 series because of poor output drive.
The op. amps and comparators because of to high "STBY current"
Have you got any MOSFETs?
 

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
"I assume that R1 leaks away current/voltage till it drops to a level below what the chip recognises as an "on" voltage, at which point, the output changes post-haste"

Yes basically,
put a bit differently:
C is discharge through R1 till the input voltage is below VinL of the inverter ,
causing the output to switch from VoL to VoH .
 

wingnut

Aug 9, 2012
255
Joined
Aug 9, 2012
Messages
255
Non of them will do:
The 4000 series because of poor output drive.
The op. amps and comparators because of to high "STBY current"
Have you got any MOSFETs?
I have 74LS05 and CD4069UBE and GDF543. I am hoping the first will be suitable.
 

wingnut

Aug 9, 2012
255
Joined
Aug 9, 2012
Messages
255
"I assume that R1 leaks away current/voltage till it drops to a level below what the chip recognises as an "on" voltage, at which point, the output changes post-haste"

Yes basically,
put a bit differently:
C is discharge through R1 till the input voltage is below VinL of the inverter ,
causing the output to switch from VoL to VoH .

That is what I meant to say ;)

Your circuit shows that the inverter sinks current when VoL as I understand it.
 

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
The LED you are using isn't very efficient .
It is a 20mA /2000mcd /20deg one.
Your original circuit suggest you are operating it at about 8mA and lower.
Is the illumination intensity and angle you are getting enough?
 

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
Dont know what GDF543 is.
The 74LS series draw too much STBY power .

I would test the circuit with the CD4069UBE:
1.with "parallel" INs and OUTs.
2.use a 5ma LED or less( if you have a 2ma one even better).

You will not get the proper illumination you need,
but just test the circuits operation.
order the 74HC14,when you have it ,use it in the real thing...
 

wingnut

Aug 9, 2012
255
Joined
Aug 9, 2012
Messages
255
Dont know what GDF543 is.
The 74LS series draw too much STBY power .

I would test the circuit with the CD4069UBE:
1.with "parallel" INs and OUTs.
2.use a 5ma LED or less( if you have a 2ma one even better).

You will not get the proper illumination you need,
but just test the circuits operation.
order the 74HC14,when you have it ,use it in the real thing...

Will try it right now thanks.
 

wingnut

Aug 9, 2012
255
Joined
Aug 9, 2012
Messages
255
Yay. Eureka! :D It works perfectly. Stays on for 60s and bright enough. Thanks so much D

It fades very quickly over the last 2s and slightly over the last 8s.

The initial press does take 0.5s to get up to full brightness.

But perfectly suitable for the task at hand.
 

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
wingnut,
Glad to hear that.
what values have you used ?
You can shorten the "press time" by using a lower R3(say 22 ohm)
It is a "game of balance" with battery life.
 

wingnut

Aug 9, 2012
255
Joined
Aug 9, 2012
Messages
255
wingnut,
Glad to hear that.
what values have you used ?
You can shorten the "press time" by using a lower R3(say 22 ohm)
It is a "game of balance" with battery life.

I have used a 270 Ohms LED resistor with the original 20mA LED which is bright enough in the dark.
The quiet current when off is 1.3mA at 5V = 0.0065Watts resting. That sounds pretty good to me.
The Cap is 1000u and the R1 is 168K Ohms. I paralleled only the left inputs and outputs which was easily bright enough, noticing that the more being // the longer the LED stayed on.

I am using 4 really old AA batteries which add up to 5V. When pressed and while LED glows, the V drops to 3.3V.

Ps. Swoping out the capacitor for a 220u and R1 for a 1M it now is perfect, staying on for 100s.
 
Last edited:

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
Something is still wrong ,the STBY current of 1.3ma is way too high!
You should get no more than a few uA(a factor of 1000 down!).
I guess you didn't tie the unused inputs to GND or VCC...;)
 

Alec_t

Jul 7, 2015
3,593
Joined
Jul 7, 2015
Messages
3,593
I'd go with the HEF40106 and wire all six inverters in parallel in dorke's circuit.
 

wingnut

Aug 9, 2012
255
Joined
Aug 9, 2012
Messages
255
Something is still wrong ,the STBY current of 1.3ma is way too high!
You should get no more than a few uA(a factor of 1000 down!).
I guess you didn't tie the unused inputs to GND or VCC...;)
I am using the 3 left inputs in // with the 3 left outputs only.

It does not matter whether I ground or don't ground the 3 right inputs, now I am getting a STBY current of 6mA.
The only thing I changed was the cap and 1M resistor since taking the last STBY current of 1.3mA. I would not have remeasured if you had not said 1.3ma was too high.
 

wingnut

Aug 9, 2012
255
Joined
Aug 9, 2012
Messages
255
I'd go with the HEF40106 and wire all six inverters in parallel in dorke's circuit.

Thanks Alec. Swopping out the CD4069UBE for the HEF40106, the HEF snaps off with no fade, and only draws 0.7mA.
 
Last edited:

wingnut

Aug 9, 2012
255
Joined
Aug 9, 2012
Messages
255
Something is still wrong ,the STBY current of 1.3ma is way too high!
You should get no more than a few uA(a factor of 1000 down!).
I guess you didn't tie the unused inputs to GND or VCC...;)

Dorke, taking your advice, tying down the 3 unused right part of the chip inverters, and by wiring the Ammeter into the circuit, I see the STBY current is less than 0.001mA using the Hef40106. Now that is impressive!!
With the LED on it draws 7 mA.

The CD4069UBE draws 7-8 mA with the LED on. The current drops slowly to below 6mA at which point it switches the LED off. Even then it draws 5mA and this just keeps dropping slowly.

Therefore the HEF seems to have done it with your circuit!
My original transistor drew 4.5mA when LED on, and this dwindled over 10(??) minutes to zero.
 
Last edited:

dorke

Jun 20, 2015
2,342
Joined
Jun 20, 2015
Messages
2,342
O.K, that's how it should be !:cool:
Not only is it impressive ,
you got yourself 0.7/0.001=700 times the number of battery life STBY days.
That is the power of CMOS...

Furthermore ,If you can use a 2ma LED, it would be the most life you can get from the battery.
You can try lowering the current of the LED you are using now(from 7ma to 5ma or less, depending on illumination) it will improve battery life.

And you can leave it working with the 40106.
 
Top