Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional value for detection range #19

Closed
WO15 opened this issue Jul 6, 2020 · 3 comments
Closed

Add additional value for detection range #19

WO15 opened this issue Jul 6, 2020 · 3 comments

Comments

@WO15
Copy link
Contributor

WO15 commented Jul 6, 2020

Currently there are 2 detection ranges you can select/set 2000ppm and 5000ppm see
https://github.com/UedaTakeyuki/mh-z19/wiki/CALIBRATION-&-detection-range
in the datasheet v1.5 in chapter 5 on page 5 there are 3 ranges indicated 2000, 5000 and 10.000.
Would it be possible to add the 10.000ppm range as a "detection_range_10000()" command to the code?
on page 8 of the datasheet the details are given.
Set 0~10000ppm detection range, send command: FF 01 99 00 00 00 27 10 2F

@UedaTakeyuki
Copy link
Owner

Hi WO15,

Thank you for your kind suggestion. I'll implement it soon.

@UedaTakeyuki
Copy link
Owner

Hi WO15,

I've added the --detection_range_10000 option and updated both github and pypi.

@WO15
Copy link
Contributor Author

WO15 commented Jul 7, 2020

Upgraded the python package on a Raspberry and tested the 2k, 5k and 10k range setting. Placed the sensor connected with long wires in a drinking glass and exhaled on it for approx 1 minute. Exhaled air contains approx 4% (40k ppm CO2). Did this 3 times for all 3 ranges, the read out values maxed out at the max value for each range set. So the --detection_range_xxxx option for all 3 ranges seems to work OK.

@WO15 WO15 closed this as completed Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants