protocentral_max30003 icon indicating copy to clipboard operation
protocentral_max30003 copied to clipboard

Calibration set to enabled by default

Open Tomisdebom opened this issue 3 years ago • 0 comments

I've been having issues with acquiring a quality signal using this library and found out that calibration was set to enabled by default. This will in fact worsen the behaviour of the ECG sensor and is therefore recommended to be set to disabled on the MAX30003 datasheet. You can either adjust the CNFG_CAL register to set it to disabled or simply take out the line that sets it to enabled in the source file. Specifically, you need to change the max30003Begin() function in the source file to:

void MAX30003::max30003Begin()
{
    max30003SwReset();
    delay(100);
    max30003RegWrite(CNFG_GEN, 0x081007);
    delay(100);
    max30003RegWrite(CNFG_EMUX,0x0B0000);
    delay(100);
    max30003RegWrite(CNFG_RTOR1,0x3fc600);
    max30003Synch();
    delay(100);
}

Tomisdebom avatar May 06 '21 21:05 Tomisdebom