Posts: 1
Joined: Sat Nov 04, 2017 9:01 am

CCS811 Driver

Sat Nov 04, 2017 9:07 am

Hi All,

I looking to complete my project, an library for use in C or C++ to access the values from CCS811,

User avatar
Posts: 226
Joined: Sat Nov 07, 2015 8:01 am
Location: Sarasota, Florida
Contact: Website

Re: CCS811 Driver

Sun Nov 05, 2017 2:50 pm

I just released such a library here:
It has a simple C interface and will do what you want. I found that there are lots of read errors on Raspberry Pi boards. Others have commented that this has something to do with "clock stretching". I also connected it to my Orange Pi boards and did not experience the errors.
The fastest code is none at all :)

Posts: 26
Joined: Wed Jan 06, 2016 3:28 pm

Re: CCS811 Driver

Sun Dec 10, 2017 5:48 pm

Fully agree with bitbank about the read errors. BUT this is NOT a Linux driver problem. I use the BCM2835 library (which works directly on the hardware and does NOT use the drivers). The issue is the CCS811 itself. I have bought the Sparkfun combo breakout. It has the CCS811 and the BME280 (to use for compensation). The later works as a star as other i2C devices . The CCS811 gives random NACK or invalid readings, sometimes even at the speed of 10K. I had to include extra delays, and retry-counts, to get stable information. As a result I got it running at 400KHZ (which is the maximum for this sensor). Apart from it is a good sensor.. but make sure to readings/calculations right.

Return to “Interfacing (DSI, CSI, I2C, etc.)”

Who is online

Users browsing this forum: No registered users and 21 guests