Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calibration set to enabled by default #21

Open
Tomisdebom opened this issue May 6, 2021 · 0 comments
Open

Calibration set to enabled by default #21

Tomisdebom opened this issue May 6, 2021 · 0 comments

Comments

@Tomisdebom
Copy link

Tomisdebom commented May 6, 2021

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 Tomisdebom changed the title ECGP & ECGN switches set to isolated by default Calibration set to enabled by default May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant