Page 1 of 1

Support for CDM7160 / Figaro

Posted: 15 Feb 2018, 23:48
by _petronie_
Hello,
is there anybody thinking about support of CO2 sensor CDM7160?
BR,
P.

Re: Support for CDM7160 / Figaro

Posted: 17 Feb 2018, 16:09
by TD-er
Looks like an expensive module?
Lowest price I could find was some shop here in the Netherlands which charges 50 euro for it.

With such prices, I am not going to buy one to add support for it. (I have lots of MH-Z19 and several SenseAir modules myself)

Are there resellers which will ship single pieces for prices around 20 euro or less?

Re: Support for CDM7160 / Figaro

Posted: 20 Feb 2018, 22:48
by _petronie_
Hi,
seems to be the cheapest module which is calibrated. MH-Z19 use auto-calibration instead - at least this is my understanding.

BR,
Pavel

Re: Support for CDM7160 / Figaro

Posted: 21 Feb 2018, 00:15
by TD-er
The MH-Z19 is factory calibrated and uses a very unsatisfying ABC routine.
Luckily you can disable this ABC.

I still have to find a way to log the lowest recorded value and set the 400 ppm level myself, but the manufacturer is not willing to assist me with further information other than sending me the datasheet (again).

Compared to the SenseAir modules (which are not cheap at all), they do a fine job, given their price.
What's the best deal you found on these CDM7160 sensors?

Re: Support for CDM7160 / Figaro

Posted: 23 Feb 2018, 11:58
by _petronie_
Hi,
need to order one to compare it to MH-Z19. Hope that will provide more reliable results. When available will try to post some findings here. Would be great if we find more people here and for example sponsor some sample for you. Is this possible way for you? P.

Re: Support for CDM7160 / Figaro

Posted: 23 Feb 2018, 12:01
by _petronie_
the difference is listed here http://www.figaro.co.jp/en/product/feature/cdm7160.html, according my understanding this auto-calibration is not needed anymore - believe that could be solution for your troubles also.. P.

Re: Support for CDM7160 / Figaro

Posted: 23 Feb 2018, 12:06
by _petronie_
Hi,
Do you think that there is chance to get a sample for free?

See
https://www.figaro.co.jp/en/contact/form.html

p.

Re: Support for CDM7160 / Figaro

Posted: 24 Feb 2018, 01:12
by TD-er
I will look into these sensors in the next days.

Re: Support for CDM7160 / Figaro

Posted: 01 Mar 2018, 09:57
by Vaikis
Hi, also interested in this sensor. Found some stuff in github, maybe it will help for faster ESP Easy integration:
https://github.com/vlast3k/vESPrino-fir ... rc/sensors
CDM7160Sensor.cpp
CDM7160Sensor.hpp
https://github.com/junichikatsu/CDM7160

Re: Support for CDM7160 / Figaro

Posted: 01 Mar 2018, 21:48
by TD-er
Vaikis wrote: 01 Mar 2018, 09:57 Hi, also interested in this sensor. Found some stuff in github, maybe it will help for faster ESP Easy integration:
https://github.com/vlast3k/vESPrino-fir ... rc/sensors
CDM7160Sensor.cpp
CDM7160Sensor.hpp
https://github.com/junichikatsu/CDM7160
Could you add an issue on Github, with these links?

Re: Support for CDM7160 / Figaro

Posted: 02 Mar 2018, 09:22
by Vaikis
Done.

Re: Support for CDM7160 / Figaro

Posted: 07 Mar 2018, 11:18
by Vaikis
Got sensor and some 30min time to play, tips for connection for other guys:
1. Used pull-up resistors 1K for both SCL (CDM7160 PIN 10) and SDA (CDM7160 PIN9)
2. CDM7160 PIN1 - VDD +5V, CDM7160 PIN2 GND
3. Dont forget to enable I2C as default mode is UART, CDM7160 MSEL (PIN6) connect to GND.
Module default I2C address is 0X69
For testing used this https://github.com/junichikatsu/CDM7160

Re: Support for CDM7160 / Figaro

Posted: 07 Mar 2018, 23:59
by _petronie_
Hi,
are you able compare output against MH-Z19? P.

Re: Support for CDM7160 / Figaro

Posted: 08 Mar 2018, 07:35
by Vaikis
Dont have MH-Z19 to compare....

Re: Support for CDM7160 / Figaro

Posted: 14 Mar 2018, 08:20
by vlast3k
Hi guys,

