davidkreidler / OpenCO2_Sensor

Arduino Repository for an E-Ink CO2 Sensor using ESP32 and SCD4X
https://www.tindie.com/products/davidkreidler/open-co2-sensor/
MIT License
100 stars 5 forks source link

LED gets glitched into beeing on, but not reacting to co2 measurements. In BatteryMode. #2

Closed Maashkinoozhe closed 2 years ago

Maashkinoozhe commented 2 years ago

The led get stuck with a color and will not change until its reconnected to charging cable. The software version is the one the sensor came with. I have not done updates yet.

How to reproduce.

  1. Sensor is disconnected from charging cable, LED is off.
  2. Connect sensor with charging cable.
  3. Disconnect charging cable as soon as the led switches on.

Expected Results:

  1. Led stays on and changes color according to co2 measurements OR
  2. Led turns off again and stays off

Actual Result: Led stays on, even without charging cable. Led color does not align with co2 values(co2 value changes, led color does not). Led color is stuck on whatever color it had when "quick disconnecting" the sensor.

davidkreidler commented 2 years ago

Hey @Maashkinoozhe , thanks for the very detailed explanation. This should be fixed in https://github.com/davidkreidler/SCD4x_CO2_Sensor_ESP32/commit/f3aa6951161b1a59a7281e02201410d72f70a213 line 264. I think the dependency on comingFromDeepSleep lead to a state in wich I expected the led to be already off.

Please test & report with release 2.0 or the current main branch. David