HJvA / BLE-automation

BLE Automation-IO server on Adafruit device, with pythonista and/or raspberry AIOS-client
GNU General Public License v3.0
1 stars 0 forks source link
adafruit adafruit-device analog-input arduino binary-io-system ble bluetooth-low-energy gatt gatt-automation-io ios nrf52832 pythonista pythonista-graphical-ui

BLE-automation

This project comprises Bluetooth GATT Automation IO server on Adafruit Feather nRF52832 device and a Pythonista Automation IO client on an IOS device and also an python3 Automation IO client on a raspberry pi using the bluepy library.

The GATT automation-IO profile defines an Bluetooth Low Energy device with digital-analog inputs and outputs, which can be controlled remotely by clients implementing the profile. This project implements it on an iPad using python in the Pythonista App. Now also a client on the Raspberry pi is provided, which is used in my fshome project.

As an extra, the Adafruit / Arduino software also has sensors implemented for temperature, humidity, eCO2, TVOC, using the I2C bus with the SHT31-D and the CCS811 breakout boards.

Automation server

GATT enhancements:

Installation

The Adafruit device has to be programmed using the Arduino IDE as described on the Adafruit site. The Adafruit device and the breakout sensor boards can be put together using prototyping breadboards, but the doc folder in this project shows another option when a soldering iron is available.

Automation client

ios-AIOS-client

The Pythonista app has some very nice possibilities to build python 3 apps. Including charts and a graphical user interface, and having the cb module as an interface to Bluetooth Low Energy on the IOS platform. The doc folder shows some screenshots.

rpi-AIOS-client

To setup BLE (i.e. bluepy) for Python on a Raspberry pi execute the following commands:

cd rpi-AIOS-client  
git clone ....
cd bluepy  
pip3 install .
or python3 setup.py develop --user   

What is next

ported to fshome project

Usage

Refered products: