Closed wh1t3chr1s closed 1 year ago
Hi wh1t3chr1s,
Would you please try mh_z19.read_all(True) instead of mh_z19.read_all() and tell me the result, thx!
I don't know WHY, but mh_z19.read_all() works now for some reason as well as the (True) version that you just suggested.
The only thing thats weird is that the temperature doesn't seem to be correct. I have two other ways of getting my temperature, both tell 4 degrees cooler.
The temperature returned by read_all() is just an expedient value, not a universal truth. It's just computed as TT - 40 with undocumented internal value TT which is thought that it might be related to ambient temperature and used sensor internally. Under several environments, -40 works as a good supplement, but if it doesn't fit in your environment, you can use it by adding your complement +4.
5 day no feedback.
Hallo, I'm very new to all of this, so sorry in advance.
-Raspberry Pi 4 /w MH_Z19C -I installed it via "pip install". -I've enabled the serial port hardware in raspi-config as well as I2C which I need for the other part of my project. -I triple-checked the wiring. -The red led is blinking. -I used "chmod 777" (just in case) for both /dev/ttyS0 and /dev/AMA0 -I disabled bluetooth just like one person of the other issues stated that it worked for them. -After I used _mh_z19.readall() once, it reset all the permissions for ttyS0 back to what it was before. Therefore I get this after using it again:
Help? ^^°