Could the current AirGradient board support the addition of a Carbon Monoxide (CO) sensor?
I don’t have experience with COsensors but there are I/Os available on the board so it should be easy to add.
I am also interested in having that as an option for the indoor kit
It looks like there is support for a chip that could report Carbon Monoxide in ESPHome, but as the note says, you need the specific one they link to, and not search AliExpress for the same name which isn’t I2C compatible
You should be able to add any of the DFRobot gravity calibrated gas sensors like the CO2 and use i2c, you’ll just need to modify the source to suit. I was tempted until I saw the cost haha
Thank you for the information.
So just to confirm, this is the sensor you are referring to?:
https://www.dfrobot.com/product-2417.html
And it should be compatible with the AirGradient ONE board?
Yes, that is the sensor that ESPHome shows support for.
As far as being compatible with AirGradient ONE, it isn’t something that is natively supported by their code, and since it uses a different connector type, you won’t just plug it in without some modification, but it wouldn’t take much.
The listing on dfrobot shows a plug that goes to dupont connector plugs, so you could solder on pin headers to your ONE board, then connect the wires so the labels match.
Then you need to update some code to support it. With ESPHome, the example is already in the link I posted earlier, but you would have to do that on your side, as the AirGradient repositories don’t have this chip in mind.
But this is the beauty of an open-source design is that you are able to take what has been provided, and modify it to meet your needs, the tradeoff being that you have to invest some time and knowledge to it.
Thanks again for the clarifications. Very much appreciated.
Will update this thread as I progress with these mods. Please be patient as I have a few other things on the burner.
Cheers!
So I recently got annoyed trying to find a carbon monoxide alarm that gave a digital read out of CO ppm for my house. In the end UL2034 pretty much made it so alarms didn’t show a value below 30-35ppm and you would have to find something like a “low level carbon monoxide monitor”.
In my journey I found that figaro CO sensor tgs5042 used in “Defender LL6170 Low Level CO Monitor” and “First Alert CO600 Plug-In Carbon Monoxide Detector”. I don’t know if I could use that sensor so I looked around and saw that ESPHOME supported mics_4514 and bme680_bsec. I could also buy the MQ-7, Adafruit MiCS5524, Adafruit BME680 or Adafruit BME688 Carbon Monoxide sensors but some aren’t supported by ESPHOME.
So I will probably end up picking up an all the Adafruit sensors and just see how their values differ sometime by the end of the year. It would be great if AirGradient had an option to add a Carbon Monoxide sensor that they have vetted and done research on. Anyways I recommend reading this article about Carbon Monoxide sensors.
@MallocArray Thanks for the airgradient yamls configs btw.
Carbon Monoxide Sensors
https://www.figarosensor.com/feature/tgs5042_tgs5342.html
https://www.co2meter.com/collections/carbon-monoxide
Defender LL6170 Low Level CO Monitor - lists the sensor it uses
https://defenderdetectors.com/manuals_brochures.html
Carbon monoxide alarm vs low level CO monitor - talks about UL2034
https://youtu.be/F0AcFQ7f_ys
Carbon Monoxide Detectors-When Zero Doesn’t Mean Zero - UL2034 in affect
https://youtu.be/Riox9fXAgIc
What’s Inside a Carbon Monoxide Detector - shows life alert using figarosensor tgs5042 sensor
https://youtu.be/f0VPFwnBOO0
Carbon monoxide sensor in Home Assistant - Used an MQ-7 and it was flaky based on comments
https://youtu.be/GbrBpUWPkMM
Be careful with the MiCS and MQ sensors. They have an extremely high cross sensitivity. So even the specs say they measure CO, it will most likely be triggered also by other gases or chemicals.
Did you test these different sensors/add them successfully? How did it go? Any lessons learned you would like to share?
I am starting down this path myself.
Thanks.
CO is a deadly pollutant for the indoors, and I really want to be able to detect it an IoT-connected platform.
I’m looking at this sensor:
I’m new to AirGradient and the ESPHome ecosystem, but this is I2C, so how hard could it be?
ESPHome doesn’t appear to have support for it natively yet.
I did find a repository for someone’s work on it that may be promising
Otherwise, if there is Arduino code to support it, you could add support to the official firmware
Re Adafruit MiCS5524, how would you even connect that, with it not being I2C? Are there any ADC’s from the ESP32 accessible for use?
Thank you for all of the links.
Ok, I see the IO3,4,5 connections on the IO1 connector can be configured for ADC. Cool.
I’ve been doing some looking and weighing options.
The SEN0377 uses an Amphenol / SGX MiCS-4514, which is a two in one package of what looks like a MiCS-5524 (SEN0440) and a MiCS-2714 (SEN0441). It looks like two of the holes could be mounted to holes behind the LCD screen. It is kind of expensive for something that is going to need to be replaced every two years.
The SEN0377 is i2c, so win there, and I see mention of it in src/docs/devices/Apollo-Automation-AIR-1/index.md. But, I haven’t found platform mics_4514 anywhere yet, so I’m not sure how that ties in with master. The singlet, SEN0440, uses analogue output and should be supported by ESPHome with the right config. Does that sound right @MallocArray.
The SEN0466 uses a more selective technology, thus, it is a higher quality sensor. It supports easy replacement of the 2 year life sensor. Though, may need calibration data updated? It is even more expensive for something that needs replaced every two years.
I could probably drill a hole on the face of the AG One and mount the board to the LCD side of the mainboard. It wouldn’t even have to be pulled off of the wall to replace the sensor.
The Figaro TGS5042 on the other hand has a 10year lifecycle. Though, I have a First Alert CO alarm with a TGS5042 in it and my previous one died earlier this year, three years early. (Mfg 2019 Nov 15) I’m not sure if it was the sensor or First Alert that called it quits.
The module form, CMM5042, could probably be wired in and supported by ESPHome as easily as the SEN0440. It is about the size of a AA battery and could fit in a couple orientations inside the AG One. The only problem is getting it. It is not readily available here in the states. Though, I did see it for $75 on AliExpress.
Then I was looking on Figaro’s website and came across the TGS5141. Apparently it does not need a water reservoir like the TGS5042. Lifetime just states “Long life”. Maybe they haven’t documented a failure yet? I’m not sure how that works.
With the AG One already having a temperature sensor(needed for adjustment), an integrated solution could be made with minimal components.
It would also be nice if sensair, the people who make the CO2 module, stepped up their game and offered a CO module in the same format 