miércoles, 12 de febrero de 2020

Domotic House (IA)


Abstract: 


This post explains how to automate some activities that are carried out in a home. This automation is called home domotic. Within this area, several concepts related to systems engineering were used, among which we have: telegram bot, IBM Watson (IA, voice, etc,.), google service and python. 


1. Introduction: 



Artificial intelligence (AI) allows the human to perform many tasks easily.. It makes it possible for machines to learn from experience, adjust to new inputs and perform human-like tasks. This also includes what is known as home automation, which studies the intelligence of houses.

Systems that make the hall lights activate when passing without pressing any switch, turn on the heating by means of a simple telephone call, generate alarms by the entrance of intruders when we are not at home, blinds through the television with a remote control distance, from any phone and this without requiring more effort but simply by a machine who is able to receive orders and act without protest, or complaints. 


The automation of a house can be done by using different parameters. Those used in the preparation of this model are the following:


  • Telegram bot
Telegram is one of the most powerful WhatsApp alternatives we can find today. One of its most outstanding features is the use of bots, thanks to which we can obtain functionalities that escape what we usually find in an instant messaging app.  A bot is a computer application designed to carry out a certain task automatically. The bots that we can find on Telegram also fall into the category of chat [1]. 

In this proyect the bot is the "person" which response to our petition. This petition are phrases like: "on the outside light", "off the outside light", "on the inside light", "off the inside light", "open the garage door" or "close the garage door"


  • IBM Watson
IBM Watson is a pioneering cognitive computing technology, capable of interacting with humans in a similar way to how people do it. When we talk about ‘cognitive’, we mean the ability to process information, learn, reason, memorize, solve problems and make decisions. And cogn cognitive computing ’when machines mimic those cognitive functions to make them intelligent [2]. 

For the domotic house is used the AI services from IBM Watson  and aspects related to changing voice to text commands (Speech to Text).

The Speech to Text service provides an API to add voice transcription functionalities to applications. It combines information about the structure of the language with the composition of the audio signal [3].

  • Google Services
Google is not only a search engine, with Google we can manage our own email account, view thousands of videos uploaded by other users, store our documents in the cloud, know our location by geo satellites, manage our online advertising [4]. 

Google offers a variety of services and tools besides its basic web search. This is a partial list of Google's services. One of them is the google search service, this is used in the domotic house. 

  • Arduino and Python
Python is one of the programming languages that have experienced the greatest boom in recent times. Its simplicity of use allows you to quickly make small programs and scripts, with very short development times. Of course, the world of Arduino is no exception and it is very easy to connect Arduino with Python [5].

The Arduino is used to moved the differents elements in a house, for examplo a door. In this case this allowed to open a close the garage door.


2. Objective: 
  • General: 
Develop the model of a smart home, using artificial intelligence concepts

  • Specific:
-Use the telegram application as a control to perform housework.
-Implement the tasks of turning on and off the outside and inside lights of the house, as well as opening and closing the garage door.
-Use the search google service to receive telegram notifications of the latest news to the user.


3. Development and results: 

The process to make the model of the domotic home is as follows: 

  • Elaborate the model: pressed paperboard were used to built the floor and the walls of the house. Other materials used were: crepe paper, silicone, rubber, tape, paint, etc, (Figure 1,2).
  
Figure 1: Materials

Figure 2: Model house

  • Programming: the system used to program all the variables were Python. In the following Figures (3,4, 5, ) you can apprecite the code: 6
Arduino Programming 


Figure 3: Arduino Programming

Figure 4: Arduino Programming

Python Programming
Figure 5: Python Programming

Figure 6: Phyton Programing 

  • Make connections: once the programming code is ready, the cables and arduinos must be implemented to the model (Figure 7).
Figure 7: Conections of the domotic house

  • Results: in the  following video you can watch how the domotic house works.

Figure 8: lights on




  • Google search: In addition, the sending of notifications (news) has been implemented (Figure 9).

 
Figure 9: Telegram news

4. Conclution:

At present, the use of technology is inevitable. In all areas it is used as these new technologies contribute to improving comfort, safety and well-being within homes, hence they are increasingly present.

Through the completion of this project you can determine how easy it is to implement artificial intelligence in a home, at the model level. Similarly, it can be said that there is no major problem in implementing AI in real houses.



5. Bibliography:

[1] Elandroide. (2019, septiembre 2). Los 10 mejores bots para Telegram. El Androide Feliz. https://elandroidefeliz.com/los-mejores-bots-para-telegram/

[3] IBM. (2019, febrero 4). Watson Speech to Text—Visión general. https://www.ibm.com/es-es/cloud/watson-speech-to-text

[2] Juana, R. de. (2019, septiembre 24). IBM Watson: Casi todo lo que tienes que saber. MuyComputerPRO. https://www.muycomputerpro.com/2019/09/24/ibm-watson-casi-todo-lo-que-tienes-que-saber

[4] Didactico. (2017, noviembre 23). Servicios de Google—Qué programas y herramientas son de Google. Internet Didáctica - Programas, APP, formación y cursos online. https://www.internet-didactica.es/servicios-e-historia-google/
[5] Llamas, L. (2016). Controlar Arduino con Python y la librería PySerial. Luis Llamas. https://www.luisllamas.es/controlar-arduino-con-python-y-la-libreria-pyserial/











No hay comentarios:

Publicar un comentario