Daphne
Published

Measure PM2.5 Concentration in the air with Ameba RTL8722DM

Using Ameba RTL8722DM and PlanTower PMS3003 (Air quality sensor) to obtain the number of suspended particles in the air.

BeginnerProtip1 hour188
Measure PM2.5 Concentration in the air with Ameba RTL8722DM

Things used in this project

Hardware components

Ameba RTL8722DM
×1
PlanTower PMS3003 / PMS5003
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)
Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)

Story

Read more

Schematics

Wiring of the PMS3003/PMS5003

There are 8 pins in PMS3003. PMS3003 requires 5V power, but the working voltage of its IC is 3.3V. Therefore, the working voltage of Reset, TX, RX, Set are 3.3V as well. If the "set" pin is pulled to high, the PMS3003 is put to the operating mode. If the "set" pin is pulled to low, the PMS3003 is put to standby mode. TX/RX pin are for UART connection. Under operating mode, PMS3003 output the data it reads continuously. Each data is 32 byte,

Programming

In the Arduino IDE, Open the code in "File" -> "Examples" -> "AmebaSoftwareSerial" -> "PMS3003_AirQuality"

Final Result

After uploading the code onto Ameba, Open the serial monitor in the Arduino IDE and the Ameba will starts to output the PM2.5 data to serial monitor

Wiring diagram between RTL8722DM and PMS3003/PMS5003

Code

Programming

C/C++
In the Arduino IDE, Open the code in "File" -> "Examples" -> "AmebaSoftwareSerial" -> "PMS3003_AirQuality"
No preview (download only).

Credits

Daphne

Daphne

12 projects • 1 follower
Always ready to learn something new...

Comments