Simple timed controller

  • Thread starter Thread starter solvejskovlund
  • Start date Start date
solvejskovlund
Messages
67
Reaction score
2
I'm looking for a circuit to control a relay using preferably a single button, but two buttons is ok.
I picture a behavior similar to this, starting with the relay control signal off / disconnected / floating:

case 1:
Press the button once: power on the relay, set a timer to X minutes and start count down.
When time runs out, the relay control signal is turned off.

case 2:
Press the button: power on the relay, set timer to X minutes, start count down.
Press the button again: add X minutes to the timer.
For every press on the button another X minutes is added to the timer (guess there should be a max of an hour or two)
When time runs out, the relay control signal is turned off.

Additionally there should be a way to reset timer to 0, power off before the time has run out.

Also I'd like some kind of indicator that indicates the reminding time.

I wouldn't be surprised if a circuit like this exists like a mass produced pcb, or maybe even like a device with a box. But I can't find any. What would be the proper search terms to find such a circuit?
(I've found premade PCBs that has an time setting that can be controlled by multiple buttons, and a main button that starts the timer. But repressing the button either turns off or resets the timer to the initial first press time. They do not extend the time by pressing multiple times.)
The usage of this is lights in a half open shelter. Motion detection lights switch does not work because of animals, and I want this to be controllable with a foot switch cause my hands are usually full when I need to operate this. )
 
Engineering news on Phys.org
Pretty easy to build using any programmable microcontroller. Start with an Arduino, as it is cheap and probably the easiest due to tons of tutorials.
 
Sure an arduino would do the job. But if such a circuit is available for order, it may be better/easier. I would assume it exists. I just don't know the correct search term
 
solvejskovlund said:
Sure an arduino would do the job. But if such a circuit is available for order, it may be better/easier. I would assume it exists. I just don't know the correct search term
You will require at least five dedicated ICs to implement the state machine specified in post #1. It will need to employ an up/down counter, and you would need a custom PCB.

It would be much easier to program a single chip microcontroller that comes ready on a small PCB and costs less than$10.

You might consider an analog solution with an op-amp integrator.
 
I am trying to understand how transferring electric from the powerplant to my house is more effective using high voltage. The suggested explanation that the current is equal to the power supply divided by the voltage, and hence higher voltage leads to lower current and as a result to a lower power loss on the conductives is very confusing me. I know that the current is determined by the voltage and the resistance, and not by a power capability - which defines a limit to the allowable...

Similar threads

  • · Replies 7 ·
Replies
7
Views
651
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 31 ·
2
Replies
31
Views
4K
  • · Replies 25 ·
Replies
25
Views
5K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
1K
Replies
37
Views
6K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K