Sie sind auf Seite 1von 4

2015 4th International Conference on Instrumentation, Communications, Information Technology, and Biomedical Engineering (ICICI-BME)

Bandung, November 2-3, 2015

Android Smart Home System


Based on ATmega16
Medilla Kusriyanto1, Beny Setiawan2
Program Studi Teknik Elektro, Fakultas Teknologi Industri, Universitas Islam Indonesia
Address : Kaliurang Street Km. 14.4, Besi , Sleman, Yogyakarta, Indonesia.
1 2
email:medilla@uii.ac.id , beny.heho@yahoo.com

Abstraction. The increasing number of construction of houses


in Indonesia would lead to an increase in the number of national
electricity consumption. Electricity usage should be done more
efficiently so that electricity is not wasted in vain. The
development of today's information technology should be used as
a solution to these problems. In this research tries to create a
system that can be used to simplify the user to monitor and
control equipment in the house such as room temperature,
lighting and fan through Android. This tool working system
utilizes ATmega16 microcontroller with the help of Visual
Basic.Net interface as a medium of communication to the
database server. Android phone will send a command given by
the user to the database server through the Internet, then the
order will be forwarded to the microcontroller to be done
executed. From the test showed that Android phones through the
Internet can be used as a tool to control electrical equipment such
as lights and fans, and can also be used to monitor the
temperature of the room.

Key word : Android, Control , Smart home, microcontroller.

I. INTRODUCTION
Fig. 1. Schematic of Android smart home system
The increasing number of construction of houses in
Indonesia will certainly lead to an increase in the number of The basic concept of these devices work using ATmega16
national electricity consumption. Electricity usage should be microcontroller as a controller. Microcontroller sends
done efficiently so that electricity is not wasted in vain. One information about the results of sensor readings to the database
effort to make efficient use of electricity is to turn off electrical server with the help of the interface created with VB.Net . The
equipment that is not used as lights, fans, air conditioning, and database on the server used for data recording state -controlled
so forth. Problems encountered at this point is still low electrical equipment . Information residing on the server can be
awareness of the society to make savings. accessed by users via the Internet with the help of Android
With the ease of internet access as well as the current phones . Users can easily observe the state of the lights , fan ,
technological developments, the author tries to create a tool and temperature wherever they are as long as there is internet
that can be used to control household appliances via the access.
Android mobile phone. Ease of operation of electrical
appliances through Android devices is expected to increase B. Design of the hardware.
public awareness to save electricity. The system created will Manufacture of hardware begins with the assembly of the
utilize microcontroller ATmega16 and Android phones to be minimum system microcontroller ATmega16 . Sensors
used as a tool to control electrical appliances in the house. connected to the input part of the microcontroller and the relay
is connected to the output section . The system requires 7
II . DESIGN TOOLS pieces made for sensor input channels and 6 units for the relay
output channels .
A. Overview of the system
The following figure is a general overview of the tools that
have been designed :

978-1-4673-7800-0/15/$31.00 2015 IEEE 304


2015 4th International Conference on Instrumentation, Communications, Information Technology, and Biomedical Engineering (ICICI-BME)
Bandung, November 2-3, 2015

from the interface to the microcontroller is done using a serial


RS- 232 communication.

III . TEST RESULTS AND ANALYSIS

A. Testing hardware ( hardware )


• Testing of the light sensor circuit photodioda

TABLE I.
LIGHT SENSOR TEST RESULTS

Fig. 2. Block diagram of the hardware .

Fig. 2. shows a block design of the hardware of the device is


made . LM35 temperature sensor is used as a tool to determine
the temperature of the surrounding environment . Photodiode is
used as a light sensor to detect the condition of lights and relay
functions as a switch for electrical devices to be controlled .
Here are some of the hardware that is used in the design of this
tool.

C. The design of software The test results in Table I shows that the best position in
which to place the sensor in the direction of the source of light
from outside . If the sensor placement together with the
direction of the light from the outside there will be a light
interference that would cause an error in the process of reading
the data .
• Testing the hardware overall

TABLE II .
HARD OVERALL TEST RESULTS

Fig. 3. Flowchart process data communication between interfaces with


database
The test results shows in Table II that the microcontroller has
Fig. 3. shows the process of downloading data from the been able to execute orders given user through Hyperterminal .
database server to the microcontroller starts with the From these test results , the microcontroller can send feedback
communication process of interaface to the database . Once to Hyperterminal after executing the commands it receives.
communications are connected , the interface will take the Therefore , it can be said that the communication between the
information set point in the database server. Data This interface tool has worked well .
information will then be processed and customized format for
further sent to the microcontroller . The process of sending data B. Testing of software (software )
• Testing interface VB.Net

