Template: Dust Sensor Arduino Guide
From Waveshare Wiki
The Arduino example is written for the Arduino UNO. If you want to connect it to other Arduino boards, you may need to change the connection.
Use with Arduino
Hardware connection
Sensor | Arduino | Description |
---|---|---|
VCC | 5V | Power input |
GMD | GND | Power ground |
AOUT | A0 | Analog data output |
ILED | D7 | Drive pin of the internal LED |
Examples
- How to Install Arduino IDE.
- Download the demo codes to your PC and unzip them.
- Install the Arduino IDE on your PC.
- Go into Dust-Sensor-code/Arduino/Dust_Sensor.
- Run the Dust_Senosr.ino file.
- Select the correct Board and the Port.
- Build the project and upload it to the board.
- Open the serial monitor of the Arduino IDE or the SSCOM software and check the serial data.
Reference:
PM2.5 density value(μg/m3) |
Air quality index AQI |
Air quality level | Air quality evaluation |
---|---|---|---|
0-35 | 0-50 | Ⅰ | Excellent |
35-75 | 51-100 | Ⅱ | Average |
75-115 | 101-150 | Ⅲ | Light pollution |
115-150 | 151-200 | Ⅳ | Moderate pollution |
150-250 | 201-300 | Ⅴ | Heavy pollution |
250-500 | ≥300 | Ⅵ | Serious pollution |