An easy-to-use Python interface for controlling the Circuit Cubes Bluetooth Battery Cube via Bluetooth Low Energy (BLE).
In order for this project to work, three packages are required: bleak, keyboard, and rich.
Install these to your Python environment with $ pip install bleak
, $ pip install keyboard
, and $ pip install rich
.
Additionally, the battery characterization code requires matplotlib and numpy.
Each Circuit Cube has a unique Bluetooth hardware address.
In order to find it, run the file Get_Bluetooth_Address.py
. This program will only work as expected if your Circuit Cube is named "Tenka".
Then, make sure that you copy your Bluetooth address into line 274 of Circuit_Cubes_Python_Interface.py
.
I would like to acknowledge the work of blockninja124.