How to Make a Programmable Timer Circuit

A programmable timer is a device which can be used for switching a load ON and OFF after predetermined delays as per the requirements.

The delay timings are adjustable according to the users personal specs. The ON time delay and the OFF time delay are independently settable and this facility becomes the most important feature of a programmable timer circuit.

Using Versatile IC 4060


In this page we will discuss a very simple yet reasonably useful timer circuit diagram whose ON time and OFF time settings are independently adjustable through ordinary pots.

The idea becomes so easily configurable due to the versatile IC 4060 which require minimal number of component for getting the unit running.

Looking at the CIRCUIT DIAGRAM below we can see that two inexpensive IC 4060 have been wired up as two independent timer modes.

However though the timing settings are independent for the two sections, these are coupled with other such that their initialization become very much interconnected.

Basically both the configurations are similar and have been rigged in the standard counting modes of the IC 4060 devices.

How the Circuit Functions


The output of the upper IC is coupled to the reset input of the lower IC via a transistor in such a way that once the upper IC's output goes high, it triggers the lower timer into operation.

The lower IC then starts counting and when its output goes high, it halts the upper ICs counting and resets it to its original state and the process is initiated back from the start.

It simply means that as long as the upper ICs timing does not lapse the lower IC remains idle, however once the upper ICs timing lapses and its output becomes high, it switches the output load as well as the lower ICs operation.

The pot associated with the upper IC can be used for determining after how long the load will be switched ON, while the pot associated with the lower IC is used for determining how long the load remains in the switched ON position or simply after what time it should be switched OFF.

Update:

The LED positions have been changed in the following updated designs, because the earlier LED positions were conflicting with the relay operations, and therefore the positions have been relocated for ensuring foolproof operations.

Circuit Diagram of a Versatile Programmable Timer

simple accurate dual programmable timer circuit using 2 IC 4060

PCB Layout

programmable timer PCB design


Video showing the proposed 2-stage programmable timer circuit with LEDs


Using a Start Push-Button


The above design could be upgraded with a push-button to facilitate a push button start. This further ensures that the timer shuts off completely in case a power failure occurs while the circuit is operational, which in turn ensures that crucial loads like heater, or geyser are completely turned OFF during such situations.

programmable timer circuit using push button control

Customizing the Above Concept


This circuit of a flexible programmable timer circuit explained in this article was designed by me in response to a request by Mr.Amit. Let's know more about the request and the circuit details.

Technical Specifications


"I need a circuit for my auquarium where it should do the following

it should switch off the lights at 10:00 pm and start at 7:00 am daily + switch off the light at 12:00 pm daily and switch up at 6:00 pm back.

this will help to make my fishes live longer. :)

Thanks in advance.

Amit desai"

The Design


So here's the circuit that I came up with. As the name suggest, the timer is pretty flexible and may be adjusted to produce any desired time periods, according to the above requested format.

The circuit consists of four identical stages, made up of the IC 4060 timer configuration. Te timer sequence begins from the IC at the top left corner.

When power is switched ON this IC starts counting. Depending upon the setting of its pot, the IC triggers after a certain period og time interval.

This switches ON the relay and the driver transistor BC547 which consequently switches OFF the connected lamp. The stage gets latched with the help of the diode connected across its pin 3 and pin 11.
The above triggering  also switches another BC547 transistor which connects the reset pin of the next IC 4060 to ground which initiates this stage also.

After a predetermined time, this IC also triggers its output at pin3 and gets latched by the corresponding diode, however this actionsends a feedback signal to the relay driver transistor, instantly switching it off and restoring power back to the lamp so that it lights up again.

Just as the above actions, the sequence further proceeds and switches ON the third IC 4060 in the line which counts the set time interval and pulls the relay back to OFF position via the diode connected to the collector of its bc547 transistor, such that the lamp again gets switched OFF.

As soon as the above triggering happens the last section at the bottom right corner switches into action and counts as per the setting of the respective pot, until the ICs output becomes high, this high reset the the first IC and switches ON the lamp once again so that the process may be restart the cycle all over again.

The pots may be increased to 3m3 for generating higher time interval periods, so is true with the respective capacitors.

Circuit Diagram

industrial application 4 stage programmable timer circuit

How to Adjust and Set Up


The timer may be adjusted as per the sent request, in the following manner:

If we consider the first timing sequence to begin at 7am and end at 12pm, means the upper left timer's P1 needs to be adjusted such that it activates the relay and switches off the relay after exactly 5 hours.

For keeping the lamp switched OFF in the above position and switch it ON back at 6 pm we now adjust P1 of the upper right timer section such that its output triggers after another 5 hours. This switches ON the lamp again.

The above situation needs to be kept intact until night 10pm, which is about 4 hours of period, therefore we adjust the lower right timer's P1 to get it triggered after 4 hours of time interval.

Finally, for initiating the above procedure back again the next morning at 7am, P1 of the last timer at the lower right is adjusted such that it resets the first timer after 9 hours..... and the cycle repeats.

For making the circuit work according to the above specified timing pattern, after adjusting the respective hours, the unit should be powered or switched ON exactly at 7 clock in the morning....rest will automatically follow.

Need Help? Please send your queries through Comments for quick replies! And please Bookmark my site :)




Comments

shirland said…
I really hope someone can help me......

At the office I need one answerphone message during office hours and a different message out of hours. At the moment these are switched manually however on the odd occasions when I have to go elsewhere before going into the office, the out of hours message stays on until I can physically switch it over.

I thought of creating a standard programable timer that connects between the wall telephone socket and the two answering machines that can switch one machine off whilst switching the other on and vice versa.

I originally thought of just using electric timers as can be bought in a shop however if the power is disconnected to an answering machine then it is reset and may not work properly when switched back on without physical intervention. So my thought is that both machines remain powered up but the switching actually happens on the telephone line.

I think it should be straight forward however I have not been able to find anything that can achieve this. Any help or circuit design ideas would be very much appreciated.

