Timer circuit with three triggers for three durations.

Thread Starter

ipanos

Joined May 7, 2010
41
Hi everyone,

I am trying to built a timer circuit which will have 3 momentary push buttons that each will trigger a timer with 3 different preset durations in the range of 0-4 seconds. Once triggered the timer's output should go high until the timer runs out and any further triggering while the timer is running should be ignored. Then it should return in the idle state, waiting for the next trigger. 555 with RC network accuracy is sufficient (no need to use crystals).

Closest I could get by googling is the following:
http://home.cogeco.ca/~rpaisley4/LM555PowerOffDelay2.GIF

This seams to be exactly what I need, just missing the multiple triggers. Any thoughts on whether they could be implemented, preferably by using 3 sets of RC networks rather than 3 timers?

Thank you in advance,
Pete
 

Reloadron

Joined Jan 15, 2015
7,523
It sounds like you want a "One Shot" where a trigger has the output swing high for a preset duration. A Google of 555 One Shot Non Retriggerable should bring up some results. Now, did you want the output of for example the first to trigger the next and then the next? Then you would be looking at two stage and three stage timers. Maybe you want a single trigger to trigger three One Shot timers for three durations?

Ron
 

crutschow

Joined Mar 14, 2008
34,459
It could be done with one timer but the circuitry to select the appropriate RC would likely be nearly as complex as three separate timers.
Off-hand I come up with 3 flip-flops (1 package) and one analog switch package so, at a minimum, the number of IC packages will be the same.
I think likely the easiest is just to go with three 555 (or two 556) timers.
 

Thread Starter

ipanos

Joined May 7, 2010
41
Thanks all of you guys for the fast response.

Ron, I am not trying to make a sequential timer.
This is about an one shot timer, but with three trigger buttons, each button producing a different preset timer duration.

Crutschow, if I go the 3 timer way, are you avoiding the 558 for some reason? My question is based on your proposition for 3x555s or 2x556s.

Now, although I have some understanding on electronics, I don't claim too much experience in circuit design. So, in an attempt to adapt the pre-mentioned circuit (this one), I came up with this one:

000.png


The idea is that that S1 uses an RC network with 3xR1, S2 takes out 1xR1 so 2xR1 remain and similarly S3 leaves just 1xR1 in the RC network.
Could someone comment on whether something like this could work, or what a stupid idea of mine this is?

Thanks again,
Pete
 

crutschow

Joined Mar 14, 2008
34,459
if I go the 3 timer way, are you avoiding the 558 for some reason? My question is based on your proposition for 3x555s or 2x556s
I'm not familiar with the 558, but it should work, which would seem to be a reasonably simple solution with probably the least number of parts.
They do work somewhat differently than the 555.
Now, although I have some understanding on electronics, I don't claim too much experience in circuit design. So, in an attempt to adapt the pre-mentioned circuit (this one), I came up with this one:

The idea is that that S1 uses an RC network with 3xR1, S2 takes out 1xR1 so 2xR1 remain and similarly S3 leaves just 1xR1 in the RC network.
Could someone comment on whether something like this could work, or what a stupid idea of mine this is?
I could work.
Possible problems are that the SCR has over a 1.5V drop when on and the SCRs must have sufficient current going through them to keep them on after being triggered which can be several mA or more.
 

Thread Starter

ipanos

Joined May 7, 2010
41
So I am looking for a super sensitive SCR? Or maybe there is a better way to selectively cancel out resistors in a circuit?
 

crutschow

Joined Mar 14, 2008
34,459
So I am looking for a super sensitive SCR? Or maybe there is a better way to selectively cancel out resistors in a circuit?
I don't know that you can find one with a low enough holding current.
But you could use the SCRs to control the control gate on a CMOS analog switch such as a 4066. That way the SCR load resistor value can be selected to maintain it's holding current.

Note that you could likely use one transistor to power both the circuit and the load instead of using two, unless the load current is too large for the switch capacity.
 
Last edited:

dannyf

