Mar 20

Domoticz & Banana PI

http://www.domoticz.com/forum/viewtopic.php?f=17&t=2350

http://www.domoticz.com/forum/viewtopic.php?f=17&t=4964

——————-

I was about to create the wiki when I realised all the right information which matches what I did is already included over at:

http://www.domoticz.com/wiki/Installing_and_running_Domoticz_on_a_Raspberry_PI

The only comments I would add are:

Use the install from source route which requires the libudev-dev library to be installed first (Sudo apt-get install libudev-dev), the make process took about 10 minutes on the Bananapi.

If one wire temperature support is required for example for DS1820 sensors) it needs the script.bin file located at /boot/bananapi to be edited, this is a binary file which cannot be edited directly. Sunxi-tools can be installed and used as follows

sudo apt-get install libusb-1.0-0-dev
git clone git://github.com/linux-sunxi/sunxi-tools.git
cd sunxi-tools
make
cd /sunxi-tools
git clone git://github.com/voiceshen/sunxi-boards-bananapi.git

You then need to convert the existing script.bin file using bin2fex (sudo bin2fex /boot/bananapi/script.bin /home/script-source)

Edit the file /home/script-source to add in

[w1_para]
w1_used = 1
gpio=23

Save the file and convert it back to a bin file using fex2bin (sudo bin2fex /home-source-script /boot/bananapi/script.bin)

Reboot to enable the changes and connect the sensors as follows

GPIO pin 1 – 3.3V power
GPIO pin 6 – Ground
GPIO pin 16 – Data

One wire temperature sensing should now be available in Domoticz.

 

Laisser un commentaire

Your email address will not be published.