Thank you.
karthik bv said…
Hi sir,
I need a circuit for a motor that pumps water for appr. 15sec daily. I would like to program the timing(15sec) in MC. Is it possible.. can you please help
Swagatam said…
I'll try to do it, let's see....
ABDUL BASIT said…
HELLO SIR..
SIR THIS HELP IS ABOUT COMPUTER LOGIC DESIGNING SUBJECT.
SIR MY TITLE IS TO MAKE DIGITAL CLOCK USING COUNTER.
BRIEF DISCRIPTION : I CAN USE DIFFERENT GATES(AND,OR,NOR E.T.C) AND COUNTER .PIC OR OTHER IC PACKAGE IS OT ALLOWED .
PROJECT IS ABOUT 25 MARKS. THIS MEANS THIS SHOULD NOT BE SIMPLER ACCORDING TO MADAM.I HOPE SIR YOU UNDERSTAND MY NEED
I HOPE YOU IS THE PERSON WHO CAN HELP ME..
THANKSS .....
Swagatam said…
digital clock may refer to a device for checking time, or a frequency generator circuit....which one u are referring to?
ABDUL BASIT said…
sir it is used for the time.
Swagatam said…
sorry i do not have a time clock circuit using gates only.
ABDUL BASIT said…
SIR THIS INCLUDE COUNTER AND GATES. THE LIMITATION IS ABOUT IC PACKAGE. CASCADING OF IC'S IS ALLOWED
Swagatam said…
I don't have any such circuit with me, I will try to find it, if i get will inform you.
salman khan said…
hi dear...
can i use the above circuit to keep relay ON for 5 sec and keep relay OFF for next 30 minutes..and after 30 minute the ralay automatically ON again for 5 sec and thin OFF for 30 Minutes and this process repeat again again
Swagatam said…
yes you can, the above circuit is exactly for this kind of applications....
Swagatam said…
THis is not a blinker, rather a timer circuit.

Anyway if you are using it as a timer, do the the following:
You can remove the transistor/relay assembly and connect one of the LEDs LED across the existing 1K resistor and pin#7 of the IC. Anode will connect with 1K and cathode to pin7.
For the second LED, you have to repeat the procedure, connect another resistor at pin3 of the IC, connect the LED across the free end of this resistor and pin7 of the IC....polarity same as explinaed for the first LED.

The LED cathodes are connected to pin7 so that they blink when the time elapses
Swagatam said…
The above circuit is not for controlling blinking or flashing rate of an LED.

It's a programmable timer circuit.
Ilman Gumilar said…
Dear Guru ...
I need circuit for time limiter to use for public speaking.
Say if a teacher has one hour to speak in the class then the timer will show a green light starting from 60 minute then counting down to 0, but before finish the yellow light will turn on to remain a teacher that the time almost finish, it can be 3 minutes before to 0, finally when the time is over the red light will be on, it means that time for the teacher is finish.

Thanks & Regards,
ilman.gumilar@gmail.com
Charlie C said…
Hi Swagatam,
Is it possible to add pwm to control 12V, 3A motor in this circuit? Thanks
Swagatam said…
Dear Ilman,

I'll try to design the circuit and post it soon.
Swagatam said…
Hi Charlie,

Yes it can be done, in your previous comment I have suggested you the required PWM controller circuit. You can simply power that circuit via the relay contacts of the above circuit, so both get integrated for the intended results.
Swagatam said…
I have published it here:

https://homemade-circuits.com/2013/11/week-day-programmable-timer-circuit.html
Sean Kilcoyne said…
Hi Swagatam,
I am trying to build a circuit to help me with giving speeches. I have a bunch of parts already and I would like to use them if possible. I want it to have an On/Off switch to power the circuit and a Start/Stop button as well as a Reset button. I would like for it to light a Green LED after 5 mins, then turn off the green LED and light an Amber LED at 6 mins, and then turn off the Amber LED and light a Red LED as well as sound a buzzer at 7 mins. I would also like to have a seven-segment display show the elapsed time. Let me know haw feasible this would be. Thanks.
Swagatam said…
Hi Sean,

I'll try to design it and post it soon for you.
Hey mate,

I am trying to understand the circuit with regards to the relays connection into the circuit. I realize this is perhaps 101 stuff however it is a hurdle for me at this stage in getting this circuit to function for me. Does the diode connect directly across the coil pins? How are the NC and NO pins connected? Is the common pin connected? Thanks your help is appreciated.
Swagatam said…
Hi Jason, it may be connected directly across the relay or anywhere in the PCB, it doesn't matter as long as it joins with the relay coil in the shown manner, that is cathode to the positive of relay coil and anode to collector side of the relay coil

NC or NO should be connected with the load via the supply voltage as per the requirements such that when it operates it makes or breaks the supply to the load alternately.
Thanks Swagatam,

I'm negative at the upper ic pin #15, you mention in your upper post that pin#15 should give indication of functioning circuit, can you expand please on this circuit diagnostic?

Thnaks again.
Also please what frequency would you expect the cycle if both pots were at their lowest resistance? (given correct components were used as per your diagram)

Swagatam said…
Yes pin#15 could be too slow with its blinking rate especially when the ICs are set with timing over 5 minutes, so won't serve as an effective indicator, I have updated the diagram with LED indicators for the respective indications.

The frequency formula is
F = 1/2.3RC....where R is ohms and C is in Farads
Thanks. However I'm still having problems with it. Would a correctly wired circuit illuminate the red LED whilst waiting for first timer period to trigger the second which will result in the red LED turning off and the green LED illuminating (as well as obviously closing the load circuit via the relay)?? I would just like to confirm this is the intentional use of the additional LED's. Thanks again for your help.
Swagatam said…
Yes, the moment the circuit is switched ON the red LED will light up, it will stay illuminated as long as the upper IC counts and will shut off once the upper time interval lapses.
This will prompt the lower IC to begin counting with green LED now being illuminated.
Your the man! Works a treat, thanks for all your help.
Swagatam said…
You are most welcome!
Sridhar said…
hi sir wats the ON and OFF time of the above circuit
Swagatam said…
It will need to be checked through practical testing
Sridhar said…
k thnks for the reply
Sridhar said…
hi sir i would like to build a circuit which should be on for 3 to 4 hours and gets off
Swagatam said…
you can try the following design:

https://homemade-circuits.com/2013/07/simple-triac-timer-circuit.html
Chase Konop said…
I'm hoping you can answer a question asked earlier. "Can I connect the load directly to the circuit instead of using a relay?" Or if not, can i use the same 12v power for the load/relay side and the timing circuit side?

I am wanting to use this circuit to run an air circulation fan (12v computer case fan) system in a cooling unit. But a 555 oscillation timer runs too much. I only need approximately 1 min on / 30 min off run time for the fan.

