Javascript Heartrate MonitorUsage Instructions:
|
Calibrating...
This website relies on the fact that deoxygenated blood lets through less light than oxygenated blood. By putting your finger over your device's camera, the only light you let through is what ambient light gets through your blood. By tracking the brightness of the display and running an FFT on the resulting array, we can look for peaks and convert back to get the frequency that has the highest amplitude. Since the only thing that varies is the heartrate, the highest peak of the FFT should reflect the heartrate.