Detect PM2.5 concentration in the air
- Ameba x 1
- PlanTower PMS3003 (or PMS5003) x 1
Example
Open the example in “File” -> “Examples” -> “AmebaSoftwareSerial” -> “PMS3003AirQuality”
PMS3003 requires 5V power, but the working voltage of its IC is 3.3C. Therefore, the working voltage of Reset, TX, RX, Set are 3.3 as well.
If the “Set” pin is pulled to high, the PMS3003 is put to operating mode. If the “Set” pin is pulled low, the PMS3003 is put to standby mode.
TX/RX pins are for UART connection. Under operating mode, PMS3003 output the data it reads continuously. Each data is of 32 byte, please refer to the following article for detailed data format information:
https://www.dfrobot.com/wiki/index.php?title=PM2.5_laser_dust_sensor_SKU:SEN0177
Refer to the figure below to do the wiring:
RTL8710 wiring as follows:
In this example, we do not use the “Set” and “Reset” pins.
Compile the code and upload it to Ameba. After pressing the Reset button, Ameba starts to output the PM 2.5 data to serial monitor.