Clock & Timer Circuit DiagramsFeature Slider

2/4/6-hour Timer Schematic Circuit Diagram

Here’s an easy-to-build circuit to drive a solid-state relay for a period that can be selected as two, four, or six hours. This device forms part of a project by the author to control a heating system remotely by telephone (for a holiday home). The aim of the circuit is to avoid the risk of the heating’s running for more than a certain time if, in the event of a problem, there is no one to stop it or put it into a frost protection position.

2-4-6-hour Timer Schematic Circuit Diagram

A pulse of one second or longer on pin 6 of the microcontroller sets off the timer and the output is energized. Once the chosen time has elapsed, the microcontroller deactivates the output.

The duration is selected via the DIP switches connected to ports GP2 and GP3:

2,4,6-hour Timer Schematic

When choosing a relay to use with this circuit, remember the maximum current the microcontroller output can source is 25 mA. Preferably choose a solid-state relay — you’ll find several examples in this issue.

The software has been written in E-Blocks Flowcode and the project is available from [1]. For those who don’t have Flowcode, the project also includes a file in C and in assembler language, as well as a HEX file. The preprogrammed microcontroller (PIC12F675 in 8-pin DIL package) is available from the Elektor online store as part number 110219-41 [1].

Internet Link


Your pulse is how you can feel your heart rate. Every time your heart beats, it squeezes and propels blood through the network of arteries in your body. Your pulse is the pressure in your arteries going up briefly as your heart pushes out more blood to keep circulation going.
PIC12F675 is an 8-Bit CMOS Microcontroller made by MICROCHIP TECHNOLOGY and is developed on high-performance RISC architecture. This microcontroller is very popular among hobbyists and engineers due to its cost and small size.

Product Feature

    • 128 bytes of EEPROM data memory
    • Programmable pull-up resistors
    • 4 oscillator selections including a 4 MHz RC oscillator with programmable calibration and Power-On Reset

Related Articles

Leave a Reply

Your email address will not be published.

Back to top button