Ir Remote Control Switch Report Print
Ir Remote Control Switch Report Print
TV Remote
(B)Introduction
Why are they so popular? The answer is simple –convenience. You can change TV
channels without leaving your chair. Or adjust the volume on your stereo system.
In this project we can control 6 different relays by one remote controller. Here
we can use TV remote control also. Here IR sensor detects the appropriate signal
from remote and gives voltage signal according to it to microcontoller.
Microcontroller gives signal to relay driver IC, so that IC on and off the relay. So
the load connected with that perticular relay, switch on or off. We have one
master key to switch off all the relay.
The Range of the system is upto 10 meters. The system works on Phillips RC5
format. High power loads can also be connected by changing the Relay.
Page |3
switch to switch off all the relays at once. Power button on remote control
is set as master key.
2. IC 7805:
7805 is a voltage regulator integrated circuit. It is a member of 78xx series
of fixed linear voltage regulator ICs. The voltage source in a circuit may
have fluctuations and would not give the fixed voltage output. The voltage
regulator IC maintains the output voltage at a constant value. The xx in
78xx indicates the fixed output voltage it is designed to provide. 7805
provides +5V regulated power supply. Capacitors of suitable values can be
Page |6
3. TSOP1736:
The TSOP16 series are miniaturized receivers for infrared remote control
systems. PIN diode and preamplifier are assembled on lead frame, the
epoxy package is designed as IR filter. The demodulated output signal
can directly bedecoded by a microprocessor. TSOP16 is the standard
IR remote control receiver series, supportingall major transmission codes.
4. ULN2803:
The UTC ULN2803 is high-voltage, high-current Darlington drivers
comprised of eight NPN Darlington pairs. It used as Relay, hammer, lamp
and display (LED) drivers
Page |7
5. Relay:
A relay is an electrically operated switch. Many relays use an electromagnet
to operate a switching mechanism mechanically, but other operating
principles are also used. Relays are used where it is necessary to control a
circuit by a low-power signal or where several circuits must be controlled
by one signal.
6. Crystal:
A crystal oscillator is an electronic oscillator circuit that uses the mechanical
resonance of a vibrating crystal of piezoelectric material to create an
electrical signal with a very precise frequency. This frequency is commonly
used to keep track of time (as in quartz wristwatches), to provide a stable
clock signal for digital integrated circuits, and to stabilize frequencies for
radio transmitters and receivers.
Page |8
7. Transformer:
A transformer is a static device that transfers electrical energy from one
circuit to another through inductively coupled conductors—the
transformer's coils. A varying current in the first or primary winding creates
a varying magnetic flux in the transformer's core and thus a varying
magnetic field through the secondary winding. This varying magnetic field
induces a varying electromotive force (EMF) or "voltage" in the secondary
winding. This effect is called mutual induction.
8. Resistor:
A resistor is a two-terminal passive electronic component which
implements electrical resistance as a circuit element. When a voltage V is
applied across the terminals of a resistor, a current I will flow through the
resistor in direct proportion to that voltage. This constant of proportionality
is called conductance, G. The reciprocal of the conductance is known as the
Page |9
9. Capacitor:
A capacitor is a passive electronic component consisting of a pair of
conductors separated by a dielectric (insulator). When there is a potential
difference (voltage) across the conductors, a static electric field develops
across the dielectric, causing positive charge to collect on one plate and
negative charge on the other plate. Energy is stored in the electrostatic
field. An ideal capacitor is characterized by a single constant value,
capacitance, measured in farads. This is the ratio of the electric charge on
each conductor to the potential difference between them.
10.DIODE:
In electronics, a diode is a two-terminal electronic component that
conducts electric current in only one direction. The term usually refers to a
P a g e | 10
CHAPTER-4 SOFTWARE
(A)Program(in assembly language)
main:
jb IR,$ ;Wait for first bit
mov VAR1,#255 ;3.024mS delay
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#100
djnz VAR1,$
mov c,IR ;Read Flip bit
mov FLIP,c
clr A
mov COUNT,#5 ;Count for address
fadd:
mov VAR1,#255 ;1.728mS delay for each bit
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#4
djnz VAR1,$
mov c,IR
P a g e | 12
rlc a
djnz COUNT,fadd
mov ADDR,A ;Save the address
clr a
mov COUNT,#6 ;Count for Command
fcmd:
mov VAR1,#255 ;1.728mS Delay for each bit
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#4
djnz VAR1,$
mov c,IR
rlc a
djnz COUNT,fcmd
mov TEMP,CMD ;Save the old command
mov CMD,a ;Save the new command
mov a,ADDR ;Cheack for valid address
cjne a,#00,nvalid
mov a,TEMP
cjne a,CMD,valid ;Check for valid command
nvalid:
ljmp main
valid: ;Key press check
clr a
mov c,FLIP
rlc a
mov TEMP,a
clr a
mov c,TOG
rlc a
P a g e | 13
cjne a,TEMP,valid1
sjmp nvalid
valid1:
mov c,FLIP
mov TOG,c
mov a,CMD
clr c
cjne a,#1,skip1 ;Check for SW1
jb SW1,isset1
setb SW1
ljmp main
isset1:
clr SW1
ljmp main
skip1:
cjne a,#2,skip2 ;Check for SW2
jb SW2,isset2
setb SW2
ljmp main
isset2:
clr SW2
ljmp main
skip2:
cjne a,#3,skip3 ;Check for SW3
jb SW3,isset3
setb SW3
ljmp main
isset3:
clr SW3
ljmp main
skip3:
cjne a,#4,skip4 ;Check for SW4
jb SW4,isset4
P a g e | 14
setb SW4
ljmp main
isset4:
clr SW4
ljmp main
skip4:
cjne a,#5,skip5 ;Check for SW5
jb SW5,isset5
setb SW5
ljmp main
isset5:
clr SW5
ljmp main
skip5:
cjne a,#6,skip6 ;Check for SW6
jb SW6,isset6
setb SW6
ljmp main
isset6:
clr SW6
ljmp main
skip6:
cjne a,#7,skip7 ;Check for SW7
jb SW7,isset7
setb SW7
ljmp main
isset7:
clr SW7
ljmp main
skip7:
cjne a,#8,skip8 ;Check for SW8
jb SW8,isset8
setb SW8
P a g e | 15
ljmp main
isset8:
clr SW8
ljmp main
skip8:
cjne a,#0CH,exit ;Check for all switches
mov SWport,#00H
ljmp main
exit:
ljmp main
END ;End of program
CHAPTER-5 TROUBLE-SHOOTING
i) The IR remote control circuit here can be used for any simple
ON-OFF switching function.
ii) This circuit can be operated from a range of 30 foots or 10
meters using any T.V remote.
iii) For simple ON-OFF function such as controlling a lamp or fan
we can use this circuit.
iv) Can be used by a bed-ridden or handi-caped person to control
the fans and lights.
(B)FURTHER ENHANCEMENTS
3. AT89C2051 1
4. ULN2803 1
5. IC 7805 1
6. IC TSOP1736 1
7. Crystal 1
8. Capacitor 33pF 2
9. Capacitor 10µF 1
11. 1N4007 4
12 TV Remote 1
P a g e | 18
CHAPTER-8 BIBLIOGRAPHY
2. www.8051projects.net
3. www.wikipedia.org
4. www.atmel.com
5. www.datasheetcatalog.org
6. www.google.com
P a g e | 19
P a g e | 20
(C)TSOP1736:
P a g e | 29
P a g e | 30
P a g e | 31
(D) ULN2803:
P a g e | 32
P a g e | 33
P a g e | 34
(E) LM7805:
P a g e | 35
P a g e | 36