2305.11889v1
2305.11889v1
human negligence in situations like when persons leave the 4 lights and 4 fans. Ignoring the remaining factors for the
room without turning off the lights and fans. This mode wastage of power, this paper considers only one factor FOR
works THE WASTAGE OF POWER (I.E., HUMAN NEGLIGENCE).
Table 1: Wastage Of Power due to Human Negligence
Worst Average
Best Case
Case Case
(10%Negl
(90%Negli (50%Negli
igence)
gence) gence)
Wastage of
Power in
163.0368 90.576 18.1152
KWH(Units)
Utilization of
Power in
18.1152 90.576 163.0368
KWH(Units)
For 30 days working at 8 hours per day and 90% human be simple (just a few lines of code), or very complex (may
negligence vary from thousands to lakhs of code). The microcontroller
interacts with the outside world using pins. Pins are the input
Power wastage = (30*8*90)/100
and output parts of the microcontroller that are exposed on the
= 216*0.0513 (for one tube light) sides of particle device. GPIO pins can be hooked to sensors
or buttons to listen to the world, or they can be hooked to
= 216*0.0513*4 (for four tube lights)
lights and buzzers to act upon the world. There are pins for
= 44.3232 Serial/UART communication and a pin for resetting particle
device. Figure 2 shows the top view of the Particle Photon.
For fan:
Energy consumed is 60 Joules/sec (Since fan is 60 watts )
For 1 hour, Energy usage = 60*3600=2160000J.
1 standard unit of electricity i.e. 1 kwh= 3600000Joules.
So that would be 6% of a single unit, or in other words
lighting of the fan for 24 hours would cost you 1 unit of
electricity. So it would be 0.1374 kWh of single 60W fan
power usage.
For 30 days working at 8 hours per day and 90% human
negligence
Power wastage = (30*8*90)/100
= 216*0.1374 (for one fan)
= 216 * 0.1374 * 4 (for four fans)
= 118.7136
Figure 2: Particle Photon Chip
Hence, the total wastage of power for 4 tube lights and 4
fans is given by sum of wastage of power for 4 tube lights + As shown in Figure 2 particle photon has 6 Analog
wastage of power for 4 fans I/O ports with 2 port for RX and TX, one DAC ( Digital to
Analog Converter), and 8 Digital I/O port with inbuilt LED at
Total wastage = 44.3232 + 118.7136 D7 port. The particle has its own cloud where the data in our
= 163.0368 particular photon can be accessed through the Internet. Also
having its own cloud, the data can be accessed by IFTTT and
The same value is given in Table 1 under wastage of power use it for action and trigger purpose to send an email and
with 90% negligence. The remaining values given in the table receive command through user easily.
are self-explanatory.
Features
3.1.Hardware used in APCS
• Broadcom BCM43362 Wi-Fi chip
The hardware part of APCS consists of sensors, Relay
module, and microcontroller. Sensors read data from the real • 802.11b/g/n Wi-Fi
world and send to the microcontroller. The microcontroller • 1MB flash, 128KB RAM
processes the data that is received and then controls
appliances through Relay module. • On-board RGB status LED (ext. drive provided)
A brief description of various components used in APCS • 18 Mixed-signal GPIO and advanced peripherals
are given below • Real-time operating system (FreeRTOS)
3.1.1 Particle Photon 3.1.2 Two-Channel Relay module
Particle combines a powerful ARM Cortex M3 A relay is an electrically operated switch. Many
microcontroller with a Broadcom Wi-Fi chip in a tiny relays use an electromagnet to mechanically operate a switch,
thumbnail-sized module called the PØ (P-zero). The but other operating principles are also used, such as solid-
microcontroller is the brain of particle device. It runs the state relays. Relays are used where it is necessary to control a
program and tells hardware prototype what to do. Unlike a circuit by a low-power signal (with complete electrical
computer, it can only run one application (often called isolation between control and controlled circuits), or where
firmware or an embedded application). This application can
several circuits must be controlled by one signal. Since relays 3.2 Mobile Application
are switches, the terminology applied to switches applied to
The mobile application is developed under the Android
relays. Figure 3 shows the physical view of Two Channel
platform. It works on all Android mobile phones which are
Relay Module. A relay can be operated in two states:
enabled by the internet. This application requires
Normally - open (NO) contacts connect the circuit when authorization for accessing or controlling of particle device.
the relay is activated; the circuit is disconnected when the
The mobile application fetches the data from the
relay is inactive. It is also called a FORM A contact or make
Thingspeak
contact.
Normally - closed (NC) contacts disconnect the circuit
when the relay is activated; the circuit is connected when the
sensed data, location and data. The data from the Things V. ALGORITHM AND FLOWCHART FOR APCS
speak can be processed and analyzed only after creating the
The algorithmic approach for APCS was given below for
channels. The data that is stored in the Thingspeak can be
better understanding of the user. The Particle.publish()
utilized for visualization purpose using MATLAB and can
method uploads count data to the Thingspeak cloud for every
respond to the data with tweets and other forms of alerts also.
event occurs.
It also provides a feature to create a public based channel to
analyze and estimate it through the public. All these activities Algorithm 1: An Automated Power Conservation System
mentioned above are features of a Cloud and hence
Thingspeak is treated as a cloud. Input: Two IR sensor inputs IR1 and IR2
The IoT Helps to bring all things together and Output: Outputs light and fan via Relay module
permits us to communicate with our very own things and even Initialization: count 0
more curiously allows objects/things to interact with other
1. Loop
‘things’.
2. if IR1 == HIGH then
IV. SYSTEM DESIGN AND IMPLEMENTATION 3. while 15sec completes do
The implementation of the proposed system (APCS) 4. if IR2==HIGH then
is shown in Figure 6. It shows the connectivity of various 5. count++
devices to particle photon chip. IR and Relay devices get 6. particle. publish(count) ;
power from GND and +5V pins from Particle device. The IR 7. end
sensor is usually used for obstacle detection but in APCS it is
8. end
used for detecting the direction of motion. It shows how the
two IR sensors are placed at the entrance of the room. The 9. end
phase difference between the readings of the two sensors can 10. if IR2==HIGH then
be used to detect the directions of the movement. The particle 11. while 15sec completes do
photon is continuously reading both the sensors values. The 12. if IR1==HIGH then
person while moving in or out of the room will pass through 13. count -- ;
these sensors one by one. If the IR1 sensor, gives +5V before 14. particle. publish(count) ;
the IR2 sensor then the person is moving IN the room. If IR2
sensor gives +5V before the IR1 sensor then the person is 15. end
moving OUT of the room. Whenever a person is detected 16. end
entering or leaving the room the count is incremented or 17. end
decremented respectively. Thus we can know the number of 18. if count <= 0 then
persons available inside the room at any moment and can 19. lightLOW;
check whether the room is empty or occupied. Accordingly, 20. fanLOW;
APCS switch on or off the electrical appliances.
21. else
22. lightHIGH;
23. fanHIGH;
24. end
25. EndLoop
4.1 Flow Chart
Figure 7 gives the flowchart of APCS while it is
operating in Automatic mode. Initially, both the sensors are
waiting for obstacle detection if the IR1 sensor detects signal
first then 15sec after the IR2 sensor detects signal. It means
person entered the room so count variable increments and
count upload into the Thingspeak. if the count equals to zero
the microcontroller turns off the lights and fans. If the IR2
detects first then IR1 means person left the room so count
decrements. Every action, the particle will upload data into
the cloud.
Figure 6: Implementation of Automated Power Conservation
System
interacts with the system by simply logging into the app with
help of the unique user id and password.
VII. EXPERIMENTAL RESULTS
The proposed system APCS has been tested successfully
for both manual and automatic operation of electrical
appliances based on the presence of the persons in the
classroom. APCS can be treated as a novel approach to
conserving power and it is calculated that almost 15% of
power can be saved per month. Conserving power has a
direct impact on money savings also. Even though the APCS
is developed keeping in view of the university, it is also
proved that it is best-suited home automation and industrial
automation where one can conserve more power from being
wasted.
VIII. CONCLUSION AND FUTURE WORK
This paper proposes a low cost, secure, ubiquitously
accessible, remotely controlled solution. The approach
discussed in the paper is novel and has achieved the target to
control electrical appliances remotely using the Wi-Fi
technology to connect system parts, satisfying user needs and
requirements. Looking at the current scenario we have
chosen the Android platform so that most of the people can
get the benefit. The technology is easy to use and can benefit
Figure 7: Flowchart of APCS while operating in an Automatic the naive people that have no technical background. The
mode proposed system is better from the scalability and flexibility
point of view than the commercially available automation
The particle photon continuously reading values from systems.
sensors and uploading into Thingspeak using webhook which
is already configured in particle web. The mobile application In future proposals can be made to build a cross-
gets these data from Thingspeak using JSON objects. platform system that can be deployed on various platforms
like iOS, Windows etc. This System can be extended to a
VI. EXPERIMENTAL SETUP number of electrical appliances. INPUTS and OUTPUTS can
be extended by using Basic Logic gates. Many other devices
like Security cameras can be controlled, allowing the user to
observe activity around a room. Security systems can include
motion sensors that will detect any kind of unauthorized
movement and notify the user. The scope of this project can
be expanded to the entire organization but not for a single
room.
REFERENCES
[1] R. K. Kodali, V. Jain, S. Bose, and L. Boppana, “IoT Based Smart
Security and Home Automation System,” pp. 1286–1289, 2016.
[2] R. L. Kumar Mandula, Ramu Parupalli, CH.A.S.Murty, E.Magesh,
“Mobile-based Horne Automation using the Internet of Things
(IoT),” pp. 340–343, 2015.
[3] V. Patchava, H. B. Kandala, and P. R. Babu, “A Smart Home
Automation technique with Raspberry Pi using IoT,” 2015 Int.
Figure 8: APCS Experimental Setup Conf. Smart Sensors Syst. IC-SSS 2015, pp. 3–6, 2017.
[4] H. S. Raju and S. Shenoy, “Real-time remote monitoring and
Experimental setup for the proposed system (APCS) is operation of industrial devices using IoT and cloud,” Proc. 2016
shown in Figure 8. APCS program is flashed into particle 2nd Int. Conf. Contemp. Comput. Informatics, IC3I 2016, pp. 324–
photon. APCS android app has been installed on the 329, 2016.
smartphone. The user gets all the information about the [5] B. Jadhav and S. C. Patil, “Wireless Home monitoring using Social
Internet of Things (SIoT),” Int. Conf. Autom. Control Dyn. Optim.
devices with the help of the APCS mobile app. The user Tech. ICACDOT 2016, pp. 925–929, 2017.
[6] D. Pavithra and R. Balakrishnan, “IoT based monitoring and
Authors Profile
Chandra Sekhar Sanaboina is presently
pursuing Ph.D. under the guidance of Prof.
Pallamsetty Sanaboina from Andhra
University. He obtained his B.Tech. In
Electronics and Computer Science
Engineering in 2005 and M.Tech in
Computer Science and Engineering from
Vellore Institute of Technology in 2008. He
has over 10 years of teaching experience and currently working as
Assistant Professor in the Department of Computer science and
Engineering, JNTUK Kakinada. His areas of interests include
Wireless Sensor Networks, Internet of Things, Machine Learning
and Artificial Intelligence.
Harish Bommidi completed his M.Tech in
Computer Science and Engineering from
UECK, JNTUK Kakinada in the year 2017.
He has completed his B.Tech in Computer
Science and Engineering, from Vignan
Institute of Information Technology,
Duvvada, Visakhapatnam. He has done his
M.Tech Project under the guidance of
Chandra Sekhar Sanaboina, Assistant
Professor in the Department of Computer
Science and Engineering, JNTUK Kakinada. Presently he is
working for TCS, Bangalore as Assistant Systems Engineer. His
Areas of interests include Wireless SensorNetworks, Internet of
Things.