Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CCS811 fix for newer versions of the chip #992

Closed
fluke9 opened this issue Apr 29, 2021 · 2 comments
Closed

CCS811 fix for newer versions of the chip #992

fluke9 opened this issue Apr 29, 2021 · 2 comments
Labels
enhancement Implemented Implemented but may not be thoroughly tested

Comments

@fluke9
Copy link

fluke9 commented Apr 29, 2021

Hi there,

just a heads up if you ever encounter problems with newer CCS811 sensors:
There is a newer version of the chip out there which does not support the NTC anymore (see orange boxes at https://learn.adafruit.com/adafruit-ccs811-air-quality-sensor).
Worse than that, querying it put it in an undefined state which only a powercycle can get it out of.

To get the newer sensor running i needed change the following in mycodo/inputs/ccs811.py:

  • remove the call to self.sensor.calculateTemperature() in def initialize_input(self):
  • remove the same call to def get_measurement(self):
  • remove the self.value_set(2... in get_measurement(self):

Maybe this should be implemented someway more nice, like either a different sensor type or a toggle for that version.

Besides from that i2c bus speed needs to be lowered to 10k in /boot/config.txt, because these sensors have some clock streching going on the bcm does not support.

@kizniche kizniche added enhancement Implemented Implemented but may not be thoroughly tested labels Apr 30, 2021
@kizniche
Copy link
Owner

Thanks for the tip. I added a new Input using the CircuitPython library that only measures CO2 and VOC.

@fluke9
Copy link
Author

fluke9 commented May 13, 2021

Just had time to try it out, works fine! Thanks.

@fluke9 fluke9 closed this as completed May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Implemented Implemented but may not be thoroughly tested
Projects
None yet
Development

No branches or pull requests

2 participants