Skip to content

VOC algorithm #2

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

Closed
itsnils opened this issue Jan 9, 2021 · 7 comments · Fixed by #9
Closed

VOC algorithm #2

itsnils opened this issue Jan 9, 2021 · 7 comments · Fixed by #9

Comments

@itsnils
Copy link

itsnils commented Jan 9, 2021

Hello I would like to measure the VOC value.
I have too little python i2c experience to realize this.

do you have soon for to insert this VOC algorithm?

thank you very much for your work

@ladyada
Copy link
Member

ladyada commented Jan 9, 2021

yeah it is not possible at this time because @Sensirion has not release the library code in python only arduino!

@itsnils
Copy link
Author

itsnils commented Mar 8, 2021

Hello @ladyada
thank you for your answer. You probably meant @Sensirion AG
Too bad the VOC algorithm is still not implemented. I can't use the SGP40 sensor like this with Python.

@ladyada
Copy link
Member

ladyada commented Mar 8, 2021

correct!

@CrackXT
Copy link

CrackXT commented Aug 15, 2021

Hello everyone, @Sensirion has published the code in python, please have a look here. Link

@AVanVlack
Copy link
Contributor

@CrackXT
I cant seem to find an algorithm in that code base. It looks like it is only commands for communicating with the sensor and getting the raw data. Unfortunately the same as this CircuitPython driver can do now.

I did find that DFRobot has a python algorithm and have a fork of this respiratory with it working on CircuitPython. See code and examples here

I would make a pull request but not sure how Adafruit feels about an algorithm not directly from Sensation.

@ladyada
Copy link
Member

ladyada commented Aug 22, 2021

sure any PR would be most welcome :)

@AVanVlack AVanVlack mentioned this issue Aug 28, 2021
@Curt-is-Pi
Copy link

Looks like the example for the compensated measurements has the '_index' and '_raw' mixed up.

compensated_raw_gas = sgp.measure__index_(temperature=temperature, relative_humidity=humidity

should read

compensated_raw_gas = sgp.measure_raw(temperature = temperature, relative_humidity = humidity)

And

voc_index = sgp.measure_raw(temperature=temperature, relative_humidity=humidity)

should read

voc_index = sgp.measure_index(temperature = temperature, relative_humidity = humidity)

Right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants