Thanyasit / ESP32_MyAir_Lite

ESP32 MyAir Lite that uses the BME280 and Plantower PMS5003 and displat on LED alos sends the data bluetooth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP32 MyAir Lite

Description

This is a arduino program for MyAir Lite that uses the Adafruit BME280 and Plantower PMS5003 sensors to measure temperature, humidity, and air quality (PM2.5) and display the result on LED lights. The program also sends the data over Bluetooth using the BluetoothSerial library.
2020

Prerequisites

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

Set up

1.Connect the BME280 sensor and PMS5003 sensor to the appropriate pins on the MyAir Lite board.
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.

Usage

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.

Product

Video MyAir_Lite

License

This program is licensed under the MIT License. See the LICENSE file for details.

About

ESP32 MyAir Lite that uses the BME280 and Plantower PMS5003 and displat on LED alos sends the data bluetooth

License:MIT License


Languages

Language:C++ 100.0%