Thanks, Chase
Swagatam said…
A 12V fan can be directly connected across the transistor, but it will need to be upgraded to a higher rated (TIP122) transistor instead of the shown BC547.
Ashok Dhenge said…
hi
i m regular reader of your blog. I want the circuit as per following condition.
1) When power supply is on then relay on after 3 min.
2) After 3 min relay stay on for 2 hour then off even after power get failed at power on switch and continues run by 12 volt by load connection for 2hour.
can you guide me for this project.
Swagatam said…
you can try the above shown circuit.
adjust the lower section for 2 hour and the upper section for 3 min.

for battery backup connect a parallel battery supply through a 1N4007 diode. the mains power supply voltage to the circuit should be slightly higher than the battery voltage
Ashok Dhenge said…
Hi sir,
i assemble this circuit but not work properly. It shows that, relay start when power is applied but not Off as i adjusted the pot. I used polyster 1uf/250v capactitor NP. I dont know where is problem please guide me how can i take tests on circuit for example any voltage point.
Swagatam said…
Hi Ashok
I have designed and tested this circuit myself and it worked flawlessly.

The relay should not activate when switched ON, rather when the upper IC time has lapsed.

Something's severely could be wrong with your circuit connections.

Put an LED with 1k resistor at pin7 and ground of the ICs, when the particular IC is activated this LED will start flashing indicating proper IC functioning.
MUJAHID SHAH said…
Sir the circuit is very nice. I made it successfully. I would like to suggest to those who are trying to make it they should make it in such a way where each ic should work individually and should not be interconnected. When both ic start working individually then they should be interconnected. I myself applied the same method and succeeded. Am I right sir?
Swagatam said…
Thanks Mujahid, you are right!
Ashok Dhenge said…
sir i check this i put 1 led with resistor at IC1 & IC 2 pin 7 both LED flashing at same intensity 3 flash per minute when power is supply & relay activate instantly. can you tell me where is my problem.? one question is that both 1uf/25v capacitor is Non polar ( polyster) & 0.1uf cap is ceramic? I used these parts.
MUJAHID SHAH said…
Sir kindly help me the ic4017 gives its sequential output when I am using oscillator circuit (that is 555 ic) I mean it is all ok with an oscillator circuit but when I manually give a positive pulse at pin 14 of 4017 it does not respond well please I need it
Swagatam said…
Ashok, replace the capacitor in the upper section with 0.22uF and the lower with 0.1uF and now check....this modification will give quick switching and help to verify the functioning.

Connect another LED with the base of the relay driver transistor....check its response....relay should NOT activate on power switch ON
Swagatam said…
Mujahid, did you connect the pin14 to ground through a resistor? you must do this in order to make it respond to manual switching.
connect a 100k resistor from pin14 to ground and then trigger it with a positive pulse manually, it will surely respond.
MUJAHID SHAH said…
Thank you sir I.ll try it.Sir i need a circuit similar to the one with ic4017 but the problem with ic4017 is that whenever pulse is given one output appears and the previous output disappears. The one I need should be opposite of it. I mean when i give 1st pulse there should be one output but when i give second pulse there should be two outputs and when i give 3rd pulse there should be three outputs and so on. No output should disappear.the pulse pin should be single like ic4017 Thank you
Swagatam said…
Mujahid, the IC 4017 will not produce latched outputs, its sequence will shut the previous output as it proceeds in the order.
For your application you would need the IC 74LS164, this will produce latched outputs as its output sequences.
MUJAHID SHAH said…
thank you sir i need the above mentioned ic this is the exact device i was looking for.today i read about it but i would like you to explain it in your own way so i could understand it well. thanks a lot once again.
Swagatam said…
Mujahid, pls refer to the following post:

www.brighthubengineering.com/diy-electronics-devices/95093-moving-led-signs-using-ic-74ls164-pin-outs-explained/
MUJAHID SHAH said…
Sir my question consists of two parts
1. As I have earlier stated that the ic 4017 responds well with an oscillator(555 ic) but doesn't responds well with manual input clock. I connected pin 14 to ground via 100k resistor as suggested by you but in vain. Now what should I do?
2. I need ic 74LS164 to produce serial outputs via manual switch. I read your suggested post but it cannot meet my need. Sir kindly help me I need both these circuits. Thanks a lot.
Swagatam said…
1. Use a switch for triggering pin14 of the IC, connect one end of the switch to positive and the other to pin14, also connect a 10uF capacitor parallel with the 100k resistor.

2. If you are having difficulty with 74LS164, you can use scrs at the output of the 4017 for getting a latching response, please refer to the following article:

https://homemade-circuits.com/2013/03/sequential-bar-graph-turn-light.html
MUJAHID SHAH said…
Sir as per your suggestion I assembled the circuit but mistakenly I connected the 10uf cap from positive to the pin 14 of the ic4017 and 100k resistor from negative to pin 14. It was responding well. Then I replaced the 10 uf cap with 0.1uf cap. The response was still awesome.
The idea for latching Output is really nice one by urging scr. For this purpose can I use one of your circuit configured around SCRs that is Code Lock Circuit.
MUJAHID SHAH said…
Sir kindly let me know the reliability of transformerless circuit specially One with PPC capacitor.thank you
Swagatam said…
Mujahid, capacitive power supplies are not reliable dont use them....
Alex Polimeni said…
Hello
I need a timer where I can program it precisely several days before. I am building a camera that will be close to the launch pad and will take photos of the launch of an Atlas V. If there is any way I can do it, suggestions would be greatly appreciated.
Thanks
Swagatam said…
hi, you can probably use the satellite's engine "roar" to trigger the camera.
if timer is the better option for you, you may try the following design, just replace the 4060 IC with 4040 for enabling huge programmable delays.

https://homemade-circuits.com/2012/04/how-to-make-long-duration-timer-circuit.html
sskopparthy said…
Sir,
I need a circuit that switches the relay on for 3 minutes for every 5 minutes interval.I mean that 5 minutes after powering the circuit, the relay should be switched on for 2 minutes and off again. After 5 minutes again the relay should be switched on for 2 minutes and continue the cycle. Can this circuit be used for this type of application? Please try to giv early reply as I have to make this circuit within two days and present it at mycollege......THANK YOU SIR...
Swagatam said…
SS, yes the above circuit is perfectly suitable for your application.
prex gandhi said…
Sir
I would like to control high must light.
My requirement is early morning off at 6.00am & evening on 7.00pm.
Is this possible through this ckt.
Swagatam said…
Prex, you can either try the above programmable timer for the application or any of the designs presented in the following article:

