SciELO - Scientific Electronic Library Online

 
vol.6 número2Stability of Connected Dominating Sets in the Presence of Static Nodes in a Mobile Ad hoc Network índice de autoresíndice de materiabúsqueda de artículos
Home Pagelista alfabética de revistas  

Servicios Personalizados

Revista

Articulo

Indicadores

Links relacionados

  • No hay artículos similaresSimilares en SciELO

Compartir


International Journal of Combinatorial Optimization Problems and Informatics

versión On-line ISSN 2007-1558

International J. of Combinatorial Optim. Problems and Informatics vol.6 no.2 Jiutepec may./ago. 2015

 

Software engineering

Home Automation Prototype Controlled by Mobile Devices for Disabled People

Rafael Rojas-Rodríguez1  2 

Obed Cortés-Aburto1 

Rita Marina Aceves-Pérez1 

Luis Gerardo Vela-Valdés2 

Salvador Antonio Arroyo Díaz1 

Carlos García-Meneses1 

1Department of Mechatronics, Universidad Politécnica de Puebla, Full-time Research Professor, Tercer Carril del Ejido "Serrano" s/n San Mateo Cuanalá. Juan C. Bonilla. Puebla, México, Postcode. 72640, +52 222-774-6656. rafael.rojas@uppuebla.edu.mx

2Department of Mechatronics, Centro Nacional de Investigación y Desarrollo Tecnológico, Full-time Research Professor, Interior Internado Palmira s/n Col. Palmira, Cuernavaca. Morelos, México Postcode. 62490, +52 777-362-7770.

Abstract:

In this work, the design and implementation of a domotic installation that is controlled by a mobile device is shown. This device controls different ambient variables inside a home without the need of new communication infrastructure. X-10 protocol is used for this purpose. This system uses a tablet as a graphical user interface (GUI) and by Bluetooth sends information to a metalanguage interface to do the information conversion from ASCII to X-10 codes. This X-10 code is sent through electrical wires to control different actuators. The bibliographic review shows data related to population aging and an increase in the quantity of disabled people, which is the main goal of this domotic development. This review shows up to date domotic applications and criteria for selection of X-10 technology, such as low cost, ease of installation and scalability. The system effectiveness is about 98% (testing 116 addresses and 9 different appliances) with an 86% effectiveness in devices with electrical motors driving mechanical loads.

Keywords: Home automation; mobile device; comfort; environmental condition control; interface

1 Introduction

The evolution of housing development dates from the time when man became sedentary and left the caves. Currently, this development is focused on five main areas: security, culture, leisure and entertainment, comfort and energy savings, and economic activities and management1.

The term "home automation" is used to encompass all of these concepts, with the understanding that the set of habitat services supplied by systems that perform several functions, these systems are able to be interconnected with each other and/or to internal or external communication networks using the home computing application. The home automation also integrates the security systems set, and regulates housework activities, both aimed at supporting and facilitating daily living, by the automation of their functions and operations2. However, the penetration level of home automation concepts and their applications or functionalities has been very low, due to lack of knowledge about the possibilities of automation in the home, the low investment in research to generate our own technology and the associated installation costs. The result is costly devices that turn a house into a smart home, but not required for inhabitants3, there are a small number of specialized companies, mainly because of the incompatibility between sensors, processors and actuators1.

In view of the concepts presented above we propose a home automation prototype that integrates an existing technology that is easily accessible, promotes regular use and is cost effective.

On the other hand, according to the World Health Organization report (WHO) 4related to the aging of the world population between 2000 and 2050, the proportion of the world's population over 60 years old will double, from 11% to 22%, representing an increase from 605 to 2000 million seniors in the same period. More alarming is the number of seniors older than 80 years, which will quadruple in the aforementioned period, reaching a total of 400 million.

The same report mentions health problems affecting the elderly, highlighting chronic lung disease and arthritis among others. These diseases are disabling and hinder the mobility of people.

Likewise it is expected that by 2050 the number of elderly people who cannot fend for themselves, will quadruple in developing countries, which will make older people lose their ability to live independently due to their limited mobility, weakness or other health problems both physical and mental, and many will need long-term care, such as nursing and residential care.

