The PM2.5 Air Quality Sensor with Breadboard Adapter Kit (Adafruit Part ID: 3686) is an advanced sensor designed to measure fine particulate matter in the air, specifically particles that have a diameter of less than 2.5 micrometers (PM2.5). These particles are considered hazardous as they can penetrate deep into the human respiratory system and cause health issues. The PMS5003 sensor is commonly used in air quality monitoring devices, environmental monitoring stations, and HVAC systems to ensure air quality is within safe limits.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (4.5V-5.5V) |
2 | GND | Ground connection |
3 | SET | Set pin (active low) |
4 | RX | UART receive pin |
5 | TX | UART transmit pin |
6 | RESET | Reset pin (active low) |
7 | NC | Not connected |
8 | NC | Not connected |
To use the PMS5003 sensor with a development board like the Arduino UNO, follow these steps:
#include <SoftwareSerial.h>
SoftwareSerial pmsSerial(10, 11); // RX, TX
void setup() {
Serial.begin(9600);
pmsSerial.begin(9600);
}
void loop() {
if (pmsSerial.available()) {
// Read data from the sensor
uint8_t buffer[32];
int index = 0;
while (pmsSerial.available() && index < 32) {
buffer[index++] = pmsSerial.read();
}
// Process the data (assuming the data starts with 0x42 0x4d)
if (index == 32 && buffer[0] == 0x42 && buffer[1] == 0x4D) {
int pm25 = (buffer[12] << 8) + buffer[13];
Serial.print("PM2.5: ");
Serial.print(pm25);
Serial.println(" ug/m3");
}
}
}
Q: Can the sensor be used outdoors? A: Yes, but it should be protected from direct sunlight, rain, and condensation.
Q: How often should the sensor be calibrated? A: The PMS5003 sensor is factory-calibrated and typically does not require additional calibration.
Q: What is the lifespan of the sensor? A: The sensor has a lifespan of approximately 3 years when used as recommended.
Q: Can I use multiple PMS5003 sensors with one Arduino? A: Yes, but each sensor will require a separate software serial port, or you can use a multiplexer for the UART lines.