feat(ecg-app): high-pass filter and pulse detection
Compare changes
+ 89
− 10
@@ -41,16 +41,83 @@ leds.dim_top(1)
@@ -207,12 +274,24 @@ def draw_histogram():
the high-pass filter (simply subtracting a moving exponential average) improves the clarity of the graph significantly by eliminating much of the muscle movement etc. that is visible otherwise.
detect_pulse
uses this cleaner signal to detect the Q and R spike of the QRS complex to determine the pulse of the user