- I haven’t found any complete project like this, I mean a general purpose (home) automation project with a full developed hardware and software.
- The goals of this project are:
- to be affordable (price/(outputs + inputs)), every thing is hardwired (not for every one)
- reliability (every thing have to be easy to replace, my wife has to be able to do it)
- flexibility (gotten by division of GPIOs in groups of 4)
- it is based on Beaglebone Black (BBB)
- Its able to control up to 64 Inputs or Outputs in blocks of 4
- I’ve developed a main board were is possible to plug up to 16
4-inputs or 4-outputs boards (4 GPIOs). All of them are
optocoupled.
- I’ve already developed a 4-relays board and 4-transistors board wich can control lights intensity by PWM and also 4-imputs board
- The power board can be connected to a battery and detect a mains failure
- It’s already able to communicate with Openhab, an android and ios application, or whatever application that support MQTT protocol
- It’s in production now since April 8th 2016 in my home
- There are also 2 more slots with 3 and 4 analogs inputs, I’m planing to sense the battery level and natural light level.
- Into one of the 16 slots I’m planing to connect some DS18B20 (up to 10 can be connected to one gpio) to sense the rooms temperatures.
- I’m trying to sort thins out to make them easier to understand
- I will re-write some of c++ objects to make them more clear
- Many directories still need to be populated,
- A full functional project is in production at my home. Have a look at the pictures folder for images
- Now I’m controlling 5 PWM circuits for lights
- I’ve also 6 inputs
- All outputs are controlled by Openhab web application from LAN/WAN
- Get a Beagle bone black with Linux running
- to be able to compile c++ and new capes, they are needed to manage GPIOs
- do
apt-get install build-essential
- do
apt-get install linux-image-3.8.13-bone68 device-tree-compiler am335x-pru-package
- do
apt-get install libmosquitto-dev libmosquittopp-dev mosquitto mosquitto-clients
- do
- compile the cape /domotics/capes/half-in-half-out.dts by
make
- install by
make install
- install by
- get yours electronics ready and connected to one of the gpio used on “running/test-pwm.cpp” like “GPIO 27”
- Connect and input switch at “GPIO 4”
- copy the contents of “/domotics/running” to /pru2 at BBB
- run
make
- run
/pru2/start.sh
- Your led should get PWM controlled with the switch
- Optional:
- Install openhab, instructions at it’s site: http://openhab.org/
- copy domotics/root/* to ”” at BBB
- Install an configure your openhab to point to your BBB ip as http://BBBip:8080
- Every one willing to contribute with this project is welcome
- none yet
- none yet
- none yet
- none yet
- Damian Machtey
- dmachtey at gmail com
The code and hardware is being released under GPL v3.