"Remote Control For Home Appliances": A Project Report On
"Remote Control For Home Appliances": A Project Report On
By
By
By
By
Khushboo Singh
(0416131028)
(Electronics & communication)
ACKNOWLEDGEMENT
Archana Sharma
(0416131011)
(Electronics & communication)
ACKNOWLEDGEMENT
Nidhi Sharma
(0416131037)
(Electronics & communication)
ACKNOWLEDGEMENT
Neetika Mehta
(0416131028)
(Electronics & communication)
CERTIFICATE
2. BLOCK DIAGRAM
3. COMPONENTS DESCRIPTION
LED
Resistor
Capacitor
Voltage Regulator
Crystal oscillator
Serial Communication via RS232 port
Hex Inverter
Switch
Microcontroller
AT89C51
AT89C2051
4. MAIN CIRCUIT
Circuit Description
5. SOFTWARE
C Programming
Hex Coding
6. CONCLUSION
7. FUTURE PROSPECTS
8. REFERENCES
CERTIFICATE
Appliance manufacturers have now for the first time, a direct link to
the end user, allowing them to provide remote service and fault
diagnostics and additional new services, taking advantage of their
enormous customer base.
3
There are many sources of Infra-Red light. The sun is the
brightest source of all. Others are: light bulbs, candles, central
heating system, and even our body radiates Infra-Red light.
In fact everything that radiates heat, does radiate Infra-Red
light.
4
5
IR TX WITH IR RX WITH LED1
MICRO MICRO LED2
CONTROLL CONTROLLER
POWER
Key Pad SUPPLY
HEX CODING
For Transmitter:
:0E044F003838383838383838383838383800C7
:1004EB00D297D296D295D294759850758920758DE6
:1004FB00F4D28ED2992097087BFF7A03795F801410
:10050B002096087BFF7A03799F800920950B7BFF50
:10051B007A0379DD12006580DC2094D97BFF7A04A5
:07052B00791D12006580CE6E
:030000000205599D
:0C055900787FE4F6D8FD7581210204EBE8
:10000300E518240CF8E60518227809300702780C65
:10001300E475F0011204B502045D2000EB7F2ED2DB
:10002300008018EF540F2490D43440D4FF30040BD5
:10003300EF24BFB41A0050032461FFE519600215D1
:1000430019051CE51C7002051B30070D7809E475C2
:10005300F0011204B5EF0204A30205327403D207C0
:100063008003E4C207F5188B098A0A890BE4F519A2
:10007300F51BF51CE51960077F2012003E80F5751E
:100083001AFFC201C200C202C203C205C206C208ED
:1000930012000CFF700D3007057F0012004FAF1CDC
:1000A300AE1B22B4255FC2D5C20412000CFF24D0BC
:1000B300B40A00501A75F00A781930D50508B6FF4E
:1000C3000106C6A426F620D5047002D20380D924E3
:1000D300CFB41A00EF5004C2E5D20402024FD2019A
:1000E30080C6D20080C0D20280BCD2D580BAD205ED
:1000F30080B47F2012003E2002077401B51900402E
:10010300F1120003FF12003E020077D208D20680EC
:1001130095120003FB120003FA120003F94A4B7015
:100123000679207A037BFF20022EE519602A7E00E0
:100133008E8275830012047660060EEE651A70F0E7
:10014300C2D5EBC0E0EAC0E0E9C0E0EE120296D00F
:10015300E0F9D0E0FAD0E0FB12045DFF60AAEBC047
50
:10016300E0EAC0E0E9C0E012003ED0E02401F9D0A
:10017300E03400FAD0E0FBE51A0460DCD51AD9803C
:10018300877BFF7A027992D202809C791080027970
:1001930008C206C2088008D2D5790A8004790AC247
:1001A300D5E51A047002F51AE4FAFDFEFF12000306
:1001B300FC7B08200113120003FD7B1030000A12A0
:1001C3000003FE120003FF7B20EC3382D592D5504F
:1001D30013C3E43000069FFFE49EFEE42001039D69
:1001E300FDE49CFCE4CBF8C201EC700CCFCECDCC8B
:1001F300E824F8F870F38017C3EF33FFEE33FEED16
:1002030033FDEC33FCEB33FB994002FB0FD8E9EBF6
:10021300300105F8D0E0C448B201C0E00AEC4D4E0D
:100223004F78207B0070C2EAB51A0040BCC0E012D0
:100233000298D0F0D0E0200104C4C0E0C4B201C0F1
:10024300F0120027D0F0D5F0EB0200771204C501BD
:100253001453018E5800E54C00E14201924F019A7C
:0F02630044019A4900FA4301A0550184460184E1
:100272004501844703405000E92D00ED2E01102B6B
:1002820000F123010E20032E2A00A94800000108D4
:100292003F3F3F00790AA2D5200314300509B91067
:1002A200020404B9080104A2D52006025001042068
:1002B20002689202B519005034C0E07F2030031961
:1002C2007F30A20272067205500F1202EFC202C202
:1002D20006C205C2087F30800F300503E9C0E01274
:1002E200003E300503D0E0F9D0E0B519CC30051757
:1002F2007F30B9100C12003E7F583004077F78809F
:1003020003B9080312003E3002057F2D02003E7F32
:10031200202008F87F2B2006F322920280CF286E3D
:10032200756C6C29002D50434958D20112000330DC
:1003320001F8C201781930D50108F60200A91200AD
:10034200032403B405004001E49003279312002F15
:0D035200743A12002FD20375190402018EB7
:10045D00BB010689828A83E0225002E722BBFE029D
51
:09046D00E32289828A83E49322D0
:10047600BB010CE58229F582E5833AF583E022503B
:1004860006E92582F8E622BBFE06E92582F8E22285
:0D049600E58229F582E5833AF583E493229F
:1004A300BB010689828A83F0225002F722BBFE0138
:0204B300F32232
:1004B500FAE6FB0808E6F925F0F618E6CA3AF62248
:1004C500D083D082F8E4937012740193700DA3A3C6
:1004D50093F8740193F5828883E4737402936860DA
:0604E500EFA3A3A380DFDA
:10053200EFB40A07740D12053D740A309811A89998
:10054200B8130CC2983098FDA899C298B811F63029
:0705520099FDC299F5992201
:00000001FF
52
For Receiver:
:10002500759850758920758DF4D28ED2A0D2A712FD
:04003500000380FB49
:100003003098FDAF99C298EF24CA600D14600D14A7
:10001300600D2403700BC2A722D2A722C2A022D252
:01002300A03C
:0100240022B9
:03000000020039C2
:0C003900787FE4F6D8FD758109020025EF
:00000001FF
53
7
Function
LEDs emit light when an electric current passes through them.
Connecting and soldering
LEDs must be connected the correct way round, the diagram may be
labeled a or + for anode and k or - for cathode (yes, it really is k, not c, for
cathode!). The cathode is the short lead and there may be a slight flat
on the body of round LEDs. If you can see inside the LED the cathode
is the larger electrode (but this is not an official identification method).
LEDs can be damaged by heat when soldering, but the risk is small unless
you are very slow. No special precautions are needed for soldering most
LEDs.
Testing an LED
Never connect an LED directly to a battery or power supply.
It will be destroyed almost instantly because too much current will pass
through and burn it out.
LEDs must have a resistor in series to limit the current to a safe value, for
quick testing purposes a 1k resistor is suitable for most LEDs if your
supply voltage is 12V or less. Remember to connect the LED the correct
way round.
9
Working out the LED resistor formula using Ohm's law
Ohm's law says that the resistance of the resistor, R = V/I, where:
V = voltage across the resistor (= VS - VL in this case)
I = the current through the resistor
So R = (VS - VL) / I
Colors of LEDs
LEDs are available in red, orange, amber, yellow,
green, blue and white. Blue and white LEDs are
much more expensive than the other colors.
The color of an LED is determined by the semiconductor material, not by the
coloring of the 'package' (the plastic body). LEDs of all colors are available in
uncolored packages which may be diffused (milky) or clear (often described
as 'water clear'). The colored packages are also available as diffused (the
standard type) or transparent.
Connecting LEDs in series
If you wish to have several LEDs on at the same time it may be possible to
connect them in series. This prolongs battery life by lighting several LEDs
with the same current as just one LED.
All the LEDs connected in series pass the same current so it is best if they
are all the same type. The power supply must have sufficient voltage to
provide about 2V for each LED (4V for blue and white) plus at least another
2V for the resistor. To work out a value for the resistor you must add up all
the LED voltages and use this for VL.
10
12
RESISTOR
A resistor is a two-terminal electrical or electronic component that opposes
an electric current by producing a voltage drop between its terminals in
accordance with Ohm's law
Ohm's Law shows the relationship between the voltage (V), current (I) and resistance (R). It can
be written in three ways:
I= R=
V V
The electrical resistance is equal to the voltage drop across the resistor
divided by the current through the resistor while the temperature remains the
same. Resistors are used as part of electrical networks and electronic circuits.
Function
Resistors restrict the flow of electric current, for example a resistor is placed in
series with a light-emitting diode (LED) to limit the current passing through the
LED.
Connecting and soldering
Resistors may be connected either way round. They are not damaged by heat
when soldering.
13
Resistance
Resistance is the property of a component which restricts the flow of
electric current. Energy is used up as the voltage across the component
drives the current t hrough it and this energy appears as heat in the
component.
14
15
For more than two resistors connected in parallel a more difficult equation
must be used. This adds up the reciprocal ("one over") of each resistance to
give the reciprocal of the combined resistance, R:
1 1 1 1
= + + + ...
R R1 R2 R3
The simpler equation for two resistors in parallel is much easier to use!
Note that the combined resistance in parallel will always be less than any
of the individual resistances.
17
CAPACITOR
A capacitor is an electrical/electronic device that can store energy in the
electric field between a pair of conductors (called "plates"). The process of
storing energy in the capacitor is known as "charging", and involves electric
charges of equal magnitude, but opposite polarity, building up on each plate.
Capacitors are often used in electric and eletronic circuits as energy-storage
devices. They can also be used to differentiate between high-frequency and
low-frequency signals. This property makes them useful in electronic filters.
Capacitors are occasionally referred to as condensers.
Capacitance
The capacitor's capacitance (C) is a measure of the amount of charge (Q)
stored on each plate for a given potential difference or voltage (V) which
appears between the plates:
C = Q/V
Where :
C = Capacitance in farads(F)
Q = Charge in coulombs(C)
V = Voltage in volts(V)
In SI units, a capacitor has a capacitance of one farad when one
coulomb of charge is stored due to one volt applied potential difference
across the plates. Since the farad is a very large unit, values of
capacitors are usually expressed in microfarads (µF), nanofarads (nF), or
picofarads (pF).
18
The capacitance is proportional to the surface area of the conducting plate
and inversely proportional to the distance between the plates. It is also
proportional to the permittivity of the dielectric (that is, non-conducting)
substance that separates the plates.
The capacitance of a parallel-plate capacitor is given by:
C ≈ ЄA/d ; A>> d2
where ε is the permittivity of the dielectric (see Dielectric constant), A is the
area of the plates and d is the spacing between them.
In the diagram, the rotated molecules create an opposing electric field that
partially cancels the field created by the plates, a process called dielectric
polarization.
19
Stored energy
As opposite charges accumulate on the plates of a capacitor due to the
separation of charge, a voltage develops across the capacitor due to the
electric field of these charges. Ever-increasing work must be done against
this ever-increasing electric field as more charge is separated. The
energy (measured in joules, in SI) stored in a capacitor is equal to the
amount of work required to establish the voltage across the capacitor, and
therefore the electric field. The energy stored is given by:
EStored =1/2CV2 = 1/2 VQ
where V is the voltage across the capacitor.
20
Figure shows the Capacitors in Series and Parallel
There are many types of capacitor but they can be split into two groups,
polarised and unpolarised. Each group has its own circuit symbol.
Polarised capacitors (large values, 1µF +)
Electrolytic Capacitors
Electrolytic capacitors are polarised and they must be connected the
correct way round, at least one of their leads will be marked + or -.
They are not damaged by heat when soldering.
21
There are two designs of electrolytic capacitors; axial where the leads are
attached to each end (220µF in picture) and radial where both leads are at
the same end (10µF in picture). Radial capacitors tend to be a little smaller
and they stand upright on the circuit board.
It is easy to find the value of electrolytic capacitors because they are clearly
printed with their capacitance and voltage rating. The voltage rating can be
quite low (6V for example) and it should always be checked when selecting
an electrolytic capacitor. It the project parts list does not specify a voltage,
choose a capacitor with a rating which is greater than the project's power
supply voltage. 25V is a sensible minimum for most battery circuits.
Small value capacitors are unpolarised and may be connected either way
round. They are not damaged by heat when soldering, except for one
unusual type (polystyrene). They have high voltage ratings of at least 50V,
usually 250V or so. It can be difficult to find the values of these small
capacitors because there are many types of them and several different
labeling systems!
Many small value capacitors have their value printed but without a
multiplier, so you need to use experience to work out what the multiplier
should be!
For example 0.1 means 0.1µF = 100nF.
Sometimes the multiplier is used in place of the decimal point:
For example: 4n7 means 4.7nF.
22
Red 2
Orange 3
Yellow 4
Green 5
Blue 6
Violet 7
Grey 8
23
White 9
Uses of Capacitors
Capacitors are used for several purposes:
Timing - for example with a 555 timer IC controlling the
charging and discharging.
Smoothing - for example in a power supply.
Coupling - for example between stages of an audio system
and to connect a loudspeaker.
Filtering - for example in the tone control of an audio system.
Tuning - for example in a radio system.
Storing energy - for example in a camera flash circuit.
Power conditioning
Signal processing
Power factor correction
24
1 1 .0 5 9 2 M H Z
U7
31 39
VCC E A /V P P 0 .0 38
19 P 0 .1 37
XL 1 X1 P 0 .2 36
P 0 .3 35
18 P 0 .4 34
1 0 M /6 3 V X2 P 0 .5 33
P 0 .6 32
RST 9 P 0 .7 L2
R E S ET 21 YE LLOW
P 2 .0 VCC
R 34 22
10 k 12 P 2 .1 23
13 IN T 0 P 2 .2 24
14 IN T 1 P 2 .3 25
15 T0 P 2 .4 26
T1 P 2 .5 27 L2
1 P 2 .6 28 RE D
2 P 1 .0 P 2 .7
3 P 1 .1 17
4 P 1 .2 RD 16
5 P 1 .3 WR 29
6 P 1 .4 PSEN 30
7 P 1 .5 A L E /P 11
8 P 1 .6 T XD 10
P 1 .7 R XD
8 9 c5 1
VCC 47
U9A U8A
10 K
7
74 HC14 74 HC14
1 2 1 2
L2 L2
14
14
RED RED
49
CIRCUIT DESCRIPTION
50
48
VOLTAGE REGULATOR
The power supply which provides a constant output voltage
irrespective of variations in the input voltage or load current is
called a regulated power supply is called as voltage regulator.
The function of a voltage regulator is to provide a stable dc voltage
for powering other electronic circuits. A voltage regulator should be
capable of providing substantial output current.
Thus in short, a voltage regulato is an electrical regulator
designed to automatically maintain a constant voltage level.
The three terminal voltage regulators category we have positive
voltage regulators and negative output voltage regulators.
The 78XX series is a series of positive voltage regulators and
79XX is the series of negative voltage regulators.
78XX Series IC :
78XX series are three terminal positive voltage regulators.Here
XX indicates the output voltage. In our project the output voltage
is regulated 5 volts.
25
26
27
CRYSTAL OSCILLATOR
28
APPLICATIONS :
Used in consumer devices such as wristwatches, clocks, radios,
computers, and cellphones. Quartz crystals are also found inside
test and measurement equipment, such as counters, signal
generators, and oscilloscopes.
Figure shows the symbol of Crystal Oscillator
29
RS-232 Waveforms:-
RS-232 communication is asynchronous. That is a clock signal is
not sent with the data. Each word is synchronized using it's start bit,
30
The diagram shows the next bit after the Stop Bit to be Logic 0.
This must mean another word is following, and this is it's Start Bit.
If there is no more data coming then the receive line will stay in its
idle state (logic 1). We have encountered something called a
"Break" Signal. This is when the data line is held in a Logic 0 state
for a time long enough to send an entire word. Therefore if you
don't put the line back into an idle state, then the receiving end
will interpret this as a break signal.
The data sent using this method, is said to be framed. That is the
data is framed between a Start and Stop Bit. Should the Stop Bit
be received as a Logic 0, then a framing error will occur. This is
common, when both sides are communicating at different speeds.
31
The above diagram is only relevant for the signal immediately at
the UART. RS-232 logic levels uses +3 to +25 volts to signify a
"Space" (Logic 0) and -3 to -25 volts for a "Mark" (logic 1). Any
voltage in between these regions (i.e. between +3 and -3 Volts)
is undefined. Therefore this signal is put through a "RS-232 Level
Converter". This is the signal present on the RS-232 Port of your
computer, shown below.
Figure: RS-232 Logic Waveform
32
Figure Pinouts for the MAX-232, Figure Typical MAX-232 circuit
RS-232 Driver/Receiver.
33
The advantages of using serial data transfer rather than
parallel:-
1. Serial Cables can be longer than Parallel cables. The serial port
transmits a '1' as -3 to -25 volts and a '0' as +3 to +25 volts where
as a parallel port transmits a '0' as 0v and a '1' as 5v. Therefore the
serial port can have a maximum swing of 50V compared to the
parallel port which has a maximum swing of 5 Volts.Therefore
cable loss is not going to be as much of a problem for serial cables
than they are for parallel.
2. There is no need of as many wires as in parallel transmission. If
device needs to be mounted a far distance away from the
computer then 3 core cable (Null Modem Configuration) is going to
be a lot cheaper that running 19 or 25 core cable. However one
must take into account the cost of the interfacing at each end.
34
Features
1) Applications:
Wave and pulse shapers
Astable multivibrators
Monostable multivibrators.
2) Complies with JEDEC standard no. 7A
3) ESD protection:
a) HBM EIA/JESD22-A114-A exceeds 2000 V
b) MM EIA/JESD22-A115-A exceeds 200 V.
4) Specified from -40 to +85º C and -40 to +125 Cº.
SWITCH
1) www.atmel.com/dyn/resources/prod-
documents/doc0265.pdf
2) www.nxp.com
3) www.wikipedia.com/wiki/switch
4) www.wikipedia.com/light-emitting-diode
5) www.technologystudent.com
6) www.atmel.com/atmel/acrobat/doc0368.pdf
7) www.wikipedia.org/wiki/infrared
8) www.kpsec.freeuk.com/components/resistance
/capacitance
45
C Programming for Transmitter:
1 /*.......................*/
8 #include <string.h>
char code reserve [3] _at_ 0x23; /* space for serial interrupt if */
#endif
17
18
19
46
20
21
22
23
24 void MAIN(void)
25 {
26 1 unsigned char x;
27 1 sw_1 =1;
28 1 sw_2 =1;
29 1 sw_3 =1;
30 1 sw_4 =1;
31 1
32 1
33 1
34 1
35 1 #ifndef MONITOR51
41 1 #endif
47
42 1 while(1)
43 1 {
44 2 if (sw_1==0)
45 2
printf("555555555555555555555555555555555555555555555555555555555
555555");
46 2 else if (sw_2==0)
47 2
printf("666666666666666666666666666666666666666666666666666666666
6666");
48 2
49 2
50 2 else if (sw_3==0)
51 2
printf("777777777777777777777777777777777777777777777777777777777
777777");
52 2 else if (sw_4==0)
53 2
printf("888888888888888888888888888888888888888888888888888888888
888888");
54 2 }
55 1
56 1
57 1
58 1
59 1
60 1 }
48
C Programming for Receiver:
3
4 #include <stdio.h> /* prototype declarations for I/O functions */
7 #include <string.h>
8 void rx_buf(void );
11
12
13 unsigned char r_data,f;
14 void main (void)
15 {
16 1 /* main program */
17 1 /* define operation */
20 1 TH1 = 0xf4;
49
21 1 TR1 = 1;
22 1
23 1
24 1 yellow =1;
25 1 red =1;
26 1
27 1
28 1 while (1) { /* repeat forever */
29 2 rx_buf();
30 2
31 2 }
32 1
33 1
34 1
35 1 }
36
37
38 void rx_buf(void )
39 {
40 1
41 1 unsigned char i ;
42 1 while(RI==0);
43 1
44 1
45 1 i=SBUF;
46 1
47 1
48 1
49 1
50 1 RI=0;
51 1
52 1
53 1 switch(i)
54 1 {
50
55 2 case '5':
56 2 red =0;
57 2
58 2 break;
59 2 case '6':
60 2
61 2 red=1;
62 2 break;
63 2
64 2
65 2
66 2
67 2 case '7':
68 2
69 2 yellow=0;
70 2 break;
71 2 case '8':
72 2 yellow =1;
73 2
74 2 break;
75 2 }
76 1 }
77
51
CONCLUSION
An easy and inexpensive remote control for home appliances are
described in this project report. It is based on infrared.Connect
this circuit to any of the home appliances such as lamp, fan,
radio, etc. to make the appliances on or off, to regulate their
output power, and to set their usage timing.The circuit can be
activated from upto 10 meters. This system was tested and
responded successfully, which verifies the feasibility of this
system's theory and concept This project has a very secure
structure.
In our daily life people often forget to switch off the light, so it is
a very inexpensive and easy instrument to switch off the various
home appliances without any inconvenience. so its become a
very cost effective as it is saving electricity and electricity bill’s .
60
FUTURE PROSPECT
The remote control for home appliances which is to be implemented
future will have better throughput, very cheap and are less prone to
the errors.
Here we can also control the home appliances with help of personal
computer, mobile phone or land line phones.