Similarly it is proposed that environmental stimulants adapted to the needs of the elderly allow them a more fulfilled life as they increase their autonomy and active participation in society. Proposed strategies to improve the quality of life of this sector of the population include the creation of mechanisms to support the long-term care of those who suffer loss of functions. At the same time, with respect to persons with disabilities, the same WHO and the World Bank, in its World report on disabilities5 estimate that about 15% of the world populatiosufferrs from some form of disability, representing around 975 million individuals. People with severe disabilities make up 2.2% of the total population, ie 140 million, of which the majority are women and seniors.

The same report shows that this figure is increasing due to, among other factors, an aging population, environmental factors, traffic accidents, war, eating habits and substance abuse. Also is mentioned the fact that 30% of people with disabilities do not satisfy their needs for assistance related to performing daily activities and in the United States of America, 70% of people with disabilities rely on family and friends to provide them with assistance, reliance exclusively on informal support can have adverse consequences for caregivers, causing psychological and emotional stress, isolation and loss of socioeconomic opportunities.

In the same document, are shown proposals to governments to overcome disabling barriers among which are: lack of access to general services and lack of research and data collection and poor quality of life. Proposals to ease the transition to community life through support services and assistance for both the disabled and their informal caregivers can create favourable environments that remove barriers in public spaces, transport, information and communication, allowing people with disabilities to participate in education, employment and social life, reducing their isolation and dependence.

2 Current status of home automation

In the literature review we found a lot of definitions about home automation that have changed over time. According to3 home automation is the introduction of technology in the home in order to improve the different services offered like tele-health, comfort, multimedia entertainment and energy savings. In the same paper a home automation prototype is shown, where the home environmental conditions of a middle class home are controlled by different devices developed by the author, using solid state technology and communicated by ZigBee protocol.

In 2 we found a technical and accepted definition that defines home automation as a set of home services provided by systems that perform several functions and connect with other systems and/or internal or external communication networks. The main functions are: energy saving, technical management, information and communication, comfort control, security and assistance.

Moreover6 defines a smart home as a domestic environment where science is applied to improve thresidents'ts quality of life through flexible, comfortable and environmentally efficient solutions. The need to incorporate smart devices, like smart phones or tablets proposed in this prototype, focused on security, entertainment, comfort, communication and health care is expressed. Additionally a smart home control system is shown, based on information fusion, that allows access to the system using networks or internet to control the internal and external home services. These services are interconnected by Bluetooth and coordinated using fuzzy or neural networks, while7 defines a smart home as one that uses drivers to integrate several automation services.

Additionally8 performed a study of smart home applications focused othe carere of the elderly and proposed that modern houses that are equipped with smart home technology can help disabled people, not only to prevent social isolation, but also to provide assistance, without limiting the residents' daily routine. This provides comfort, relaxation and well-being, to promote handicapped or elderly independence, thereby reducing the caregivers workload9.

In this sense10 suggests the smart homes interdisciplinarity as a synergy between different knowledge areas such as architectu, computer science, electrical and electronics engineering, health and social sciences and the therapists and physicians involvement, for better interaction between people and their homes. Similarly11 defines a smart home as one which allows the automatic control over the devices installed inside the home, allowing energy saving, communication, security and comfort for home residents.

In12 a development based on Field Programmable Gate Array (FPGA) and a reprogrammable online device is shown. This development answers, at all times, to the user's needs, also proposes that a smart environment is one equipped with electronic systems able to adapt to the inhabitants' needs and/or preferences, in order to simplify their daily activities and add comfort.

Regarding the use of mobile devices to control the housing conditions13 uses a cell phone as an interface, and the KNX protocol for interacting with housing. This technology involves high costs, as it requires the installation of a bus communication that consists of a pair of wires, representing a major modification in housing, and the cost associated with sending SMS packages. Another disadvantage is the graphical user interface (GUI) because, a cell phone has a very small screen and the menus are based on hierarchies, hampering the understanding by users.

While14 developed a similar interface and uses the X-10 protocol for transmission to the system actuators, the system is based on data transmission by the WAP protocol (Wireless Applications Protocol) to a microcontroller, which acts like a translator between the information received via cell phone and sent, through the power line, using the X-10 protocol. Again a drawback is the type of menus that are used, hierarchical, and the system is subject to the data coverage of the telephone companies and their associated cost.

Other systems using mobile devices are designed for use from outside the house. In15 is proposed a system for remote home control, designed for people who are not usually in their homes. Its main objective is safety. The system is based on the implementation of SMS on a GSM network technology. It provides security systems in which an SMS is sent upon detection of an intruder and the user can send commands to activate certain appliances to simulate presence. In16 is shown a home automation system that uses the ZigBee protocol and a radio system for communication and control of the lights, off intrusion detection is shown, however the authors had to develop their own technology to develop the application.

