1
0
mirror of https://github.com/revspace/operame synced 2024-12-04 21:57:30 +00:00
Commit Graph

14 Commits

Author SHA1 Message Date
Juerd Waalboer
47167d8e82 Improve ABC, small refactor, debug output, and more.
- ABC history is now populated with previous outcome, so it won't
  assume any plateau is the new low.
- Don't change baseline if it's close to the old one, to avoid flash wear
  and display jumps.
- Reduced tick from 6 to 5 seconds, which is the MH-Z19's interval.
- Implement moving average for display to make it less jittery.
- Show ABC calculations and smoothing on serial output for debugging.
- Increase default mqtt failure maximum to 100 because restarts are
  visually annoying.
- Moved some magic literals to named constants.
2020-11-29 04:00:53 +01:00
Juerd Waalboer
b31be4ee84 Don't try mqtt connect without wifi 2020-11-28 22:10:12 +01:00
Juerd Waalboer
26ee5d39c6 Implement automatic baseline calibration 2020-11-28 21:19:53 +01:00
Juerd Waalboer
6c7bb2c4a3 Deal with weird MH-Z19(B?) version
This one, with version number 0436, has a magic "I'm still booting" value
of 436 PPM instead of 410 PPM.

Interestingly, another sensor with version 0430 returns 430 for an instant,
but then goes to 410. During the short 430-phase the clamped CO2 value is
actually 0, so it doesn't require checking.
2020-11-27 05:33:15 +01:00
Juerd Waalboer
5c7bb23f80 Change references to snuffelaar to operame
Snuffelaar is a different project, where I originally copied the .ini from :)
2020-11-27 04:01:21 +01:00
Juerd Waalboer
a4b25ea7e1 Include MQTT library dependency 2020-11-27 04:01:06 +01:00
Juerd Waalboer
0ab1ea28e6 Add logo 2020-11-25 01:55:40 +01:00
Juerd Waalboer
df27d1474a Make compatible with millis() rollover 2020-11-18 23:45:20 +01:00
Juerd Waalboer
5359e62b12 Change RX and TX pins for MH-Z19
Per PCB layout change
2020-11-18 23:44:44 +01:00
Juerd Waalboer
5fdd5596cf Detect rotated TTGO 2020-11-17 21:40:43 +01:00
Juerd Waalboer
872649e03b Bare minimum README 2020-11-16 23:57:56 +01:00
Juerd Waalboer
4f33490310 Typo 2020-11-16 23:51:38 +01:00
Juerd Waalboer
10fd041370 Add .gitignore 2020-11-16 23:50:49 +01:00
Juerd Waalboer
56d4912e87 First commit 2020-11-16 23:48:15 +01:00