rosasaul / morbo

Morbo Air Quality Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Morbo

Morbo is an in home set of high quality low cost air sensors. This is designed to help monitor indoor air quality, but could work outdoor in a limited setting.

TODO

Some items I'm planning on but haven't gotten to

  • Add on a Carbon Monoxide sensor and VOC sensor
  • Touch display to show current readings without the need for Wifi
  • Chargable battery so it can run without wall power for portability

BOM

These are the components I used, they can be obtained from other sources so shop around

Total ~$123

Hardware Documentation

Notes

  • SDS011 Should be placed in what looks like upside down so gravity sensor works as expected and sensor gets less dirty
  • SDS011 has a running life of about 8000 hours or ~1yr continuous, so put it to sleep between usage
    • When this dies I'll replace it with the slightly more expensive Sensirion SPS30 which has a 10 year life and more reliable sensor, though the SDS011 has been very accurate so far
  • SDS011 stops being accurate above 70% humidity, hence the humidity sensor
  • DHT22 had a little burn in period where it first reported 10C higher temps then leveled out after about a day
  • MH-Z14A sensor is on the top, there's blinking red lights keep that clear, clean, and facing upright

Setup

  • Get the Raspberry Pi Image and install it to the SD Card
  • I used a USB keyboard and HDMI monitor to log in, update user account and password
  • Enable and add 2-factor to SSH
  • Configure Wifi
  • Run updates
  • Test Remoting in with SSH so you can do the rest remotly
  • Install requirments
    • Python, Apache, PHP, MariaDB
    • pyserial, pymysql, Adafruit_DHT
  • Sync this project
  • Configure MariaDB table
  • Copy Web Site
  • Install sensors.service
  • Start service

Now you can go to the IP of your Raspberry Pi to monitor air quality Morbo Website

Usage

To test the SDS011 Nova PM Sensor run this (assuming you are using the USB to UART connector on /dev/ttyUSB0)

sudo python3 airquality.py

To test the MH-Z14A CO2 Sensor run this

sudo python3 co2.py

About

Morbo Air Quality Raspberry Pi

License:MIT License


Languages

Language:JavaScript 56.0%Language:Python 31.6%Language:HTML 8.4%Language:PHP 4.0%