ON
“INTELLIGENT ENERGY SAVING SYSTEM”
2013-2014
A Project work submitted in partial fulfilment of the requirement for the
DIPLOMA OFELECTRONICS
&TELECOMMUNICATIONENGINEERING
GUIDED BY
Prof. HEMANT BANNAGARE
SUBMITED BY
1) ASHISH PAHUNE 2) VIKRANT MAHADULE
3) SWATI CHAKOLE 4) TRUPTI HATWAR
5) PRIYANKA MANKAR 6) MALLIKA SATIKOSRE
ENGINEERING
MOUDA-441104
2013-2014
DEPARTMENT OF ELECTRONICS &
TELECOMMUNICATION ENGINEERING
MOUDA-441104
CERTIFICATE
This is to certified that the work contained I this project report entitled
“INTELLIGENT ENERGY SAVING SYSTEM”.Is in the partial fulfilment for the
award of diploma in ELECTRONICS & TELECOMMUNICATION
ENGINEERING of Maharashtra state board of Technical education Mumbai is
bonafied work carried out the completed under my guidance and supervision during
academic year 2013-2014.
SUBMITED BY
1) ASHISH PAHUNE 2) VIKRANT MAHADULE
GUIDED BY
Prof. HEMANT BANNAGARE
H.O.D Principal
DECLARATION
This work in same form or in any other form is not submitted by any for
the award of any diploma.
PROJECTEES
1)ASHISH PAHUNE ……………….
PROJECTEES
1 ASHISH PAHUNE
2 VIKRANT MAHADULE
3 SWATI CHAKOLE
4 TRUPTI HATWAR
5 PRIYANKA MANKAR
6 MALLIKA SATIKOSRE
INDEX
1. ABSTRACT
2. INTRODUCTION
3. WORKING
4. MICROCONTROLLER
5. COMPONANT AND DISCRIPTION
6. HARDWARE
7. SOFTWARE
8. PROGRAMMING
9. ADVANTAGE AND APPLICATION
10. CONCLUSION
CHAPTER NO.1
ABSTRACT
ABSTRACT:
Objective of our project is to construct a model which will help to save the energy.
Therefore our project works on automatic switching of lights and fan using in-out
counter. A counter that can change its state in either direction, under control of an in-
out selector input, is known as an in-out counter. The circuit given here can count
numbers from 0 to 999 in up and down modes depending upon the state of the
selector. It can be used to count the number of persons entering a hall in the up mode
at entrance gate. In the down mode, it can count the number of persons leaving the
hall by decrementing the count at exit gate. It can also be used at gates of parking
areas and other public places.
This circuit divided in five parts: sensor, controller, display, relays and DTMF. The
sensor would observe an interruption and provide an input to the controller which
would run the counter in up/down mode depending upon the selector setting. The
same count is displayed on 16x2 LCD displays through the controller. As controller
recognize the presence of individual in a hall controller switches the relay to turn ON
the light. There are few sensors are incorporated such as temperature sensors and light
sensor. Temperature sensor use to control the action of fan. And switch on the fan in
case of high temperature and vice versa. Alike temperature sensor, light sensor also
works with the intensity of light. This action of sensors can help to save the
electricity. Apart from this we have also used a DTMF (dual tone multiple frequency)
circuit to control the home appliances using a mobile phone. Phone use to send the
frequency of key pressed and these signals are send to controller to switch the
appliances.
CHAPTER NO.2
INTRODUCTION
INTRODUCTION
This circuit divided in five parts: sensor, controller, display, relays and DTMF. The
sensor would observe an interruption and provide an input to the controller which
would run the counter in up/down mode depending upon the selector setting. The
same count is displayed on 16x2 LCD displays through the controller. As controller
recognize the presence of individual in a hall controller switches the relay to turn ON
the light. There are few sensors are incorporated such as temperature sensors and light
sensor. Temperature sensor use to control the action of fan. And switch on the fan in
case of high temperature and vice versa. Alike temperature sensor, light sensor also
works with the intensity of light. This action of sensors can help to save the
electricity. Apart from this we have also used a DTMF (dual tone multiple frequency)
circuit to control the home appliances using a mobile phone. Phone use to send the
frequency of key pressed and these signals are send to controller to switch the
appliances.
Component used:
8051 Microcontroller
ULN2003
LCD
LM358
Relay
IR TRANSMITTER-RECEVER
DTMF IC
ADC
Temp sensor
LDR
CHAPTER NO.3
WORKING
WORKING
Objective of our project is to construct a model which will help to save the energy.
Therefore our project works on automatic switching of lights and fan using in-out
counter. A counter that can change its state in either direction, under control of an in-
out selector input, is known as an in-out counter. The circuit given here can count
numbers from 0 to 999 in up and down modes depending upon the state of the
selector. It can be used to count the number of persons entering a hall in the up mode
at entrance gate. In the down mode, it can count the number of persons leaving the
hall by decrementing the count at exit gate. It can also be used at gates of parking
areas and other public places.
The project incorporates the temperature sensor to sense the inner temperature and is
able to switch the fan in case of hike in temperature and automatically turn off the fan
at normal temperature. Also a LDR sensor is involve in sense the light and turn ON
the light in case of darkness and vice versa. The system involves the DTMF circuit
which is indulged in switching the light using cell phone. Particular keys are specified
to turn ON and turn OFF the system. This can help to save the electricity.
CHAPTER NO.4
MICROCONTROLLER
ATMEL 89S52 MICROCONTROLLER
In addition, the AT89S52 is designed with static logic for operation down to zero
frequency and supports two software selectable power saving modes. The Idle Mode
stops the CPU while allowing the RAM, timer/counters, serial port and interrupt
system to continue functioning. The power-down mode saves the
RAM contents but freezes the oscillator disabling all other chip functions until the
next hardware reset.
Pin NumberDescription:
20 GND – Ground
21 – 28 P2.0 – P2.7 – Port 2 (I/O PORT)
Pin configurations:
GND: Ground.
Port 0: Port 0 is an 8-bit open drain bidirectional I/O port. As an output port, each pin
can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as
high impedance inputs.Port 0 can also be configured to be the multiplexed low order
address/data bus during accesses to external program and data memory. In this mode,
P0 has internal pull-ups. Port 0 also receives the code bytes during Flash
programming and outputs the code bytes during program verification. External pull-
ups are required during program verification.
Port 1: Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 1
output buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins,
they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port
1 pins that are externally being pulled low will source current (IIL) because of the
internal pull-ups. In addition, P1.0 and P1.1 can be configured to be the timer/counter
2 external count input (P1.0/T2) and the timer/counter 2 trigger input (P1.1/T2EX),
respectively, as shown in the following table. Port 1 also receives the low-order
address bytes during Flash programming and verification.
Port 2: Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 2
output buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins,
they are pulled high by the internal 19ull-ups and can be used as inputs. As inputs,
Port 2 pins that are externally being pulled low will source current (IIL) because of
the internal pull ups. Port 2 emits the high-order address byte during fetches from
external program memory and during accesses to external data memory that uses 16-
bit addresses (MOVX @ DPTR). In this application, Port 2 uses strong internal pull-
ups when emitting 1s. During accesses to external data memory that uses 8-bit
addresses (MOVX @ RI ), Port 2 emits the contents of the P2 Special Function
Register. Port 2 also receives the high-order address bits and some control signals
during Flash programming and verification.
Port 3: Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 3
output buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins,
they are pulled high bythe internal pull-ups and can be used as inputs. As inputs, Port
3 pins that are externally being pulled low will source current (IIL) because of the
19ull-ups. Port 3 also serves the functions of various special features of the AT89C51,
as shown in the following table. Port 3 also receives some control signals for Flash
programming and verification.
RST: Reset input. A high on this pin for two machine cycles while the oscillator is
running resets the device. This pin drives High for 96 oscillator periods after the
Watchdog times out. The DISRTO bit in SFR AUXR (address 8EH) can be used to
disable this feature. In the default state of bit DISRTO, the RESET HIGH out feature
is enabled.
ALE/PROG:
Address Latch Enable (ALE) is an output pulse for latching the low byte of the
address during accesses to external memory. This pin is also the program pulse input
(PROG) during Flash programming ALE pulse is skipped during each access to
external data memory. If desired, ALE operation can be disabled by setting bit 0 of
SFR location 8EH. With the bit set, ALE is active only during a MOVX or MOVC
instruction. Otherwise, the pin is weakly pulled high.
PSEN:
Program Store Enable (PSEN) is the read strobe to external program memory. When
the AT89C51 is executing code from external program memory, PSEN is activated
twice each machine cycle, except that two PSEN activations are skipped during each
access to external data memory.
EA/VPP:
External Access Enable .EA must be strapped to GND in order to enable the device to
fetch code from external program memory locations starting at 0000H up to FFFFH.
Note, however, that if lock bit 1 is programmed, EA will be internally latched on
reset. EA should be strapped to VCC for internal program executions. This pin also
receives the 12-volt programming enable voltage (VPP) during Flash programming.
XTAL1:Input to the inverting oscillator amplifier and input to the internal clock
operating circuit.
XTAL1 and XTAL2 are the input and output, respectively, of an inverting amplifier that
can be configured for use as an on-chip oscillator, as shown in Figure 11. Either quartz
Crystal or ceramic resonator may be used. To drive the device from an external clock
Source, XTAL2 should be left unconnected while XTAL1 is driven, as shown in Figure 12.
There are no requirements on the duty cycle of the external clock signal, since the input to
the internal clocking circuitry is through a divide-by-two flip-flop, but minimum and maxi-
mum voltage high and low time specifications must be observed. [4&5]
CHAPTER NO.5
COMPONENT AND
DISCRIPTION
Components:-
1.Passive component
1. Power plug.
2. Power connector.
3. ON-OFF switch.
4. Brige IC.(DB107)
5. Capacitor(Filtering for ac to dc).
6. Reguleted IC.(7805)
7. Ceramic capacitor.(0.1µF)
8. LCD in register 1kΩ.
RESISTORS:
Electrolytic capacitors are capable of providing the highest capacitance values of any
type of capacitor but they have drawbacks which limit their use. The standard design
requires that the applied voltage be polarized; one specified terminal must always
have positive potential with respect to the other. Therefore they cannot be used with
AC signals without a DC polarizing bias. However there are special non-polarized
electrolytic capacitors for AC use which do not require a DC bias. Electrolytic
capacitors also have relatively low breakdown voltage, higher leakage current and
inductance, poorer tolerances and temperature range, and shorter lifetimes compared
to other types of capacitors.
CERAMIC CAPACITOR
t
LCD (Liquid Crystal Display) screen is an electronic display module and find a wide
range of applications. A 16x2 LCD display is very basic module and is very
commonly used in various devices and circuits. These modules are preferred
over seven segments and other multi segment LEDs. The reasons being: LCDs are
economical; easily programmable; have no limitation of displaying special &
even custom characters (unlike in seven segments), animations and so on.
A 16x2 LCD means it can display 16 characters per line and there are 2 such lines. In
this LCD each character is displayed in 5x7 pixel matrix. This LCD has two registers,
namely, Command and Data.
The command register stores the command instructions given to the LCD. A
command is an instruction given to LCD to do a predefined task like initializing it,
clearing its screen, setting the cursor position, controlling display etc. The data
register stores the data to be displayed on the LCD. The data is the ASCII value of the
character to be displayed on the LCD. Click to learn more about internal structure of
a LCD.
Pin Diagram:
Pin Description:
Pin
Function Name
No
1 Ground (0V) Ground
2 Supply voltage; 5V (4.7V – 5.3V) Vcc
3 Contrast adjustment; through a variable resistor VEE
4 Selects command register when low; and data register when Register
high Select
5 Low to write to the register; High to read from the register Read/write
6 Sends data to data pins when a high to low pulse is given Enable
7 DB0
8 DB1
9 DB2
10 DB3
8-bit data pins
11 DB4
12 DB5
13 DB6
14 DB7
15 Backlight VCC (5V) Led+
16 Backlight Ground (0V) Led-
H-Bridge Circuit:-
This is basically a motor driver IC which takes input from micro controller and can
able to drive high current high voltage inductive loads, relays, solenoids, DC motors
and stepper motors. The L293D is a high-current H bridge driver. The L293D is
designed to provide Bidirectional drive currents of up to 600-mA at voltages from 4.5
V to 36 V. The L293D is a monolithic integrated high voltage, High current four
channel driver designed to accept Standard DTL or TTL logic levels and drive
inductive Loads (such as relays solenoids, DC and Stepping motors) and switching
power transistors .To simplify use as two bridges is pair of channels is equipped with
an enable input. A separate supply input is provided form the logic, allowing
operation at a low voltage and internal clamp diodes are included. This device is
suitable for use in switching applications at frequencies up to 5 KHz. The L293D is
assembled in a 16 lead plastic package which has 4 center pins connected together and
used for heat sinking.
LED:
A light-emitting diode (LED) is a semiconductor light source. LEDs are used as
indicator lamps in many devices, and are increasingly used for lighting..When a light-
emitting diode is forward biased (switched on), electrons are able
to recombine with electron holes within the device, releasing energy in the form
of photons. This effect is called electroluminescence and the color of the light
(corresponding to the energy of the photon) is determined by the energy gap of the
semiconductor. An LED is often small in area, and integrated optical components may
be used to shape its radiation pattern.[3] LEDs present many advantages over
incandescent light sources including lower energy consumption, longer lifetime,
improved robustness, smaller size, faster switching, and greater durability and
reliability. LEDs powerful enough for room lighting are relatively expensive and
require more precise current and heat management than compact fluorescent
lamp sources of comparable output.
IR LED
Light Emitting Diodes (LEDs) are solid-state P-N junction devices that emit light
when forward biased. An Infrared LED is an Infrared Emitting Diode, a term
specifically applied to PerkinElmer IR Emitters. Unlike incandescent lamps, which
emit light over a very broad range of wavelengths, LED’s emit light over such a
narrow bandwidth that they appear to be emitting a single “color”. Their small size,
long operating lifetimes, low power consumption, compatibility with solid-state drive
circuitry, and relatively low cost make LED’s the preferred light source in many
applications.
PHOTO DIODE
Photodiode is a type of photo detector capable of converting light into either current
or voltage, depending upon the mode of operation. Photodiodes are similar to regular
semiconductordiodes except that they may be either exposed or packaged with a
window or optical fiber connection to allow light to reach the sensitive part of the
device. Many diodes designed for use specifically as a photodiode will also use a PIN
junction rather than the typical PN junction
ADVANTAGES
Uses:
Annunciator panels
Electronic metronomes
Game shows
Microwave ovens and other household appliances
Sporting events such as basketball games
Electrical alarms
TRANSISTOR
TRANSISTOR AS A SWITCH
The operating temperature range is from -55°C to 150°C. The output voltage varies
by 10mV in response to every ˚C rise/fall in ambient temperature, i.e., its scale factor
is 0.01V/ ˚C.
The LM35 series are precision integrated-circuit temperature sensors, with an output
voltage linearly proportional to the Centigrade temperature. Thus the LM35 has an
advantage over linear temperature sensors calibrated in ° Kelvin, as the user is not
required to subtract a large constant voltage from the output to obtain convenient
Centigrade scaling. The LM35 does not require any external calibration or trimming
to provide typical accuracies of ±¼°C at room temperature and ±¾°C over a full
−55°C to +150°C temperature range. Low cost is assured by trimming and calibration
at the wafer level. The device is used with single power supplies, or with plus and
minus supplies. As the LM35 draws only 60 μA from the supply, it has very low self-
heating of less than 0.1°C in still air. The LM35 is rated to operate over a −55°C to
+150°C temperature range, while the LM35C is rated for a −40°C to +110°C range
(−10° with improved accuracy). The LM35 series is available packaged in hermetic
TO transistor packages, while the LM35C, LM35CA, and LM35D are also available
in the plastic TO-92 transistor package. The LM35D is also available in an 8-lead
surface-mount small outline package and a plastic TO-220 package.
PUSH BUTTONS
Push Buttons
Uses:
In industrial and commercial applications push buttons can be linked together
by a mechanical linkage so that the act of pushing one button causes the other button
to be released. In this way, a stop button can "force" a start button to be released. This
method of linkage is used in simple manual operations in which the machine or
process have no electrical circuits for control.
Pushbuttons are often color-coded to associate them with their function so that
the operator will not push the wrong button in error. Commonly used colors are red
for stopping the machine or process and green for starting the machine or process.
CHAPTER NO.6
HARDWARE
HARDWARE TESTING
CONTINUITY TEST:
In electronics, a continuity test is the checking of an electric circuit to see if
current flows (that it is in fact a complete circuit). A continuity test is performed by
placing a small voltage (wired in series with an LED or noise-producing component
such as a piezoelectric speaker) across the chosen path. If electron flow is inhibited by
broken conductors, damaged components, or excessive resistance, the circuit is
"open".
Devices that can be used to perform continuity tests include multi meters
which measure current and specialized continuity testers which are cheaper, more
basic devices, generally with a simple light bulb that lights up when current flows.
An important application is the continuity test of a bundle of wires so as to find the
two ends belonging to a particular one of these wires; there will be a negligible
resistance between the "right" ends, and only between the "right" ends.
This test is the performed just after the hardware soldering and configuration
has been completed. This test aims at finding any electrical open paths in the circuit
after the soldering. Many a times, the electrical continuity in the circuit is lost due to
improper soldering, wrong and rough handling of the PCB, improper usage of the
soldering iron, component failures and presence of bugs in the circuit diagram. We
use a multi meter to perform this test.
POWER ON TEST:
This test is performed to check whether the voltage at different terminals is
according to the requirement or not. We take a multi meter and put it in voltage mode.
Remember that this test is performed without microcontroller. Firstly, we check the
output of the transformer, whether we get the required 12 v AC voltage.
Then we apply this voltage to the power supply circuit. Note that we do this
test without microcontroller because if there is any excessive voltage, this may lead to
damaging the controller. We check for the input to the voltage regulator i.e., are we
getting an input of 12v and an output of 5v. This 5v output is given to the
microcontrollers’ 40th pin.
CONTROLLER BOARD PCB
PCB design RELAY
Keil µVision:
µVision3 is an IDE (Integrated Development Environment) that helps you write,
compile, and debug embedded programs. It encapsulates the following components: A
project manager, a make facility, Tool configuration, Editor, A powerful debugger.
EMBEDDED C:
The programming Language used here in this project is an Embedded C Language.
This Embedded C Language is different from the generic C language in few things
like data types and access over the architecture addresses.
The Embedded C Programming Language forms the user friendly language with
access over Port addresses, SFR Register addresses etc.
CHAPTER NO.8
PROGRAMMING
#include<reg51.h>
#include<delay.h>
#include"LCD.h"
#include"adc0808.h"
sbit S1 = P2^0;
sbit S2 = P2^1;
sbit D1 = P3^0;
sbit D2 = P3^1;
sbit D3 = P3^2;
sbit D4 = P3^3;
int main()
unsigned int i;
for(i=0;i<10;i++)
Buzzer = 1;
delay(50);
Buzzer = 0;
delay(20);
LCD_INIT();
LCD_STRING("Inteligence Power",LINE1);
LCD_STRING("Saving",LINE2);
IE = 0x90;
RI = 0;
while(1)
PHASE();
Phase_Select();
x:
LCD_NUM(Count,LINE2+9);
if(S1 == 1)
while(1)
if(S2 == 1)
while(S2 == 0);
Count++;
goto x;
if(S2 == 1)
while(1)
if(S1 == 1)
while(S1 == 1);
if(Count <= 0)
Count = 0;
else
Count--;
goto x;
}
else
if(FIRE == 1)
R_Relay = 0;
Y_Relay = 0;
B_Relay = 0;
BT_Relay = 0;
LCD_CLR();
LCD_STRING(">Fire Sence<",LINE1+2);
Fire_MSG();
while(1)
Buzzer = 1;
delay(100);
Buzzer = 0;
delay(100);
}
}
void Phase_Select(void)
R_Relay = 1;
Y_Relay = 0;
B_Relay = 0;
BT_Relay = 0;
R_Relay = 0;
Y_Relay = 1;
B_Relay = 0;
BT_Relay = 0;
R_Relay = 0;
Y_Relay = 0;
B_Relay = 1;
BT_Relay = 0;
R_Relay = 0;
Y_Relay = 0;
B_Relay = 0;
BT_Relay = 1;
else
R_Relay = 0;
Y_Relay = 0;
B_Relay = 0;
BT_Relay = 0;
}
CHAPTER NO.9
ADVANTAGE AND
APPLICATION
ADVANTAGES
Energy saving
Save manual power
It is Economical
More applicable
Daily Useable
APPLICATION
Air libraries
Entertainment venue laboratories
Home/Office retails’ environment
Molls & Shops
Seminar rooms
CHAPTER NO.10
CONCLUSION
CONCLUSION
In this experimental setup, Light intensity can be controlled using LDR condition. So
power consumption is reduced. By incorporating this setup, we can expect more
power conservation which may turn inevitable in future. It ultimately preserves the
nation’s wealth.
CHAPTER NO.11
BIBLIOGRAPHY
BIBLIOGRAPHY
WEBSITES:
www.atmel.com
www.beyondlogic.org
www.wikipedia.org
www.howstuffworks.com
www.alldatasheets.com