This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CCS811 Gas sensor doesn't communicate with nRF9160

Hi,

I am using the nRF9160 to read data from the CCS811 gas sensor, and logs data on LTE Monitor. I am using the BME280 sensor to read temperature and pressure values and both CCS811 and BME280 sensors share the same GPIO pins and use I2C to communicate. So for I can read data from the BME280 sensor, but not the CCS811 sensor.

I am using a Windows laptop and as the software version, I am using nRF Connect v3.3.0, Programmer v1.4.2, and LTE Link Monitor v1.1.1. To generate the merged.hex file, I have been using the Segger Embedded Studio V4.52 version. I am directly using the sample CCS811 code from the NCS folder to Build and Run the solution. I really appreciate it if anyone can help.

Looking forward to a reply.

Thank you,

Nilupa

Parents Reply
  • Do you have a 52 or 52840 DK?
    Both of them have TWI modules (not just TWIM). If you are able to run the "same" application on the nRF52 but using the TWI peripheral instead of TWIM.

    Any LTE-related code will obviously not work, but the I2C related code should work without much modifications, if any. Just make sure that the compatible-line in the device tree says nrf-twi, not nrf-twim.

    Also, I highly recommend you get an oscilloscope with digital inputs or a logic analyzer. It is almost impossible to debug these kind of issues without one.

Children
Related