CALCULATE BPM FROM RAW DATA OF MAX30100 SENSOR

For general Flowcode discussion that does not belong in the other sections.
Post Reply
SILVESTROS
Posts: 123
http://meble-kuchenne.info.pl
Joined: Tue Dec 13, 2022 9:04 pm
Has thanked: 32 times
Been thanked: 2 times

CALCULATE BPM FROM RAW DATA OF MAX30100 SENSOR

Post by SILVESTROS »

Hi to all !

I would like to calculate HEART RATE (BPM) and SpO2 (%) from raw data of a MAX30100 sensor. Is there an example in FC10 to help me for that ?
Thanks

Basil

medelec35
Matrix Staff
Posts: 1958
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 627 times
Been thanked: 657 times

Re: CALCULATE BPM FROM RAW DATA OF MAX30100 SENSOR

Post by medelec35 »

Hello.
Have you see this webpage?
If you look at the code, it is just timing the duration of each reading.
You can use the Component Libraries > Math > Timer component for that.
Once you have the duration in ms of time between beats you can use a calculation command icon with:

Code: Select all

beatsPerMinute = 60 / (duration / 1000.0)
Martin

Post Reply