https://homemade-circuits.com/2012/01/how-to-make-light-activated-day-night.html
hi swagatam
I tried many sucsesfull circuit from this blog many thanks for that.
Now i want one circuit which can work as occilation like 1/2 second on 2 sec off circuit is on 12 volt DC supply can you help me for this project.
Swagatam said…
Hi Ashoke, thanks!!

you can simply use a 555 IC astable circuit for it, and set its mark/space ratio accordingly by referring to an online 555 IC calculator software.
Sriram Kp said…
Hai, Thanks for the circuit...
How to adjust the P1, P2 for ON, OFF timing??
suppose if I want the circuit to activate relay at 6pm and deactivate the relay at 9pm means how to adjust the P1, P2??
And by adjusting the P1, P2, how can i know that the relay wil get activate at this time and deactivate at this time??
Swagatam said…
calculate the hours between 9pm to 6pm, this becomes the delay of the upper timer.

next calculate the time difference between 6 and 9pm this becomes the delay period for the lower timer.

adjust the upper Rt/Ct and the lower Rt/Ct accordingly with some trial and error.

Rt = combined resistance of pin10
Ct = cap at pin9 should be nonpolar
mr. green said…
Hey brother,,
this is tanvir again. I'm here to request you so much that how to add seven segment display with dis circuit , witch will show both times of it. Brother is it possible? And u can trust me that I'll build it coz I had a lot of practice last few months of circuit works. I'll be glad if you accept my request.. regards.... :)
Swagatam said…
Hi Tanvir,

you can make two of these modules:

www.next.gr/uploads/14/dig_poc.gif

and connect pin10 of the first IC of one module to pin15, or pin14, or pin7 of the upper IC 4060.....same with the second module and the lower IC 4060
mr. green said…
Bro ,,
Should I connect module's pin 10 over the display connection? And what is the way to connect the capacitor circuit witch is given on top left of the picture? Need a little clearence bro.
Swagatam said…
sorry bro it's not pin10 but the "clk" pin of the right IC that should be connected with pin15 of the above 4060 IC....

the top left capacitors in the link indicate the capacitors connected across the supply/ground pins of the IC 4026.
jobin said…
can i use this as for ON state 20 hours and OFF state 4 hours and so on
Swagatam said…
yes you can do that but 20 hours is quite a big delay and the IC may drift away from accuracy with such long delays.
imran khan said…
hello sir, Sir i need a circuit that activated light sunset time and then off after 3 hours. i hope u give me reply.
Swagatam said…
hello imran, i'll try to post it in this blog soon.
Zahid Rosli said…
Hai sir, I am a new follower and tq 4 add me back..sory 4 disturb u..sir I want to know what is the different between 12vdc and supply voltage? Can I change the load to motor? How to connect the supply voltage with relay and motor? And how can I connect the relay in this circuit? Sory sir i dont understand and sorry 4 my grammar.
Swagatam said…
Hi Zahid, the voltage required to operate a particular circuit is its supply voltage, which can be anywhere from 5 to 15V for depending upon circuits specs.

Please click the diagram to enlarge you will be able to see a relay connected in the circuit and also the relevant connections with its contacts
Hello sir. I'm nas. I very interested with your excellent circuit. By the way. I want to ask you some question. Can this circuit become a chicken/fish feeder cicruit? I want it operate in every 30 minutes and the motor will rotate between 3 to 5 minutes. Any suggestion to upgrade this circuit? Thank you. ASAP..
nas. I very interested with your excellent circuit. By the way. I want to ask you some question. Can this circuit become a chicken/fish feeder cicruit? I want it operate in every 30 minutes and the motor will rotate between 3 to 5 minutes. Any suggestion to upgrade this circuit? Thank you. ASAP..
Swagatam said…
Hello Nas, thanks!

Yes this circuit will be perfectly suitable for the said application, you can use it.
kshitiz jaiswal said…
Sir, can you post the detailed explanation of working of the circuit and the components used?
Swagatam said…
kshitiz, If possible I'll try to update the explanation soon, the component numbers can be seen in the diagram itself, just click the diagram to enlarge.
oswald said…
sir, is this programmable timer affected by power failure..?, because when power failure happen at my place it can be as long as 12 hours or even longer, will it affect the program?
Swagatam said…
oswald, yes it will be hampered if the power fails, you can employ a battery back up or the following modification for both the ICs

https://homemade-circuits.com/2014/07/timer-circuit-with-auto-pause-and.html
hello sir,can you plz publish a simple circuit that off cooler after 3 to 4hrs...???
Swagatam said…
can you please explain it in more detail, it will help to understand the application better.
Swagatam said…
Hi, P1 will determine the OFF time and P2 the ON time of the relay, when power is switched ON the relay will NOT activate and will execute the off time, after the specified time has elapsed the relay will switch ON and begin implementing its ON time and this will repeat itself as long as the circuit remains powered.

switching off will not alter the P1/P2 setting and the timing, but the counting of the timers will initiate from the point the circuit gets powered.

the time setting procedure will need to be done through some trial and error, i might have explained it in one the above comments, you can search it out.

the relay coil resistance will depend on the relay contact rating (heavier contacts will have lower coil resistance specs), for the shown BC547 transistor the ideal rating of the relay should be between 300 and 400 ohms
Sriram Kp said…
Hai,
I like to connect the above circuit with bathroom fan. The fan should run for 15 mins and off for 1hr. so do I need to change the resistor and VR at pin10 on both the ICs in the above circuits or the same wil be fine??
Swagatam said…
Hai, yes you will need to adjust the shown preset at pin10 for achieving the specified time delays, the upper preset should be set for the OFF time (15 min) and the lower preset for the ON time(1 hour)....the circuit will initialize with the OFF time when switched ON
Swagatam said…
...the ON/OFF sequence can be reversed simply by changing the relay contact config with the load
Sriram Kp said…
Hai, The resistor, VR and capacitor at pin 9, 10 are used to calculate the ON and OFF timing in the circuit. Correct me if I am wrong.
And is there any formula to calculate the ON and OFF time?? So I can place specifi value for resistor and cap at Pin 9,10 for OFF and ON.
Swagatam said…
Hai, yes that's correct....

