Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Can this be done with the 555 ?

Status
Not open for further replies.

TCDK

New Member
I would like to build a circiut, that would eg. put out a signal (turn on a device) with a 24 hour delay, and repeat it every 24 hour. (from when it was powered on)

Is this something the 555 IC will be able of? if yes, have any suggestions for a circuit?
If no - how could it be done?

Thanks
 
How accurate does this timing need to be? I think 24 hours is very close to, or beyond the limit of that a 555 timer will allow (due to capacitor leakage and tolerances and things like that).

You could make a simple PIC circuit with a very slow oscillator and store the counts in a massive register to count to 24 hours. THat would be very, very accurate. At 26MHz frequency, a 39-bit counter is enough to track 24 hours. You'd basically have to link together a giant series of integer variables together in memory since 8-bit MCUs don't have large enough counter registers that periodically get updated by a timer (a dsPIC timer counter can do this though if you use the 32-bit timer and a 256:1 prescaler, it can actually go up to 48 hours like this on a clock of 6.5MHZ x4 PLL).

Do you need the signal to go HI for 24 hours and then go LO for 24 hours? Or to pulse HI momentarily and then go LO, and then do so again 24 hours later?

You could also hack an alarm clock or stopwatch or something.
 
Last edited:
If I were doing it I'd use a small PIC like the 12F629.
32,768Hz watch crystal on TMR1 (low power and wake up from sleep every 8 sec to update the time), latching relay (zero power once latched) and a battery. Should run for ages.
If you've got AC available then just tap into the 50/60 Hz signal for the timebase, use a PWM channel for the relay (assuming it's not latching) and there you go. :)
 
I think Harris had a better timer chip back in the day (do not recall but maybe google for it). The lm555 I would not count on for a long delay.

If you go with a PIC or AVR you will need to get a programmer, write a program, etc.
 
Either I'm not fathoming the original description or ....

What's the matter with a simple $9.95 plug-in, synchronous-clock-driven timer?

Dean
 
dknguyen said:
How accurate does this timing need to be? I think 24 hours is very close to, or beyond the limit of that a 555 timer will allow (due to capacitor leakage and tolerances and things like that).

Actually very accurate.


dknguyen said:
Do you need the signal to go HI for 24 hours and then go LO for 24 hours? Or to pulse HI momentarily and then go LO, and then do so again 24 hours later?

You could also hack an alarm clock or stopwatch or something.

It should go "lo" for 24 hours, then give a signal (hi) on a variable time (eg. 30sec) and then go "lo" again.
 
Dean Huster said:
Either I'm not fathoming the original description or ....

What's the matter with a simple $9.95 plug-in, synchronous-clock-driven timer?

Dean

It's not half as fun.. And then it should be build in to a cabinet.
 
Yeah, go for a PIC. Use a 32.768 quartz oscillator as the clock (probably the slowest oscillator you can get and definately the most accurate as that frequency and kind are used in RTCs). You'll probably need to use the secondary oscillator pins on the PIC rather than the regular (higher speed) oscillator pins. You don't need that fast oscillator anyways.

And then yeah, really easy code after that. Set up the clock and a timer interrupt.
 
hi TCDK,
Actually very accurate.

Use a PIC, timer1, an opto detector for the mains half cycle [50 or 60Hz], using the low side of the mains transformer to drive the opto-detector in order to give the mains frequency output pulse to drive the PIC timer input.

Also look at the HEF4060 i/c
 
If this is a one time thing you could use a PICAXE and safe yourself the cost of development tools.
 
Found this one.

Looks simple for me.

Instead of the relay, I will put in a 555 timer, that will allow me to adjust the "HI" time.
 
TCDK said:
link would do it much easyer ´;)

**broken link removed**

hi,
The 4060 is the easiest way to go for preset time periods.
You can use a crystal osc predivider to drive the 4060 if your require more accurate timing.
 
Putting a watch crystal (32.768kHz) on the CD4060 will make it a 2Hz timebase. There are 86,400 seconds in a day so you'll need some sort of divider to trigger something like a 555 for the 30 second on time.

If you don't use a crystal it'll be difficult to adjust the circuit as shown accurately as the clock must be 5.2734375 Hz

I wonder how you set the ON time with the circuit?

PS that talking electronics programmer is yet another JDM style programmer (and can be somewhat difficult to get running), search the forums for "JDM" before you decide. The PICAxe are popular for a one off project, not sure if you can connect a crystal to them.

If you want easy (writing a 24Hr 30sec on timer is not too tough) you could download the free PICBASIC Pro demos; 40lines of code, more than enough for this project but limited PIC support PIC12F683, 16F627(A), 16F628(A), 16F84(A), 16F688, 16F690, 16F870, 16F871, 16F872, 16F873(A), 16F874(A), 16F876(A), 16F877(A)
https://www.melabs.com/pbpdemo.htm
Of course I sell a PIC programmer & kits so my opinion may be biased.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top