Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laurenzgamper/scd30
Python library for the Sensirion SCD30 co2, temperature, humidity sensor.
https://github.com/laurenzgamper/scd30
python3 raspberry-pi scd30 sensors
Last synced: 2 months ago
JSON representation
Python library for the Sensirion SCD30 co2, temperature, humidity sensor.
- Host: GitHub
- URL: https://github.com/laurenzgamper/scd30
- Owner: laurenzgamper
- License: gpl-3.0
- Created: 2019-12-05T10:22:06.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-05T13:32:05.000Z (about 5 years ago)
- Last Synced: 2024-10-11T09:19:06.532Z (2 months ago)
- Topics: python3, raspberry-pi, scd30, sensors
- Language: Python
- Size: 16.6 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scd30
Python library for the Sensirion SCD30 co2, temperature, humidity sensor.### I2C Clock stretching
Master needs to support Clock Stretching up to 150ms. The default in Raspbian is too low, we have to increase it:
To set it, download from here:
```
https://github.com/raspihats/raspihats/tree/master/clk_stretch
```Compile:
```
gcc -o i2c1_set_clkt_tout i2c1_set_clkt_tout.c
gcc -o i2c1_get_clkt_tout i2c1_get_clkt_tout.c
```execute (add to /etc/rc.local to run on every boot):
```
./i2c1_set_clkt_tout 20000 # for 200ms
```### Thanks
I borrowed some code and ideas from these two repos:
https://github.com/UnravelTEC/Raspi-Driver-SCD30 (python code, i2c clock stretching)
https://github.com/sparkfun/SparkFun_SCD30_Arduino_Library (code structure, commands)