Professional Documents
Culture Documents
Ika Monica Telaumbanua, Christopher Mika Andrew Siahaan, Richad Harianja
Ika Monica Telaumbanua, Christopher Mika Andrew Siahaan, Richad Harianja
Ika Monica Telaumbanua, Christopher Mika Andrew Siahaan, Richad Harianja
Raspberry Pi
Ika Monica Telaumbanua, Christopher Mika Andrew Raspberry Pi. Smart home or smart home is a programmable
Siahaan, Richad Harianja system and can work with the help of a computer to integrate
Faculty of Informatics and Electrical Engineering and control a device or home appliance automatically and
efficiently which aims to facilitate energy saving, comfort and
Institut Teknologi Del, Laguboti, Toba Samosir, Sumatera
so on [2]. Smart Home can be used to control almost all
Utara, Indonesia
equipment and equipment in the home, from lighting
Email : info@del.ac.id
arrangements to household appliances, whose commands can be
done using sound, infra red light, or remote control.
Abstrak---Currently, the number of household appliances that Pre-built home electrical appliances control systems such as
require electrical resources makes the use of electricity is home electrical appliance control systems using short message
increasing. But in the usage the user is often excessive and can’t media (SMS), or using android bluetooth or home web based
control it well. For example, users who forget or are lazy to turn home power control systems do not provide complete data for
off electronic devices manually while in the house or leave users that can make the user know how much power electricity
home. Excessive use of electricity is very detrimental to the user that has been used [3]. With Smart House Electricity Monitoring
both in terms of electrical power and costs incurred. based on Raspberry Pi the problem will be solved. This system
Electrical equipment monitoring system automatically helps users in monitoring the use of power consumed power
becomes the best solution to overcome the problem of excessive tools in the house.
electricity usage. In this research, a monitoring system for the
use of electrical appliances is automatically called Smart House II. TOOLS & MATERIALS
Electricity Monitoring Based on Raspberry Pi which aims to
monitor and control the use of electrical equipment in the house. a. Raspberry Pi
This research is useful for users who handle the use of electricity Raspberry pi is a small computer board working on Linux
in excessive and inappropriate. OS that is connected with computer, monitor, keyboard, and
The method of monitoring the use of electricity used in this
mouse. Raspberry Pi can be applied to electronic structure and
study is to detect the power consumed electrical devices using
network programming jobs, can also function as personal
Current Transformer sensor connected to Arduino then Arduino
will send the power Raspberry Pi to be stored and processed. computer and Apache Webserver. Raspberry Pi that has no
Raspberry Pi will send the processed data to the database and analog input. For that it must use an external analog-to-digital
will be displayed on a website based application built using the converter (ADC). In aquarium replacement and the automatic
Codeigniter framework to enable users to easily monitor the feeder will use Raspberry pi as the activity controller of the
electrical devices. activity.
In this final project will be discussed how to implement
Smart House Electricity Monitoring Based on Raspberry Pi b. Arduino
where user can use home electric appliances efficiently and Arduino is an open-source microcontroller that is
appropriately through website application which can be accessed compatible with any platform currently available. Arduino can
through laptop or smartphone. Keywords: Current Sensor connect to a computer via Universal Serial Bus (USB) and
Transformer, Arduino, Raspberry Pi, Relay and Codeigniter connect with both analog signals and digital signals. The
Arduino is a microcontroller platform, mounted on a board that
Keywords— Sensor Current Transformer, Arduino, Raspberry
connects easily to most computers. This allows the user to
Pi, Relay;
program the onboard chip, Atmega to do various things with the
programming language, in a program called sketch.
I. INTRODUCTION
Electricity is a very important component in helping every c. LM358
work of humanity, ranging from lighting to setting the The LM358 is a dual operational amplifiers (OpAmps)
temperature of the room and so forth. But in its use is often
consisting of two high-gain operational amplifiers with
inefficient, many people are letting an electric device turn on
when not in use. For example forget to turn off all lights or other independent frequency compensators [4]. The LM358 is
devices while away from home. This of course leads to waste in designed to operate from a single supply with a wide voltage
the use of electrical power. range for full flexibility in applying electronics circuit design.
Research that has been done to control electrical appliances The LM358 can also use a separate power supply during the
basically just turning off and turning on electrical appliances voltage difference between the two power supplies between 3V
only, no other features [1]. In this study the author made a and 32V and Vcc at least 1.5 volts higher than the common-
prototype home system based on Raspberry Pi smart user mode voltage input. The pull of the low supply current drain is
interface android that will perform data communication through independent of the magnitude of the power supply voltage.
web service that is Smart House Electricity Monitoring based on
CT sensor serves as a tool to measure the electrical
current consumed from each electrical device that is
d. Sensor Current Transformer
connected directly with the CT sensor by clamping. Lm358
Current transformer (CT) or current transformer is a tool serves as a ground provider for CT Sensors. CT sensor only
used to measure the amount of current on a large-scale primary has cable. The first cable serves to provide power for CT
power (TET, TT and TM) electric installation by transforming Sensors and other cables serve to provide data transmission
large quantities of current into small current quantities so as to on Arduino UNO via analogs contained on the Arduino UNO
make measurements or metering and accurately and precisely board. The power supply will be sent to Arduino UNO.
determining tool boundaries [5]. The measurement current Arduino UNO serves to receive data in the form of electric
transformer for metering has a high accuracy in the working current power from the CT sensor. Data received by Arduino
area (rated region) of 5% - 120% of its nominal current UNO will be sent to Raspberry Pi for further data is stored
and processed in Raspberry Pi operating system. Data from
depending on its class and relatively low saturation level
the Arduino UNO can be sent to Raspberry Pi by using a USB
compared to the current transformer for protection. While the
cable as a serial communication or communication link
current transformer for protection, has a high accuracy in the
between Raspberry Pi and Arduino. The power data obtained
event of interference where the current flowing several times
by Arduino is electric current power in Ampere units that
from the rated current and saturation level is high enough. The have been calculated into KW (KiloWatt) units which can
CT sensor will be wrapped around a cable at the positive pole to only be seen when the user accesses the monitoring
be able to measure the amount of electric current flowing application.
through the cable.
Raspberry pi plays a role in processing data transmitted
e. Software Aplikasi (Web Aplikasi) by CT Sensors to be further displayed into a website-based
A website is a collection of pages displaying a wide range monitoring application. Next Raspberry pi sends data to the
of text, data, still or moving images, animation, sound, video or database for display on the application based website. The
built application has one way authenticaton as a process to
combination data of all, whether static or dynamic, forming an
determine whether the user who wants to enter into the
interconnected set [6]. A website is usually placed at least on a
system is a valid user or not. This application is only used by
web server that can be accessed through a network such as the
two users who act as admin and client.
Internet, or a local area network (LAN) through an Internet
address identified as a URL. The current authentication process generally only uses a
username and password. When the user successfully logs in
the user can see the dashboard application and use the
III. CONCEPT DIAGRAM application to monitor and control the use of electrical power
in the home. If the user logs into this system then
automatically logs the system to log / history user to know
whenever the application is used which is done on the system
used. The application is built with the purpose of facilitating
the user in controlling the use of electricity in the home.
V. Flow Chart Diagram
The User Log Layer contains data about the user ie ID,
email, name, permissions and description of when the user is
actively using the application. The User Log Layer is only
accessible by the admin. Shown the User Log layer can be seen
in Figure 6.
Figure 9. Menu View Details
Figure 11. Testting for 60 minutes [6] Immersa-lab.com. (2018). [online] Available at:
http://www.immersa-
VI. CONCLUSIONS lab.com/wpcontent/uploads/2018/03/Struktur-
Sederhana-Relay_Featured-Image.jpg [Accessed 25 Jan
After doing the design and manufacture of the system
2018].
and then tested and analyzed, it can be taken some
conclusions about Smart House Electricity Monitoring based
on Raspberry Pi, among others: [7] Muharram, A. (2018). Trafo Arus (CT). [online]
Bloglistrik.com. Available at:
1. After doing some testing on the system, the current http://www.bloglistrik.com/2016/08/trafo-arus-ct.html
detection using CT Sensor can not be done through [Accessed 26 Jan. 2018].
Raspberry Pi so that made changes by adding a
device that is Arduino. With Arduino the current [8] Materi Mafia Online. (2018). Cara Menghitung Energi
consumed by each electrical device can be detected dan Daya Listrik. [online] Available at:
by the CT Sensor well. But on CT Sensor only has https://mafia.mafiaol.com/2013/04/cara-menghitung-
cable for voltage (volt) and GPIO and there is no energi-dan-dayalistrik.html [Accessed 5 Jun. 2018].
cable to ground. So that added device of LM358
which is used as ground on CT Sensor. [9] Id.wikipedia.org. (2018). Raspberry Pi. [online]
2. The system can monitor the use of electrical power Available at: https://id.wikipedia.org/wiki/Raspberry_Pi
in the home can also control electrical devices such [Accessed 26 Jan. 2018]
as turning on and off electrical devices using
website applications that can be accessed through a [10] N, S. (2018). Mengetahui Pengertian Website Dan
laptop or smartphone. Jenisnya - Pengertian Apapun. [online] Pengertian
3. The system built is in accordance with the scope Apapun. Available at:
described previously http://www.pengertianku.net/2014/09/mengetahui-
pengertian-website-dan-jenisnya.html [Accessed 26 Jan.
Recognition 2018].
This research is supported by Faculty of Informatics and
[11] Id.wikipedia.org. (2018). CodeIgniter. [online]
Electrical Engineering
Available at: https://id.wikipedia.org/wiki/CodeIgniter
Institut Teknologi Del, Laguboti, Toba Samosir, Sumatra [Accessed 30 Jan. 2018].
Utara, Indonesia
[12] Pintarci.blogspot.co.id. (2018). Pengenalan Struktur
References Codeigniter | Pintar Codeigniter. [online] Available at:
http://pintarci.blogspot.co.id/2014/09/pengenalan-
[1] Kumar, S. and Sharma, A. (2017). An Efficient Home strukturcodeigniter.html [Accessed 30 Jan. 2018].
Automation Approach using Raspberry Pi in Wireless
Sensors with Smart Phone. International Journal of
[13] Blog.langitrobotika.com. (2018). Pengertian Arduino
Computer Applications, [online] 173(9), pp.38-43.
UNO | LangitRobotika.Com. [online] Available at:
http://blog.langitrobotika.com/article/robotika/pengertia
[2] Elib.unikom.ac.id. (2018). Digital library - n-arduinouno/.html [Accessed 3 Jun. 2018].
Perpustakaan Pusat Unikom - Knowledge Center -
WELCOME | Powered by GDL4.2 | ELIB UNIKOM.
[14] DIP-8), I. (2018). IC LM358 Dual OpAmps
[online] Available at:
(SMD/SOP-8 atau DIP-8). [online] Vcc2GND.com |
http://elib.unikom.ac.id/gdl.php?mod=browse&op=read
Solusi Rekayasa Elektronika. Available at:
&id=jbptunikompp-gdl-putrimeili- 35884 [Accessed 23
http://blog.vcc2gnd.com/2014/02/ic-lm358-dual-
Jan. 2018].
opamps-smdsop-8-atau-dip-8_10.html [Accessed 3 Jun.
2018].
[3] Imron, H., Isnanto, R. and Widianto, E. (2016).
Perancangan Sistem Kendali pada Alat Listrik Rumah
[15] DASAR KOMPUTER BUAT PEMULA. (2018).
Pengetahuan Dasar dan Pemrograman Raspberry Pi.
[online] Available at:
https://pccontrol.wordpress.com/2014/06/17/pengetahua
n-dasar-dan-pemrogramanraspberry-pi/. [Accessed 30
Jan 2018].