Home Automation w/ Arduino and OpenHAB - · PDF fileHome Automation w/ Arduino and OpenHAB by...
Transcript of Home Automation w/ Arduino and OpenHAB - · PDF fileHome Automation w/ Arduino and OpenHAB by...
Home Automation w/ Arduino and OpenHAB
by Eric Tsai
A Hackaday project that connects two open source projects (Arduino and OpenHAB) to
create a system of connected IoT Smart Home.
Arduino OpenHAB
My Gateway
Arduino – cheap sensor node
$2 – ultrasonic distance $2 – digital temp / humidity $0.50 – light sensor
$2 – PIR presence $2 – sound sensor $6 – smoke, gas
Home Automation Needs
Arduino Field Node:
Wireless transceiver: cheap, long range, low power
Arduino HW design: cheap, battery power option
Open Source
Home Automation Gateway (OpenHAB)
Open Source
Run on low power, RPi
Web interface and mobile app
Rules Engine (If This, Then That)
Actions: email, tweet,
Historize & chart data
Battery Powered Design
● Battery efficient design – from LowPowerLab and JeeNode using
MCP1702 for 3.3V
● Sleep = 100uA
Arduino Garage Node
OpenHAB
Arduino Gateway
MQTT Broker (Mosquitto)
RFM69 Wireless
Temp Sensor 79.5
RFM69 Wireless
Ethernet Shield
915MHz, encrypted
Wireless
Ethernet MQTT Publish
79.5
“Garage_Temp 79.5”
Ethernet MQTT Subscribe
“Garage_Temp 79.5”
UI
This is my design
MQTT Topic Formation
Arduino sketches for RFM Gateway and Ethernet Gateway are on
Github, as well as sketches for all example sensor nodes and
OpenHAB configuration.
http://github.com/homeautomationyay
Credits
● Arduino MQTT library from Nick O'leary
● Arduino RFM69 library from Felix Russo of LowPowerLab.com
● Arduino battery powered schematics from LowPowerLab.com
and JeeLabs.org
● OpenHAB Project and Eclipse Project for Mosquitto.
● Many many forum users on Arduino.cc and Openhab google
group for their help.