ECE434 Project - Air Quality Monitor
Embedded Linux Class by Mark A. Yoder
I'm using the following template to grade. Each slot is 10 points. 0 = Missing, 5=OK, 10=Wow!
09 Executive Summary 09 Packaging 09 Installation Instructions 09 User Instructions 09 Highlights 09 Theory of Operation 09 Work Breakdown 09 Future Work/Conclusions 09 Hackster.io 09 Demo/Poster 00 Not Late Score: 90/100
Our project is an air quality monitoring device that logs the data of several sensors to a database and and makes the data accessible and viewable using a Grafana webserver. The monitor can sense temperature, humidity, pressure, CO2, carbon monoxide, methane, volatile organic compounds (VOCs), and particulate levels. It also has a battery backup built in so that it can operate for several hours without a power supply, a buzzer so that it can act as an alarm if certain sensors are reporting dangerous levels, and a small OLED screen to show the current values of the sensors without having to log into the server. Currently we have all the sensors working with the data being logged and viewable through Grafana. The screen driver that was provided by Adafruit isn't supported by the Beaglebone, and writing a custom driver would have been too large of an undertaking for this project, so that doesn't work. The monitor also does not start everything up automatically after it boots because there is a minor issue with the systemd service that samples the sensors that requires it to be manually restarted once after it boots. Additionally, when the monitor is running on the battery the main 5V rail is not present, which powers several of the sensors, so those sensors do not work on battery power.
We designed an enclosure to be 3D printed for the project using Autodesk Inventor, however we were unable to get it printed in time.
Give step by step instructions on how to install your project.
- Include your github path as a link like this to the read-only git site: https://github.com/MarkAYoder/gitLearn.
- Be sure your README.md is includes an up-to-date and clear description of your project so that someone who comes across you git repository can quickly learn what you did and how they can reproduce it.
- Include a Makefile for your code if using C.
- Include any additional packages installed via apt. Include install.sh and setup.sh files.
- Include kernel mods.
- If there is extra hardware needed, include links to where it can be obtained.
Once everything is installed, how do you use the program? Give details here, so if you have a long user manual, link to it here.
Consider making it autostart for full credit.
Here is where you brag about what your project can do.
Include a YouTube demo the audio description.
Theory of Operation
The product should work with minimum setup from the user, which shouldn't go beyond inputting network credentials for internet access.
The BeagleBone Black has a systemd process that autostarts and auto restarts the process in case a crash (a crash could occur is not enough power is delivered to the sensors, rendering them disconnected from the i2c bus).
The project runs using a singular python script for reading, packaging, and saving data to an sqlite database. From there, the Grafana web server queries data from that same database. The queried data is organized into various plots running on a Dashboard on the Grafana web server. The user can access this web server and dashboard by accessing the ip address of the device.
The product can be characterized into two design sections - hardware and software. Tiarnan designed the PCB board used to organize all the sensors, populated the board with all the modules, and code templates for interfacing with the sensors. He also did a cursory search for a suitable data-display program (Grafana) and finalized the data-display interface to be user-friendly. Wojciech created scripts for reading data from the sensors, packaged the data to be inserted into an sqlite database, created and pushed data to the database, and setup the skeleton for interfacing with Grafana.
This project had many bumps and turns, and some features were left for future endeavours. Likewise, the current product lacks some features the team thinks would improve the overall quality. We have listed these details below.
Buzzer In the event that there is an excessive amount of carbon monoxide in the air, the product's buzzer should alert the user.
OLED Screen The onboard OLED would display current/live data values for all the sensors, with the user toggling between screens using the onboard buttons. The provided libraries don't work with the BeagleBone, and writing custom drivers for this would've distracted from the main goal of the project. We decided to bypass the OLED screen implementation due to these constraints. However, future versions could resolve this issue with custom drivers or by utilizing a different display.
On-Board Power Regulation The current setup involves soldering a LIPO battery to the exposed PMIC battery pins. This setup is not safe and unreliable, and may have caused the PMIC to break. Additionally, powering through the PMIC with this method does not provide power to the 5V rail, rendering half of the sensors unusable. A better solution would be a PCB designed to have an onboard battery, running through a boost converter, connected to the BeagleBone's power jack. This will ensure we are providing enough power in the safest manner possible whilst maintaining portability.
Wifi Adapters The current prototype works reliably connects to the internet using he ethernet, but we would like to use wifi adapters to promote mobility. Unfortunately, all our trials suggest the BeagleBone Black cannot reliably use the wifi adapters - we had to unplug/plug in the module before it started working.
Give some concluding thoughts about the project. Suggest some future additions that could make it even more interesting.
Embedded Linux Class by Mark A. Yoder