/HeartRateDetector

Project: Building a heart rate detector hardware using Raspberry Pi Pico W and Crowtail - Pulse Sensor.

Primary LanguagePython

Heart Rate Detector and Stress Meter


Heart rate detector implemented using Raspberry Pi Pico W and Crowtail - Pulse Sensor.
MicroPython as programming language and Thonny as IDE.

Components:

  • Raspberry Pi Pico W
  • Crowtail - Pulse Sensor (photoplethysmography - PPG)
  • OLED (SSD1306)
  • Rotary knob

image

Operating Principle

The Crowtail optical sensor detects the heart rate as an analog signal and transmits it to the Raspberry Pico Pi W. This analog signal is converted into digital by the AD-converter of the microcontroller and using own peak-detection related algorithms, the device is capable of measuring the peak-to-peak interval (PPI) of the heart signal.


Using the gathered interval data, the mean peak-to-peak interval (PPI), mean heart rate (HR), standard deviation of successive interval differences (SDNN), root mean square of successive differences (RMSSD) and Poincare plot shape parameters (SD1, SD2) are analysised with own algorithms.

From Raspberry Pi Pico the collected peak-to-peak interval data is also transmitted wirelessly to the Kubios Cloud Service, where the data is further analysed to receive the recovery and stress indexes. The outcome of this analysis is then returned to the device and the results are presented through the OLED display for the user along with the locally calculated parameters.

During the measurement, the rotary knob functions as the controller for this operation, that provides the user interaction for the hardware. The user can choose the activity respectively based on to the information displayed on the OLED, such as initialisation or restart of the measurement.

image

More Information