Professional Documents
Culture Documents
Abstract— The use of Internet of Things (IoT) the lights at night and also help the Passive Infrared
technology provides comfort and convenience for sensor to find out human existence [3].
technology users. In this research, an automatic light
switch device used the Light Dependent Resistor sensor Researching the effectiveness of Light Dependent
as an automation for light intensity and AI server
assistance for human habits. In this tool there are two
Resistor sensors for use in automatic lights. In the
rules that govern the automation of the Decision Rule study said that the Light Dependent Resistor sensor
and Priority Rule. From the testing of this tool, the two has been able to replace old technology and is very
rules have shown an accuracy of 100%. effective, therefore the researchers used the Light
Dependent Resistor sensor in this study [4]. Research
Keywords— automatic light switches, blynk platform, on automatic lights using Passive Infrared sensors, in
internet of things this study can be seen that the use of Passive Infrared
sensors is very useful if installed in a room that has
I. INTRODUCTION activity [5].
With the development of technology and the Internet III. RELATED TECHNOLOGIES
of Things makes it easier for technology users to carry
out any activities related to technology. The A. Blynk
development of the Internet of Things in every aspect
Blynk is a server service used to support the Internet
of life makes it easier for small things to be done. [1]
As in this Project, the making of a custom human light of Things project. This server service has a mobile
switch uses the Blynk platform as an Inter of Things user environment both Android and iOS. Blynk
and NodeMCU v1 broker as its microcontroller that Application as a support for IoT can be downloaded
will be connected via an internet connection via Wi-Fi. through Google play. Blynk supports a variety of
hardware that can be used for the Internet of Things
Lighting settings usually use an ordinary switch to turn project. Blynk is a digital dashboard with a graphical
lights on or off by operating the switch manually. interface facility in making the project. Adding
Lighting a room will turn on or turn off automatically components to Blynk Apps by Drag and Drop, making
following the habits carried out by the user of the room it easier to add Input / output components without the
so that the switch becomes automatic, assisted also by
need for Android or iOS programming capabilities.
the presence of Light Dependent Resistor sensors to
help the machine detect the intensity of light in the Blynk was created with the aim of controlling and
room, so it can facilitate the control of the lights. Not monitoring hardware remotely using internet or
only using a machine in this room will be given a intranet data communication (LAN network). The
switch button that is useful for turning off and turning ability to store data and display data visually using
on the lights manually and also the use of servers to be either numbers, colors or graphics makes it easier in
able to turn on and off remotely using a smartphone making projects in the Internet of Things [6].
application.
To make it easier for users to control the lights, this B. NodeMCU
tool can be a solution to facilitate the control of the NodeMCU is an open source IoT platform. Consisting
lights automatically and flexibly. This tool itself has of hardware in the form of a System On Chip
accuracy and response time that is efficient in ESP8266 from ESP8266 made by Espressif System,
operation. also the firmware used, which uses the Lua scripting
programming language. The term NodeMCU by
II. LITERATURE STUDY default actually refers to the firmware used rather than
Research on automatic lights, in this study using the hardware development kit [7].
Arduino mega as a microcontroller and Light
Dependent Resistor sensor as an automatic benchmark C. Light Dependent Resistor
of lights in measuring light intensity [2]. Automatic
Light Sensor or Light Dependent Resistor is a resistor
light experiment but only as a night light, the use of
that has a resistance value or resistance value that
Light Dependent Resistor sensors is only to turn on
depends on the intensity of the light it receives. When
it is clear the Light Dependent Resistor resistance
Authorized licensed use limited to: Auckland University of Technology. Downloaded on June 02,2020 at 16:35:01 UTC from IEEE Xplore. Restrictions apply.
2019 IEEE Asia Pacific Conference on Wireless and Mobile (APWiMob)
value will decrease and in the dark the resistance value The mobile application is connected as a visual for
will rise. In other words, the Light Dependent Resistor lamp status and as a remote input using the Blynk
functions to deliver an electric current if it receives a mobile application. Then the house lights that connect
certain amount of light intensity (Bright Conditions) through the Relay.
and inhibits electric current in dark conditions. The
received light affects the rise and fall of the resistance A. Hardware Design
value [8]. In this study, researchers used two rooms as
experiments, so a miniature room prototype was made,
D. Forward Chaining each room measuring 30 cm. In each - each room there
Forward Chaining is one of the expert system methods, is 1 home lamp, Light Dependent Resistor sensor, and
Forward Chaining is itself a search method or a a switch that is connected to the microcontroller
forward tracking technique that starts with existing installed in a miniature room. From each room the door
information and combines rules that produce is given to get the light intensity from each room. To
conclusions. In Forward Chaining must use the data drain electricity the appliance is fitted with an electric
approach first to describe the conclusions. In this socket branch to turn on the microcontroller and the
approach starts from the available information or basic house lights. Each component - a component that is
ideas [9]. connected directly to the microcontroller using a
jumper cable. Example in Fig.1.
E. Rule Based System
Rule Based System is a system that uses rules to show
their knowledge from rules. This theory starts with a
simple technique starting with a basic rule that
contains all the knowledge of the problems faced
which are then encoded into if-then rules that contain
data, statements and initial information [10].
IV. OVERVIEW
The general description for this automatic light switch
explains how this tool works, this tool sends data, a
series of these tools, the design of mobile applications,
learning modes and modes of human habits and the
rules used in this tool. Fig. 2. Hardware Design
Authorized licensed use limited to: Auckland University of Technology. Downloaded on June 02,2020 at 16:35:01 UTC from IEEE Xplore. Restrictions apply.
2019 IEEE Asia Pacific Conference on Wireless and Mobile (APWiMob)
habits. Data from Device is sent through antares microcontrollers, switches, Light Dependent Resistor
server. Figure 6. sensors and Relays. In the picture above shows the
part in the prototype room that is used automatic
lights, where in this section there are two lights on the
top that can be open or closed, and the room divider.
E. Device Mode’s
There are two modes on this device, the first is
learning mode and the second is human behavior
mode. for the process, the device will read the status
of the AI Server to determine which device is in a
certain mode. for more details can be seen on Figure
Fig. 4. Store Data Program 8.
In Figure 5 can be seen the data received on the
antares server.
Authorized licensed use limited to: Auckland University of Technology. Downloaded on June 02,2020 at 16:35:01 UTC from IEEE Xplore. Restrictions apply.
2019 IEEE Asia Pacific Conference on Wireless and Mobile (APWiMob)
will be switched to the Light Dependent Resistor The Table 1 above shows the decision-making rule in
sensor. the learning mode that will be used as a determinant of
the input received by the device and this rule will
2) Human Behavior Mode determine the condition of the next lamp. In this table
Human Behavior Mode, this is the condition when the in the switch column, mobile and lamp state the status
server has learned human habits so that the tool gets of each component. Then on the row in blue indicates
additional input provided by the server's human habits. the status change, for example OFF → ON, it states
that there is a change in status from off to on. In the
column results declare that the results after the status
changes occur. For example on the status of the switch
is off, the mobile is off, the sensor is dark and the
lamp is off. Then after changing the status of the
switch to on (OFF→ ON) it will change the status of
lamp and mobile.
Table 2. Decision Maker Rule in Human Behavior
Mode
AI Switch Mobile Sensor Lamp Result
ON → Only change a AI
OFF OFF DARK OFF
OFF stat
OFF → Lamp, Switch,
OFF OFF DARK OFF
ON Mobile = ON
ON → Only change a AI
OFF OFF LIGHT OFF
OFF stat
OFF → Lamp, Switch,
OFF OFF LIGHT OFF
ON Mobile = ON
ON → Lamp, Switch,
ON ON DARK ON
OFF Mobile = OFF
OFF → Only change a AI
ON ON DARK ON
ON stat
ON → Lamp, Switch,
ON ON LIGHT ON
OFF Mobile = OFF
OFF → Only change a AI
ON ON LIGHT ON
Fig. 10. Human Behavior Mode ON stat
OFF →
In Figure 10. we can know that the tool will read ON
ON
OFF DARK OFF Lamp, Mobile = ON
starting from the AI server and then no input will be OFF →
ON OFF LIGHT OFF Lamp, Mobile = ON
switched on the input from the switch then it will be ON
OFF →
transferred to the mobile application if there is no OFF
ON
OFF DARK OFF Lamp, Mobile = ON
input from the switch, then if the mobile application OFF
OFF →
OFF LIGHT OFF Lamp, Mobile = ON
ON
does not have input it will be switched to the Light ON → Lamp, Mobile =
Dependent Resistor sensor . ON ON DARK ON
OFF OFF
ON → Lamp, Mobile =
ON ON LIGHT ON
F. Decesion Maker Rule OFF OFF
ON → Lamp, Mobile =
In this rule using the Rule Base System, which has OFF
OFF
ON DARK ON
OFF
been determined by the researcher rule, there are 2 OFF
ON →
ON LIGHT ON
Lamp, Mobile =
OFF OFF
parts, namely the Rule, Decision Making when the OFF →
ON OFF DARK OFF Lamp, Switch = ON
mode of Learning and Habits is Human. Here's the ON
rule : OFF →
ON OFF LIGHT OFF Lamp, Switch = ON
ON
OFF →
OFF OFF DARK OFF Lamp, Switch = ON
Table 1. Decesion Maker Rule In Learning Mode ON
NO Switch Mobile Sensor Lamp Result OFF →
OFF OFF LIGHT OFF Lamp, Switch = ON
OFF → Lamp = ON , Mobile = ON
1 OFF DARK OFF ON →
ON ON ON ON DARK ON Lamp, Switch = OFF
OFF → Lamp = ON , Mobile = OFF
2 OFF LIGHT OFF ON →
ON ON ON ON LIGHT ON Lamp, Switch = OFF
ON → Lamp = OFF , Mobile = OFF
3 ON DARK ON ON →
OFF OFF OFF ON DARK ON Lamp, Switch = OFF
ON → Lamp = OFF , Mobile = OFF
4 ON LIGHT ON ON →
OFF OFF OFF ON LIGHT ON Lamp, Switch = OFF
OFF → Lamp = ON , Switch = OFF
5 OFF DARK OFF LIGHT → Lamp, Switch,
ON ON OFF OFF OFF OFF
OFF → Lamp = ON , Switch = DARK Mobile = ON
6 OFF LIGHT OFF DARK → Only change a
ON ON OFF OFF OFF OFF
ON → Lamp = OFF , Switch = LIGHT sensor stat
7 ON DARK ON LIGHT → Lamp, Switch,
OFF OFF ON OFF OFF OFF
ON → Lamp = OFF , Switch = DARK Mobile = ON
8 ON LIGHT ON DARK → Only change a
OFF OFF ON OFF OFF OFF
DARK → CHANGE SENSOR LIGHT sensor stat
9 OFF OFF OFF LIGHT → Only change a
LIGHT STATUS OFF ON ON ON
LIGHT → Lamp , Switch, Mobile = DARK sensor stat
10 OFF OFF OFF DARK → Lamp, Switch,
DARK ON OFF ON ON ON
DARK → Lamp , Switch, Mobile = LIGHT Mobile = OFF
11 ON ON ON LIGHT → Only change a
LIGHT OFF ON ON ON ON
LIGHT → CHANGE SENSOR DARK sensor stat
12 ON ON ON ON ON ON DARK → ON Lamp, Switch,
DARK STATUS
Authorized licensed use limited to: Auckland University of Technology. Downloaded on June 02,2020 at 16:35:01 UTC from IEEE Xplore. Restrictions apply.
2019 IEEE Asia Pacific Conference on Wireless and Mobile (APWiMob)
Authorized licensed use limited to: Auckland University of Technology. Downloaded on June 02,2020 at 16:35:01 UTC from IEEE Xplore. Restrictions apply.
2019 IEEE Asia Pacific Conference on Wireless and Mobile (APWiMob)
Authorized licensed use limited to: Auckland University of Technology. Downloaded on June 02,2020 at 16:35:01 UTC from IEEE Xplore. Restrictions apply.
2019 IEEE Asia Pacific Conference on Wireless and Mobile (APWiMob)
4, no. 2, 2016.
100 [7] K. R.A , S. Sriram K and P. D, "Automatic
Lighting Using Arduino and Passive Infrared
50
Sensor," International Journal of Computer
0 Science Trends and Technology (IJCST), vol. 6,
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 no. 5, 2016.
Push [8] Z. Mumtaz, S. Ullah, . Z. Ilyas, S. Liu, N. Aslam
and J. A. Meo, "Automatic Streetlights that Glow
on Detecting Night and Object using Arduino,"
100 ms 500 ms 1000 ms 2018.
Fig. 14. Multi Input [9] A. Jalan, . G. Hoge, S. Banaitkar and S. Adam,
From the test results above, we can conclude that the "Campus Automation Using ARDUINO,"
average of all Multi Input Response Time tests is International Journal of Advanced Research in
86.63 milliseconds with the fastest value of 60 Electrical, Electronics and Instrumentation
milliseconds and 169 millisecond late. Engineering, vol. 6, no. 6, 2017.
CONCLUSION [10] H. S. DOSHI and M. S. SHAH, "INTERNET of
THINGS (IoT): INTEGRATION of BLYNK for
1. Decision Maker Rule in Learning Mode runs DOMESTIC USABILITY," VJER-Vishwakarma
already in accordance with the expected output. Journal of Engineering Research , vol. 1, no. 4,
Likewise in the Human Behavior Mode, all the 2017.
tests are running according to the rules that
apply.
Authorized licensed use limited to: Auckland University of Technology. Downloaded on June 02,2020 at 16:35:01 UTC from IEEE Xplore. Restrictions apply.