1. 30 Apr, 2021 4 commits
    • Käppler's avatar
      co2_sensor: Remove state 'INVALID' · 186bf9f9
      Käppler authored
      Ongoing investigation showed that the sensor
      does report 0 ppm only after startup, i.e.
      in 'BOOTUP' state. We check for this condition
      in `hasSensprSettled()` already, so there is no
      need for this state anymore.
      186bf9f9
    • Käppler's avatar
      co2_sensor: Do not report new data in all cases · 239daba6
      Käppler authored
      Log every measurement to the serial console, but
      return only `true` in `processData()`(thus starting
      further processing like CSV, MQTT, LORAWAN) if
      the data is reliable (stable measurements, CO2 > 0)
      or the sensor measures too low CO2 values (< 250).
      
      The latter condition should be reported, because
      the user can then initiate a manual calibration procedure.
      239daba6
    • Käppler's avatar
      co2_sensor: Drop unused state 'CALIBRATION' · c6139baf
      Käppler authored
      c6139baf
    • Käppler's avatar
      co2_sensor: Reset SCD30 after startup · fe023428
      Käppler authored
      Sometimes after a hard reset of the ESP the SCD30
      needs a long time until returning the first measurement.
      Resetting it after startup seems to fix this behaviour.
      fe023428
  2. 29 Apr, 2021 2 commits
    • Käppler's avatar
      co2_sensor: Add new state INVALID (co2<=0) · 6751d607
      Käppler authored
      This state is showed with red waiting LEDs.
      Previously, the state 'BOOTUP' with blue
      waiting LEDs was used to show invalid measurements.
      
      Use blue waiting LEDs now only during sensor
      acclimatization.
      6751d607
    • Käppler's avatar
      co2_sensor: wait for acclimatization after startup · dcba0a6a
      Käppler authored
      The SCD30 sensor has a response time of 20 s to reach
      67 % of its final reading. The first measurement
      can thus be unreliable, if the environment changed
      shortly prior to startup. Set measurement interval to the
      shortest possible value (2 s) and wait then, until the
      measurements have stabilized. Show a blue led effect in
      the meanwhile.
      dcba0a6a
  3. 28 Apr, 2021 1 commit
  4. 25 Apr, 2021 4 commits
  5. 24 Apr, 2021 7 commits
  6. 23 Apr, 2021 11 commits
  7. 22 Apr, 2021 1 commit
  8. 21 Apr, 2021 3 commits
  9. 20 Apr, 2021 7 commits