305
2015 4th International Conference on Instrumentation, Communications, Information Technology, and Biomedical Engineering (ICICI-BME)
Bandung, November 2-3, 2015

Fig. 4. shows that the interface may perform processing of


data transmitted by the microcontroller well . Data received by Chart comparison between the temperature
the interface will first be processed to separate the appropriate readings analog thermometer with a
parts. Each section will be processed and entered into the temperature display in the interface
database server according to its function. 60

50

Temperature(ûC)
40

30

20

10

0
1 2 3 4 5 6 7 8 9 10 11
measurement

Fig. 5. graph comparison of the results between the temperature readings


analog thermometer with a temperature display in the interface .

(a) TABLE III .


PERFORMANCE TEST RESULTS INTERFACE

Table III shows the results of resistance testing tools in


operation. Testing is done by allowing the device to operate
continuously for a certain time span . The results show that for
5 consecutive hours the device can operate well without the
slightest constraint .

• Testing Android Applications " Benoid "


Fig. 6. shows the application view " Benoid " when it has
been connected to the instrument . The Android application
will provide feedback in the form of notification of a
successful message if it has managed to send data to the
(b) database . From the test results show that the Android
application is made has been able to communicate with the
Fig. 4. Testing interface VB.Net . ( a) The display interface VB.Net before
connecting to the tool ( b ) Display after connecting to a VB.Net interface tool microcontroller to monitor and control the lights and fan .
Button and form a command that is in the application " Benoid
Fig. 5. shows that the comparison of temperature readings on " These have all been tested and will work well as expected .
the interface does not exactly match the readings through
analog thermometer but has almost the same movement
direction . Differences in the measurement results could occur
due to treatment of both types of measuring devices that are
less common or errors during the reading process .

306
2015 4th International Conference on Instrumentation, Communications, Information Technology, and Biomedical Engineering (ICICI-BME)
Bandung, November 2-3, 2015

[4] H. Andrianto , " Using ATmega16 AVR Microcontroller


Programming Language C (Code Vision AVR ) ,
"Information Technology , Bandung , 2008 .
[5] I. Warangkiran , " The design of Android –Based
Lighting Control , " Sam Ratulangi University Thesis
S1,2014 .
[6] M. Dinata , " Design and Implementation of Remote
Control Device Based Home Electronics Mobile
Communications Bluetooth on Android , " Telkom
Bandung Institute of Technology Thesis S1 , 2013 .
[7] N. Safaat , " Application Programming Mobile
Smartphone and Tablet PC -based Android , " Information
Technology , Bandung , 2012 .
[8] Texas Instruments , ( 2013 ) . LM35 Datasheet .
http://www.ti.com/lit/ds/symlink/lm35.pdf .
Fig. 6. Testing the application " Benoid " .

IV. CONCLUSIONS AND SUGGESTIONS

After going through the process of designing, manufacturing


tools, analysis and testing has been done, it can then be drawn
some conclusions device that are made can operate properly as
expected. In order to connect the microcontroller to the
database server takes an additional interface that serves as an
intermediary for communication between the two.
Testing the performance of the device, shows that the device
can work normally for 5 consecutive hours. Photodiode can be
used to detect the state of the lights in the room but has a
weakness for the wrong reading of the situation in the event of
interference light from outside. Android can be used as a tool
to monitor and control temperature, lighting and fan inside the
house through the internet network.
For the next development could be added several types of
sensors such as current sensors, motion sensors, gas sensors,
and so forth so that the monitoring process can include many
hal.Perlu any further development in terms of data security, so
that only people who have access who can use the equipment.

ACKNOWLEDGMENT

This research supported by Electrical Engineering


Department of Industrial Technology Faculty of Islamic
University of Indonesia.

REFERENCES

[1] Atmel Corp. , (2010 ) . ATmega16 datasheet .


http://www.atmel.com/Images/doc2466.pdf .
[2] E. Winarno , and A. Zaki , " Basics Programming Visual
Basic 2010 , " Elex Media Komputindo , Jakarta , in 2010
.
[3] F. Jacob . " Handbook of Modern Sensors Physics ,
Designs , and Applications , " AIP Press, 2004 , New York
.

307

Das könnte Ihnen auch gefallen