2020 Before using this program, make sure you have the following libraries installed:
- Wire.h - included with Arduino IDE
- SPI.h - included with Arduino IDE
- Adafruit_Sensor.h - install from the Arduino Library Manager
- Adafruit_BME280.h - install from the Arduino Library Manager
- PMS.h - install from the Arduino Library Manager
- BluetoothSerial.h - install from the Arduino Library Manager
2.Upload the program to the MyAir Lite board using the Arduino IDE.
3.Pair your Bluetooth device with the MyAir Lite board. The device name is "MyAir_Lite".
4.Turn on the MyAir Lite board. The MyAir Lite board will display the air quality level on the LED lights. If the air quality is good (PM2.5 <= 10), the first LED will turn on. If the air quality is moderate (10 < PM2.5 <= 20), the first two LEDs will turn on. If the air quality is unhealthy (20 < PM2.5 <= 37), the first three LEDs will turn on. If the air quality is very unhealthy (37 < PM2.5 <= 50), the first four LEDs will turn on. If the air quality is hazardous (50 < PM2.5 <= 90), the first five LEDs will turn on. If the air quality is very hazardous (PM2.5 > 90), all six LEDs will turn on.
The program will also send the temperature, humidity, and PM2.5 data over Bluetooth every three seconds.
To put the MyAir Lite board into deep sleep mode, press the reset button on the board or connect the 'EN' pin to the 'RST' pin using a jumper wire. The board will wake up every three minutes to take new measurements.
Video MyAir_Lite
This program is licensed under the MIT License. See the LICENSE file for details.