Commit graph

10 commits

Author SHA1 Message Date
overflowerror
51af0b1d84 added support for MH-Z19C 2021-11-27 23:02:09 +01:00
4m1g0
d2dbf58947
Move global variables to class atributes to make it possible to define 2 sensors running independantly (#20) 2021-01-22 18:49:45 +01:00
Christoph Schultz
8a063e7c27
Add support for setting the range and autocalibration. Closes #1.
* added possibility to set Range, to enable/disable Autocalibrate and to calibrate maually ( see Datasheet v 1.2 : https://www.winsen-sensor.com/d/files/MH-Z14A.pdf

* Update MHZ.cpp

* Update MHZ.cpp

* Update MHZ.h

added calibrate Span, for complete functionality but commented out , due to professional use (req. constant atmosphere with 2k, 5k or 10k ppm CO2.).
corrected the bugs in MHZ.cpp also.

* Update MHZ.cpp

Added comments for  Sensors with specific firmware.

Co-authored-by: Christoph Schultz <christoph@schultz1-christoph.de>
2021-01-14 22:28:47 +01:00
Andreas Horn
253f8ae7d1 implements various small fixes and improvements
* the preheating time is now a constant variable too
* it is no possible to initialize the senor without PWM xor without (Soft-)Serial
*
2019-06-08 13:37:21 +02:00
Vladimir Kozlov
03d8500042 Added support of generic streams instead of software serial. 2018-12-31 10:04:11 +02:00
Tobias Schürg
83ba964a90 Implemented isPreHeating and isReady. 2018-07-07 16:05:40 +02:00
Tobias Schürg
99729af090 Added isPreheating and isReady to MHZ.h and reformatted. 2018-07-07 12:59:32 +02:00
Tobias Schürg
7158f63459 Introduced status codes as return values. 2018-07-04 23:20:12 +02:00
Tobias Schürg
29ea8e92bc Added a debug mode and improved log messages. 2018-06-24 12:22:50 +02:00
Tobias Schürg
ddef5ff84f Extracted MHZ logic into its own class. 2018-06-23 14:32:55 +02:00