Skip to content

PMS7003 or PMS5003 Plantower Python Interface including passive, active query, log data

Notifications You must be signed in to change notification settings

binh-bk/pms7003

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PMS7003 PMS5003 Plantower PM2.5 dust sensor

How to use:

  1. Install pyserial if you have not done so pip3 install pyserial
  2. Edit examples.py, select port, a mode='passive' or mode='active' and named a logFile for saving data
  3. Make sure designate the right USB port to the sensor, on Linux check it(them) by ls /dev/ttyUSB*
  4. If running on mode='active', only interval of logging data is needed. For example, pms3.sampling(30) indcates a 30 seconds between data readding
  5. If running on mode='passive', specifying duration of sleeping (fan is off) in pms1.sampling(60), 50 (seconds) for sleeping in this case, and the "warm up" time (fan on to purge the old air) such as pms1.warmUp(30) for 30 seconds of warm-up. 30 seconds are sufficient according to the Plantower datasheet.

Demo Video:

Youtube Demo

Credits:

the class is built from this project (https://pypi.org/project/plantower/). Credits to Philip Basford

About

PMS7003 or PMS5003 Plantower Python Interface including passive, active query, log data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages