Countdown Timer Dual toggle Relays- Working Project
Posted: Sat Nov 14, 2009 9:47 pm
I thought I would share this project.
It was developed in my spare time for the company I work for. Now they have to buy a Miac, because they are not having mine! :p
This application does the following:
Turns relay 1 on for a set period of time (relay 1 on time), increment number of cycles, counts down to zero, turns relay 1 off, then relay 2 on, counts down for a set period of time (relay 2 on time), then cycle is repeated, adding 1 to the number of cycles.
Setting up both times (relay 1 on time and relay 2 on time) is very easy. Hours and Minutes and seconds can be set up or down by using the cursor keys. If timer is running and pause is pressed, then I have designed the timer to stop, but the relay to stay on. That way adjustments to equipment under test can be carried out.
No need to keep setting up timers if Miac disconnected from power source. Hours minutes and seconds of both timers and number of cycles are stored in EEPROM, so will be retrieved when power is reconnected.
Since number of cycles are stored in EEPROM, If you want to start with 0 cycles, then hold OK button and at the same time press reset switch,
Only Got Miac 3 days ago, and I work full time, so at this stage programming won't be the most complex of master pieces around. But saying that, it still works very well and does the job it was intended to do.
My next step is to add a temperature sensor to shut relays down, in event of unit under test overheating ......Watch this space!
It was developed in my spare time for the company I work for. Now they have to buy a Miac, because they are not having mine! :p
This application does the following:
Turns relay 1 on for a set period of time (relay 1 on time), increment number of cycles, counts down to zero, turns relay 1 off, then relay 2 on, counts down for a set period of time (relay 2 on time), then cycle is repeated, adding 1 to the number of cycles.
Setting up both times (relay 1 on time and relay 2 on time) is very easy. Hours and Minutes and seconds can be set up or down by using the cursor keys. If timer is running and pause is pressed, then I have designed the timer to stop, but the relay to stay on. That way adjustments to equipment under test can be carried out.
No need to keep setting up timers if Miac disconnected from power source. Hours minutes and seconds of both timers and number of cycles are stored in EEPROM, so will be retrieved when power is reconnected.
Since number of cycles are stored in EEPROM, If you want to start with 0 cycles, then hold OK button and at the same time press reset switch,
Only Got Miac 3 days ago, and I work full time, so at this stage programming won't be the most complex of master pieces around. But saying that, it still works very well and does the job it was intended to do.
My next step is to add a temperature sensor to shut relays down, in event of unit under test overheating ......Watch this space!