The reported installation herein presents advantages over those shown in the literature review and because it employs a communication protocol that uses the electrical installation of a dwelling. It has a high level of security since the handling is only possible if the application is installed on the mobile device and the security code associated with the meta-developed interface is known. Another contribution to the low cost of the project is the use of free software for development. The mobile devices are used commonly and the metalanguage interface is simple to construct and program, also the GUI is friendly and easy to understand.

3 Developed architecture

The home automation architecture refers to the network structure understanding that it is a set of interconnected autonomous elements17. Figure 1, in block diagram form, shows the developed architecture for our home automation prototype, where it is possible to watch three basic elements: a Graphic User Interface (GUI) that allows the prototype and users interaction through fingerings on virtual switches and sends information integrated in a smart phone Bluetooth port; the second element is a metalanguage interface that is responsible for translating the received information from smart device, to X-10 code; and finally the actuators stage, formed by lighting, ventilation, heating elements and more.

Figure 1 Architecture of home automation prototype. 

In Figure 2 the network for developing home automation is shown. According to the network topologies shown in17 a bus type structure is used in this project with the aim of using the existing electrical wiring as a communication bus and the X-10 protocol, while the autonomous elements are represented for controlled plugs and switches.

Figure 2 Network for home automation. 

18defines a communication bus as a physical path through which the information is sent from sender to receiver and could be guided or unguided. In our proposal, a guided bus is used, this bus is the electrical wiring installed inside the home with the following characteristics 120 Vac and 60 Hz, and represented by a horizontal line in Figure 2. Also18 defines a communication protocol as a standardized set of rules designed to allow the information flow between devices so that their representation, signaling, authentication and error detection is clearly defined and controlled. In a developed prototype we chose the X-10 protocol, because it allows the development of home automation applications without installation of new wiring in the home and using the power line carrier communications system.

In Figure 3 the detailed diagram of the home automation prototype is shown, starting in the GUI which was developed in a SONY tablet, model SGPT112MX/S with Android operative system 4.0.3 version. The metalanguage interface was formed by Bluetooth module, family 18's microcontroller, and PSC-05 X-10 module, and the actuators where controlled by different receptor modules of the X-10 family.

Figure 3 Detail of home automation architecture. 

3.1 Graphical user interface (GUI)

In 19 a GUI is defined as an application, through which the user interacts with the system, and it is developed based on the best implementation of the user intelligibility. 20extends the GUI concept to integrate the perception concept, which is characterized by the integration of techniques that combine the natural human abilities to understand, communicate, move and cognitive and perceptual skills with input and output devices, machine perception and reasoning.

Focused on the above criteria and using Basic for Android software21,22 , the graphic user interface was designed and generated as shown in Figure 4, where it is possible to observe two main areas. The left side shows three drop down menus from which it is possible to select the type of device to be controlled and to assign the house and numerical codes mentioned in18. In this area is also shown a list of items to which, once the house and numerical codes were assigned, one can name the controlled devices. This name will be shown in both interface areas as Figure 5 shows. Users will touch the right area to control the state of system actuators.

Figure 4 Graphical user interface. 

Figure 5 Assigned name, house and number code. 

Finally, Figure 6 shows the effect of touching any buttons on the right area. When a device is activated the button changes color to indicate the "ON" status, and returns to the original color when deactivated. At the same time this action triggers the sending of information via the Tablet's Bluetooth port, that in this case is an A2DP EDR Version 2. The information consists of three characters in ASCII code, which correspond to house code, the numerical code and the action. The last one is represented by a logical "1" to turn on and a "0" to disable. This information is received by Bluetooth module which is coupled with a microcontroller in a metalanguage interface whose function is described below.

Figure 6 Activation and deactivation of devices. 

3.2 Metalanguage interface

This interface is responsible for the information conversion from a mobile device, in ASCII code, for X-10 code, understandable for system actuators. Figure 7 shows the flow chart for the program contained in the microcontroller where the translation will take place.

Figure 7 Flowchart for metalanguage interface program. 

The process starts when a mobile device is connected to the interface via Bluetooth port. Once established, the microcontroller registers 1, 2 and 3 are cleared and after that the data reception from smart device to metalanguage interface starts, storing: register 1: house code, register 2: numerical code and register 3: action code.

