Do-it-yourself
122 July 2017 | ElEctronics For you http://www.EFymag.comCountdown Timer
Fayaz HassanS.C.
DwiveDiS
ometimes there is a need to
switch on or off electrical
appliances or gadgets after a
predetermined time. The circuit pre-sented here can switch on/off any
electrical appliance (load) through a
relay switch after the specified time
set in minutes or seconds.The timer can be easily set with
four switches (S3 through S6) to
select minutes/seconds, hundredths,
tenths and units. Two more switchesare used to start (S2) and stop (S1)
the timer.Circuit and working
Circuit diagram of the countdown
timer is shown in Fig. 1. ATmega8A
(IC1) from Atmel is at the heart of
the circuit. Associated components
include a 16×2 liquid crystal dis-
play (LCD1), two BC547 transistors
(T1 and T2), a piezobuzzer (PZ1), a
12V single-changeover (1C/O) relay
and a few other components.
The system works in three
modes: started, stopped and setting.
Started means the countdown is
under process and settings are not
allowed. Stopped means the count-
down has stopped and the user can
change settings to start the count-
down timer afresh. In setting mode,GND4RS
5R/W
6EN
7D0
8D1
9D2
10D3
11D4
12D5
13D6
14D71 Vss
3 VO
2 VDD A/VEE 15LCD1 K^16
16x2 LCDR9
1KS1
STOPS4
HUNDS
S5
TENS
S6
UNITSS2
START
S3
MIN/SECR3
10KR1
10KR2
10K R410KR5
10KR6
10KS7
R8 10KR7RESET
1KT2
BC547PZ1PZ1 = PIEZO BUZZERR13
4.7KR12
3.3KCON2
5VCON3
FOR SJ1CON4
FORR14
1.5K
LED1
BLINKERT1
BC547 R11
4.7KR10
3.3KN/ON/C
RL1RL1 = 12V, 1C/O RELAYCON1
12VCON6
FOR LOADD1
1N4007GND
5VXTAL1
3.6864MHzC1
0.1uC2
22pC3
22pC5
0.1uC4
0.1uMOSIMISO
230V ACSCK
RSTISP PORTR15
1K(^2) PD0/RXD
(^3) PD1/TXD
(^4) PD2
(^6) PD4
(^8) GND
(^10) PB7/XTAL2
(^1) PC6/RESET
(^5) PD3
(^7) Vcc
(^11) PD5
(^9) PB6/XTAL1
(^12) PD6
(^13) PD7
(^14) PB0
PC4/SDA^27
PC3^26
PC2^25
PC0^23
AVREF^21
PB5/SCK^19
PC5/SCL^28
PC1^24
AGND^22
PB4/MISO^18
AVcc^20
PB3/MOSI^17
PB2^16
PB1^15
IC1
ATMEGA8A
CON5
FOR
FOR
SJ1 = SHORTING JUMPER
Fig. 1: Circuit diagram of countdown timer
Fig. 2: Screenshot of the fuse bits settings; ‘1’ means ‘unprogrammed’ and ‘0’ means ‘programmed’