• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Hire Me | Contact | Calculators-online
You are here: Home / Timer and Delay Relay / Simple Programmable Timer Circuit

Simple Programmable Timer Circuit

Last Updated on January 2, 2024 by Swagatam 481 Comments

This programmable timer can be used for switching a load ON and OFF with two sets of time delays, which are programmable from 2 seconds to 24 hours independently.

Table of Contents
  • Using Versatile IC 4060
    • How the Circuit Functions
    • Circuit Diagram of a Versatile Programmable Timer
    • PCB Layout
    • Using a Start Push-Button
    • Calculating RC Timing Components
    • Customizing the Above Concept
  • Technical Specifications
  • The Design
    • Circuit Diagram
    • How to Adjust and Set Up
    • Cascaded Programmable Timer Circuit with Multiple Outputs

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 I will elucidate 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.


You may also want to make this Arduino based programmable timer circuit


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

PCB Layout

PCB layout for programmable timer circuit

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.

Calculating RC Timing Components

It can be done through a formula, but the manual way is much simpler and accurate. It can be done as I have explained below:

  1. Connect any arbitrarily selected resistor above 100K in place of P1/R2 in the upper circuit.
  2. Switch ON and carefully note down after how much time pin#3 of upper IC 4060 becomes HIGH. This will be your "sample delay".
  3. Once this is noted, the other desired time delays could be calculated using the following simple cross multiplication:

Sample Delay / Desired Delay = Selected Resistor / Unknown Resistor

For example if you find the pin3 becoming high after 300 seconds, this becomes your sample delay value.

Now, we have the sample delay and the resistor value responsible for this delay.

Therefore if we assume the desired delay to be 1 hour or 3600 seconds, we can calculate it by substituting the values in the previous equation:

Sample Delay / Desired Delay = Selected Resistor / Unknown Resistor

300 / 3600 = 100 / x (unknown resistor)

300x = 360000

x = 1200 k or 1.2 Meg

This shows that 1.2 Meg in place of the P1/R2 will produce the required delay of 1 hour at pin3 of a IC 4060

Please note that the above calculation is only an example and the values do not indicate the actual results.

Customizing the Above Concept

This circuit of a flexible programmable timer circuit I have 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 aquarium 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

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.

Cascaded Programmable Timer Circuit with Multiple Outputs

If you are looking for a programmable timer circuit having multiple outputs for controlling multiple loads and with individual time settings, then the following circuit will do the job for you.

cascaded programmable timer for operating multiple loads

Here, a 4-step programmable timer circuit is shown, but you can add more number of 4060 stages to increase the number of cascaded outputs, as desired.

The time delay output of each 4060 timer stage can be individually adjusted and set using the relevant P1 preset.

You'll also like:

  • parts listSimple Digital Timer Circuit with 2 Digit Display
  • solargardenlightwithtimercircuitProgrammable Solar Porch Light Circuit
  • 3E99F1RTluWq JYTh5MhL6Z9C4F2WW0Wo5R33bb4LR2ZFX4I4HxTTaF52YtDo216 p11RLF5kWnz0Og3Dw1246 h691Simple Pneumatic Timer Circuit
  • timer2BcircuitBathroom Lamp Timer Circuit with Buzzer

Filed Under: Timer and Delay Relay Tagged With: Programmable, Simple, Timer

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!



Previous Post: « Earthquake Sensor Circuit [Seismic Sensor]
Next Post: DIY 100 Watt MOSFET Amplifier Circuit with PCB »

Reader Interactions

Questions & Answers

Total Posts: 481
Newest Oldest
shirland
August 12, 2013 • 13 years ago #14297

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.

Reply
karthik bv
October 7, 2013 • 13 years ago #15948

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

Reply
SwagatamAdmin
October 8, 2013 • 13 years ago #15962

I'll try to do it, let's see….

Reply
ABDUL BASIT
October 12, 2013 • 13 years ago #16166

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 …..

Reply
SwagatamAdmin
October 13, 2013 • 13 years ago #16190

digital clock may refer to a device for checking time, or a frequency generator circuit….which one u are referring to?

Reply
ABDUL BASIT
October 13, 2013 • 13 years ago #16200

sir it is used for the time.

Reply
SwagatamAdmin
October 14, 2013 • 13 years ago #16220

sorry i do not have a time clock circuit using gates only.

Reply
ABDUL BASIT
October 14, 2013 • 13 years ago #16240

SIR THIS INCLUDE COUNTER AND GATES. THE LIMITATION IS ABOUT IC PACKAGE. CASCADING OF IC'S IS ALLOWED

Reply
SwagatamAdmin
October 15, 2013 • 13 years ago #16270

I don't have any such circuit with me, I will try to find it, if i get will inform you.

Reply
salman khan
October 18, 2013 • 13 years ago #16456

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

Reply
SwagatamAdmin
October 20, 2013 • 13 years ago #16485

yes you can, the above circuit is exactly for this kind of applications….

Reply
SwagatamAdmin
October 31, 2013 • 13 years ago #16843

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

Reply
SwagatamAdmin
November 1, 2013 • 13 years ago #16879

