Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Sistema Domótico para Una Casa Inteligente: Resumen Del Proyecto 1. Introducción
Sistema Domótico para Una Casa Inteligente: Resumen Del Proyecto 1. Introducción
1. Introducción
Desde mediados del siglo XX se han organizado varias exhibiciones para
enseñarnos ideas de cómo las casas aparentarían y cómo funcionarían en un futuro
lejano. La gente se imaginaba cómo se podría hacer más cómoda la estancia en casa,
cómo se facilitarían las tareas domésticas, etc. Después de la aparición de dispositivos
electrónicos inteligentes como el ordenador fue surgiendo el concepto de la
automatización del hogar: la domótica [1].
1
Un importante aspecto de un sistema domótico es que no debería requerir la
constante atención del usuario, sobre todo en temas de regulación. Un sistema que
regule la temperatura a lo largo del día en una sala seguramente ahorre más energía que
una persona regulando el termostato. La única salvedad es el mantenimiento del
sistema; por ello, se trata de diseñar un sistema domótico resistente y de bajo consumo
de modo que se permita un mantenimiento menos frecuente.
Debido a estos aspectos del sistema domótico, la demanda en este sector está en
aumento mientras que estos sistemas inteligentes avanzan en diseño y tecnología. Por
ello, la gente de hoy en día busca esta alternativa cómoda para cambiar su vida cotidiana
a algo más atractivo y moderno.
Hoy en día existe un gran número de empresas en este sector; y como ejemplo se
muestran los siguientes 2 ejemplos: SmartThings [3] e INSTEON [4]:
2
Esto es lo que despierta interés en
este proyecto. Este proyecto constituye
la mitad de un gran proyecto. Este
proyecto se encarga del control de los
sensores y actuadores que sirven
propósitos distintos: seguridad,
climatización, iluminación y ocio. El
otro se encarga del ahorro energético por
medio de, por ejemplo, almacenar la
energía cuando esta sea barata y usarla
cuando sea cara. Así, un hogar podrá
aprovechar el confort y la seguridad que
ofrece el sistema de automática y el
ahorro energético del de energía. Debido
a ello, este proyecto se ha dedicado a
cumplir los siguientes objetivos: Figura 3: Estructura del proyecto global
2. Metodología
Se ha definido una arquitectura para
el sistema general, que se muestra en la
Figura 4. El sistema domótico tiene cuatro
partes importantes: el sistema de seguridad,
el de iluminación, el de climatización y el de
ocio; con sus respectivos sensores
(temperatura, luz,…) y actuadores
(persianas, calefacción,…). El maestro se
encarga de coordinar el sistema domótico y
el sistema gestor de energía, además de
formar un puente entre el usuario y ambos
sistemas. El usuario puede gestionar estos
sistemas a través de la interfaz de control,
que muestra la información relevante del
sistema, que se almacena en la base de datos. Figura 4: Arquitectura general del sistema
3
radiofrecuencia de la misma empresa basada en ZigBee: MiWi. Además, el maestro
central es una tarjeta especial, la cual también es capaz de comunicarse por WiFi a
través de un módulo de comunicación WiFi de la misma empresa con el router para
llegar al servidor y enlazar ambos niveles del sistema.
3. Resultados
Se han desarrollado 5 tarjetas controladoras distintas, aunque dos de ellas sirven
propósitos parecidos: son la TCD (Tarjeta Control Domótico), la TCI-4F (Tarjeta de
Control de Iluminación – 4 Fases), la TCI-F (Tarjeta de Control de Iluminación – Foco),
la TCA (Tarjeta de Control de Actuadores) y la TCC (Tarjeta de Control Central:
La TCD en principio se diseñó como una tarjeta de propósito general, pero como
los sensores son los únicos que requieren un circuito de acondicionamiento simple, se
4
han desarrollado las demás tarjetas, aparte de la TCC, que es el coordinador de los
dispositivos. Las tarjetas TCI-4F y TCI-F se han diseñado para conectarles LEDs RGB,
que sirven propósitos de iluminación personalizada (sistema de ocio). La tarjeta TCA se
ha diseñado para actuar varios tipos de sistemas automatizados (persianas, riego,…)
mediante sus relés.
4. Conclusiones
Este proyecto ha contribuido a desarrollar un sistema domótico robusto, fácil de
controlar, y modular, ya que se puede controlar los dispositivos conectados a estas
tarjetas sin importar su número. Este sistema domótico se ha integrado con éxito con un
sistema gestor de energía para cubrir las necesidades de ahorro energético de la casa
inteligente. Asimismo, durante el proceso se ha modificado el protocolo de
comunicación MiWi para que sea más entendible para el usuario y para mejorar su
funcionamiento, que puede ser aprovechado en futuras aplicaciones.
5. Referencias
[1] Wikipedia, domótica: http://es.wikipedia.org/wiki/Dom%C3%B3tica
[2] Casadomo, domótica: http://www.casadomo.com/noticiasDetalle.aspx?c=14
[3] Empresa SmartThings: http://smartthings.com
[4] Empresa INSTEON: http://www.insteon.net/
Palabras clave: domótica, automatización del hogar, WiFi, ZigBee, casa inteligente.
5
HOME AUTOMATION SYSTEM FOR A SMARTHOME
PROJECT ABSTRACT
1. Introduction
Since mid-20th century, many exhibitions have been organized to show ideas
about how would houses look and function in a distant future. People were imagining
how could one make their homes more comfortable, how could the domestic tasks
become easier, etc. Following the arrival of intelligent electronic devices like
computers, the concept of home automation started to be present in many places [1].
This concept refers to the automation and control (switching on and off,
opening, closing and regulation) of devices and of electrotechnic and electrical
installations (lighting, climate control, blinds and sunshades, doors and motorized
windows, sprinklers, etc.) in a centralized way and/or remote. The main targets of home
automation are to increase comfort, security and energy savings.
6
Due to these features of the home automation system, the demand in this sector
is increasing and these systems are upgrading in design and technology every year. That
is why people today want to find this comfortable alternative to change their day-to-day
lives to something more attractive and modern.
On the one hand, the SmartThings company, which is relatively new, has
designed a hub that understands several wireless protocols such as ZigBee or WiFi and
also has connection with an online server. Enabling the existing appliances for wireless
communication, this hub connects all these appliances together in a wireless network to
create the home automation system. On the other hand, the INSTEON company sells its
own appliances enabled for communication with their own communication protocol,
that can be either by wireless communication or by powerline communications.
However, even if they are complete regarding automation at home, it offers very
few alternatives regarding energy savings. In addition, the great majority of companies
in the home automation sector have been founded in the USA, where home automation
is a stronger sector; and these have globalized eventually. This is why, in countries like
Spain, people can barely find advertisements and offers coming from home automation
companies.
This is what generates interest in this project. This project constitutes the half of
a great project. This project is in charge of the control of the sensors and actuators that
serve different purposes: security/safety, lighting, heating/cooling and leisure. The other
is in charge of energy savings through, for example, energy storage when it is cheap and
its use when it is expensive. By doing so, a home can take advantage of the comfort and
the security that the automation system provides and the energy savings provided by the
energy system.
Therefore, this project has been carried out by completing the following
objectives:
7
Wireless network with control
devices development.
Sensor and actuator integrations.
Interaction software with the user
using a PC.
Energy system integration.
2. Methodology
An architecture has been defined for
the general system, shown in Figure 4. The
home automation system is made up of 4
main subsystems: security, lighting,
heating/cooling and leisure; with their
respective sensors (light, temperature,…)
and actuators (blinds, heaters,…). The
master is in charge of coordinating the home
automation system and the energy control
system, as well as creating a bridge between
the user and both systems. The user can run
these systems using the control interface,
which displays relevant information
regarding the system, which is also stored in
the database. Figure 4: General system architecture
Regarding this architecture’s software, the control interface has been designed
with Qt Designer and has been programmed with Microsoft Visual Studio 2010 in C++
language. The link with the MySQL database has been programmed with the same
program and has been made possible with ODBC (Open DataBase Connectivity).
8
Microchip Technology Inc. drivers have been used for the MiWi and WiFi connection
of its microprocessors. The control algorithm which the microprocessors follow in this
project have been programmed with MPLAB IDE.
3. Results
Five different controller boards have been designed, although two of them are
used for similar purposes. These are (Spanish names are shown too): the Domotic
Controller Board (TCD – Tarjeta de Control Domótico); the 4-Phase Lighting
Controller Board (TCI-4F – Tarjeta de Control de Iluminación – 4 Fases); the Spotlight
Lighting Controller Board (TCI-F – Tarjeta de Control de Iluminación – Foco); the
Actuator Controller Board (TCA – Tarjeta de Control de Actuadores); and the Central
Controller Board (TCC – Tarjeta de Control Central):
The TCD was designed initially as a general purpose Controller Board, but due
to the fact that the sensors are the only devices which required a simple conditioning
circuit the other boards were designed, apart from the TCC which is the device
coordinator. The TCI-4F and TCI-F boards were designed to connect RGB LEDs to
them, which are used for customized lighting (leisure system). The TCA is suitable for
actuating various types of automatic systems (blinds, sprinklers,…) by means of relays.
9
In the matter of the control
interface, the one shown in Figure 6 has
been developed. The sensor readings and
the controllers of the actuators (in this
case there are blinds and RGB LEDs to
control) are displayed according to the
room selected from the pull-down menu
at the left (under the Home Automation
tab). In case of a missing device among
the ones shown in Figure 6, a warning
message will be displayed and the
controller will be disabled.
4. Conclusions
This project has contributed to develop a robust home automation system, which
is easy to control and has modulation options, due to the fact that no matter how many
boards and devices installed, the system is still controllable. This home automation
network has been successfully merged with the energy control system to cover the
energy saving needs of the smarthome. Additionally, during the process the MiWi
wireless protocol has been modified to make it more user-friendly and to upgrade its
performance, which can be used in future applications.
5. References
[1] Wikipedia, domotics: http://es.wikipedia.org/wiki/Dom%C3%B3tica
[2] Casadomo, domotics: http://www.casadomo.com/noticiasDetalle.aspx?c=14
[3] SmartThings company: http://smartthings.com
[4] INSTEON company: http://www.insteon.net/
10