https://github.com/mfa/hr-ble-display
Bluetooth Heart Rate Display using a Raspberry PI
https://github.com/mfa/hr-ble-display
Last synced: about 1 year ago
JSON representation
Bluetooth Heart Rate Display using a Raspberry PI
- Host: GitHub
- URL: https://github.com/mfa/hr-ble-display
- Owner: mfa
- Created: 2024-01-07T20:05:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-15T17:53:46.000Z (over 2 years ago)
- Last Synced: 2025-02-07T14:22:35.328Z (over 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Heartrate display
using a Chest strap, a PI zero 2 and an i2c-display
blog post:
### Parts
- PI zero 2 with Raspberry Pi OS installed
- i2c display -- I use
- Chest strap -- I use a Wahoo TIKR - but every other BLE strap should work
### install
activate i2c
```
raspi-config # -> enable i2c
```
System packages:
```
# for i2c
apt install i2c-tools
# for pillow
sudo apt-get install libopenjp2-7
```
Python packages:
```
python -m venv venv
. venv/bin/activate
# for ble
pip install dbus-fast bleak bitstruct
# for the display
pip install adafruit-circuitpython-ssd1306 pillow RPi.GPIO
```
Set the BLE Address in ``ble-display.py`` and copy the file to ``/home/pi``.
systemd:
```
sudo cp ble-display.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable ble-display
```