Curtain Control Systems Development On Mesh Wireless Network of The Smart Home
Curtain Control Systems Development On Mesh Wireless Network of The Smart Home
net/publication/328686911
CITATIONS READS
7 1,039
4 authors:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Syifaul Fuada on 07 December 2018.
Trio Adiono, Sinantya Feranti Anindya, Syifaul Fuada, Maulana Yusuf Fathany
University Center of Excellence on Microelectronics, Institut Teknologi Bandung,
IC Design laboratory, PAU Building 4th floor, ITB Campus, Jln. Tamansari No.126, Bandung (40132), Indonesia
Corresponding Author:
Trio Adiono,
Institut Teknologi Bandung ,
University Center of Excellence on Microelectronics,
Jln. Tamansari No.126, Bandung,Indonesia
E-mail: [email protected]
1. INTRODUCTION
A smart home system is a system that consists control and management functions within a home
environment intended for enhancing living quality of its inhabitants through functions such as home
appliances control and monitoring and camera-based security. Smart home system generally utilize
technology such as Internet-of-Things and wireless sensor network to enable functions such as remote
controlling and monitoring, thus enhancing convenience for a house‟s inhabitant. Smart home system can
generally be categorized into at least one of four types based on its primary function, namely energy,
security, entertainment, and health care [1].
One of the most common applications of smart home system is for energy management purposes,
such as power monitoring and energy conservation. These functions are supported by including devices for
whether direct control and monitoring such as smart plug [2] and monitoring system [3], or indirect control
by manipulating the environment. One of the means for the indirect control is by controlling the curtains or
blinds, which serves to regulate lighting and heat within the house. A curtain serves as cover against sun, to
manage air circulation, and decorative purposes. In general, a curtain can be classified as decorative element
or fully-operable item for managing the room. The fully-operable curtain itself consists several types, such as
roller blind, Roman blind, horizontal blind, vertical blind, and wooden blind [4].
Within some existing smart home systems, the controller integrated into the system is usually used
for controlling horizontal blind Figure 1a and vertical blind Figure 1b curtains. Horizontal blind curtains are
normally used within office perimeter, while residential area primarily uses vertical blind curtains. The blinds
consist fin-like structure made from materials such as aluminum, wood, or textile materials such as cotton.
The curtain is intended to assist with power conservation tasks albeit indirectly, such as temperature control
and managing when lamps should be activated. There are several methods to control curtain through smart
home system, such as wirelessly using radio frequency [5][6], SMS gateway [7], Bluetooth [8], or fully
automated without remote control [9].
In the previous work, a prototype for wireless connectivity-based horizontal blind control has been
established [10-11]. The curtain controller itself is one of the end-nodes of a wireless smart home structure as
depicted in Figure 2, which consists an outdoor sub-system and indoor sub-system. The outdoor sub-system
consists elements those cannot be accessed through WSN and requires Internet connection such as cloud
server and mobile application, while the indoor sub-system consists devices within the WSN. Further
explanation on the WSN is detailed on [12] and [13]. Aside from the sub-systems categorization, the
elements of the proposed smart home network are divided into four types: end devices, nodes, host, and user
interface. Beside the curtain controller, there are several other types of end devices developed for the
proposed smart home system, namely temperature and humidity sensor [14], RGB LED lamp [15], power
switcher [16], door lock [17], fan controller [18], and infrared remote controller [19].
(a) (b)
Figure 1. The type of curtain: (a) horizontal blind; (b) vertical blind.
The illustration is obtained from http://nazmagorden.yukbisnis.com
In this paper, the extension of previous work for curtain control is presented. The end result of this
work is intended to be ready for implementation for real-life use case, in which an actual curtain can be
controlled wirelessly to slide up or down using mobile device. To that end, there are several things those need
to be considered: a) basic control function support, b) efficient (low-power and low-cost) hardware and
software design, c) flexibility and mobility of device for ease of implementation.
Figure 2. Proposed WSN system, edited from [12] and [13] with permission
2. METHODOLOGY
2.1. System Specification
The architecture of the device is depicted in Figure 3. The designed device uses stepper motor for
controlling the curtain; as such, digital output control is required. To support such task, the microcontroller
needs to be able to support low-power operation and have the following interfaces: at least four ports of
general purpose input/output (GPIO), timer, and USART. The controller itself will be powered using 5 VDC
voltage through DC adapter. From the user‟s side, the device is a box-shaped object which will be placed
statically (not a mobile device). The device is also equipped with several other interfaces, such as switch,
reset and mode buttons, and micro-USB port. Figure 3 shows the control system architecture of the curtain in
which the designed scenario is employed for an indoor environment purpose.
Curtain Control Systems Development on Mesh Wireless Network of the Smart Home (Trio Adiono)
618 ISSN: 2302-9285
Figure 8. The GUI of „close‟ and „open‟ the curtain control, from [23] and [24]
Curtain Control Systems Development on Mesh Wireless Network of the Smart Home (Trio Adiono)
620 ISSN: 2302-9285
Figure 9. Flowchart of an Android application for controlling the Curtain device based on Bluetooth
connection, from [23] and [24]
Curtain Control Systems Development on Mesh Wireless Network of the Smart Home (Trio Adiono)
622 ISSN: 2302-9285
Table 4. The software design for the command of logic combination on the stepper motor
software design for the command of logic combination on the stepper motor
for(loop=0;loop<511;loop++){
GPIO_WriteBit(GPIOC, GPIO_Pin_6, Bit_RESET);
GPIO_WriteBit(GPIOC, GPIO_Pin_7, Bit_RESET);
GPIO_WriteBit(GPIOB, GPIO_Pin_0, Bit_RESET);
GPIO_WriteBit(GPIOB, GPIO_Pin_1, Bit_SET);
Delay(1);
GPIO_WriteBit(GPIOC, GPIO_Pin_6, Bit_RESET);
GPIO_WriteBit(GPIOC, GPIO_Pin_7, Bit_RESET);
GPIO_WriteBit(GPIOB, GPIO_Pin_0, Bit_SET);
GPIO_WriteBit(GPIOB, GPIO_Pin_1, Bit_SET);
Delay(1);
GPIO_WriteBit(GPIOC, GPIO_Pin_6, Bit_RESET);
GPIO_WriteBit(GPIOC, GPIO_Pin_7, Bit_RESET);
GPIO_WriteBit(GPIOB, GPIO_Pin_0, Bit_SET);
GPIO_WriteBit(GPIOB, GPIO_Pin_1, Bit_RESET);
Delay(1);
GPIO_WriteBit(GPIOC, GPIO_Pin_6, Bit_RESET);
GPIO_WriteBit(GPIOC, GPIO_Pin_7, Bit_SET);
GPIO_WriteBit(GPIOB, GPIO_Pin_0, Bit_SET);
GPIO_WriteBit(GPIOB, GPIO_Pin_1, Bit_RESET);
Delay(1);
GPIO_WriteBit(GPIOC, GPIO_Pin_6, Bit_RESET);
GPIO_WriteBit(GPIOC, GPIO_Pin_7, Bit_SET);
GPIO_WriteBit(GPIOB, GPIO_Pin_0, Bit_RESET);
GPIO_WriteBit(GPIOB, GPIO_Pin_1, Bit_RESET);
Delay(1);
GPIO_WriteBit(GPIOC, GPIO_Pin_6, Bit_SET);
GPIO_WriteBit(GPIOC, GPIO_Pin_7, Bit_SET);
GPIO_WriteBit(GPIOB, GPIO_Pin_0, Bit_RESET);
GPIO_WriteBit(GPIOB, GPIO_Pin_1, Bit_RESET);
Delay(1);
GPIO_WriteBit(GPIOC, GPIO_Pin_6, Bit_SET);
GPIO_WriteBit(GPIOC, GPIO_Pin_7, Bit_RESET);
GPIO_WriteBit(GPIOB, GPIO_Pin_0, Bit_RESET);
GPIO_WriteBit(GPIOB, GPIO_Pin_1, Bit_RESET);
Delay(1);
GPIO_WriteBit(GPIOC, GPIO_Pin_6, Bit_SET);
GPIO_WriteBit(GPIOC, GPIO_Pin_7, Bit_RESET);
GPIO_WriteBit(GPIOB, GPIO_Pin_0, Bit_RESET);
GPIO_WriteBit(GPIOB, GPIO_Pin_1, Bit_SET);
Delay(1);
laststatus=0;
}
Curtain Control Systems Development on Mesh Wireless Network of the Smart Home (Trio Adiono)
624 ISSN: 2302-9285
(a) (b)
Figure 13. A photograph of the functional test for curtain control: (a) to close the curtain; (b) to open the
curtain
4. CONCLUSION
In this work, a prototype curtain controller for a smart home system is designed well. The device
utilizes STM32L100RCT6 microcontroller as a processor, which controls the 28BYJ-48 stepper motor using
IC ULN2003A as a driver. The control is done by utilizing PWM to control the motor‟s direction (CW and
CCW), which is then applied to open or close the curtain. Based on the testing conducted, the device works
as intended, with 210.5 mW for idle condition and 1,586 mW for process condition of the power
consumption. This proves the device is suitable for low-power smart home system on WSN architecture. We
also design the Android application as a mobile user interface.
In the future, the device will be upgraded so it can support partial opening/closing for the curtain
(e.g. have the curtain only opened by one-third). In addition, the curtain operation will be integrated with
other devices such as the lamp and fan to ensure stable room environment.
ACKNOWLEDGEMENTS
This work was supported by the KEMRISTEK-DIKTI (Number 009/SP2H/LT/DRPM/IV/2017)
REFERENCES
[1] Mendes TDP, Godina R, Rodrigues EMG, Matias JCO, Catalão JPS. Smart Home Communication Technologies
and Applications: Wireless Protocol Assessment for Home Area Network Resources. Energies. 2015; 8(7):
7279-7311.
[2] Chennakesavan C. Implementation of Cloud Connected Smart Plug with Energy Monitoring System. Indonesian
Journal of Electrical Engineering and Computer Science (IJEECS). 2017; 8(3): 702-704.
[3] Ryu CS, Hur CW. Monitoring System for Integrated Management of IoT-based Home Network. International
Journal of Electrical and Computer Engineering (IJECE). 2016; 6(1): 375-380.
[4] Anonymous. Get to know Blind; Types of Elegant Curtain Cover with Various Variants (In Indonesia) [Internet].
January 4, 2016 [January 8, 2018]. Available from: http://www.ianinterior.co.id/mengenal-blind-jenis-tirai-
penutup-nan-elegan-dengan-berbagai-varian/.
[5] Gunawan TS, Yaldi IRH, Kartiwi M, Mansor H. Performance Evaluation of Smart Home System using Internet of
Things. International Journal of Electrical and Computer Engineering (IJECE). 2018; 8(1): 400-411.
[6] Warjono S, Suwinardi, Sugiharto E, Ansori MI, Andewi H V. Curtain Controller with Radio Waves (In Indonesia).
Jurnal Teknik Elektro Terapan (JTET). 2013; 2(3): 136-142.
[7] Naeli M, Suleman. The prototype of Lamp and Curtains Controller Using Atmega8 Microcontroller Based on SMS
Gateway (In Indonesia). Jurnal Bianglala Informatika. 2014; 2(2): 63-69.
[8] Shuvo RR. Smart curtain control system using smart phone via Bluetooth. B.Sc Thesis. Dhaka: Electrical and
Telecommunication Engineering, Faculty of Science and Engineering, East West University; 2016.
[9] Ahmad AN, Dharmawan A. The prototype of Automation System Open Curtain Cover Based on Light Dependent
Resistor (In Indonesia). International Journal of Electronics and Instrumentation System. 2011; 1(2): 21-34.
[10] Adiono T, Fathany MY, Putra RVW, Afifah K, Santriaji MH, Lawu BL, Fuada S. Live Demonstration: MINDS-
Meshed and Internet Networked Devices System for Smart Home. Proceedings of the 13th IEEE Asia Pacific
Conference on Circuits and Systems (APCCAS). Jeju. 2016: 736-737. DOI: 10.1109/APCCAS.2016.7804031.
[11] Adiono T, Putra RVW, Fathany MY, Lawu BL, Afifah K, Santriaji MH, Fuada S. Rapid prototyping methodology
of lightweight electronic drivers for smart home appliances. International Journal of Electrical and Computer
Engineering (IJECE). 2016; 6(5): 2114-2124.
[12] Adiono T, Putra RVW, Fathany MY, Lawu BL, Afifah K, Santriaji MH, Fuada S. Prototyping design of electronic
end-devices for smart home applications. Proceedings of the IEEE Region 10 Symposium (TENSYMP). 2016: 1-5.
DOI: 10.1109/ TENCONSpring.2016.7519415.
[13] Fathany MY. Design and Implementation of Smart Home System Infrastructure (In Indonesia). M.T. Thesis.
Bandung: Department of Electrical Engineering, School of Electrical Engineering and Informatics, Institut
Teknologi Bandung; 2016.
[14] Fathany MY, Adiono T. Wireless protocol design for smart home on mesh wireless sensor network. Proceedings of
International Symposium of Intelligent Signal Processing and Communication Systems (ISPACS). 2015: 462-467.
[15] Adiono T, Fathany MY, Fuada S, Purwanda IG, Anindya SF. A Portable Node of Humidity and Temperature
Sensor for Indoor Environment Monitoring. Proceedings of the 3rd International Conference on Intelligent Green
Building and Smart Grid (IGBSG), 2018: 1-5. DOI: 10.1109/IGBSG.2018.8393575.
[16] Adiono T, Fathany MY, Anindya SF, Fuada S, Purwanda IG. Wireless Control for RGB Lamp End-device: Design
and Implementation. Proceedings of the IEEE Ten Regional Conference (TENCON), 2018.
[17] Adiono T. Fathany MY, Anindya SF, Fuada S, Purwanda IG. Using a smart plug based on consumer electronics to
support low-power smart home. Unpublished.
[18] Lawu BL, Fathany MY, Afifah K, Santriaji MH, Putra RVW, Fuada S, Adiono T. Prototyping design of
mechanical based end-devices for smart home applications. Proceedings of 2016 4th International Conference on
Information and Communication Technology (IcoICT). 2016: 1-5. DOI: 10.1109/IcoICT.2016.7571927.
[19] Adiono T, Fathany MY, Anindya SF, Fuada S, Purwanda IG. Development of Wireless Fan‟s Speed Control using
Smart Home for Smart Home Prototype. Unpublished.
[20] Adiono T, Tandiawan B, Fathany MY, Adijarto W, Fuada S. Prototyping Design of IR Remote Controller for
Smart Home Applications. Proceedings of IEEE Region 10 Conference (TENCON). 2017: 1304-1308. DOI:
10.1109/TENCON.2017.8228059.
[21] Adiono T, Marthensa R, Muttaqin R, Fuada S, Harimurti S, Adijarto W. Design of database and secure
communication protocols for Internet-of-Things-based smart home system. Proceedings of IEEE Region 10
Conference (TENCON). 2017: 1273-1278. DOI: 10.1109/TENCON.2017.8228053.
[22] Adiono T, Tandiawan B, Fuada S. Device Protocol Design for Security on Internet of Things based Smart Home.
International Journal of Online Engineering. 2018; 14(7): 161-170.
[23] Afifah K, Fuada S, Putra RVW, Adiono T, Fathany MY. Design of Low Power Mobile Application for Smart
Home. Proceedings of International Symposium on Electronics and Smart Devices (ISESD). 2016: 127-131. DOI:
10.1109/ISESD.2016.7886705.
[24] Adiono T, Anindya SF, Fuada S, Afifah K, Purwanda IG. Efficient Android Software Development using MIT App
Inventor 2. Unpublished.
Curtain Control Systems Development on Mesh Wireless Network of the Smart Home (Trio Adiono)