code to connect many pineTimes to a computer and extract heart rates
This project is initially to support an art installation where PineTime watches being used by visitors will send information (Heart rate, xyz, step count) to a computer and this will be used to control what is being shown to visitors (audio visual projections, etc).
The best way to do this so far was:
- PineTime Watches with Infinitime firmware (from firmware v1.8, the heart rate signals, XYZ and steps can be broadcast via bluetooth)
- https://github.com/InfiniTimeOrg/InfiniTime/blob/main/doc/ble.md
- Python code connects to PineTimes using Bleak library
- Python code extracts HR, XYZ, step count data and manipulates it (change ranges, scales, etc)
- Python code to convert the manipulated data into Open Sound Control (OSC) Messages
- OSC messages are sent to QLab (software being used to control the media part of the art installation)
- This library seems a good place to start for the implementation of OSC -> QLab
Notes:
- Upgrading the Infinitime firmware can be done with companion apps (at the momemnt - May/2023 - on Android, Linux or Mac systems).