Closed v-borovikov closed 2 years ago
Yes, I've got the same problem with wrong PWM results, when updated the library to the latest version 1.3.0.
You're right!
I currently don't have much capacity left - feel free to submit a PR
Hi Tobias, PR has been created , please merge it when you will have time: #33
Initially it was already 5000 ;-)
As pointed out by @v-borovikov the range will not be the same for everyone.
To address this issue the range (2000 or 5000) should be configurable - ideally it is initially read from the sensor (command 0x99
) and then used...
Hi!
Just started working with MH-Z sensors family. After reading MH-Z19 sensors datasheet and examing some libraries I've noticed that every one copies exactly same mistake.
Instead of constant
2000
there should be current range. So, if sensor was configured with i.e.5000
range, this formula will lower the value of measurement.