Support for CDM7160 / Figaro

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
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 17190 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: 8749
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 16844 times

TD-er
Core team member
Posts: 8749
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: No registered users and 122 guests