the formula can be found in this article:

https://homemade-circuits.com/2012/01/how-to-make-simple-versatile-timer.html

Ct will be in Farads.............. not in uF
Sriram Kp said…
So the formula is Freq = 1/ 2.2RtCt or T out= 2.2RtCt2 X (N-1) ??
If it is T out means , what is Rt, Ct2 and N?
Swagatam said…
t is time delay between each pulse generated at the selected output pin....Rt, Ct refers to P1 and C1 in the above circuit...N refers to the pinout sequence given by Q1, Q2, Q3...etc check the datasheet of the IC for a detailed info about all these...
Sriram Kp said…
Hai, I made the circuit. The OFF time I calculated is 8 sec and ON time 10 minutes. When I power ON the circuit, the red light is ON and relay is in de-energized state. After 8 sec, the green light is ON and relay got energized. But after 10 minutes, the relay is not getting de-energize. All the connections are correct. Don't know where is the fault. Pls help.
Swagatam said…
check the pin#3 connection of the lower IC with pin#12 of the upper IC via the diode....may be you have done something wrong in this part of the circuit.

because after the lower IC counting is over (time elapsed), its pin#3 will go high which is supposed to "poke" pin#12 of the upper IC and reset the whole circuit into the original state.

I hope you understood the procedure.
Sriram Kp said…
I checked the two stages separately. i.e I made the upper part separately. when I power on the circuit. The green light is in OFF state and relay is also in de-energize state. After 8 seconds, the green light is in ON state and the relay is also got energized. Then after 8 seconds, The green light goes OFF but the relay is not getting de-energize. I changed the transistors also. But the result is same.
Swagatam said…
if you separate the circuits then how will the looping initiate....without the lower IC's pin#3 triggering pin#12 of the upper IC the circuit will not reset and return to its original state.

connect the circuit back to the above shown form and connect a third LED from pin#3 of the lower IC to ground via a 1K resistor....

after 10 minutes, as calculated by you this LED must turn ON, and as soon as this happens the entire circuit is supposed to reset, with this LEd shutting off immediately and the red LED illuminating...the sequence should keep repeating now.
Sriram Kp said…
Hai, I have found that where is the problem. The relay is not getting de-energize after particular time period due to the red LED with 1k connected to "+ve''. when I removed that, the circuit is working grt.
Thanks for the circuit.
Swagatam said…
hai, that's very strange and technically doesn't sound OK to me because as soon as the lower IC pin3 goes high, it will reset the upper IC pin#12 forcing the upper IC pin#3 to go low....which will instantly shut off the red LED and also the relay....

do one thing keep the LED as it is, just add a 3V or 4V zener diode in series with the base of the upper BC547 transistor...
Sriram Kp said…
In your above circuit, first the OFF timer will work and then ON timer will work. That means , when the circuit is switched ON, the relay will be in de-energize state in the OFF timer and then after the particular time, the relay will get energize in the ON timer. But what I need is , when the circuit is switched ON, the relay should get energize and after the particular time, it should de-energize. For this, shall I change the BC547 as BC557 in the upper IC and connect the ground to the relay directly and +ve to the emitter of the BC557 and collector to the relay. so when the OFF timer is running means the relay will be in energize state and when the ON timer is running means the relay will be in de-energize state. After this change, will this work as I am expecting??
Swagatam said…
for achieving that you will have to include another transistor stage....check out the following article and see how T1/T2 are arranged, do the same for the above circuit also:

https://homemade-circuits.com/2012/04/semi-automatic-water-level.html
Sriram Kp said…
Thanks. I made a schematic like that. Pls check it.
imgur.com/echNkCC
I connected the collector of the BC547 to base of BC557 with a R2 (10k). Do that R2 is needed or can I connect the collector of 547 to base of 557 directly??
Swagatam said…
Sorry that's wrong....please see the linked article again....there's no BC557....both the transistors are BC547 and needs to be connected exactly as indicated in the related diagram.
Sriram Kp said…
Pls check it now.
imgur.com/F3udHAf
Swagatam said…
transistor connections are OK

relay connections are wrong
Sriram Kp said…
Actually I want to connect the relay's one pin directly to the ground and another pin to transistor for getting positive to the relay. So the relay should activate by supplying the positive from the transistor. How to make changes for that??
Swagatam said…
why so? it doesn't make any difference whether the relay negative is switched or the positive is switched....the requirement is to switch it ON when the IC is powered

anyway you replace the existing transistor (in the above diagram) with a BC557 and connect the relay across its collector and ground
Sriram Kp said…
Hai, I made the ciruit. working good. Thanks for the circuit. The above circuit will work in OFF ON cycle. But I dont want the circuit to work in cyclic process. Once the ON sequence is initialized means it should remain in the same state only until I power OFF the circuit. So what changes i have to do for that?
Ray Strong said…
So glad I found this site, might be my new Favorite. I'm an amateur here who's racked his brain enough already. Hoping you can help me out. What I need is an "on delay/true off delay timer" as detailed here--> https://drive.google.com/open?id=0B8cU3NynJy7kekE4bXIxUFBORXM . The signal going to the delay timer will be from a "pulsepause timer" and I would like to just have the delay timer delay that pulsepause signal before replicating it a half second later to another component. Basically I need it to produce the same signal for the same duration but just delayed a fraction of a second.

Is there something cheap out there that will do this for under $30 or could you provide me with a schematic.

Thank you
Swagatam said…
Hai, you can try the following circuit:

https://homemade-circuits.com/2012/01/how-to-make-simple-versatile-timer.html

replace the buzzer with a transistor relay driver as in the above article
Chris Hamilton said…
Hi, Swagatam,

Can you design a timer circuit for me that will allow for a seven day program that can have up to six events per day that may last up to 30 seconds each. It will be used to turn a motor on/off and if possible have a wireless remote to turn the device on/off.

Thanks,
Chris
Sriram Kp said…
I want to set different OFF and ON timing. So the circuit which you suggested above is wont fit for me. I want to run in the above circuit itself. So once the above circuit is switched ON means, first the OFF sequence will starts from IC1. Then the ON sequence will start from IC2. So once the ON sequence is started means it ( the relay) should maintain in ON state only until I power off the circuit. It should not go for OFF state again.
Swagatam said…
Thanks, I am glad you liked my site.

