Академический Документы
Профессиональный Документы
Культура Документы
Sistemas Embebidos
Objetivos
19 Febrero 2
2015
Configuracin de alertas.
GADGETKEEPER
19 febrero 3
PASO 1: PREPARACIN DE RASPBERRY Y
SENSOR
PUTTY (SSH)
Instalar
tightvncserver
en la RASP
SD de la RASP
con SO
RASPBIAN
19 Febrero 2015 4
PASO 2: LIBRERAS Y PROGRAMACIN
DEL SENSOR
Abrimos un terminal SSH y descargamos
desde Github la librera del sensor DH11
para Raspberry.
$ git clone git://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code.g
$ cd Adafruit-Raspberry-Pi-Python-Code/
$ cd Adafruit_DHT_Driver
19 Febrero 5
2015
PASO 2: LIBRERAS Y PROGRAMACIN
DEL SENSOR
Si lo ejecutamos
obtenemos
19 Febrero 6
2015
PASO 2: LIBRERAS Y PROGRAMACIN
DEL SENSOR
19 Febrero 7
2015
PASO 3: CONFIGURAR LA ALARMA EN
GADGETKEEPER
19 febrero 2015 8
PASO 3: CONFIGURAR LA ALARMA EN
GADGETKEEPER
19 febrero 2015 9
PASO 3: CONFIGURAR LA ALARMA EN
GADGETKEEPER
19 febrero 2015 10
Monitorizacin en tiempo real de la temperatura.
EMONCMS
19 febrero 11
PASO 1: PREPARACIN DE RASPBERRY Y
SENSOR
R=4.7 k (pullup entre datos
y VCC)
1-WIRE DSB1820 de Dallas
Instruments.
3 pines:
DATa con pullup a VCC (GPIO 4).
GND.
VCC (3.3 V)
19 febrero 2015 12
PASO 2: CONFIGURACIN EMONCMS
LOG DE TEMPERATURAS EN
API KEY DEL SENSOR TIEMPO REAL (DIAGRAMA BARRAS)
19 febrero 2015 13
PASO 3: LEER SENSOR Y ENVIAR LA
INFORMACIN A EMONCMS
Script Python
para configurar
la lectura del
sensor y
envo de
informacin al
servidor
Emoncms.
/sys/bus/w1/devices
19 febrero 2015 14
PASO 3: LEER SENSOR Y ENVIAR LA
INFORMACIN A EMONCMS
Ahora ya nos podemos ir a Inputs en Emoncms y encontrar
la entrada correspondiente a nuestro sensor de
temperatura.
En su configuracin aadiremos un proceso x 0.01 para
que nos muestre la temperatura en C y bajo de eso un
Log to feed para poder mostrarla.
Ahora ya aparecer en la pestaa Feeds, donde la
editaremos y la seleccionaremos como REALTIME. Por
ltimo en la pestaa Vis seleccionamos el visor Realtime y
el feedid de nuestro sensor de temperatura. El resultado
ser algo parecido a esto:
19 febrero 2015 15
PROBLEMAS ENCONTRADOS CON
EMONCMS
Sudo nano /etc/modules
Agregar w1-gpio y w1-therm, dos mdulos
necesarios para que el sensor sea detectado ya que
as habilitamos el mdulo del protocolo 1-wire y lee
la t del dispositvo en el bus.
19 febrero 2015 16
DOCUMENTACIN CONSULTADA
http://wiki.gadgetkeeper.com/pages/viewpage.ac
tion?pageId=7700673 (PARA PREPARACIN
HW/SW)
http://docs.gadgetkeeper.com/display/docs/Creat
e+Event+And+Trigger (CONFIGURAR ALARMA
GADGETKEEPER)
http://docs.gadgetkeeper.com/pages/viewpage.a
ction?pageId=9601893 (VISIN CONJUNTA DE LA
COMUNICACIN CON GADGETKEEPER)
http://litox.entramado.net/2013/12/26/monitoriza
r-la-temperatura-desde-raspberry-pi
http://www.sbprojects.com/projects/raspberrypi/t
emperature.php
19 febrero 2015 17