Giter Site home page Giter Site logo

ccs811-library's Introduction

CCS811 library

This is an Arduino library for the CCS811 digital TVOC/eCO2 Sensor by CCMOSS/AMS. It allows the sensor to output tVOC and eCO2 values. Environmental calibration using values from an external temperature and relative humidity sensor is also possible. NTC thermistor pins or circuit are not used for environmental calibration.

Breakout board available here.

ccs811-library's People

Contributors

akstudios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ccs811-library's Issues

ALG_RESULT_DATA with Write

Hello, Thanks for sharing code for this library.
I don't know C, and I'm trying to convert your code to Java.
So far so good, I'm at the last step, reading the results.

I see that you write to ALG_RESULT_DATA, while in the datasheet it sais this address is R (meaning Read Only ? maybe)

0x02 ALG_RESULT_DATA R (*** THIS IS READ ****) up to
8 bytes
Algorithm result. The most significant 2 bytes contain a
ppm estimate of the equivalent CO2 (eCO2) level, and
the next two bytes contain a ppb estimate of the total
VOC level.

I'm wondering why you do it

Carbon monoxide?

When I bought this board on Aliexpress it was advertised as a CO sensor, not CO2.

Is there any way to read CO values from the sensor?

No need to wait after Wire.requestFrom().

In the file "CCS811.cpp", the Wire.requestFrom() is followed by a delay(1);. That delay can be removed.

When the Wire.requestFrom() function returns, the I2C transaction has completely finished and the received data is waiting in a buffer in the Wire library.

Thank you

Tq for the great library. Does it gives only 2 values CO2 and TVOC?
CO2 concentration : 16848 ppm
TVOC concentration : 1075897647 ppb

I think something wrong it keeps giving this value. How many pins do i have to connect? I am using WEMOS D1 Mini

Problem with CJMCU-811

Hello

First of all thank you for making this library!
I'm unable to get your test file working.

Connection:
Loenardo............................CJMCU-811
3.3V......................................VCC
GND.....................................GND
GND.....................................ADD
PIN_2...................................SDA
PIN-3...................................SCL
PIN_4...................................WAK
PIN-7...................................INT

I get the following error:
Error: Incorrect Hardware ID detected.
I've written out the hw_id which is 0xFF.

Kind regards,
Gilles Callebaut

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.