From the stored data, the X-10 code translation is performed. This translation was implemented using cases and pointers to microcontroller memory addresses that belong to each ASCII code element stored in other registers.

After translation, a sync pulse is expected from X-10 PSC05 module. Based on this pulse all the X-10 data frame is submitted through the existing electrical wiring and this action activates or deactivates the controlled devices. Finally if the smart device to metalanguage interface communication lingers, the process could continue, otherwise the program execution ends.

3.3 Bus and communication protocol

As mentioned throughout this paper, the X-10 was selected as the communication protocol due to the advantages shown in 18, including, the use of electrical wiring as a communication bus making it unnecessary to install new wires inside the house, the Plug & Play function that makes it easier to install new equipment, the number of controlled devices (256) enough for a middle class home, the effective appropriate operation distance, and the power stage included in X-10 devices.

4 Results

A controlled domotic installation by mobile devices was implemented, facilitating the control of environmental conditions, by people with motor disabilities. The home automation system was developed based on technology availability and low cost.

The communication bus and selected protocol are an advantage compared to other buses as they allow communication to control devices without the need to do modifications to the houses. Although the communication distance using the Bluetooth protocol is limited, this situation is easily solved by installing repeaters, while the distance to the X-10 protocol poses no problem since the information is lost until it finds an electric transformer in the line.

Installation tests have been carried out, grouped into two parts. The first group is related to the effective distance between the mobile device and the metalanguage interface, where the line of sight reaches 15 m, with obstacles represented by walls or slabs of housing, distance is affected, reaching maximum 10 m, enough to cover the needs of a regular size home.

The second group of tests relates to the effectiveness of the X-10 protocol, for which a sample of 116 addresses was selected, representing a confidence level of 90% and a margin of error of 5%.

In this domotic system the following appliances were connected: LED screen, incandescent bulbs, fluorescent lamps, a microwave oven, a hair dryer and iron, a blender, a fan and an electric oven. They were activated and deactivated at 116 previously selected addresses, including the assigned addresses to each of the above appliances, getting a 98% effective rate. A failure occurred when inductive loads were overloaded i.e. when the blender had a large mechanical load and the engine was forced to operate, however with other devices no errors were observed in the system. The results of these tests are shown in Table 1.

Table 1 Effectiveness of the X-10 protocol with different appliances. 

Appliances Effectiveness
Led screen 100
Incandescent bulbs 100
Fluorescent lamps 100
Microwave oven 100
Hair dryer 100
Hair Iron 100
Blender 86.20
Electric oven 100
Fan 100
Mean 98.46

5 Conclusions

Unlike other home automation applications reported in the literature review, this home automation system uses an inexpensive technology accessible to the general population. It does not require the installation of new infrastructure in the home, and does not depend on the reliability of wireless systems such as Zig-Bee, or Wi-Fi that are very sensitive to electromagnetic disturbances such as those caused by fluorescent lamps or inductive loads such as electric motors.

By using Plug & Play technology, the scalability is simple and does not require an expert to carry it out, likewise, adding new devices to the interface only requires assigning the address and the name, which likewise does not require experts.

The use of elements of the X-10 family allows them to be employed, as a controlled device or a regular device. This situation works as a security support in case of a fault in the system.

With the results both, for the communication distance between metalanguage interface and the mobile, and to test the effectiveness of the X-10 protocol, it is observed that the reliability of the developed system is high enough to be installed in homes inhabited by disabled and elderly people, allowing for increased comfort and independence within their homes and improved a quality of life.

Bibliography

[1] R. Rojas Rodríguez, R. M. Pérez, O. Cortés Aburto, C. García Meneses and L. Vela Aveves Valdés, "Development and integration of automated systems aimed to the comfort of seniors and people with disabilities.," in 8th International Conference on Intelligent Environments (IE), 2012, Guanajuato México, 2012. [ Links ]

[2] M. Flórez de la Colina, "Hacia una definición de la domótica," Informes de la construcción, vol. 56, no. 494, pp. 11-17, 2004. [ Links ]

[3] M. Barrera Durango, N. Londoño Ospina, J. Carvajal and A. Fonseca, "Análisis y diseño de un prototipo de sistema domótico de bajo costo," Revista Facultad de Ingeniería Univerisidad de Antioquia, no. 63, pp. 117-128, 2012. [ Links ]

