PM2.5 (Old Version, Probe Only, No Module)
Overview
Used for PM2.5 detection.
Technical Specifications
Operating voltage: VCC 3.3V -5V
Communication: Serial port, baud rate 9600
Output: PM2.5 detection value 0-500μg/m³
Pin Definition
Pin |
Definition |
|---|---|
GND |
Ground |
VCC |
Power |
AO |
Input |
PLS |
Pulse |
Example Code
Graphical code
from mpython import *
from bluebit import PM25
pm25 = PM25()
from lv_gui import *
gui = GUI()
import time
while True:
gui.fill(type=0)
gui.draw_label(text=str(pm25.dustDensity_average()), row=1, color=0xffffff, wrap=False)
gui.update()
time.sleep(1)