Posts
Showing posts from June, 2023
Heart Rate Measurement with ESP32 and Pulse Oximeter Module using FFT
- Get link
- X
- Other Apps
Code listing used in video: // Tinker Foundry // Heart Rate Measurement with the MAX30102 breakout board using FFT // Connections from WEMOS D1 R32 board to MAX30102 Breakout Board as follows: // SCL (ESP32) to SCL (breakout board) // SDA (ESP32) to SDA (breakout board) // 3V3 (ESP32) to VIN (breakout board) // GND (ESP32) to GND (breakout board) #include <Wire.h> #include "MAX30105.h" // sparkfun MAX3010X library MAX30105 particleSensor; #include "arduinoFFT.h" arduinoFFT FFT; double avered = 0 ; double aveir = 0 ; double sumirrms = 0 ; double sumredrms = 0 ; int i = 0 ; int Num = 100 ; // calculate SpO2 by this sampling interval int Temperature; int temp; float ESpO2; // initial value of estimated SpO2 double FSpO2 = 0.7 ; // filter factor for estimated SpO2 double frate = 0.95 ; // low pass filter for IR/red LED value to eliminate AC component #def