I'm trying to do a Project with the MAX30102. I can read out the raw data of the sensor but I am unable to understand the algorithm to calculate the Heartrate and SPO2 out of the raw data. The only examples I can find are for Arduino Boards but that's not useful at all. I found this one Example for the STM32F103C8T6 and I was hoping I could just convert it for my board so at least I got something that works...
Here is the link for the example:
https://www.programmersought.com/article/90827305857/
I have the code in the attachment.
I hope somebody can help me.
best regards,
F.Enis