Giter Club home page Giter Club logo

Comments (10)

TD-er avatar TD-er commented on August 19, 2024 1

Things to check with this sensor:

  • No IR source near it (also no sunlight)
  • Make sure it has enough power
  • Run it at 5V (GPIO pin output level is 3.3V)
  • Put it in a room (at normal room temperature) with ABC enabled (= default setting) and leave it on for 24h.

And remember, do not (!!!!!!) use the zero point calibration.
You will very likely ruin the sensor.

Only use it when the sensor has been in a well ventilated room, no direct sunlight and with some plants in it, during the day.
It also has to be like that for at least 20 minutes.

from rpieasy.

TD-er avatar TD-er commented on August 19, 2024 1

Just put it in a room where no people are for a while (also no animals ;) ) and during the day with plants present (not needed, but will help get he CO2 levels down)
The reason why you want to do that during the day, is because the plants will collect CO2 when the sun shines and output CO2 when the sun is set.
You just have to make sure the sun is not directly visible by the CO2 sensor, since it operated via IR absorption. The air with CO2 in it will absorb more IR light than the path of light through some air with less CO2.
The difference is some indicator of CO2 concentration.

It is really hard to get the CO2 level down to 400 ppm when there are CO2 producers in the room :)

And it is not only the power supply which may cause issues. Also the USB cable has to be one that can handle some current without causing a voltage drop.

from rpieasy.

enesbcs avatar enesbcs commented on August 19, 2024

I have ordered such a device using the donations i've received for RPIEasy project.
Thanks to happytm and Budman1758!
I've found a python library that let me implement this plugin easily - i hope:
https://pypi.org/project/mh-z19/

from rpieasy.

enesbcs avatar enesbcs commented on August 19, 2024

Device arrived to me, the pypi library seems to work but after some time the co2 results always stucks at 5000... i've disabled ABC logic, but nothing helps, unless i power-cycle the mhz-19 when it starts to report 410ppm co2.. for a while.
I've order this: (which looks like an A version)
https://www.banggood.com/MH-Z19-0-5000PPM-Infrared-CO2-Sensor-For-CO2-Indoor-Air-Quality-Monitor-UARTPWM-p-1094463.html?rmmds=myorder&cur_warehouse=CN
But I've got a B version, which misses 2 pin. Looks like unusable in this form.. anybody know, if it can be used stable?

sudo python3 -m mh_z19
{"co2": 410}
sudo python3 -m mh_z19
{"co2": 410}
sudo python3 -m mh_z19
{"co2": 410}
sudo python3 -m mh_z19
{"co2": 410}
sudo python3 -m mh_z19
{"co2": 5000}
sudo python3 -m mh_z19
{"co2": 5000}
sudo python3 -m mh_z19
{"co2": 5000}

from rpieasy.

enesbcs avatar enesbcs commented on August 19, 2024

I had to execute zero_point_calibration() once and it's seems to solve this error. Plugin creation is in progress.

from rpieasy.

TD-er avatar TD-er commented on August 19, 2024

Do not use zero point calibration!!!
You will very likely ruin the sensor.

The main difference between the A and B version is that he A version outputs some kind of uncertainty level indicator.
If it is '64', then all is OK.
The "B" version does output '0' on that position.

The max output value (5000 in your case so it seems) is sent when the sensor is booting and initializing.
You may better leave the sensor alone during this process. Do not send any command to it to execute as long as it is in that state.

from rpieasy.

enesbcs avatar enesbcs commented on August 19, 2024

Too late, i am already done it. Before that it seems very hopeless to me, that previous night the sensor worked after powering up returning by 410-420ppm 26C, but only for 30 seconds! After that, only 5000ppm's arrived from it, even if i let it run for an hour! I doubt that initialization can take this long. (uncertainity level - SS value was 0 every time) I've disabled ABC on several occasions but nothing helped, until i executed the calibration. After the calibration finished, the results goes back to 400-410ppm and if i breath to it, values raises up to 500ppm, than if i leave it alone, it slowly goes back to 400ppm so i guess it is working. And it's output is now stable at least.

sudo python3 -m mh_z19 --all
{"SS": 0, "TT": 67, "UhUl": 0, "temperature": 27, "co2": 500}
{"SS": 0, "UhUl": 0, "temperature": 26, "co2": 418, "TT": 66}
{"temperature": 26, "SS": 0, "TT": 66, "co2": 399, "UhUl": 0}

from rpieasy.

enesbcs avatar enesbcs commented on August 19, 2024

Thank you, good advices. It has 5V2A which has to be enough, it is night here and no sunlight. /honestly most of my tests occurs after work hours at home, so every time i testing these stuffs without sunlight :) / I guess i can recalibrate it sometimes with some plants and opened windows at summer time, now it's stable output is enough for testing purposes to me.

from rpieasy.

enesbcs avatar enesbcs commented on August 19, 2024

MH-Z19 plugin added to RPIEasy at commit 34807b9 for testing purposes.
It's using RPI's hardware serial, it is a little tricky to enable with 'raspi-config' and MH-Z19 sometimes does not reply, but in overall, it's just work.

from rpieasy.

enesbcs avatar enesbcs commented on August 19, 2024

Implementation issue is closed now.

from rpieasy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.