The above circuit is not for controlling blinking or flashing rate of an LED.

It's a programmable timer circuit.

Reply
Chase Konop
January 29, 2014 • 12 years ago #19433

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

Reply
SwagatamAdmin
January 30, 2014 • 12 years ago #19452

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.

Reply
Ilman Gumilar
November 7, 2013 • 13 years ago #17045

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

Reply
SwagatamAdmin
November 8, 2013 • 13 years ago #17073

Dear Ilman,

I'll try to design the circuit and post it soon.

Reply
SwagatamAdmin
November 12, 2013 • 13 years ago #17177

I have published it here:

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

Reply
Charlie C
November 7, 2013 • 13 years ago #17050

Hi Swagatam,
Is it possible to add pwm to control 12V, 3A motor in this circuit? Thanks

Reply
SwagatamAdmin
November 8, 2013 • 13 years ago #17078

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.

Reply
Sean Kilcoyne
November 14, 2013 • 13 years ago #17243

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.

Reply
SwagatamAdmin
November 15, 2013 • 13 years ago #17251

Hi Sean,

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

Reply
Jason Crossfield
November 21, 2013 • 13 years ago #17390

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.

Reply
SwagatamAdmin
November 21, 2013 • 13 years ago #17399

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.

Reply
Jason Crossfield
November 22, 2013 • 13 years ago #17426

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.

Reply
Jason Crossfield
November 22, 2013 • 13 years ago #17427

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)

Reply
SwagatamAdmin
November 23, 2013 • 13 years ago #17442

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

Reply
Jason Crossfield
November 26, 2013 • 13 years ago #17521

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.

Reply
SwagatamAdmin
November 26, 2013 • 13 years ago #17536

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.

Reply
Jason Crossfield
November 27, 2013 • 13 years ago #17561

Your the man! Works a treat, thanks for all your help.

Reply
SwagatamAdmin
November 27, 2013 • 13 years ago #17575

You are most welcome!

Reply
Sridhar
January 24, 2014 • 12 years ago #19302

hi sir wats the ON and OFF time of the above circuit

Reply
SwagatamAdmin
January 26, 2014 • 12 years ago #19338

It will need to be checked through practical testing

Reply
Sridhar
January 26, 2014 • 12 years ago #19341

k thnks for the reply

Reply
Sridhar
January 26, 2014 • 12 years ago #19344

hi sir i would like to build a circuit which should be on for 3 to 4 hours and gets off

Reply
SwagatamAdmin
January 27, 2014 • 12 years ago #19369

you can try the following design:

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

Reply
Ashok Dhenge
February 17, 2014 • 12 years ago #19913

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.

Reply
SwagatamAdmin
February 18, 2014 • 12 years ago #19924

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

Reply
Ashok Dhenge
February 23, 2014 • 12 years ago #20099

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.

Reply
SwagatamAdmin
February 24, 2014 • 12 years ago #20106

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.

Reply
Ashok Dhenge
February 25, 2014 • 12 years ago #20129

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.

Reply
SwagatamAdmin
February 25, 2014 • 12 years ago #20142

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

Reply
MUJAHID SHAH
February 24, 2014 • 12 years ago #20115

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?

Reply
SwagatamAdmin
February 25, 2014 • 12 years ago #20126

Thanks Mujahid, you are right!

Reply
MUJAHID SHAH
February 25, 2014 • 12 years ago #20140

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

Reply
SwagatamAdmin
February 26, 2014 • 12 years ago #20160

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.

Reply
MUJAHID SHAH
February 27, 2014 • 12 years ago #20176

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

Reply
SwagatamAdmin
February 28, 2014 • 12 years ago #20203

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.

Reply
MUJAHID SHAH
February 28, 2014 • 12 years ago #20217

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.

Reply
SwagatamAdmin
March 1, 2014 • 12 years ago #20232

Mujahid, pls refer to the following post:

http://www.brighthubengineering.com/diy-electronics-devices/95093-moving-led-signs-using-ic-74ls164-pin-outs-explained/

Reply
View Older Comments

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar



My Youtube Channel

Circuit Simulator

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (134)
  • Automation Projects (18)
  • Automobile Electronics (103)
  • Battery Charger Circuits (88)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • Energy from Magnets and Earth (40)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (100)
  • Lamps and Lights (162)
  • Meters and Testers (72)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Security and Alarm (65)
  • Sensors and Detectors (107)
  • SMPS and Converters (45)
  • Solar Controller Circuits (61)
  • Temperature Controllers (43)
  • Timer and Delay Relay (50)
  • Voltage Control and Protection (44)
  • Water Controller (37)
  • Wireless Circuits (31)



Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |



Recent Comments

  • Swagatam on DPDT Relay Working, Pinouts, Testing Explained
  • Swagatam on DPDT Relay Working, Pinouts, Testing Explained
  • Swagatam on Inverter LC Filter Calculator
  • Swagatam on Notch Filter Circuits with Design Details
  • Nare Mashiachidi on DPDT Relay Working, Pinouts, Testing Explained

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin

© 2026 · Swagatam Innovations