GUI Metering Techniques
GUI Metering Techniques
Submitted by
KAVYA.S (2002111)
PAVINITHA.I (2002141)
PREETHI.V (2002146)
of
BACHELOR OF ENGINEERING
in
MARCH - 2023
SRI RAMAKRISHNA ENGINEERING COLLEGE
COIMBATORE – 641 022
BONAFIDE CERTIFICATE
20EC280- MINI PROJECT II
SIGNATURE SIGNATURE
Mrs.E.SHANTHINI,M.E., Dr.M.JAGADEESWARI,M.E.,Ph.D.,
Supervisor Head of the Department
Department of ECE Department of ECE
Sri Ramakrishna Engineering College Sri Ramakrishna Engineering College
Coimbatore- 641 022 Coimbatore-641 022
ii
ABSTRACT
exponentially in the next several years. In fact, the world’s demand for power
homes, and businesses are already taking power saving measures to save money
and to become more eco-friendly. Majority of the time, when leaving a room,
people forget to turn off the lights and fans which lead to energy wastage. An
using the concept of counter. Based on the number of persons inside the room,
the lights and fans will be switched on and off automatically. The count will be
incremented by one every time when someone enters the room. Similarly, the
count will be decremented by one when someone exits the room. Therefore,
when the count is greater than or equal to one, it indicates that there are some
people inside the room, so the light and fan will remain on. When the count
decreases to zero, it indicates that there is no one inside the room, so all the
lights and fan will be turned off automatically. As a result, this prototype can
cut down power wastage in spaces where people frequently forget to turn off
the appliances.
iii
Acknowledgment
We put forth our heart and soul to thank ALMIGHTY for being with us all
through this technical adventure.
We thank our Principal, Dr. N.R. Alamelu, B.E. (Hons.), M.E., Ph.D.,Sri
Ramakrishna Engineering College, Coimbatore, for her benevolent
patronage in carrying out this project.
We express our sincere respect and gratitude to our Professor & Head Dr.M.
Jagadeeswari, M.E., Ph.D., Department, Electronics and Communication
Engineering for her continuous encouragement and motivation throughout the
project.
We extend our thanks to all the teaching, non-teaching faculty members of our
department and other departments, friends, and family members for their
support in carrying out the mini-project successfully.
iv
TABLE OF CONTENTS
LIST OF FIGURES vi
LIST OF ABBREVATIONS vii
1 INTRODUCTION 1
1.1 PROJECT OVERVIEW 1
2 LITERATURE SURVEY 3
2.1 INTRODUCTION 3
2.2 BACKGROUND 4
2.3 SUMMARY 7
3 METHODOLOGY AND WORKING 9
PRINCIPLE
3.1 PRINCIPLE OF AUTOMATIC POWER SAVING
SYSTEM
3.2 WORK FLOW OF THE PROPOSED SYSTEM 10
3.3 HARDWARE DESCRIPTION 11
3.3.1 NODE MCU 12
3.3.2 5V SINGLE CHANNE; RELAY MODULE 13
3.3.3 E18D80NK IR SENSOR 17
3.3.4 LIQUID CRYSTAL DISPLAY 18
3.4 SOFTWARE DESCRIPTION 19
3.4.1 ARDUINO SOFTWARE IDE 19
3.5 INNOVATIVENESS OF THE SOLUTION 20
3.6 IMPACT OF THE PRODUCT 21
3.7 UNIQUENESS AND FEATURES 21
3.8 SUMMARY 21
v
4 EXPERIMENTAL RESULTS AND DISCUSSION 23
vi
LIST OF FIGURES
vii
LIST OF ABBREVATIONS
vii
CHAPTER 1
INTRODUCTION
The main objective is to deliver a complete overview about the project. This
chapter gives information about the importance of electricity conservation. It
also gives a detailed knowledge about the factors that causes wastage of
electricity and power.
1
Figure 1.1 Typical daily demand for electricity
Majority of the time, when leaving a room, people forget to turn off the lights
and fans which lead to energy wastage. An automated power-saving system is
suggested as a solution to prevent this by using the concept of counter. Based
on the number of persons inside the room, the lights and fans will be switched
on and off automatically. The count will be incremented by one every time
when someone enters the room. Similarly, the count will be decremented by
one when someone exits the room. Therefore, when the count is greater than or
equal to one, it indicates that there are some people inside the room, so the light
and fan will remain on. When the count decreases to zero, it indicates that there
is no one inside the room, so all the lights and the fan will be turned off
automatically. As a result, this prototype can cut down power wastage in spaces
where people frequently forget to turn off the appliances.
2
CHAPTER 2
LITERATURE SURVEY
2.1 INTRODUCTION
3
2.2. BACKGROUND
4
conditioners so that they only turn on when someone is there and shut off in an
automatic manner if not used. The human presence sensing system can be
replaced with a piezoelectric sensor, which senses pressure by generating a
certain amount of energy, which changes the idea of supplying power to the
sensors, for conserving energy itself. But the reality is that the sensors used in
this light and fan, work by utilizing a sum of energy.
4. Md. Ibne Joha; Md. Shafiul Islam; ‘IoT based smart home automation
using NodeMCU: A Smart Multi-Plug with Overload and Over
Temperature Protection’, 24th International Conference on Computer and
Information Technology (ICCIT) 2021.
Internet connectivity is widely available and easily accessible in the current
era. As a result, it has evolved into a necessary component of daily life. The
Internet of Things (IoT) is a network where gadgets, appliances, and other
5
objects are linked to the network via the internet together with sensors and
software. This study provides a strategy for monitoring and controlling home
appliances using an IoT-based smart multi-plug that is simple and easy to use.
Through the smartphone Blynk framework, this smart multi-plug may be
accessed, watched over, and operated using a smartphone over Wi-Fi. No
further code is needed for this, regardless of the network connection being used,
letting this multi-plug practical and user-friendly. Additionally, it guards
against overload and overheating damage to the plugs and appliances.
Additionally, it provides timed configuration for each plug and voice command
control via Google Assistant, saving electricity as well as time and effort from
users.
6
intelligent fans, lights, doors, sprinkler systems, etc., as well as various sensors.
We employ the Cayenne IOT platform, which uses the MQTT system to
publish or subscribe, i.e., retrieve information, and an If This Than That
(IFTTT) interface, to regulate these smart items and sensors. In terms of the
hardware, we must use the NodeMCU-ESPS266 microcontroller, which comes
with an integrated Wi-Fi communication system. Because its relatively
inexpensive and has strong performance qualities, NodeMCU is an extensively
utilized controller.
2.3. SUMMARY
Finally, the survey concluded after referred several power saving systems. Most
of the users preferred easily accessible. Usually people forgot to turn off the
appliances while leaving the room, this leads to energy wastage This project
designed as a smart system used to turn on /off the electrical appliances
automatically without human intervention. This project is of low cost and
efficiency of the project is more compared to the previous methods. Using this
project, automatic controlling and monitoring the number of persons entering
and leaving the room is done. Automatic power saving system helps users to
consume energy by turning on the electrical appliances while person entering
the room and turned off automatically when no one inside the room using
counter. The accuracy of counter is the major backbone in preparing the report.
7
CHAPTER 3
METHODOLOGY AND WORKING PRINCIPLE
The product has two parts for implementing the process. The first one is the
hardware part and the next is software part. The procedure, software and
hardware components used in the product are explained in detail in this chapter.
There are several methods to automate the process of power saving but still the
accuracy is low. Therefore, we have come with an idea that controls the
frequently using appliances such as light and fan based on the number of people
inside the room. This approach will count the number of people entering or
leaving the room. Based on the count, the lights and fans will be turned on/ off
automatically.
Fig.3.1.1. Methodology
8
If the number of individuals inside the room is zero, then the lights and fan
will be turned off. If the number of individuals inside the room is greater than
or equal to one, the lights and fan will be turned on automatically. The count
will increase by one every time when someone enters the room. when the count
is equal to or greater than one, the lights and fan will be turned on. The count
will decrease by one every time when someone leaves the room. when the count
becomes zero, the lights and fan will be turned off. Hence, this approach will
be useful in case where people forget to turn off lights and fan when leaving a
room.
If the output sensor detects before the input IR sensor, the count will be
incremented to one. Similarly, if the input sensor detects before output sensor,
then the count will be decremented to one. These counts will be displayed in
the 16X2 LCD display. Based on the count, the lights and fan will be controlled.
9
If (count >=1)
//node send signal to relay to turn on lights and fans
Else if(count==0)
//node send signal to relay to turn off lights and fans
10
3.3.1. Node MCU
Device Features: -
11
Figure 3.3.3 Pin Diagram of ESP8266 Node MCU
12
Relay Contact Current Capacity at AC250V: 10A
Relay Contact Current Capacity at DC5V: 10A
One normally closed contact and one normally open contact
Triode drive, increasing relay coil
High impedance controller pin
Pull-down circuit for avoidance of malfunction
Power supply indicator lamp
Control indicator lamp
Indicator for Relay output status
The single-channel relay module is much more than just a plain relay, it
contains components that make switching and connection easier and act as
indicators to show if the module is powered and if the relay is active. First is
the screw terminal block. This is the part of the module that is in contact with
mains so a reliable connection is needed. Adding screw terminals makes it
easier to connect thick mains cables, which might be difficult to solder directly.
The three connections on the terminal block are connected to the normally
open, normally closed, and common terminals of the relay. The second is the
relay itself, which, in this case, is a blue plastic case. Lots of information can
be gleaned from the markings on the relay itself. The part number of the relay
13
on the bottom says “05VDC”, which means that the relay coil is activated at
5V minimum – any voltage lower than this will not be able to reliably close the
contacts of the relay.
There is also voltage and current markings, which represent the maximum
voltage and current, the relay can switch. For example, the top left marking says
“10A 250VAC”, which means the relay can switch a maximum load of 10A
when connected to a 250V mains circuit. The bottom left rating says “10A
30VDC”, meaning the relay can switch a maximum current of 10A DC before
the contacts get damaged. The 'relay status LED' turns on whenever the relay
is active and provides an indication of current flowing through the relay coil.
The input jumper is used to supply power to the relay coil and LEDs. The
jumper also has the input pin, which when pulled high activates the relay. The
switching transistor takes an input that cannot supply enough current to directly
drive the relay coil and amplifies it using the supply voltage to drive the relay
coil. This way, the input can be driven from a microcontroller or sensor output.
The freewheeling diode prevents voltage spikes when the relay is switched off.
The power LED is connected to VCC and turns on whenever the module is
powered.
15
Fig.3.3.7. Internal connections of E18D80NK IR Sensor
16
4.A 5 by 8-pixel box can be used to create any character.
5.Alphanumeric LCDs display letters and numbers.
6.Blue & Green Backlight versions of these are available.
7.Several custom-generated characters are displayed.
SOFTWARE DESCRIPTION
17
License, version 2. The Arduino IDE supports the languages C and C++ using
special rules of code structuring. The Arduino IDE supplies a software
library from the Wiring project, which provides many common input and
output procedures. User-written code only requires two basic functions, for
starting the sketch and the main program loop, that are compiled and linked
with a program stub main () into an executable cyclic executive program with
the GNU tool chain, also included with the IDE distribution.
Features
• Simple & easy-to-use code editor & compiler with built-in Serial
Monitor/terminal
• Verify and checks your code for errors compiling it
• Compiles your code and uploads it to the configured board.
• See uploading below for details
• Creates a new sketch.
• Open and presents a menu of all the sketches in your sketchbook. Clicking
one will open it within the current window overwriting its content.
• Saves your sketch
• Opens the serial monitor.
The main divergence of the product is that it controls the lights and fan even
when people forget to turn off before leaving the room. It can be implemented
in classrooms, faculty cabins etc.
18
3.6 IMPACT OF THE PRODUCT
The light and fan will be turned on/off automatically based on the number of
individuals in inside the room
Power saving can be implemented by using the proposed solution and it is more
eco-friendly
Improved energy efficiency and can lower individual utility bills and conserves
electricity
.
Best power saving system is proposed for the welfare of common people in a
cost-efficient way.
The Number of people inside the room can be identified any time by the LCD
display and the lights and fan I controlled by the number.
3.8 SUMMARY
19
CHAPTER 4
EXPERIMENTAL RESULTS AND DISCUSSIONS
This project has successfully overcome the problem of controlling the power
supply of fans and lights in manual manner and the implementation of real time
automatic power saving system is been implemented in faulty cabin. The result
of the project is shown in below figures.
Figure 4.1 Node MCU and sensor Connection of the hardware setup
Figure shows the hardware setup interfaced with Node MCU to process the
data from the sensors.
Initially the sensors are at the position to detect the person entering and exiting
the room.
20
The LCD display shows the input person count is 0 at initial, then it is
incremented by 1 when a person enters the room.
The LCD display shows the output person count is 2. Now the count gets
decremented by 1 when the output person exits the room.
21
Similarly, the count gets decremented by 1 each time in the output person when
a person exits the room. The above Figures shows that the number of persons
entering and exiting the room ,accordingly the lights and fans are switched on
and off.
4.2 SUMMARY
The count of the person entering and exiting the room is noted,
accordingly the fans and lights get switched on and off automatically. The count
gets incremented by 1 when a person enters the room and the count gets
decremented by 1 when a person exits the room. Therefore, it reduces the power
consumption when people forget to turn off electrical appliances while leaving
a place.
22
CHAPTER 5
CONCLUSION AND FUTURE SCOPE
5.1 CONCLUSION
23
REFERENCES
[1] Shaikh Mulla Shabber; Mohan Bansal; P Mrudula Devi; Prateek Jain; ‘iHAS
an Intelligent Home Automation System for Smart city, IEEE International
Symposium on Smart Electronic Systems (iSES), 2021.
[3] Shruti Dash; Pallavi Choudekar; ‘Home Automation Using Smart Devices
and IoT’, 9th International Conference on Reliability, Infocom Technologies and
Optimization (Trends and Future Directions) (ICRITO) 2021.
[4] Md. Ibne Joha; Md. Shafiul Islam; ‘IoT based smart home automation using
NodeMCU: A Smart Multi-Plug with Overload and Over Temperature
Protection’, 24th International Conference on Computer and Information
Technology (ICCIT) 2021.
[5] Sansid Hossain Tayef; Md. Muhidur Rahman; Md. Abu Bakkar Sakib;
‘Design and Implementation of IoT based Smart Home Automation System’,
24th International Conference on Computer and Information Technology
(ICCIT) 2021.
[6] Amna Eliyan; Joshua Fallon; ‘IoT based Home Automation using Android
Application’, International Symposium on Networks, Computers and
Communications (ISNCC) 2020.
24
[7] Nesreen Alsbou; Naveen Mohan Thirunilath; Imad Ali ‘Smart Home
Automation IoT System for Disabled and Elderly’, IEEE International IOT,
Electronics and Mechatronics Conference (IEMTRONICS) 2022.
[8] Bernard Vancen Albons; Khairul Yuda Hosuf; Noor Hafizah Mahamarowi;
Ahmad Sukri Ahmad; Adzliza Salmi Mohamad Azlan ‘Designation of a Home
Automation System using NodeMCU’, Engineering and Technology for
Sustainable Architectural and Interior Design Environments (ETSAIDE) 2022.
[9]
Harshavardham Reddy; Neerav Regi; Zeenia Gupta; Sagar Sood; Ishika Kansal;
Nikhil Aggarwal, ‘Advanced Home Automation System using Google Assistant
and Thingspeak IoT Platform’, 2nd International Conference on Advance
Computing and Innovative Technologies in Engineering (ICACITE) 2022.
[11] Mamta; Ankit Paul; Rajat Tiwari; ‘Smart Home Automation based
System based on IoT using chip Microcontroller’, 9th International Conference
on Computing for Sustainable Global Development (INDIACom) 2022.
25
[13] Sansid Hossain Tayef; Md. Muhidur Rahman; Md. Abu Bakkar Sakib;
‘Design and Implementation of IoT based Smart Home Automation System’,
24th International Conference on Computer and Information Technology
(ICCIT) 2021.
26