i have developed this library and spent a considerable time of my life fighting with the sensor
for some reason it was pain in the ass to make it work over I2C
since then Figaro released a second version with improved firmware, that may be work better.

in general it is a nice and small and energy efficient CO2 Sensor.
Sadly for some reason when connected to ESP8266 or maybe not only this it suffers BADLY from EMI
this thread describes my quest in dealing with it http://forum.vair-monitor.com/showthrea ... hlight=emi
i ended up having to wrap the sensor with copper or aluminium foil and then connecting it to ground... this sort of solved the issues

yet just a couple of days ago some customer notified me that his 5 devices employing the CDM7160 were giving results less than 200 PPM.. i've contacted Figaro yesterday.. let's see their response...

as for I2C, the protocol they have does not have any kind of CRC, so it is impossible to know if the data you get is correct or wrong.
i had to use 1k pullups (STRONG) to reduce the wrong data to some useable ampount

and then again i had to fiddle quite a lot with I2C communication and delays and retries to extract more useable data

Of course there may be some fundamental knowledge bit that i was missing - it was the first time i was writing a i2c library, but in any case doing it the simple and straightforward way wasn't that easy

i also plan to some day integrate what i did with ESPEasy, just that my priorities changed considerably in the last year, so now i have absolutely no time to spend on this.

as for price, the sensor is expensive, i had to buy in lots of 50-100 to get prices around 35 eur... adding the copper foil costed me some bucks more (As i got tired doing this myself at some point of time)

there is another company - Cubic, that offers calibration free sensors CM1108 and autocalibrating - CM1106, yet at least an year ago they were also not available in retail so i had to buy in lots of 50/100, pay 3$ delivery per sensor and then import fees to EU

There may be others as well that offer cheap sensors (e.g. compred to CO2 Sensor :) ) but i haven't monitored the market since one year

Re: Support for CDM7160 / Figaro

Posted: 14 Mar 2018, 10:49
by Vaikis
Found more details here
http://siva.cc.hirosaki-u.ac.jp/fuzoku/ ... nitor.html
also .ino file for this
http://siva.cc.hirosaki-u.ac.jp/fuzoku/ ... itor1e.ino
Seems it uses busy pin to ''capture" sensor state.

Re: Support for CDM7160 / Figaro

Posted: 23 Mar 2018, 14:11
by _petronie_
Hi,
there should be available version in playground repository quite soon. P.

Re: Support for CDM7160 / Figaro

Posted: 25 Mar 2018, 23:55
by _petronie_
Hi,
any idea why such different results are obtained? There are two sensors (CMD7160, MH-Z19) placed near each other but result seems to be shifted :(. P.
figaroVSmhz19.JPG
figaroVSmhz19.JPG (108.93 KiB) Viewed 17240 times

Re: Support for CDM7160 / Figaro

Posted: 25 Mar 2018, 23:59
by grovkillen
_petronie_ wrote: 25 Mar 2018, 23:55 Hi,
any idea why such different results are obtained? There are two sensors (CMD7160, MH-Z19) placed near each other but result seems to be shifted :(. P.

figaroVSmhz19.JPG
Is the mh-z19 the line below (white) ? The sensor is on a 24h ABC cycle and will set the lowest point during that 24h period as 400ppm. They are supposed to be used in offices which will have the air purged during night, if you use them at home that will not happen and the sensor will start to drift...

Re: Support for CDM7160 / Figaro

Posted: 26 Mar 2018, 16:11
by TD-er
The MHz19 looks like a correct 400 ppm setpoint, since there are no 'flatliners', where the value is stuck at 400 ppm.
the values reported by the Figaro however are a bit to be worried about.
If they are correct, then you definitely should do more ventilation.
Above 700 ppm, it will start to smell like "can someone open a window please?"

Re: Support for CDM7160 / Figaro

Posted: 29 Mar 2018, 12:11
by _petronie_
Hi,
There is visible significant issue with MHZ19 which seems to be caused by some autocalibration. There is visible drop in the output values with no reason. Both sensors are place next to each other. Figaro sensor require extra shielding again EMI! P.

Re: Support for CDM7160 / Figaro

Posted: 29 Mar 2018, 19:53
by TD-er
That's the ABC feature.
It corrects the 400 ppm level, based on the lowest measured concentration of the last 24h.

So now you know why I added the option to disable this feature, since one day with less than optimal ventilation and the recorded values have quite some offset.

Re: Support for CDM7160 / Figaro

Posted: 03 Mar 2020, 11:58
by denish
hi,
i am try to interface CDM7160 sensor with LPC1768,but sensor was not respond.
any one pls help.