Python scripts for processing images with the Pi Camera in order to measure the heart-rate (HR) from a person using laser speckle techniques and optical fiber, including Bluetooth Low Energy (BLE) communication. We present here the main files to make the Raspberry Pi Zero W (with PiCamera connected) work with this purpose.
This code includes the setup for the BLE communication system, using dbus, and creates all the classes concerning BLE Applications, Services and Characteristics.
This file is intended to create the actual Application and Services that is going to be used.
This program works with the I2C bus for communicating with a MAX17260 IC for battery management. In the main thread, it reads the battery level each minute. For the I2C communication it is used smbus.
This one is the master program. While it includes the processing mechanisms for extracting the HR value, consisting of one process for real-time signal acquisition and other one for signal processing, it also includes in its main thread the calling for all the other processes using multiprocessing.
- Alvaro Robledo
- Ignacio Sánchez
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details