HOME Technical Tips  


Updated 22.12.15
Timer based on PIC16F628A LCD Module and a watch crystal. Included C code, and circuit diagram. Time span is 1 second to 99 minutes. Setting the time is by Min pushbutton which advances the minutes display by 2 per second, the Sec pushbutton advances the seconds. To reset the time press Sec and Min simultaneously.
The counting generated by the 32768Hz crystal oscillator.
The CPU frequency is 4MHz from the internal oscillator.
Egg Timer: CYCLE switch open. Pressing start turns on the LED and relay and starts the countdown. When the time reaches zero the buzzer sounds for 20 seconds. After the alarm the displayed time sets to the recent time.

Repeat Timer: CYCLE switch closed. Pressing start turns on the LED and relay and starts the countdown. At end of count down LED and relay toggle and count down repeats.

Older version of software included. You are free to use the circuit diagram and the software with no limitations.

Circuit Description
See also Technical Tips

LCD Module can be either 8 digits or 16X1 or 16X2
The buzzer is driven by a frequency of 2KHz, a piezo buzzer for that frequency will give optimal output.
The crystal is a watch crystal, refer to the data sheet for the recommended capacitors. Most crystals use 22pF-47pF.
The LED can be linked if not needed
Relay can be omitted if not needed.
The contrast pot can also blank out the display so set it if the display is dark or blank.
Pressing the Sec and Min together resets the time.


Comments and questions

Copy the number from the picture It stops net-robots from adding comments.

01.09.2021 - 23:11
Name: Alex
Comment: Hi! Can you make a 4-bit 7-segment with a common anode instead of an LCD indicator?

22.09.2018 - 13:34
Name: rahokos
Comment: Hello my friends how I am sucking in creating pcb can you create one for me please

18.06.2016 - 12:38
Name: Moty
Comment: This software package works with just about any character module based on the Hitachi HD44780 Dot Matrix LCD Controller & Driver. The one I used is UC-16207

18.06.2016 - 09:53
Name: Lenny
Comment: Hi, The lcd module you have use witch model and brand is it. I have just made it on breedboard but missing the lcd.

24.01.2015 - 22:38

09.05.2014 - 19:56
Name: manoj soorya
Comment: Great Circuit Moty. We thank to you. Can you convert this LCD to 7-Segment?

iconFlag Countermoty22.co.uk  2008-2022