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

DOC: FRC requires a wait time after calling forceRecalibration() #4

Open
ferdinand0815 opened this issue Oct 3, 2024 · 1 comment
Assignees

Comments

@ferdinand0815
Copy link

When using the FRC method to calibrate the sensor, it is important to let it run for some time after calling forceRecalibration(). This is contrary to the field calibration application note which states "The effect of FRC takes place immediately."

Calling either softReset() or stopPeriodicMeasurement() (or power cycling the device) will null the just set calibration.

For calibration to work, one needs to either have a delay() or just keep measuring. The required wait time seems to be related to the measurement cycles - once two cycles are past the calibration curve is saved.

// let the CO2 reading be:
// -> 800 ppm

sensor.forceRecalibration(1200);
sensor.softReset();
// -> 800 ppm - fail

sensor.forceRecalibration(1200);
delay(5000);
sensor.softReset();
// -> 1200 ppm - good

I hope this helps someone.

@sdmueller
Copy link

Hi @ferdinand0815

Thanks for using our sensors!

I tried to reproduce the behavior you observed but on my side the FRC value is applied immediately and stays after soft resetting.

Are you sure the FRC call does not return an error in the first case (return value should be 0)?
If yes, what does sensor.getForceRecalibrationStatus(...) read out before and after the soft reset?

And what firmware version is your sensor on?

@sdmueller sdmueller self-assigned this Oct 9, 2024
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

2 participants