A_Design_of_Smart_IoT-Based_College_Room_Using_Ard
A_Design_of_Smart_IoT-Based_College_Room_Using_Ard
Abstract. Electrical appliances and local switches can be controlled distantly by utilizing the Internet
of Things (IoTs) communication protocols. Those devices can be accessed and operated through
mobile phones. A smart college room is one of the applications in smart campus which worked by
means of Wi-Fi existence for distant observing of electrical devices or switches in the particular
room. Hence, this paper describes the project’s design and development based on IoTs by
implementation of Arduino. The project applies Arduino MEGA 2560 board in conjunction with
ATmega2560 chip. The main controller (ATmega2560) is used to connect the board with Wi-Fi
module as well as to control DC motor, servo motor and LED in the project. The inputs need to be
controlled in the room are lights, fan, sliding door and curtain. Since internet is the sub-core to this
project, it helps the project system to acknowledge what user has decided in their mobile phones. For
instance, when user wants to turn light in the room, he can simply do it by touching the respective
button in the mobile phones. The project is purposely designed for preventing electricity wastage
among students which usually happens in colleges. Besides, it promotes accident-free environment
while operating the electrical appliances or switches in the room.
1. Introduction
Living in this world today, it can be seen that technology has become essential and necessary to many
lives. To date, there are lots of systems as well as applications are transformed tremendously from being
conservative to technology-improvised. Having Internet of Things (IoTs) recently has made the
technology development evolves swiftly[1]. It is now being a platform which is very common to many
people around the world. IoTs can be explained as a medium in connecting gadgets or any devices such as
mobile phones, internet televisions and sensors to the internet. All the devices are connected together
allowing different forms of communication between things and people and vice versa. Among the
applications affected by the IoTs growth in technology, smart room is one in the list. The existence of
smart room has led to many purposes. Some of the reasons are for helping elderly and handicapped
patients [2], for monitoring air quality [3], for detecting occupancy status [4], for observing energy power
consumption [5], for curbing light wastage [6] and many more. Back in few years ago, Bluetooth was the
popular technology to execute home automation [7]. Thus by having IoTs around, it has advanced
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
JICETS 2019 IOP Publishing
Journal of Physics: Conference Series 1529 (2020) 022045 doi:10.1088/1742-6596/1529/2/022045
substantially in the last recent years as it enhanced and improved the world of communication and
information technology.
This project can solve lots of problems that usually happen in college, for instance, electricity wastage
amongst students, electricity-related accidents, electrical short circuit situation and many more. These
problems can cause danger to the students as well as tarnish the institute’s reputation. Hence, the project is
proposed to control electrical usage in college room plus to improve its facilities in offering maximum
comfort to the students. The main interest for this project is to design and implement a college room
automation system which is able to control and automate most of the electrical appliances in the room by
using IoTs via mobile phones. The proposed system has excellent flexibility to communicate its
distributed sensors to home automation server by using Wi-Fi technology.
For this project, the design and development of the smart college room is constructed based on
Arduino MEGA board. The board has ATmega2560 that acts as main controller which will interact with
Wi-Fi serial transceiver module. This will help the communication between the board and the mobile
phones provided that internet connection is good throughout the process. The interaction occurs for the
user to monitor the electrical appliances in the particular room. This system operates completely on
wireless network since Wi-Fi module (ESP8266) is used to do such task. It allows internet access to the
whole system by assigning an internet protocol (IP) address when connected to the network.
When user checks the usage of electrical appliances he has in the room via his mobile phones by
implementing Blynk App, he also can decide to turn on or off the electrical appliances instantly. Through
his mobile phones, he is now capable in observing the electrical status of his room remotely on condition
that the internet is accessible during the practice. Instead of conventional method, the switching operation
and equipment in the room can be done by touching on mobile phone’s screen. Furthermore, risk in
handling electrical appliances can be reduced compared to the usual method.
2. Methodology
The development of this project is partitioned into two main parts which are hardware construction and
software elements. In the hardware construction, the circuit for the whole system is fabricated in PCB lab
and its prototype model of the project is developed. However, for software details, the entire working
system is programmed by means of Arduino IDE (programming software).
2
JICETS 2019 IOP Publishing
Journal of Physics: Conference Series 1529 (2020) 022045 doi:10.1088/1742-6596/1529/2/022045
3
JICETS 2019 IOP Publishing
Journal of Physics: Conference Series 1529 (2020) 022045 doi:10.1088/1742-6596/1529/2/022045
Figure 4 shows the block diagram for the smart college room based on IoT by using Arduino while figure
5 displays the hardware architecture of the whole project. The hardware design involves one main
component which is the connection between Arduino MEGA with Wi-Fi module of ESP8266. This allows
Wi-Fi connection to be accessed by Arduino MEGA. Thus, Arduino MEGA can perform any task by
activating selected input from user in his mobile phone. For instance, if a user wants to open up the sliding
door, user only needs to slide to the most right in Blynk apps. Input from Blynk apps will notify Arduino
to give command to servo motor to rotate, hence sliding door will open up. Similar case will apply for
lights and fan to turn on or off and sliding curtain to open or close.
INPUTS OUTPUTS
1. On phone – press
light
2. On phone – press 1. Light ON/OFF
Microcontroller
fan 2. Fan ON/OFF
in Arduino
3. On phone – press 3. Sliding door OPEN/CLOSE
MEGA
sliding door 4. Curtain OPEN/CLOSE
4. On phone – press
curtain
4
JICETS 2019 IOP Publishing
Journal of Physics: Conference Series 1529 (2020) 022045 doi:10.1088/1742-6596/1529/2/022045
Start
Main menu:
- CASE 1: LIGHTS
- CASE 2: FAN
- CASE 3: SLIDING
DOOR
- CASE 4: CURTAIN
DOOR DOOR
CASE 3
CLOSE OPEN
CURTAIN CURTAIN
CASE 4
CLOSE OPEN
5
JICETS 2019 IOP Publishing
Journal of Physics: Conference Series 1529 (2020) 022045 doi:10.1088/1742-6596/1529/2/022045
module is not present in the software. Therefore, it was replaced to another input connector available
which has the same pins like Wi-Fi module has. In Figure 10, it describes the program codes used for
connecting ESP8266 with Blynk apps in mobile phone. To start Blynk apps, user needs to have a unique
identifier which is called Auth Token. Auth Token will connect the hardware to the mobile phone. When a
new project is created, the token will be automatically generated for the project. The token will recognize
promptly the hardware part and perform as a proof that the hardware acknowledges whatever user sets in
the mobile phone. User needs to download Blynk library (in the official Blynk website) so that it can be
called upon running the program in Arduino IDE.
Figure 10. The program code for connecting ESP8266 with Blynk apps.
6
JICETS 2019 IOP Publishing
Journal of Physics: Conference Series 1529 (2020) 022045 doi:10.1088/1742-6596/1529/2/022045
11, Figure 12, Figure 13 and Figure 14 show all the observed result respectively. As soon as the program
starts, user is only required to monitor his electrical appliances on his mobile phone. When he insists to
turn on or off lights in his room, he only needs to press once at the button LIGHT in Blynk apps on his
mobile phone. Similar steps are needed for turning on or off the fan. For sliding door and curtain to be
opened, user needs to slide the slider option in the Blynk apps. If user slides to the most right, it will
trigger motor to rotate clockwise and eventually open the sliding door or curtain while sliding to the most
left will cause the motor to rotate counterclockwise hence shutting the door or curtain off.
Figure 13. When sliding door is set to open (slide Figure 14. When the curtain is adjusted to open
to the most right). (slide to the most right).
Table 1 displays the analysis of results obtained after testing the software development together with the
hardware construction. When “LIGHT” button is pressed on the mobile phone in Blynk apps, the
designated light will turn on instantly. Whenever user wants to turn the off the light, he just needs to touch
again the “LIGHT” button on the Blynk apps. Similar steps are needed to turn on or off the fan in the
college room. User only needs to slightly touch the “FAN” button on the Blynk apps. But for sliding door
and curtain to be open or shut, user needs to slide the slider on the Blynk apps to the most right and left
respectively.
Table 1. The analysis of the software simulation results based on the tests.
Case Input via Blynk Output
Press button on at “LIGHT” section to
1 Lights will turn on/off
turn on/off the LED
Press button on at “FAN” section to turn
2 Fan will turn on/off
on/off the fan
For “SLIDING DOOR” section, user
3 Sliding door will open/shut
needs to slide the slider to the right(open)
7
JICETS 2019 IOP Publishing
Journal of Physics: Conference Series 1529 (2020) 022045 doi:10.1088/1742-6596/1529/2/022045
or left(close)
For “CURTAIN” section, user needs to
4 slide the slider to the right(open) or Curtain will open/shut
left(close)
4. Conclusion
In conclusion, this project is designed to enhance the conventional method of conducting electrical
appliances in the college room to become one-touch solution for all. It is considered as an automatic
system since user can monitor and control the electricity in his college room through mobile phone
remotely, provided that the internet connection is available for both parties. This system employs IoTs
technology which enables everything to be controlled and organized by means of internet accessibility.
Upon completing the project, it is believed that a lot of improvements can be offered pertaining to
electricity saving, college facility, user safety issue and current technology involvement. Furthermore, the
designed system is inexpensive due to minimal usage of components throughout the project.
References
[1] Coelho S, Rozario R, Sharma R, and Mehra M 2018. An IOT Based Smart Cubicle System for
Effective Power Usage and Employee Monitoring in Offices, 2018 Int. Conf. Smart City Emerg.
Technol. ICSCET 2018, pp. 1–6.
[2] Nath P and Pati U C 2018. Low-Cost Android App Based Voice Operated Room Automation
System, 2018 3rd Int. Conf. Converg. Technol., pp. 1–4
[3] Spachos P, Lin J, Bannazadeh H, and Leon-garcia A 2015. Smart Room Monitoring through
Wireless Sensor Networks in Software Defined Infrastructures, pp. 216–218.
[4] Tran L D, Stojcevski A, Pham T C, De Souza-daw T, Nguyen N T, and Nguyen V Q, 2016. A
Smart Meeting Room Scheduling and Management System with Utilization Control and Ad-hoc
Support Based on Real-Time Occupancy Detection, pp. 186–191.
[5] Arya A K, 2018. Smart Energy Controller for Energy management using IOT with Demand
Response, 2018 IEEE 8th Power India Int. Conf., pp. 1–6.
[6] Coelho S, Rozario R, Sharma R, and Mehra M, 2018. An Iot Based Smart Cubicle System For
Effective Power Usage, Int. Conf. Smart City Emerg. Technol., pp. 1–6.
[7] Verna M, Sigh S, and B Kaur, An Overview of Bluetooth Study, 2015. .Int. J. Curr. Eng. Technol.,
vol. 5, no. 3, pp. 1588–1592.
[8] Mesquita L A J, Guimaraes D, Pereira C, Santos F. 2018. Assessing the ESP8266 WiFi Module for
The Internet of Things.
[9] Srivastava P, Bajaj M, and Rana A S 2018. Overview of ESP8266 Wi-FI Module Based Smart
Irrigation System using IoT.
[10] Thati Y V N J, Kumari P V, 2017. Controlling of Home Appliances Through Internet, Int. Conf.
Energy, Commun. Data Anal. Soft Comuting.
[11] Singh P and Saikia S, Arduino-Based Smart Irrigation Using Water Flow Sensor, Soil Moisture
Sensor, Temperature Sensor and ESP8266 WiFi Module.
[12] Todica M 2016. Controlling Arduino board with smartphone and Blynk via internet.
[13] Doshi H S 2017. Internet Of Things (Iot): Integration Of Blynk For Domestic Usability,
Vishwakarma J. Eng. Res., vol. 1, no. 4, pp. 149–150.
8
JICETS 2019 IOP Publishing
Journal of Physics: Conference Series 1529 (2020) 022045 doi:10.1088/1742-6596/1529/2/022045
Acknowledgements
We would like to thank all the lab assistants in Faculty of Electrical Engineering Universiti Teknologi
MARA Terengganu Branch, Malaysia for their help and support in completing this project. Their
constructive comments have assisted us much and bettered the project significantly in so many ways.