Skip to content

Webserver for get data from raspberry pi with "air-quality" sensors

License

Notifications You must be signed in to change notification settings

Batov/air_quality_monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Air quality monitor

  • Raspberry Pi
  • Adafruit CCS811 Air Quality Sensor
  • Carbon Dioxide Sensor SCD30

Hardware

 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    |
             |--------|

HW setup

Raspbian requirements

  • Raspbian GNU/Linux 9.6 (stretch)
  • Python 3.5 + pipenv
  • Decrease I2C speed:
    • sudo nano /boot/config.txt
    • Add dtparam=i2c_baudrate=10000

Install

pipenv install

Run CLI

pipenv run python air_quality_monitor/src/monitor.py

Run CSV

  • pipenv run python air_quality_monitor/src/csv_monitor.py
  • Check air_log.csv

Run WEB

  • 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

Project overview

  • src/
    • scd30.py - driver for SCD30
    • ccs811.py - driver for CCS811
    • monitor.py - Base monitor
    • web_monitor.py - WEB air monitor
    • csv_monitor.py - CSV air monitor
  • doc/ - sensor's datasheets
  • static/ - HTML pages got web air monitor

About

Webserver for get data from raspberry pi with "air-quality" sensors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published