细微颗粒物PM2.5(新版,模块+探头) ==================================== .. figure:: /_static/products/ledong-module/static/图片/PM2.5新-1.png :width: 45% :align: center .. figure:: /_static/products/ledong-module/static/图片/PM2.5新-2.png :width: 35% :align: center 概述 -------------------- 用于进行PM2.5检测。 技术参数 ------------------- 工作电压: VCC 3.3V -5V 模块尺寸:24*48mm 固定安装:2个兼容塑料积木通孔 通讯方式:串口,波特率9600 输出检测值:0-2500μg/m³ 上电稳定时间:≤10 s 引脚定义 ------------------- ===== ======== 引脚 定义 ===== ======== GND 地 VCC 电源 TX 串口发送 RX 串口接收 ===== ======== 示例程序 ------------------- **图形化代码** .. code-block:: python 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) .. figure:: /_static/products/ledong-module/static/examples/PM25DC01.png :width: 100% :align: center