oxullo / Arduino-MAX30100

Arduino library for MAX30100, integrated oximeter and heart rate sensor
GNU General Public License v3.0
193 stars 136 forks source link

MAX30100 Library Beat Detection Values Calculation #87

Open Fatihalparslan opened 2 years ago

Fatihalparslan commented 2 years ago

Hello i try to develop a heart beat detection function which measure from wrist for max30101. I saw your MAX30100 Beat Detector.h library could you send me your source document/tutorial which base of defines below

define BEATDETECTOR_INIT_HOLDOFF 2000 // in ms, how long to wait before counting

define BEATDETECTOR_MASKING_HOLDOFF 200 // in ms, non-retriggerable window after beat detection

define BEATDETECTOR_BPFILTER_ALPHA 0.6 // EMA factor for the beat period value

define BEATDETECTOR_MIN_THRESHOLD 20 // minimum threshold (filtered) value

define BEATDETECTOR_MAX_THRESHOLD 800 // maximum threshold (filtered) value

define BEATDETECTOR_STEP_RESILIENCY 20 // maximum negative jump that triggers the beat edge

define BEATDETECTOR_THRESHOLD_FALLOFF_TARGET 0.3 // thr chasing factor of the max value when beat

define BEATDETECTOR_THRESHOLD_DECAY_FACTOR 0.99 // thr chasing factor when no beat

define BEATDETECTOR_INVALID_READOUT_DELAY 2000 // in ms, no-beat time to cause a reset

define BEATDETECTOR_SAMPLES_PERIOD 10 // in ms, 1/Fs