In your given specs, the input voltage is the supply voltage, however if the supply voltage is removed then the circuit might not function correctly....the supply voltage cannot be removed, only the trigger can be applied or removed.

Please clarify this, then we can proceed with the designing.
Swagatam said…
Hi, Chris,

I have one similar design in my site, you may refer the following circuit:

https://homemade-circuits.com/2013/11/week-day-programmable-timer-circuit.html

However each "day" is configured with a single event (timer), to have six could make the design extremely lengthy, ....so may be a microcontroller based circuit would be more appropriate for this application.
Swagatam said…
Sriram, just disconnect the pin#3 diode cathode of the lower IC from pin#12 of the upper IC and connect it to pin#11 of the lower IC.
Ray Strong said…
Yes, of course. What I should have said is I plan on using the supply voltage to supply the three things that would need it (pulse/pause input,pulse/pause relay input and the delay timer relay input). I suppose this could all be incorporated on one circuit board but I already have the pulse/pause timer and am just looking to add a second delayed signal. But to add to that I would like the "T2" delay (shown in my previously posted link) to be adjustable from about .1 to 1 second. What I am using it for is a pneumatic ball throwing arm. The pulse/pause timer output will be used to trigger a latch to hold/lock the arm and also to trigger the start of the delay timer at the same time. At the end of the "on" delay of the delay timer it will trigger the pneumatic valve to open, pressurizing the cylinder (which is still held by the latch). At the end of the pulse/pause time (when pulse pause relay is opened), the latch will release allowing the cylinder to extend at a higher rate than would be possible without it being previously pressurized. Now the next part is where I want it adjustable. I need the time the relay on the delay timer is is closed to be adjustable so I can adjust how long the pneumatic valve is opened. Another spec would be that the "on" delay of the delay timer should be about .25 to .5 seconds.

Sorry if this is confusing. I'll post a sketch today to give you a visual.

Thanks again
Swagatam said…
oK, so that means "t1" can be ignored and we can just concentrate on acquiring an adjustable "t2", right?

and the supply voltage will be constantly present, and it's not relevant to the switching procedure, rather we only consider the triggers that may be applied as per the mentioned sequence?



I'll try to design and post it possibly soon.
Ray Strong said…
Yes, exactly, as long as "T1" is at least within .2 to .5 seconds to allow full engagement of the latch before valve is opened.(shortest "T1" time is preferred) Some adjustability for "T2" (via potentiometer I assume) as you stated is required from about .1 to 1 second.

Sorry if I'm repeating myself.

And still plan on posting a sketch for all intensive purposes.

Good day and good night to you from sunny Ontario, Canada
Swagatam said…
OK thanks, got it,

did you try a 555 IC in the monostable mode, that would probably fulfill the t2 stage.

If you are not familiar with it then I'll design and explain it to you.
Ray Strong said…
Sorry, wish I could make it easier on you and say I am familiar but I'm not. I have very little experience with these components let alone their functions. I doubt I'll be using a PCB board and am planning on using a bread board. So yes a design and an explanation would be necessary and greatly appreciated.

Thanks in advance
Swagatam said…
OK I'll try to do it soon, please stay tuned.
Ray Strong said…
Here is a sketch:

https://drive.google.com/open?id=0B8cU3NynJy7keXRUZVVnajhyZnM
Swagatam said…
OK thanks, I have posted the design here:

https://homemade-circuits.com/2015/07/timer-circuit-for-pneumatics.html
Unknown said…
Hi swagatam,
Actullay I m going through a prob.I want to know a option that I can fix on my lift so that I get to know the exact total time of my lift when it is used.as I want to calculate the total units consumed by my lift in 24 hrs with 5 kw motor on it.
If u can sort it out it will be a great help
Thanx
Nitin
Swagatam said…
Hi Nitin, if possible I'll surely post it in my site soon...
Unknown said…
Hello sir what is p or pot in your circuit digram
Ansari Tanveer said…
Hello sir what is p or pot in your circuit digram
Ansari Tanveer said…
I am new to electronin ...please tell me which legs of pot to connect normally we get pot with 3 legs
Swagatam said…
the arrow indicates the center lead while the ends of the resistor correspond to the outer leads of the pot....

https://homemade-circuits.com/2015/09/potentiometers-pots-explained.html
Paul said…
Dear Sir Swagatam,

Sir how can i make this circuit to turn on & off for about 15mins every day..
thank you very much in advance

Paul
Swagatam said…
Dear Paul,

For equal ON/OFF timer period you can use a single 4060 time circuit, that is eliminate the lower 4060 section entirely.. but you'll need to switch it ON manually each day for achieving the automatic 15min OFF/ON cycle
Hi Sir. Is it possible to obtain the three different set of on and off delay, like using switch or knob?
Swagatam said…
Hi Ankur, you can use the following circuit and use the output of the 4017 IC for extracting 3 different time intervals

https://homemade-circuits.com/2012/04/how-to-make-long-duration-timer-circuit.html
Unknown said…
Sir i need pcp diagram of this circuit
Hi Sir. I like to ON/OFF may porch light (Max 100 w) on every day by using timer. Please advice me a circuit.
Thanks.
K.R,Vasudevan
kozgimukkathvasudevan@gmail.com
Swagatam said…
Hi K.R.

you can try the following circuit for your application:

https://homemade-circuits.com/2012/04/how-to-make-long-duration-timer-circuit.html
edwin siy said…
Good day Sir,I build this awesome circuit but the problem started when I switch on the red led and relay instantly activated while the green led light up after 5 sec. and goes off after 5 sec. but the red led and relay still energize. The green led goes on/off 5 sec. interval continuously with both red led and relay energized. The only components I change are the ff. P1 to 2m and R2 of the lower circuit to 10k and pin#9 of the lower circuit to 0.1uf ceramic cap,the rest stay as is. I know by the way I explained,you already pictured what went wrong. Thank you
Swagatam said…
Good day Edwin,

red LED will light up when the circuit is initialized, this is correct, but this should not activate the relay because the BC547 is not supposed to activate when the red LEd is ON...it looks contradicting.

when green LED lights up, the red LEd should shut off....so again the result is incorrect in your circuit.

