vrano714 / max30102-tutorial-raspberrypi

This repository is unofficial porting of Arduino sample code of MAXRESDEF117#(max30102) HR/SpO2 sensor
56 stars 28 forks source link

About calculation of Ratio #10

Open H7272 opened 3 years ago

H7272 commented 3 years ago

Your Qitta https://qiita.com/vrn/items/1ac58c61194b23af1d8c was very helpful. I also translated algorithm.cpp from C to Python. Ir_dc_max in the code below became a problem.  nume = red_ac * ir_dc_max (n_y_ac *n_x_dc_max)

I thinkir_dc_max indicates "AC+DC" of ir at the peak of the mountain. If calculate R :(ACred / DCred) / (ACir / DCir), I think that "ir_dc_max" should be DC of ir.

I'm sorry, but I would like to hear your opinion.

zhantt626 commented 1 year ago

Hello, Have you understood the principle of calculating the R-ratio?