Air pollution is one of life threatening factor that may cause diseases, allergies or death of humans. It is of high interest to reduce air pollution to improve urban air quality and thus improve living standards in huge agglomerations or other polluted areas. But the very first step to achieve that goal is to measure the magnitude of the problem. One of commonly used method of evaluation air quality is a measurement of suspended particulate matter (PM), with a diameter 2.5 (PM2.5) and 10 micrometers (PM10).
In our project we build Air Pollution Detector (APD) that may be used as stationary or mobile PM detector, it gives an ability to measure the air quality in any place in the world. Basically it measures PM2.5 and PM10. By the connection with Database Cloud Firebase, using a mobile phone application it is possible to check the measurements results online and store them up. APD may also be connected with any number of that kind of devices forming a wide network of detectors. Such network may enable to monitor differences in air pollution within the city.
How to Build:
- Connect Rainbow HAT to NXP Pico
- Connect sds011 to the NXP Pico uart port according to the schematic by the help of 4 jumper cables
- Install Android Things if you have not already:
Create and get image link
Flashing the image and connect Wi-Fi link
- Clone the IOT application repository
$ git clone https://github.com/MarcinWgn/DustSensorControl.git
- Open the repository in the android studio
- Connect App to Firebase (open --> Tools --> Firebase)
Select :
1. Connect your app to Firebase
2. Create Firebase project
4. Add the RealTime Database to app
- Compile run the apk on NXP Pico
- Go to Firebase Console and change security rules
https://console.firebase.google.com/project/<your-project>/database/rules?hl=en
{
"rules": {
".read": true,
".write": true
}
}
How to use:
Button A switches the measurement result (PM2.5 μg/m3 or PM10 μg/m3) LED A (red) signals PM2.5, LED B (green) PM10. Measurement time 30 sec, can be performed at intervals of 1, 10, 20, 30 min. Button C switches the measurement interval. Button B sets sleep or work mode.
All measurements are sent to Firebase Cloud in Jason format. We can see them in the firebase console in real time.
If you want to use mobile access you can clone the repository, compile and install on Android Device.
$ git clone https://github.com/MarcinWgn/DustSensorApp.git
Of course, you need to do the same thing as in the previous application to connect the apk to Fierabase.
Comments