PM2.5 Particulate Matter Sensor (New Version, Module + Probe)

../../../../_images/pm2_5_new_1.png
../../../../_images/pm2_5_new_2.png

Overview

Used for PM2.5 detection.

Technical Specifications

Operating voltage: VCC 3.3V -5V

Module dimensions: 24*48mm

Mounting: 2 plastic building block compatible through-holes

Communication: Serial port, baud rate 9600

Output detection value: 0-2500μg/m³

Power-on stabilization time: ≤10 s

Pin Definition

Pin

Definition

GND

Ground

VCC

Power

TX

Serial transmit

RX

Serial receive

Example Code

Graphical code

from mpython import *

from bluebit import *

pm25_dc01 = PM25_DC(tx=Pin.P9, rx=Pin.P8)

from lv_gui import *

gui = GUI()

import time
while True:
    gui.fill(type=0)
    gui.draw_label(text=str(pm25_dc01.read()), row=1, color=0xffffff, wrap=False)
    gui.update()
    time.sleep(1)
../../../../_images/pm25_dc01.png