Last Updated on January 28, 2023 by pg@petergamma.org
Several years ago, we were looking for ways to stream ANT+ & BLE to to MATLAB, Octave & Python:
https://github.com/PeterGamma/Live-stream-of-ANT-plus-and-BLE-sensor-data
And EEG data to MATLAB, Octave & Python:
https://github.com/PeterGamma/Live-stream-of-EEG-sensor-data
We also reviewed how to stream Muse 2 data over LSL:
And also to stream OpenBCI data over LSL:
But according to our own little experience, it easer to attach ECG, PPG and EEG modules to an ESP32 module and Home Assistant.
An example how to connect an ECG module to ESP can be found from How To Electronics in India
Once ECG, PPG and EEG modules are attached to ESP32, they can easily be attached to Home Assistant and exported from there to InfluxDB.
ESP32 offers only 12 bit A/D conversion. 16 bit is preferred for research application. But we can start with 12 bit to test it an add later on an 16 bit A/D module.
To connect a ESP32 bit module to Home Assistant is easy, as the following example shows:
Once ECG, PPG, EEG or other sensor data are in Home Assistant, we can export sensor data to InfluxDB, as the example from Udo Berndt shows:
Using these sensor modules is easier than ANT+ or BLE sensors, since they are open. This path is easy and we can imagine that also physioloigsts would use it if it works.This is a path which we never have seen before that someone uses it for physiological sensor data. But if it works, it would be an easy way to create a physiological multi-sensor device, which store sensor data in InfluxDB, from where it can be visualized in Grafana and processed further by the Python client for InfluxDB.