- Raspberry Pi
- Adafruit CCS811 Air Quality Sensor
- Carbon Dioxide Sensor SCD30
RPI SCD30
-------| |--------|
3V3 |-----| VIN |
GND |-----| GND |
SDA |-----| RX/SDA |
SCL |-----| TX/SCL |
GPIO4 |-----| RDY |
-------| | PWM |
| SEL |
|--------|
RPI CCS811
-------| |--------|
3V3 |-----| VIN |
GND |-----| GND |
SDA |-----| SDA |
SCL |-----| SCL |
| | ___ |
GPIO17 |-----| INT |
| | ___ |
GND |-----| WAK |
-------| | ___ |
| RST |
|--------|
- Raspbian GNU/Linux 9.6 (stretch)
- Python 3.5 + pipenv
- Decrease I2C speed:
sudo nano /boot/config.txt
- Add
dtparam=i2c_baudrate=10000
pipenv install
pipenv run python air_quality_monitor/src/monitor.py
pipenv run python air_quality_monitor/src/csv_monitor.py
- Check
air_log.csv
pipenv run python air_quality_monitor/src/web_monitor.py
- Open browser on 192.168.1.33:8000, where 192.168.1.33 - local RPi IP
src/
scd30.py
- driver for SCD30ccs811.py
- driver for CCS811monitor.py
- Base monitorweb_monitor.py
- WEB air monitorcsv_monitor.py
- CSV air monitor
doc/
- sensor's datasheetsstatic/
- HTML pages got web air monitor