Template: Dust Sensor Arduino Guide

From Waveshare Wiki
Jump to: navigation, search

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
Dust-Sensor-Arduino 1.jpg

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.
MQ5 Arduino 1.jpg
  • 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.
Dust Sensor- (3).jpg

Reference:

Air quality criterion
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