Author Topic: Digital timer  (Read 3004 times)

0 Members and 1 Guest are viewing this topic.

Offline LotusTopic starter

  • Contributor
  • Posts: 17
  • Country: dk
Digital timer
« on: February 19, 2013, 11:40:19 am »
I need a digital timer which can wait something like 5 minutes (adjustable time), then turn on a relay for 1 minute, and i would like the timer to do this forever.

I dont think oinary digital timers can do that, does any of you know how to do that?

 :-/O
 

Offline sacherjj

  • Frequent Contributor
  • **
  • Posts: 993
  • Country: us
Re: Digital timer
« Reply #1 on: February 19, 2013, 11:50:08 am »
Do you ever need to change the timer or will it always be 5 mins/1 min? 

How accurate do you need it to be?  Is 4:45 or 5:15 OK?  Is 50 secs or 70 secs OK?

The quickest thing I can think of to put together is an ATTiny45 Micro.  You can download add ons to program it in Arduino.  In your loop function, have delay statements to make the 5 mins.  Then throw a pin low and delay 1 minute.  Then throw that pin high and repeat.

The low pin goes to an N Channel MOSFET with a clap diode powering the relay.  Add filter cap and the micro and you have 4 components.

You can program the ATTiny45/85 with normal ICSP or use an Arduino board as an ICSP if you don't have one.
 

Offline Guppzor

  • Contributor
  • Posts: 26
  • Country: au
Re: Digital timer
« Reply #2 on: February 19, 2013, 12:10:56 pm »
Wouldn't a 555 timer setup be simpler than a micro?

 

Offline LotusTopic starter

  • Contributor
  • Posts: 17
  • Country: dk
Re: Digital timer
« Reply #3 on: February 19, 2013, 12:24:37 pm »
The accuracy is not important, as the timer will have to ventilate the air in a heated chamber, so 1 minute +- 10 seconds wouldnt really matter, and also drift in time wouldnt matter either.

What is important is that the circuit forever switch on/off a perhaps SSD relay at more or less the time i specify
 

Offline Gall

  • Frequent Contributor
  • **
  • Posts: 310
  • Country: ru
Re: Digital timer
« Reply #4 on: February 19, 2013, 12:57:11 pm »
The quickest thing I can think of to put together is an ATTiny45 Micro.
Or even ATTiny4, ATTiny5, ATtiny9, ATtiny10 which is much smaller (just 6-pin SOT-23).

Quote
Wouldn't a 555 timer setup be simpler than a micro?
If simplicity is number of required parts, then no. A micro does not require any external components to work, a 555 does.
The difficult we do today; the impossible takes a little longer.
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 2135
  • Country: gb
  • Test instrument designer/G1YWC
    • Electron Plus
Re: Digital timer
« Reply #5 on: February 19, 2013, 01:23:01 pm »
I wouldn't bother with a microcontroller, some other simple ways:

1. Use a 74LS123/4098B (dual retrig monostables), set one half at 1 minute and the other at 5mins. No programming...
Look at Fig 15: http://www.rapidonline.com/pdf/83-0426.pdf

2. Perhaps if I wanted more stability (using smaller low tempco capacitors) I might use an astable configured 555 timer, a divider (such as 4020B/4040B) and a 4017B (configured as a 1:6 divider).

3. If you have a handy secondary of a transformer around, then tap off (via a 1M resistor and a zener) the 50Hz, feed it into a chain of 4017B's set as simple dividers (10, 10, 10, 3) then feed the exact once per minute pulse into another 4017B (configured as a 1:6 divider).
« Last Edit: February 19, 2013, 01:25:19 pm by fcb »
https://electron.plus Power Analysers, VI Signature Testers, Voltage References, Picoammeters, Curve Tracers.
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16384
  • Country: za
Re: Digital timer
« Reply #6 on: February 19, 2013, 04:02:10 pm »
Google asymmetric recycler, if you want a ready built unit. Analogue or digital ones are quite cheap.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9285
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Digital timer
« Reply #7 on: February 19, 2013, 04:20:02 pm »
A small (8 pin) PIC would be your best bet.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline N2IXK

  • Frequent Contributor
  • **
  • Posts: 723
  • Country: us
Re: Digital timer
« Reply #8 on: February 19, 2013, 06:03:54 pm »
You can buy time delay relays with 2 adjustable delay intervals specifically to handle repeat cycle or interval timing applications like this.

The last time I needed one, I went with the TRDU series from SSAC:

http://www.ssac.com/files/downloads/30/TRDU.pdf

Timing intervals adjustable by a pair of DIP switches, from fractions of a second to over 1000 hours. If you only need 1, and it has to be reliable, buying a commercially made, prepackaged solution like these is generally a better idea than designing and building your own.
"My favorite programming language is...SOLDER!"--Robert A. Pease
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf