Hi,
I am running into some trouble with the initial calibration of each LED. Right now, I am using the Ambient phase sampling as my reference for ambient cancellation for all 3 LEDs.
I run the initCalibrationRoutine() before startup and then run the CalibrateAFE() function after every 100 samples (fs = 100Hz). What I see is the following:
1. If I set LED_Sel = 1, which corresponds to the Green LED, the calibration routine decimates the signal such that its DC level is around 0.04V. That's around 10x lower than I expect. If I remove the initCalibrationRoutine(), then the Green LED is properly calibrated to ~0.55V DC baseline.
2. If I set LED_Sel to either 2 or 3, I get a DC set level to ~1.1V no matter how I alter the calibration routine.
Are there any tips or tricks to this? I am using the supplied function libraries from the EVM software.
Additionally, I see on many threads there are very little comments on modifying the calibration routine for a 2LED mode for SPO2 monitoring. My question is why does not calling the calibration routine for each separate LED_Sel in a "for" loop not be permissible? Obviously this would be with the correct ambient sampling - for 2 LED mode we would have two ambient sampling periods which would be passed into the CalibrateAFE() function.