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

Add SGP40 sensor support #484

Closed
wants to merge 1 commit into from
Closed

Add SGP40 sensor support #484

wants to merge 1 commit into from

Conversation

thetic
Copy link

@thetic thetic commented Dec 14, 2024

Add support for the SGP40 Sensor for VOC measurement. This sensor needs a temp + humidity sensor to work optimally, but will assume 25°C and 50% humidity if not provided. This was adapted from the Nevermore project. This code was written by @meteyou and submitted to Klipper, but it is not Python2 compatible. Support has already been added to Mainsail.

[temperature_sensor BME_OUT]
sensor_type: BME280
i2c_address: 118
i2c_mcu: pico
i2c_bus: i2c1e
i2c_speed: 400000

[temperature_sensor SGP_OUT]
sensor_type: SGP40
i2c_mcu: pico
i2c_bus: i2c1e
ref_temp_sensor: bme280 BME_OUT
ref_humidity_sensor: bme280 BME_OUT

Checklist

  • pr title makes sense
  • squashed to 1 commit
  • added a test case if possible
  • if new feature, added to the readme
  • ci is happy and green

Co-authored-by: Stefan Dej <[email protected]>
Co-authored-by: Chad Condon <[email protected]>
@thetic thetic marked this pull request as ready for review December 14, 2024 03:37
@thetic thetic requested a review from a team as a code owner December 14, 2024 03:37
@meteyou
Copy link
Contributor

meteyou commented Dec 14, 2024

@thetic Thx for creating the PR in Kalico, but pls wait a little bit. I will refactoring this module, that i doesnt need a pip dependencies. I will update the Klipper PR as soon as possible (at least between christmas and new year).

@thetic thetic closed this Dec 14, 2024
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 this pull request may close these issues.

2 participants