The Plantower PMS5003
The PMS5003 uses a serial interface with a baud rate of 9600 Baud.
Here are the pin descriptions from the data sheet:
The pinout table for the PMS5003 connection is given below (the colors correspond to my cable and yours may well differ). The Plantower sensor may be connected to a PC using a USB to serial interface or to the ESP32 with the pin connections in the table.
Readout programs can be downloaded from my github repository
https://github.com/uraich/dust-sensors/tree/main/plantower
Pin number |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
signification |
nc |
nc |
reset (active low) |
Tx (3.3V level) |
Rx (3.3V level |
set pin (3.3V or open: normal working status) |
Gnd |
Vcc: 5V |
on ESP32 |
|
|
D0: GPIO 26 |
D1: GPIO 22 |
D2: GPIO 21 |
n.c. |
Gnd |
5V |
cable color |
n.c. |
n.c. |
black |
gray |
white |
violet (n.c.) |
blue |
green |
--
Uli Raich - 2022-06-01
Comments