Support for CDM7160 / Figaro

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
_petronie_
Normal user
Posts: 12
Joined: 15 Feb 2018, 23:46

Support for CDM7160 / Figaro

#1 Post by _petronie_ » 15 Feb 2018, 23:48

Hello,
is there anybody thinking about support of CO2 sensor CDM7160?
BR,
P.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Support for CDM7160 / Figaro

#2 Post by TD-er » 17 Feb 2018, 16:09

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?

_petronie_
Normal user
Posts: 12
Joined: 15 Feb 2018, 23:46

Re: Support for CDM7160 / Figaro

#3 Post by _petronie_ » 20 Feb 2018, 22:48

Hi,
seems to be the cheapest module which is calibrated. MH-Z19 use auto-calibration instead - at least this is my understanding.

BR,
Pavel

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Support for CDM7160 / Figaro

#4 Post by TD-er » 21 Feb 2018, 00:15

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?

_petronie_
Normal user
Posts: 12
Joined: 15 Feb 2018, 23:46

Re: Support for CDM7160 / Figaro

#5 Post by _petronie_ » 23 Feb 2018, 11:58

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.

_petronie_
Normal user
Posts: 12
Joined: 15 Feb 2018, 23:46

Re: Support for CDM7160 / Figaro

#6 Post by _petronie_ » 23 Feb 2018, 12:01

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.

_petronie_
Normal user
Posts: 12
Joined: 15 Feb 2018, 23:46

Re: Support for CDM7160 / Figaro

#7 Post by _petronie_ » 23 Feb 2018, 12:06

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.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Support for CDM7160 / Figaro

#8 Post by TD-er » 24 Feb 2018, 01:12

I will look into these sensors in the next days.

Vaikis
New user
Posts: 7
Joined: 01 Mar 2018, 09:53

Re: Support for CDM7160 / Figaro

#9 Post by Vaikis » 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

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Support for CDM7160 / Figaro

#10 Post by TD-er » 01 Mar 2018, 21:48

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?

Vaikis
New user
Posts: 7
Joined: 01 Mar 2018, 09:53

Re: Support for CDM7160 / Figaro

#11 Post by Vaikis » 02 Mar 2018, 09:22

Done.

Vaikis
New user
Posts: 7
Joined: 01 Mar 2018, 09:53

Re: Support for CDM7160 / Figaro

#12 Post by Vaikis » 07 Mar 2018, 11:18

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

_petronie_
Normal user
Posts: 12
Joined: 15 Feb 2018, 23:46

Re: Support for CDM7160 / Figaro

#13 Post by _petronie_ » 07 Mar 2018, 23:59

Hi,
are you able compare output against MH-Z19? P.

Vaikis
New user
Posts: 7
Joined: 01 Mar 2018, 09:53

Re: Support for CDM7160 / Figaro

#14 Post by Vaikis » 08 Mar 2018, 07:35

Dont have MH-Z19 to compare....

vlast3k
New user
Posts: 1
Joined: 14 Mar 2018, 08:05

Re: Support for CDM7160 / Figaro

#15 Post by vlast3k » 14 Mar 2018, 08:20

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

Vaikis
New user
Posts: 7
Joined: 01 Mar 2018, 09:53

Re: Support for CDM7160 / Figaro

#16 Post by Vaikis » 14 Mar 2018, 10:49

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.

_petronie_
Normal user
Posts: 12
Joined: 15 Feb 2018, 23:46

Re: Support for CDM7160 / Figaro

#17 Post by _petronie_ » 23 Mar 2018, 14:11

Hi,
there should be available version in playground repository quite soon. P.

_petronie_
Normal user
Posts: 12
Joined: 15 Feb 2018, 23:46

Re: Support for CDM7160 / Figaro

#18 Post by _petronie_ » 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
figaroVSmhz19.JPG (108.93 KiB) Viewed 17009 times

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Support for CDM7160 / Figaro

#19 Post by grovkillen » 25 Mar 2018, 23:59

_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...
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Support for CDM7160 / Figaro

#20 Post by TD-er » 26 Mar 2018, 16:11

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?"

_petronie_
Normal user
Posts: 12
Joined: 15 Feb 2018, 23:46

Re: Support for CDM7160 / Figaro

#21 Post by _petronie_ » 29 Mar 2018, 12:11

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.
Attachments
figaroVSmhz19_drop.JPG
figaroVSmhz19_drop.JPG (112.53 KiB) Viewed 16658 times

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Support for CDM7160 / Figaro

#22 Post by TD-er » 29 Mar 2018, 19:53

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.

denish
New user
Posts: 1
Joined: 03 Mar 2020, 11:55

Re: Support for CDM7160 / Figaro

#23 Post by denish » 03 Mar 2020, 11:58

hi,
i am try to interface CDM7160 sensor with LPC1768,but sensor was not respond.
any one pls help.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 29 guests