try increasing the setting of the pot and check the response in a slow motion to read the operations correctly....there could not one but more issues in your circuit which will need to be traced and eliminated...
Swagatam said…
use a higher than 0.1uF for the lower IC...may be a 0.68uF can be tried
edwin siy said…
Thank you Swagatam for your quick response,I'll try to follow what you advised and tell you the result afterward. Thank you
Swagatam said…
you are welcome....
deepan kd said…
can u build a circuit for off timer which turns off in 3 hour's...
Swagatam said…
you can try the second one from the following article:

https://homemade-circuits.com/2013/07/simple-triac-timer-circuit.html
deepan kd said…
which value off load to be connected to that circuit.
can i connect my ac loads like cfl ,mobile charges...
Swagatam said…
it's a relay that's controlling the load, so obliviously you can use any type of load...
power limit will depend on the relay contact rating..
Hi
Can you please help with
How to connect three phase water pump as load in the circuit with a required delay of 24 hours
Swagatam said…
You can simply change the shown SPDT relay with a three contact SPTP or single pole triple throw relay and use the three contacts of the relay with the 3 phase AC input and the motor
deepan kd said…
can u help me to build a 12 v dc to 220 v(50 hz) inverter.....
Sir,
Can this circuit be used to switch on aquarium lights everyday for 8 hrs?
What modifications need to be made..
I am new to electronics
Total load is 54 watts
Swagatam said…
Bibaswan, yes it can be used for controlling fish aquarium lights...
Unknown said…
Sir need timer switch for my 7"angle grinder 2600 watt 15 amp get on and off every 15min cycle so help me
faiyyaz mulla said…
Sir
I hade problem with my 7"angle grinder running all the time so I need timer switch circuit for machine on for 15min then off for 15min that cycle every time so please help me
Swagatam said…
you can use the following circuit:

https://homemade-circuits.com/2013/07/simple-triac-timer-circuit.html

make sure to remove D2, and use a 16amp/500V triac
Jason Anderson said…
Dear Mr Majumdar,

I'm working on a project where I need a relay activated for 2 or 3 minutes once every 24 hours. The circuit needs to be battery operated and low power consumption. Will this circuit on this page work? It is for an art installation. Thank you!!! :)
Swagatam said…
Dear Jason, you can surely use the above shown circuit, just make sure to add more capacitors in parallel with C1 and it should be of the highest quality for enabling accurate repetitions.
Swagatam said…
...do not add for the lower C1, add only only to the upper C1
Javeed Rasheed said…
Can I make the same using ne555 ic ?
Swagatam said…
you can but it won't be as reliable as a 4060 circuit
hi Bro i need a circuit that turns off 4 energy savers after 12 hours
i turn on my energy savers in night at my farmhouse which is almost 20 KMs from my home and to turn off the lights in the morning i had to go there it costs too much fuel and time waste can you design a switch that turns off all lights after 10-12 hours automaticaly
i am not good at all but one of my frnds is professional in playing with circuit diagrams
ali said…
why don't you try a light sensor circuit to operate your energy savers??
bro Swagatam can help you better in this regard.

Ali
Swagatam said…
Hi bro, you can try the second circuit from the following link:

https://homemade-circuits.com/2013/07/simple-triac-timer-circuit.html
Swagatam said…
thanks Ali, yes, a light activated day night switch circuit can also be used for the purpose
Hi Swagatam,

I'm sure you're very busy but if you could find time to help me out I'd be very grateful!

I'm designing a product which will have a DC motor, minimum rpm of 100 and torque of around 30Nm. I need to create a control system which will allow the user to switch it on, off and run it on a timer.

Any help would be appreciated,

Thanks, Morgan
Swagatam said…
Hi Morgan,

You did not specify the exact sequence of the functioning, and whether these are required to be automatic, manual, or semi-automatic, so all these info would be required for the correct figuring out of the design or for providing you with the correct instructions.
Thanks for the swift reply, not entirely sure what you mean by the sequence bit, but il give you an overview of the product. It is an archimedes screw type device which draws compost out the compost bin. The user should be able to turn it on and off, and also set it to run for say 20 seconds at a time before it switches itself off. Does this give you enough information?
Swagatam said…
OK, you can try the following circuit :

https://homemade-circuits.com/2014/11/long-duration-timer-circuit-using.html

remove the push button and replace it with a jumper link.

Now the ON/OFF switch which may be positioned for supplying the voltage to the circuit will serve as the manual ON/OFF control of the system, for the user.

Once switched ON, the relay will almost immediately switch ON the load and the circuit will start counting....depending on the values of the 2M2 resistor and the 1000uF cap the relay will be switched OFF automatically ater the set time, switching OFF the load.....in case the user wants to stop the load in the middle of the count, he may do this anytime by simply switching OFF the ON/OFF switch.....otherwise the circuit will do it automatically after the predetermined time elapses....as set by the resistor at the 2M2 position and/or the capacitor at the 1000uF position.
sai prakash said…
hello sir,
I tried the above circuit for one of my projects. But i'm not getting the required output. could you please tell me what will be the time period if i give the potentiometer value as 10K ohms. And also could you please let me know much details about the circuit(like components used , working ,calculation of the time etc.,) if possible.
Swagatam said…
hello sai,

10k will give delay in seconds, to get higher delay periods, P1 should be at least a 1M pot.

you can use 4060 formula or simply test the time practically using a stopwatch. if suppose 10k gives 20 seconds then 100k will give 200 seconds so you can calculate in that way...

please click on the diagram, and copy the parts as its given.

all resistors are 1/4 watt rated... rest needs no specifications as all are standard parts.
Unknown said…
SIR CAN I USE THIS CIRCUIT LIKE 1 MINUTE ON AND 20 MIN OFF THEN AGAIN 1 MINUTE ON AND 20 MINUTES OFF AND LIKE SO ?
Swagatam said…
yes that's possible with this circuit....
Rameez Koya said…
sir can i run this circuit like, 1 min on then 10 min off in cycles?
does it remember the pattern after power failure ?
realy need help sir. plz reply
Swagatam said…
Hi Rameez, yes that's possible with this circuit, if mains fails the circuit will reset and initiate from the beginning, you can add a small battery to it to add a memory to the circuit...
Rameez Koya said…
what is the minimum and maximum time which i could set ??
ali Ahmady said…
Dear S.M.
Hope you have a successful life.
This is Rajab Ali from Afghanistan
We need a circuit for controlling an aotoclave for sterilization in hospital the machine works as.
1 when starts cycle by pushing start button it should turn on three water heaters(30_60 Amps) after reaching 2.2 bar pressure from water steam then the circuit keep running with on and off two heaters to control pressure between 1.8 to 2.2 bar for 20 more minutes. If there would be any possibility to adjust the time is great.
Many warm regards
Swagatam said…
Thank you Rajab Ali, I'll try to post the design soon in a couple of days....

