Professional Documents
Culture Documents
LM LM
LM LM
D.K. KAUSHIK
T
his simple and flexible timer is more
accurate than the real-time clock of
the computer used for the purpose.
It can be used in laboratories, dark rooms,
kitchens, and for competitions in educa-
tional institutes. The program written in
Q-Basic is self-explanatory.
Generally, a universal timer provides
the facility for switching on an electrical/
electronic device after elapse of a certain
time period, say, 5 minutes. The software
does the same job here.
When the program is executed, it dis-
plays 0:0:0 on the monitor, indicating 0 hour, speak is filled the way it is discussed above. countdown of the time in the display box
0 minute, and 0 second. The display time The program may be changed as indicated starts. The device will remain on until the
0:0:0 is increased by 10 seconds each time by REM statements and the single quote (‘) display box shows 0:0:0 and then it will
function key F1 of the computer keyboard is in the beginning of a program line may be get switched off. The figure shows the re-
depressed. So by depressing function key accordingly removed in the program. lay interface circuit connected between D0
F1 the required time is set for which the Now, after setting the time in the man- line (pin 2) and ground line (pin 25) of
electrical or electronic device is to be ner as discussed above, function key F2 of 378H output port of LPT1 printer port of
switched on. However, in debate competi- the computer keyboard is depressed to the computer.
tions the time allowed for a candidate to switch on any device. Simultaneously, the This circuit costs around Rs 85.