Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

CO₂ sensor Forum Discussions

rmjimeno
Level 1
Level 1
First question asked Welcome!

Hi, I would like to ask how can I use the XENSIV PAS CO2 sensor with my ESP32 board. I have managed to make the sensor work using an Arduino board using the sample code and the library but I would like to use the sensor with my  ESP32-based board and I have not found any libraries for ESP32.

Any help would be appreciated. Thank you!

0 Likes
7 Replies
GeorgeT
Moderator
Moderator
Moderator
50 solutions authored 25 likes received 5 likes given

Hi @rmjimeno,

Sorry for the delay in response. The sensor can be interfaced using I2C.

Please refer to the Programming guide for XENSIVTM PAS CO2 as a starting point.

Thanks and regards,

George

0 Likes
Ilkka
Level 1
Level 1
First like given First reply posted Welcome!

Hi,

Infineon PAS CO2 sensor needs 12 V power supply for the IR emitter according the documentation. Esp32 has no 12V.

Is there any simply solution for that?

BR, Ilkka

0 Likes

Hi Moto, thank you very much for the reply and information.

BR, Ilkka

0 Likes
dmpolukhin
Level 1
Level 1
First reply posted Welcome!

I had the same issue with ESP32 and PlatformIO with the latest library "infineon/XENSIV PAS CO2 @ ^3.0.2". In my case weak stub function xensiv_pasco2_plat_i2c_transfer from `src/xensiv_pasco2.c` was called instead of platform implementation from `src/pas-co2-pal-ino.cpp`. When I removed stubs everything start working fine.

0 Likes
GeorgeT
Moderator
Moderator
Moderator
50 solutions authored 25 likes received 5 likes given

Hi @rmjimeno,

Please refer to the updated library for PAS CO2 sensor in the following link

https://github.com/Infineon/arduino-pas-co2-sensor/releases/tag/v3.0.2

Please let me know whether the issue is resolved.

Thanks and regards,

George

0 Likes
GeorgeT
Moderator
Moderator
Moderator
50 solutions authored 25 likes received 5 likes given

Hi @rmjimeno,

I would like to add one more point to check that the latest version of the ESP32 driver is installed in the Arduino IDE.

Thanks and regards,

George

0 Likes