jagtap ramesh said…
sir,i want use this switch for hydroponics where the motor must start automatically for 5-10 minutes after a interval of 2-3 hours will it work for 24 hours
Swagatam said…
Hi bro, you can try the concept as explained in this article

https://homemade-circuits.com/2013/07/simple-triac-timer-circuit.html

by the way you could also try a day/night automatic switch circuit for the same:

https://homemade-circuits.com/2012/01/how-to-make-light-activated-day-night.html
Swagatam said…
Jagtap, you can try the design which is explained in the above article and optimize the pots accordingly for your requirement.
Sriram Kp said…
Hi, can u tell me how to use the above circuit with 220v AC supply by inserting a triac to switch a 50watts fan? And when powering the circuit, the circuit should work as on-off-on-off..
Swagatam said…
Hi, it can be done as shown in the following article:

https://homemade-circuits.com/2013/07/simple-triac-timer-circuit.html

I have also published your earlier request here:

https://homemade-circuits.com/2016/06/motorized-sun-shade-circuit.html
Black0wl1007 said…
Hello Sir can any of these circuit be modified for time period such as 15sec to 1min? because as i saw only over 5-10mins
Swagatam said…
Hello BlackOwl, you can appropriately reduce the value of C1 to get any desired lower delays from the above timers.
Amit Kesharwani said…
Brother try using photo senser which will automatically on the lights when it is dark and off when there is sun. You will easily find one in amazon.com
Hi swagatam.
Can you help me make a circuit thay turns on for 7min and off for 20min on. Thanks!
Swagatam said…
Hi Donn, you can use the same circuit that's explained in the above article for your mentioned requirement.
Narendra Maurya said…
Dear Sir,
I have made the above circuit and tested using pin 15 and pin 7 of ic. LED blinks at pin 7 of ic2 but not worked at pin 15 of first ic. Relay also operate at start and both LEDs are glowing when power on the circuit. Please let me know your suggestions. I am waiting for your reply.
Swagatam said…
Dear Narendra, move the pot to different positions to verify the blinking at pin#15....

pin#7 will be much faster than pin#15 and vice versa.

both LEDs can never glow together.....when pin#3 is high, green will glow....and when pin#3 is low red will glow.

both ICs will never oscillate (count) together....when upper IC locks (relay ON) lower IC will begin oscillating....and while the upper IC is oscillating (relay OFF) the lower IC will stay disabled

there's something not right in your circuit
Swagatam said…
remove the red LED from its existing position and connect it in series with the upper BC547 base, check if that helps
Ranjit Konkar said…
Hi Swagatam,

I want to build a 230V AC electric immersion heater (for heating water in a bucket) whose duration of heating the user should be able to set. We use this to boil our borewell water to make it suitable for drinking (we feel RO is too wasteful). Depending upon the bucket size, we heat the water for around 15-25 minutes. The problem is that we get busy in doing other things and sometimes forget to turn it off after that period, often to find it evaporated below the danger mark on the heater. So we use the alarms on our mobiles to remind us. We just want that the device be smart enough to turn itself off, that's all. Auto-off versions of the product are not available in the local market.

The user should be able to set the ON duration by pressing up- and down- keys (operating 2 switches) to increase or decrease numbers that show on a dual 7-segment display (for showing 1-99). The numbers that show in the 7-segment display is the time in minutes the heater should stay on for and then switch itself off.

Can you help me with this? Your blog is fascinating as it addresses common needs felt by many people who want to innovate by making their own products. This is mine. Hope you can help.
Swagatam said…
Thank you Ranjit, yes it is possible, and I would recommend to go for a simple 10 LED stage heater controller circuit instead of a digital readout, because here the cut-off might not require an extremely accurate monitoring of the temperature.

a seven segment readout is also possible but will unnecessarily make the design expensive and complex.
Zack said…
Hi Sir,
Thank you so much for the great work you are doing. I was wondering if you can design a simple timing circuit that can be set to turn a load at specific time (for example 6am everyday) the goes off after specific time (ex 15 min) without my interference. I will be very grateful if you can do that circuit for me.
Swagatam said…
Hi Zack, for getting accurate results you may have to use digital clock and integrate its alarm output with any simple 4060 timer circuit. the integration can be done at pin#12 of the IC.
Rameez Koya said…
Tried several time. Circuit not working.
Wen i switch on red led turns on and relay also turns on.then nothing happens . Doesnot turning relay off
Help me please
Swagatam said…
remove both the 1N4148 initially and check again.

check across all the outputs of the 4060 IC by randomly connecting LEd and 1K across each of the pins and ground, make sure at least one of the pins flashes the LED, if none of the pinout flashes the LeD then definitely your circuit has some problems or the IC faulty.

first confirm this....
Unknown said…
Hi
I need a circuit to control the RO plants. The cyclic timer needs to switch on and off the ro plant for 3 hrs. That is First plant on for 3 hrs while second is off for that period. After 3 hrs the first goes off and second starts. The timer should not reset with power failure but continue counting count And keep the running plant on for the balance period after power comes on. Secondly the time setting should be Digitally visual so that it can be set as required between 3 hrs to 4hrs.
Thanks. Will wait for ur reply.
Rgds
Panwar
Swagatam said…
Hi, a digital readout won't be possible, rest can be done....
KSR Discoveries said…
dear sir i want a circuit for making motor on after 10 minutes of failed power came and also this operation also. thank you
KSR Discoveries said…
sir i want to start the motor after 10 min of power came. can i use this circuit.
1 – 200 of 265 Newer Newest

Contact me for Customized Circuits

Name

Email *

Message *


 Follow on G+  Follow on Facebook   Follow on Tweeter  Follow on G+  Follow on G+

Follow Homemade Circuits