Академический Документы
Профессиональный Документы
Культура Документы
REMOTE-CONTROLLED
REAL-TIME CLOCK WITH SUNIL K
UMAR
DEVICE CONTROLLER
D.S. OBEROI AND HARINDER 32 devices can be interro-
DHINGRA gated to respond individu-
ally to the same type of cod-
T
his project makes use of a TV ing without any disturbance.
remote control. Using RC5 cod- Bits C5 down to C0 are
ing, a real-time clock chip is set control/command bits.
to control five different alarm settings. Therefore a maximum of 64
These settings can also be used to switch commands can be equipped
on an external device. Up to eight de- in an RC5 type remote. Deci-
vices can be controlled with this project. mal equivalent of a few com-
The circuit is based on ATMEL mand codes used in this
ATmega16 microcontroller and project are listed at Table II.
Maxim’s DS1307 real-time clock chip. Fig. 1: Block diagram of remote-controlled real-time clock Pressing any command/
An LCD module allows for user inter- with device controller control button on the remote
face. generates code signal,
TABLE I which is received by
Circuit description IR receiver-demodu-
Fig. 1 shows the block diagram of the
RC5 Coding Format lator (TSOP1738). The
remote-controlled real-time clock with S S T A4 A3 A2 A1 A0 C5 C4 C3 C2 C1 C0 output of the IR de-
device controller. It comprises six sec-
tions, namely, IR detector remote con-
trol sensing and decoding unit, real- TABLE II
time clock, LCD interface, device Remote Command Codes
switching unit, microcontroller and Remote key Numeric value Function
power supply unit (C5-C0)
The microcontroller unit integrates 0 0 Press this key to start the setting of the RTC.
all the sub-systems and system soft- Volume + 16 Increases the value (of a given field). Used in ‘Alarm Delete Mode’
ware operates the system. Fig. 2 shows to change the selection to Yes or No
the circuit of the device controller. Volume – 17 Decreases the value (of a given field). Used in ‘Alarm Delete Mode’
Remote control section. This circuit to change the selection to Yes or No
makes use of a Philips TV remote for Mute 13 Shifts to next field (in RTC setting mode)
device switching and RTC parameter TV/AV 56 Starts the RTC functioning. This remote control key acts as ‘Enter’ key
setting. It uses RC5 coding format, (confirmation key). Used in alarm mode, to confirm the setting
which is also known as ‘biphase cod- Power 12 Returns to Display Mode (from alarm mode).This key lets the user to
ing.’ In RC5-coded signal, each bit has return to the previous menu; when used in any of the Alarm Menu,
acts as ‘Escape’ key and cancels the action in Alarm mode
a uniform duration.
Table I shows how all the com- Timer/sleep 38 Enters Alarm menu for setting/deletion/viewing alarm data.
mands of RC5 remote control are en- Channel + 32 Scrolls forward alarm setting ‘See’ of Alarm menu
coded. The first two bits designated Channel – 33 Scrolls backward alarm setting ‘See’ of Alarm menu
‘S’ are ‘start’ bits, which are used to
adjust and synchronise the receiver. is used to identify whether the button modulator is normally high, which
These bits are used to calculate and is really pressed or whether an obstacle changes to low when any of the but-
analyse the bit length of other bits. came in between the path of the IR tons on the remote is pressed. It is fed
The third bit is a ‘toggle’ bit (T), remote and IR receiver. to PD3 through the I/O interface line
which toggles every time a button is Bits A4 down to A0 are used to of the microcontroller. The
pressed at the remote control. This bit identify the device. So a maximum of microcontroller decodes the incoming