Pyrrha-Platform / Pyrrha-Z

Next-generation firmware built on the Zephyr RTOS.
Apache License 2.0
2 stars 0 forks source link

mics4514: add calibration routine #12

Open bpbradley opened 2 years ago

bpbradley commented 2 years ago

Currently we are using default calibration values for R0 on mics4514. In order to support field calibrations, we will need a few things.

  1. A calibration process where the sensor is exposed to a known gas concentration and sensor data is measured over a period of time (possibly many minutes) until it has stabilized. This stable value would be the new R0.
  2. Implement a means of storing R0 into nvm (the settings subsystem with NVS backend is suitable for this).
  3. Implement a means of entering "calibration mode" to start this procedure. The shell subsystem is a good candidate for this.