Skip to content

A beginner-friendly Python interface for controlling the Circuit Cubes Bluetooth Battery Cube through Bluetooth Low Energy (BLE).

License

Notifications You must be signed in to change notification settings

thesimonwong/Circuit_Cubes_Python_Interface

Repository files navigation

Circuit-Cubes-Python-Interface

An easy-to-use Python interface for controlling the Circuit Cubes Bluetooth Battery Cube via Bluetooth Low Energy (BLE).

Usage

Dependencies

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.

Connecting to Circuit Cube

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.

Credits

I would like to acknowledge the work of blockninja124.

About

A beginner-friendly Python interface for controlling the Circuit Cubes Bluetooth Battery Cube through Bluetooth Low Energy (BLE).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published