PMS7003 PMS5003 Plantower PM2.5 dust sensor
How to use:
- Install pyserial if you have not done so
pip3 install pyserial
- Edit examples.py, select
port
, amode='passive'
ormode='active'
and named alogFile
for saving data - Make sure designate the right USB port to the sensor, on Linux check it(them) by
ls /dev/ttyUSB*
- If running on
mode='active'
, only interval of logging data is needed. For example,pms3.sampling(30)
indcates a 30 seconds between data readding - If running on
mode='passive'
, specifying duration of sleeping (fan is off) inpms1.sampling(60)
, 50 (seconds) for sleeping in this case, and the “warm up” time (fan on to purge the old air) such aspms1.warmUp(30)
for 30 seconds of warm-up. 30 seconds are sufficient according to the Plantower datasheet.Demo Video:
Credits:
the class is built from this project (https://pypi.org/project/plantower/). Credits to Philip Basford