Joined Sep 13, 2015
2,197
Could someone comment on whether something like this could work,
you probably want to build it fore sure.

two quick comments:

1) can the SCRs be turned off?
2) S2/S3 are active at all times, meaning that they can change timer duration even if the timer is armed. that may or may not be the desired behavior.

you have 20-30 parts there, right? a 8pdip mcu can handle all of them. so you may want to think a little bit more if that's a better route.
 

Thread Starter

ipanos

Joined May 7, 2010
41
To Dannyf,

1) can the SCRs be turned off?
Yes, crutschow was faster than me on that one. The whole this resets at the end of the cycle.

2) S2/S3 are active at all times
It is very possible that I am missing something, but why are they active at all times?

3) a 8pdip mcu can handle all of them
I believe so. But I've never programed one and I am scared of them :p :oops: ... My knowledge does not go that far I am afraid.
 

dannyf

Joined Sep 13, 2015
2,197
The whole this resets at the end of the cycle.
not sure what that means.

It is very possible that I am missing something, but why are they active at all times?
let's say that the timer is armed for the longest duration. now if you press S2/S3, the corresponding SCR shorts one of the resistors and shortening the timing.

I am scared of them
they are fairly easy to overcome, especially with arduino kits.

12f675_tmrx3.PNG

here is a simple implementation. GP0/1/2 are attached two three switches, active low. each generating a delay on the output pin (GP5) of 10ms/20ms/30ms. Once the timer is armed, it doesn't read from the input - the simulation has a few cases of that, like around 200ms and 400ms.

the whole thing has three lines of code in it. it needs nothing aside from 3 switches.
 

Thread Starter

ipanos

Joined May 7, 2010
41
WOW, if that is not motivation to go into mcus then I don't know what is. Too bad I don't know how to write those three lines of code or how to stuff them in an mcu :oops: . I guess I will be needing some sort of hardware for that. I don't mind the studying part (I would gladly do it), just don't know where to start...
 

dannyf

Joined Sep 13, 2015
2,197
the particular code here is quite simple:

Code:
        //switch logic: if a switch is pressed, 
        //1. turn on the output, 
        //2. wait a specific period of time (no reading the keys), and 
        //3. then turn off the output
        if (SW_PRESSED(SW1)) {OUT_ON(); delay_ms(SW1_DLY); OUT_OFF();}
        if (SW_PRESSED(SW2)) {OUT_ON(); delay_ms(SW2_DLY); OUT_OFF();}
        if (SW_PRESSED(SW3)) {OUT_ON(); delay_ms(SW3_DLY); OUT_OFF();}
it constantly monitors three switches, SW1/2/3. If any one of those switches is pressed, SW_PRESSED(SWn) becomes true, and it turns on the output through OUT_ON(). Waste some time specific to that switch, and then turn off the output through OUT_OFF().

just don't know where to start...
Arduino is a good starting point. they are easy to get started, inexpensive, flexible, and have a large user / code base to lean on.
 

dannyf

Joined Sep 13, 2015
2,197
it depends on what you want to do.

for general work, Uno is pretty good: all it takes is an uno board + a computer;
for mixed signal, Leonardo would be my choice.
for small jobs like this, try nano, mini, or mini pro.

while at it, grab a usbasp and some attiny25/45/85 for small jobs like this.
 

Thread Starter

ipanos

Joined May 7, 2010
41
So, lets assume that S1, S2 and S3 have to only have an effect while the timer is NOT running (i.e while the output is high, no button can affect the cycle). Is there a part in the circuit that is already high only when the output is low, so I can power the three switches from it, or shall another transistor be added for this purpose?
 

crutschow

Joined Mar 14, 2008
34,459
So, lets assume that S1, S2 and S3 have to only have an effect while the timer is NOT running (i.e while the output is high, no button can affect the cycle). Is there a part in the circuit that is already high only when the output is low, so I can power the three switches from it, or shall another transistor be added for this purpose?
I don't understand your question. :confused:
Your original circuit powers the circuit when one of the buttons is pressed, which should be fine.
Do you see a problem with that?
 
Top