Comments (5)
I would like to suggest removing isReady()
completely or at least make it an option one can disable. Is it possible that the line in the data sheet was misinterpreted?
T_{90} < 120s does not mean one can only read the sensor every 120 seconds. If you suddenly expose the sensor to a new atmosphere, it takes less than 120 seconds to cover 90% of the difference. So if you go from 400ppm to 800ppm, after 120 seconds the sensor should report at least 760ppm. That is not a reason to prevent the library from reading it out earlier anyway.
Since the response time is a physical property of the sensor, it should be handled regardless of readout channel. Currently, it is checked for UART and the check is commented out for PWM.
from mh-z-co2-sensors.
Agreed, I was just looking at this code with confusion trying to see why UART only reported readings occasionally, I removed all the weird response time stuff from isReady() and it works fine now.
from mh-z-co2-sensors.
Check my Pull Request where i tried to tackle this
from mh-z-co2-sensors.
Fixed in 1.4.1 version, may be close it?
from mh-z-co2-sensors.
Thanks for the reminder :-)
from mh-z-co2-sensors.
Related Issues (20)
- Preheat constant calculation overflows HOT 1
- No data read from sensor HOT 3
- Sloppy interpretation of response time and preheating time? HOT 2
- adjust measurement range (5000 ppm or 2000 ppm) HOT 1
- PPMUart && Temperature N/A HOT 2
- Documentation about how to change from MH-Z19B to MH-Z14A module is missing HOT 1
- Support for MH-Z19C? HOT 4
- 16bit integer constant on Arduino Uno HOT 1
- Constant in `readCO2PWM` depends on range HOT 5
- Other MH-Z libraries HOT 1
- Pin configuration for Wemos D1 mini HOT 3
- Support for MH-Z14B HOT 1
- Add doucmentation and adjust samples with `range` parameter HOT 1
- Call of overloaded 'MHZ(const uint8_t&, const uint8_t&, const int&)' is ambiguous HOT 7
- Platform.io warning: Could not find the linux_x86_64 package HOT 1
- Version 1.4.1 isn't visible in Platform.IO registry HOT 3
- Update Readme/Documentation
- Can this library be used with MH-Z16? HOT 2
- Change library name back
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mh-z-co2-sensors.