[4] Organización mundial de la salud, "Organización mundial de la salud," 2014. [Online]. Available: http://www.who.int/ageing/publications/es/. [Accessed 6 octubre 2014]. [ Links ]

[5] Organización Mundial de la Salud, Banco Mundial, "Informe Mundial Sobre la Discapacidad," OMS-BM, Malta, 2011. [ Links ]

[6] L. Zhang, H. Leung and C. K. Chan, "Information Fusion Based Smart Home Control System and Its Application," IEEE Transactions on Consumer Electronics, vol. 54, no. 3, pp. 1157-1165, 2008. [ Links ]

[7] R. J. Robles and T.-h. Kim, "Applications, System and Methods in Smart Home Technology: A Review," International Journal of Advanced Science and Technology, vol. 15, pp. 37-48, 2010. [ Links ]

[8] M. Chan, D. Estéve, C. Escriba and E. Campo, "A review of smart homes- Present state and future challenges," Computer methods and programs in biomedicine, vol. 91, no. 1, pp. 55-81, 2008. [ Links ]

[9] D. Ding, R. A. Cooper, P. F. Pasquina and L. Fici-Pasquina, "Sensor technology for smart homes," Maturitas, vol. 69, no. 2, pp. 131-136, 2011. [ Links ]

[10] J. C. Augusto and C. D. Nugent, "Smart Homes Can Be Smarter," Lecture Notes in Computer Science, vol. 4008, pp. 1-15, 2006. [ Links ]

[11] R. Bertuzzi L, P. Guarda M. and J. P. Salazar F., "Automatización del hogar usando el protocolo de comunicación X-10," in XI Congreso Internacional de Telecomunicaciones y Muestra de Tecnologías SENACITEL, Valdivia, 2004. [ Links ]

[12] J. Echanobe, I. del Campo, R. Finker and K. Basterretxea, "Dynamic Partial Reconfiguration in Embedded Systems for Intelligent Environments," in 8th International Conference on Intelligent Environments, Guanajuato, 2012. [ Links ]

[13] G. Botterwech, J. F. Hampe, S. Stein and A. Rosendahl, "Mobile home automation: merging mobile value added services and home automation technologies," Information Systems and e-Business Management, vol. 7, no. 3, pp. 275-299, 2008 DOI: 10.1007/s10257-008-0095-z. [ Links ]

[14] A. Vera, A. Alarcón, O. Polanco, R. D. Nieto and Á. Bernal, "Aplicación de las Comunicaciones Inalámbricas a la Domótica," Ingeniería y Competitividad revista científica y tecnológica, vol. 5, no. 2, pp. 63-72, 2004. [ Links ]

[15] M. S. Hayat Khiyal, A. Khan and E. Shehzadi, "SMS Based Wireless Home Appliance Control System (HACS) for Automating Appliances and Security," Informing Science and Information Technology, vol. 6, pp. 887-894, 2009. [ Links ]

[16] K. Rathod, N. Parikh, A. Parikh and V. Shah, "Wireless Automation using ZigBee protocols," IEEEXplore, pp. 1-5, 2012 DOI: 10.1109/WOCN.2012.6335517. [ Links ]

[17] A. S. Tanenbaum, Redes de computadoras, México D.F.: Pearson Educación, 2003. [ Links ]

[18] R. Rojas Rodríguez, R. Aceves Pérez, O. Cortés Aburto, L. Vela Valdés, S. A. Arroyo Díaz and C. García Meneses , "Buses y protocolos de comunicación para instalaciones domóticas," Revista DYNA, vol. 0, no. DYNA-ACELERADO, p. 0, 2014. [ Links ]

[19] M. Bacíková and J. Porubän, "Analyzing stereotypes of creating Graphical User Interfaces," Central European Journal of Computer Science, vol. 2, no. 3, pp. 300-315, 2012. [ Links ]

[20] M. Turk and G. Robertson, "Perceptual user interfaces," Communications of the ACM, vol. 43, no. 3, pp. 33-34, 2000. [ Links ]

[21] J. E. Amaro Soriano, Android programación de dispositivos móviles a través de ejemplos, Barcelona: Marcombo S.A., 2012. [ Links ]

[22] Z. Mednieks, L. Dornin, G. Meike and M. Nakamura, Programming Android, Sebastopol: O´Reilly, 2012. [ Links ]

Recibido: 27 de Agosto de 2015; Aprobado: 02 de Noviembre de 2015

Creative Commons License This is an open-access article distributed under the terms of the Creative Commons Attribution License