TEP DOWNLOAD CENTER

Project Files of PMS5003 Particle Sensor Library for Proteus V1.0: PM2.5 and PM10

Libraries Code Projects Simulation
tep://download-terminal pms5003-tep-v1-0-7df0b0743891433cb75975f216a511bd.zip ZIP archiveV1.0Verified25 downloadsFree
PMS5003 Particle Sensor Library for Proteus V1.0: the Simple sensor with its STATUS panel and the pop-up of the Advance one
Proteus library · File 1 of 1

PMS5003 Particle Sensor Library for Proteus V1.0

PMS5003 Particle Sensor Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.6 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.

  • LIBProteus library
  • DLLProteus model
  • DSNProteus simulation
  • INOArduino sketch
  • HEXHEX firmware

Description

PMS5003 Particle Sensor Library for Proteus V1.0 is the download package that goes with our tutorial PMS5003 Particle Sensor Library for Proteus V1.0: PM2.5 and PM10. On this page you can download the ZIP file (1.2 MB) and see what is inside before you save it: 10 files in 5 folders, the Proteus library files (LIB and IDX), the simulation model (DLL), a ready Proteus simulation, an Arduino sketch and the compiled HEX firmware. The tutorial explains the design; this page gets the files onto your computer and into use.

What this library is

PMS5003-Particle-Sensor-Library-for-Proteus-v1.0.zip with the Plantower PMS5003 laser particle sensor (PM1.0, PM2.5 and PM10 over UART, SET and RESET), Simple and Advance (TEPPMS5003.LIB and TEPPMS5003.DLL), our Arduino UNO V4.0 library with its built-in serial monitor (ArduinoV4TEP.LIB and TEPARDUINO.DLL), the two-UNO simulation with its HEX file, the demo sketch and a README.

This is version 1.0; older or newer releases, when they exist, are listed in the Development tab.

What is inside the ZIP file

  • ArduinoV4TEP.LIB – Proteus library, 201.9 KB
  • TEPPMS5003.LIB – Proteus library, 71 KB
  • TEPARDUINO.DLL – Simulation model, 883.5 KB
  • TEPPMS5003.DLL – Simulation model, 297.5 KB
  • PMS5003-Air-ArduinoUnoV4.pdsprj – Proteus simulation, 24.6 KB
  • PMS5003_Air_Demo.ino – Arduino sketch, 4.1 KB
  • and 4 more, all listed in the File Structure tab

The archive unpacks to 2.6 MB and carries its own README (README.txt), shown in the README tab above.

How to download

Use the download panel at the top of this page: after the counter (30 seconds for guests, 10 for members) the black button unlocks and the ZIP file comes straight from our content network. If the browser opens it instead of saving, use Save as; extract the whole archive before using anything inside it.

How to install

  • Step 1: Extract the ZIP file with Windows (Extract All), 7-Zip or WinRAR, keeping its folders.
  • Step 2: Close Proteus and copy ArduinoV4TEP.LIB and TEPPMS5003.LIB into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
  • Step 3: Copy TEPARDUINO.DLL and TEPPMS5003.DLL into the MODELS folder next to it, so the part simulates.
  • Step 4: Start Proteus, press P and search for "ArduinoV4TEP"; place and wire it as in the tutorial.
  • Step 5: Open PMS5003_Air_Demo.ino in the Arduino IDE, pick board and port and Verify (Export Compiled Binary gives the HEX).
  • Step 6: In Proteus set the controller's Program File to PMS5003_Air_Demo.hex; on hardware, flash the same file.
  • Step 7: Open PMS5003-Air-ArduinoUnoV4.pdsprj in Proteus and press Play.

Read the detailed guide

This page is for the files. The full tutorial, PMS5003 Particle Sensor Library for Proteus V1.0: PM2.5 and PM10, explains the circuit and the code step by step and shows the working results and the simulation; read it before you build. Questions about the download or the installation go in the comments below; more Proteus downloads are listed further down this page.

Read PMS5003 Particle Sensor Library for Proteus V1.0: PM2.5 and PM10

File Structure

pms5003-tep-v1-0-7df0b0743891433cb75975f216a511bd.zip10 files · 5 folders · 2.6 MB unpacked
PMS5003-TEP-v1.0/10 files · 2.6 MB
Arduino Code/1 file · 4.1 KB
PMS5003_Air_Demo/1 file · 4.1 KB
INO PMS5003_Air_Demo.inoArduino sketch 4.1 KB
Proteus Library Files/2 files · 272.9 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEPPMS5003.LIBProteus library 71 KB
Proteus Model Files/2 files · 1.2 MB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPPMS5003.DLLSimulation model 297.5 KB
Proteus Simulation/4 files · 1.2 MB
DSN PMS5003-Air-ArduinoUnoV4.pdsprjProteus simulation 24.6 KB
HEX PMS5003_Air_Demo.hexCompiled HEX file 23.8 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPPMS5003.DLLSimulation model 297.5 KB
TXT README.txtText file 23.5 KB

README

README.txt 395 lines
PMS5003 PARTICLE SENSOR LIBRARY FOR PROTEUS - V1.0 (PM1.0, PM2.5 AND PM10)
Designed by The Engineering Projects
www.TheEngineeringProjects.com

IMPORTANT LINKS
Article (read it first - pictures, step by step, every feature explained):
  https://www.theengineeringprojects.com/2026/10/pms5003-particle-sensor-library-for-proteus-v1-0.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/pms5003-particle-proteus-library
The demo runs on our Arduino UNO V4.0 (included) - working LEDs, RESET and a
built-in serial monitor, no Virtual Terminal to wire - its own article:
  https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
The built-in monitor is our TEP Serial Monitor Advance - its own article:
  https://www.theengineeringprojects.com/2026/10/serial-monitor-advance-proteus-library.html
Our other air quality sensors (the CO2 sensor, the MQ gas sensors):
  https://www.theengineeringprojects.com/2026/10/mh-z19b-co2-sensor-library-for-proteus-v1-0.html
  https://www.theengineeringprojects.com/2026/10/mq-gas-sensor-library-for-proteus-v1-0.html
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
PMS5003-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                              201.9 KB   TEP Arduino boards V4.0 (UNO), to LIBRARY
|   |-- TEPPMS5003.LIB                                 71.0 KB   the PMS5003, to LIBRARY
|-- Proteus Model Files/
|   |-- TEPARDUINO.DLL                                883.5 KB   the Arduino board model, to MODELS
|   |-- TEPPMS5003.DLL                                297.5 KB   the PMS5003 model, to MODELS
|-- Proteus Simulation/
|   |-- PMS5003_Air_Demo.hex                           23.8 KB   both UNOs (demo sketch V1.0)
|   |-- PMS5003-Air-ArduinoUnoV4.pdsprj                24.6 KB   demo: 2 UNOs, 2 sensors
|   |-- TEPARDUINO.DLL                                883.5 KB   copy of the board model
|   |-- TEPPMS5003.DLL                                297.5 KB   copy of the model
|-- Arduino Code/
|   |-- PMS5003_Air_Demo/PMS5003_Air_Demo.ino           4.1 KB   the demo sketch (source of the .hex)
|-- README.txt                                        ~24.5 KB   this file
Total: 2.65 MB (unzipped). The C++ source code of the model is not included.

WHAT IS IT?
A simulation model of the Plantower PMS5003, a laser particle sensor: a small
fan draws air through a chamber, a laser lights it, and a photodiode counts
the flashes of light the particles scatter. From the counts the sensor
estimates the mass of the particles in the air - PM1.0, PM2.5 and PM10, in
micrograms per cubic metre (ug/m3). Our own model, written from Plantower's
manual and checked against the PMS Library 1.1.0 (the library most makers use
with this sensor) - not a part that shows a number:
  * The UART at 9600 baud 8N1: a 32-byte frame - 0x42 0x4D, the frame length
    (28), 13 data words (high byte first) and a checksum (the sum of all the
    bytes before it). The words: PM1.0, PM2.5 and PM10 "CF=1", the same
    "under atmospheric environment", the particles over 0.3, 0.5, 1.0, 2.5,
    5.0 and 10 um in 0.1 L of air, and a reserved word.
  * Active mode (the default at power-on): frames by themselves - every
    2.3 s while the air changes little (stable mode), every 200 - 800 ms
    while it changes (fast mode - the higher the concentration, the shorter).
  * The 7-byte commands 0x42 0x4D cmd DATAH DATAL and a 2-byte sum: 0xE1
    passive (0x00) / active (0x01), 0xE2 read (passive mode: one frame), 0xE4
    sleep (0x00) / wake up (0x01). A wrong sum is ignored.
  * The pins: SET LOW = sleep (the fan stops, no frames), HIGH or open =
    working; RESET LOW = held in reset, released = a fresh start in active
    mode. After power-on or a wake-up the fan needs 30 s before the data are
    stable (the manual): the readings start low and rise.
  * The air at the sensor: PM1.0, PM2.5 and PM10 (properties PM1, PM25,
    PM10), the panel's - / + (5 ug/m3 a click, PM1.0 and PM10 scaled with
    PM2.5), five presets (CLEAN, CITY, HAZE, SMOKE, DUST) and four actions:
    COOKING (a pan of oil smoking: fine particles, gone in a few minutes),
    PURIFIER (an air purifier: back to CLEAN), FOG (humidity over 90 %: wet
    particles scatter more light and read high) and WIND (gusts of coarse
    dust: PM10 jumps, PM1.0 hardly).
The sensor is drawn at about twice its real size (50 x 38 mm): the metal
case with its label, the outlet's slots and the fan's round grille, on a
dark carrier board with the pins on the left: VCC, GND, SET, RX, TX, RESET
(the connector's pins 7 and 8 are not connected, so the part leaves them
out). ON the board, as TEP additions: the SIMPLE / ADVANCE badge, the PWR,
FAN (on while the fan runs) and TX (a flash with each frame) LEDs and the
panel button. The LEDs, the badge, the button and the panels are
TEP additions; the real sensor has none of them.

TWO DEVICES IN ONE LIBRARY (search "PMS5003" or "PMS" in Pick Devices):
  Simple    PMS5003TEP       "PMS5003 Particle Sensor V1.0 - Simple"
  Advance   PMS5003ADVTEP    (the same, "- Advance")
            (pins VCC, GND, SET, RX, TX and RESET on the left; category
            Sensors > Air Quality)
  Simple    On-Sheet Panel: the STATUS panel under the sensor - the banner
            (PM2.5 ... ug/m3 - THE AIR ... ug/m3 and the mode; amber while the
            fan settles, asleep or in fog; blue in passive mode), THE AIR
            (PM2.5) - / + with a ruler (0 to 500 ug/m3: PM1.0, PM2.5 and PM10
            of the air and the reading), five presets, four actions, ten
            readouts (STATE, MODE, PM1.0, PM2.5, PM10, PM2.5 CF=1, > 0.3 um /
            0.1 L, FRAMES, SET PIN, THE AIR) and the last 4 events. The red X
            closes the panel, PANEL: ON / OFF on the board opens it.
  Advance   Pop-Up Panel: only the sensor on the schematic; at Run a TEP
            pop-up window opens - the look of the TEP Serial Monitor. Tabs
            Sensor, Event log and Tests; gear and ? icons for Settings and
            Help; the palette icon switches the theme:
              Sensor     the presets on the toolbar; THE AIR AT THE SENSOR
                         (-50 / -10 / +10 / +50 ug/m3, COOKING, PURIFIER, FOG,
                         WIND, a 0 - 500 ug/m3 scale with PM1.0, PM2.5, PM10
                         and the reading); WHAT THE SENSOR REPORTS (PM1.0,
                         PM2.5, PM10 with their CF=1 values, the particles);
                         the last frame byte by byte; the air and the reading
                         over the last 150 s, a dot for each frame
              Event log  power and sleep, the frames, the bus (commands),
                         the air, notes, warnings; filters All / The air /
                         The bus / Warnings, Pause, Clear
              Tests      Frames & commands, Sleep & fan, Particles & PM (THE
                         TEST TOOLS)
              Settings   theme, text size, open at Run, window size
              Help       report a bug, suggest a feature, article, updates,
                         donate, forum; Copy diagnostics for a bug report
            The OPEN PANEL button on the board opens the window again.
Both devices use one model, TEPPMS5003.DLL.

TEST STATUS
V1.0: verified in Proteus 8.5 on 18 Oct 2026 (the demo project as shipped:
two Arduino UNO V4.0 boards with their built-in monitors; node 1 with the
Simple sensor in city air, PM2.5 35 ug/m3; node 2 with the Advance sensor in
clean air, PM2.5 5 ug/m3; both in active mode from power-on).
What the run showed:
  * Both sensors send a frame every 2.3 s; the readings rise while the fan
    settles: ARD1 "#1  t=0 s  PM1.0 1  PM2.5 1  PM10 1 ug/m3  (CF=1 PM2.5
    1)  - the fan is settling", then "#14  t=30 s  PM1.0 18  PM2.5 35  PM10
    53 ug/m3  (CF=1 PM2.5 38)" without the note.
  * U2 through its pop-up: COOKING - fast mode (a frame every 706 ms), PM2.5
    from 8 to 187 ug/m3 in 9 s (#17 to #28), then stable mode again; the
    Particles & PM tool: PM1.0 152 <= PM2.5 187 <= PM10 218 ug/m3, 24604
    particles > 0.3 um in 0.1 L; PURIFIER - down to PM2.5 45 at 74 s;
    PASSIVE and READ - "passive mode (42 4D E1 00 00): type READ for a
    frame", one frame (#63) for the read request; the Frames & commands
    tool: 2 commands, 0 with a wrong checksum, 0 framing errors; SLEEP (42
    4D E4 00 00) - no frames, the fan off; ACTIVE and WAKE - "wake up (42 4D
    E4 00 01): stable data after 30 s", the readings from 2 ug/m3 up again;
    the Sleep & fan tool and the Event log.
  * U1 with the real mouse (3 wheel steps on U1): HAZE - PM2.5 from 38 to
    150 ug/m3 in 13 s (CF=1 210); DUST - PM10 above 200 with PM2.5 near 60;
    FOG - PM2.5 reads 97 to 105 while the dry dust is 60; CITY and WIND -
    PM10 gusts between 113 and 239 ug/m3; SET LOW and SET HIGH on the
    monitor - "SET LOW: the sensor sleeps", then frames again from "#89
    t=166 s" with "- the fan is settling"; RESET - "RESET: the sensor starts
    again in active mode"; U1's red X and PANEL.
  * 190.3 s of simulation took 474 s - about 0.40 x real time with the
    pop-up and both monitors open.
  Plus automatic checks on a PC, 0 failed: 30 on the model (the frames byte
  by byte with their sum, the commands, passive and active, sleep and wake,
  SET and RESET, the fan's 30 s, fast mode, the presets and the actions), 13
  with the real PMS library 1.1.0 talking to the model (read(), readUntil(),
  passiveMode(), requestRead(), sleep(), wakeUp(), activeMode() - every
  frame accepted) and 8 on the pop-up; the demo project read back from disk
  (93 checks: devices, pins, wires, labels; no wire through a part, no wire
  crossing).

INSTALLATION (about 2 minutes)
1. Close Proteus. Extract the WHOLE ZIP to a normal folder (e.g. Desktop).
2. Copy everything in "Proteus Library Files" (TEPPMS5003.LIB with the two
   parts, and our Arduino library V4.0, ArduinoV4TEP.LIB, with the ARDUINO
   UNO V4.0 used by the demo) to the LIBRARY folder of Proteus, for example:
     C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
   (on some PCs: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\
   LIBRARY - use the folder that already holds Proteus's own .LIB files).
3. Copy TEPPMS5003.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the
   MODELS folder (...\Proteus 8 Professional\MODELS).
   ArduinoV4TEP.LIB and TEPARDUINO.DLL are the files of our Arduino Library
   V4.0 - if you have it, they are the same.
4. Delete TEPPMS5003.IDX from the LIBRARY folder if it is there (Proteus
   makes a new index).
5. Start Proteus. In Pick Devices (P) search "PMS5003" (or "PMS").

RUN THE DEMO
"Proteus Simulation\PMS5003-Air-ArduinoUnoV4.pdsprj" - keep the .hex file and
the two DLLs beside the project.
  ARD1: Arduino UNO V4.0 + U1 = a PMS5003 (Simple) in city air (PM1.0 20,
        PM2.5 35, PM10 55 ug/m3).
  ARD2: Arduino UNO V4.0 + U2 = a PMS5003 (Advance) in clean air (3 / 5 / 8).
  Both UNOs run PMS5003_Air_Demo.hex and each has its serial monitor built in
  ("TEP Arduino UNO - ARD1" / "- ARD2").
  1. Press Run. Both UNOs' monitor windows open (9600 baud) and so does the
     pop-up of U2 (move it aside - it opens over the schematic).
  2. Each sensor starts in active mode and sends a frame every 2.3 s; the
     sketch prints each one: PM1.0, PM2.5 and PM10 and PM2.5 CF=1. For the
     first 30 s the readings rise - "- the fan is settling".
  3. Change the air on U1's STATUS panel or in U2's pop-up (- / +, the
     presets): the frames come faster while the air changes (fast mode).
     COOKING, PURIFIER, FOG, WIND.
  4. Type in a monitor: PASSIVE, then READ (one frame each); SLEEP and WAKE
     (the commands) or SET LOW and SET HIGH (the pin); ACTIVE; RESET.
  5. U1: close its panel with the red X, open it with PANEL on the board.
     U2 (Advance): Sensor, Event log, and Tests - Frames & commands, Sleep &
     fan, Particles & PM.
Closed a monitor window? Click the UNO's USB port.

WIRING (the same in Proteus and on a real board)
  PMS5003           Arduino UNO
  1 VCC             5V
  2 GND             GND
  3 SET             D4 (HIGH = working, LOW = sleep)
  4 RX              D9 (AltSoftSerial TX)
  5 TX              D8 (AltSoftSerial RX)
  6 RESET           D5 (HIGH; LOW = reset)
  7, 8              not connected
An UNO has one hardware serial port (D0 / D1 - the monitor) and SoftwareSerial
cannot receive in Proteus, so the sketch uses AltSoftSerial (always D8 / D9):
  AltSoftSerial pmsSerial;  PMS pms(pmsSerial);  PMS::DATA data;
  pmsSerial.begin(PMS::BAUD_RATE);
  if (pms.read(data)) Serial.println(data.PM_AE_UG_2_5);   // non-blocking
The serial monitor needs no wires: it is built into the Arduino UNO V4.0.
The pins reach their UNO through net labels - SET_1 / RX_1 / TX_1 / RESET_1
(node 1) and SET_2 / RX_2 / TX_2 / RESET_2 (node 2): the same name =
connected. 5V and GND are Proteus power terminals.
REAL HARDWARE:
 * The supply is 5 V (4.5 to 5.5 V) for the fan; the signals are 3.3 V. A
   3.3 V HIGH from TX is a valid HIGH for a 5 V UNO; for the UNO's 5 V into
   RX, SET and RESET use a level shifter or a divider.
 * The connector has a 1.25 mm pitch - use the adapter board or the cable
   that comes with the sensor.
 * Keep the inlet and the outlet free and the sensor out of the wind, rain
   and direct sunlight; let it run 30 s after waking before you trust it.

THE TEST TOOLS (Advance, Tests tab) - what they really measure
Every tool reads the model during the running simulation; each shows one
"Good for:" line and, where it judges, a verdict per row (green = fine, amber
= check, red = wrong).
  Frames & commands
                Good for: no data, data only now and then, a command that
                does nothing, passive mode with no read request. The mode,
                the frames sent, the commands received and with a wrong sum,
                the read requests, the bytes and framing errors on RX; the
                last commands with their bytes.
  Sleep & fan   Good for: no frames after a sleep, low readings after a
                wake-up, a sensor that never wakes. The SET and RESET pins,
                the fan, the wake-ups and the 30 s to stable data.
  Particles & PM
                Good for: which value to read, PM10 lower than PM2.5
                (impossible), high readings in fog or steam. PM1.0 <= PM2.5
                <= PM10, CF=1 against atmospheric, FOG, and the particle
                counts of the last frame by size.

THE DEMO SKETCH ON THE SERIAL MONITOR (PMS5003_Air_Demo V1.0)
  SLEEP / WAKE      the sleep command (42 4D E4 00 00 / 00 01)
  PASSIVE / ACTIVE  the mode command (42 4D E1 00 00 / 00 01)
  READ              passive mode: a read request (42 4D E2) and one frame
  SET LOW / HIGH    the SET pin (D4): sleep / work
  RESET             the RESET pin (D5) LOW for 10 ms
  HELP              the command list
Commands are not case-sensitive; type them in the UNO's built-in monitor and
press Enter. In active mode the sketch prints every frame by itself.

EXPECTED MONITOR OUTPUT (the start)
ARD1 (city air, PM2.5 35 ug/m3):
  TEP PMS5003 particle sensor - demo V1.0
  PMS library over AltSoftSerial: TX on D8, RX on D9; SET on D4, RESET on D5
  - active mode
  Commands: SLEEP, WAKE, PASSIVE, ACTIVE, READ (passive mode),
  SET LOW, SET HIGH (the SET pin), RESET (the RESET pin), HELP
  #1  t=0 s  PM1.0 1  PM2.5 1  PM10 1 ug/m3  (CF=1 PM2.5 1)  - the fan is settling
  #2  t=3 s  PM1.0 3  PM2.5 7  PM10 10 ug/m3  (CF=1 PM2.5 7)  - the fan is settling
  #3  t=5 s  PM1.0 5  PM2.5 12  PM10 18 ug/m3  (CF=1 PM2.5 12)  - the fan is settling
ARD1 when the fan has settled:
  #13  t=28 s  PM1.0 20  PM2.5 36  PM10 53 ug/m3  (CF=1 PM2.5 39)  - the fan is settling
  #14  t=30 s  PM1.0 18  PM2.5 35  PM10 53 ug/m3  (CF=1 PM2.5 38)
  #15  t=33 s  PM1.0 21  PM2.5 35  PM10 52 ug/m3  (CF=1 PM2.5 38)
("PMS library over AltSoftSerial ... - active mode" is one line on the
monitor.) The numbers move a little from frame to frame: the noise of the
particle counts.

PROPERTIES (double-click the part > Edit Properties)
  PM1          the air's PM1.0 at the start in ug/m3 (default 3)
  PM25         the air's PM2.5 at the start in ug/m3 (default 5)
  PM10         the air's PM10 at the start in ug/m3 (default 8)
  PANEL        Simple only: the STATUS panel at the start, OPEN or CLOSED
Every run starts again from the properties, and the sensor from power-on in
active mode.
The demo's UNOs (ARDUINO UNO V4.0): PROGRAM PMS5003_Air_Demo.hex, MONITOR YES
(the built-in monitor), BAUD 9600, AUTOOPEN YES, BOOTLOADER YES.

LINKS.INI (OPTIONAL)
The Help page cards of the Advance device open web pages. To point them
somewhere else without a new DLL, put a text file named links.ini next to
TEPPMS5003.DLL with lines KEY=URL, for example:
  ARTICLE=https://www.theengineeringprojects.com/...
Keys: WEBSITE, FORUM, BUG_REPORT, FEATURE_REQUEST, ARTICLE, USER_GUIDE,
UPDATE_CHECK, DONATE. Only http:// and https:// links are used; lines starting
with # are comments.

TROUBLESHOOTING
* No frames at all: TX / RX swapped (the sensor's TX goes to D8), SET LOW (the
  sensor sleeps - the FAN LED is off), RESET LOW, no power, or passive mode
  without READ - Tests > Frames & commands shows the mode.
* The readings start low and climb: the fan's first 30 s after power-on or a
  wake-up - wait.
* PM10 far above PM2.5: coarse dust (DUST, WIND). PM1.0 close to PM2.5:
  smoke (COOKING, SMOKE).
* High readings in fog or steam: wet particles read high (FOG) - the dust
  has not changed.
* The CF=1 values are higher than the others: CF=1 is meant for factory use;
  read the atmospheric ones (PM_AE_UG_*) for the air around you.
* The parts are not simulated: TEPPMS5003.DLL is missing from MODELS and from
  the project folder. No UNO / no monitor window: TEPARDUINO.DLL is missing,
  or click the UNO's USB port.
* Advance: the pop-up does not appear - click OPEN PANEL on the board, or
  turn "Open the panel at Run" on its Settings page back on.

BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and (Advance) the Copy diagnostics text:
  https://www.theengineeringprojects.com/forum/category/pms5003-particle-proteus-library

SUPPORT US
This library is free. If it saves you time, please support our work:
  https://www.theengineeringprojects.com/donate

WEBSITE
  https://www.theengineeringprojects.com/

LICENCES AND THIRD-PARTY NOTES
* The PMS5003 model (TEPPMS5003.DLL), the symbols and artwork and the Arduino
  Library V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, with its built-in TEP
  Serial Monitor Advance) are made by The Engineering Projects. The model is
  an independent implementation written from Plantower's manual (the pins,
  the frame, the commands, the timing) and the public PMS Library (what it
  reads). The model uses only standard Windows libraries; no Visual C++
  redistributable is needed.
  The C++ source code is not included.
* Arduino UNO V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, our Arduino Library
  V4.0 - its microcontroller is Proteus's own AVR model): The Engineering
  Projects, https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
* The demo sketch uses two libraries; neither is included - install them
  from the Arduino Library Manager:
  - PMS Library 1.1.0 by Mariusz Kacki, MIT License,
    https://github.com/fu-hsi/PMS ("PMS Library" in the Library Manager)
  - AltSoftSerial 1.4 by Paul Stoffregen (PJRC), MIT License,
    https://github.com/PaulStoffregen/AltSoftSerial
  The .hex file contains both. Their licences:
    PMS Library: Copyright (c) 2017 Mariusz Kacki
    AltSoftSerial: Copyright (c) 2014 PJRC.COM, LLC, Paul Stoffregen,
    [email protected]
    Both under the MIT License:
    Permission is hereby granted, free of charge, to any person obtaining a
    copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to
    permit persons to whom the Software is furnished to do so, subject to
    the following conditions:
    The above copyright notice and this permission notice shall be included
    in all copies or substantial portions of the Software.
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
    OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
    THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* The .hex file is built from the demo sketch, the two libraries and the
  Arduino AVR core 1.8.6, which includes LGPL-licensed code; its source code
  is available at https://github.com/arduino/ArduinoCore-avr/tree/1.8.6
  The demo sketch's source is in "Arduino Code", so the .hex can be rebuilt
  with other versions of the core (REBUILDING THE FIRMWARE).
* PMS5003 and Plantower are names of Beijing Plantower Co., Ltd. Proteus is a
  product of Labcenter Electronics and is not included. Arduino is a
  trademark of Arduino SA. This library is not made or endorsed by Plantower
  or by Labcenter.

REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied; Arduino IDE is not needed to run the demo. To edit
the sketch, install PMS Library and AltSoftSerial (Library Manager), open
Arduino Code\PMS5003_Air_Demo\PMS5003_Air_Demo.ino in the Arduino IDE, select
Arduino Uno and use Sketch > Export Compiled Binary. Replace the simulation's
.hex with the exported HEX.
The sketch needs 8,648 bytes of flash and 767 bytes of RAM.

MODEL SCOPE AND LIMITS
Modelled: the 32-byte frames bit by bit with their checksum, the 13 data
words, active mode (2.3 s stable, 200 - 800 ms fast) and passive mode with
read requests, the sleep and mode commands, SET and RESET, the fan's 30 s
after power-on and a wake-up, the air (PM1.0, PM2.5, PM10) and its changes
(COOKING, PURIFIER, FOG, WIND), power on / off.
How the part works with the circuit: VCC and GND power the sensor (on or
off); RX, SET and RESET are digital inputs; TX is a digital output with every
bit at its exact time.
Not modelled: the laser, the fan's noise and current, the supply voltage, the
3.3 V level, temperature, how far real sensors differ (the manual's
consistency: +-10 ug/m3 up to 100 ug/m3, +-10 % above), dust building up in
the chamber over months, and the answers some sensors send to the mode and
sleep commands (the model sends none; the PMS Library does not read them). The model's own choices:
the size distribution behind the particle counts, CF=1 = the atmospheric
value up to 30 ug/m3 and 1.5 x the rest above it, the noise, the response
(about 3 s), the fan's spin-up curve, the first frame 1 s after power-on, a
read answered 20 ms after the request, when stable and fast mode switch (PM2.5
changing faster than 3 ug/m3 or 3 % a second), and the air's actions and
presets.

VERSION
TEP PMS5003 library V1.0 (Oct 2026). Devices PMS5003TEP / PMS5003ADVTEP
(TEPPMS5003.LIB / TEPPMS5003.DLL). Demo sketch PMS5003_Air_Demo V1.0 (PMS
Library over AltSoftSerial). Demo board: ARDUINO UNO V4.0 (TEP Arduino
Library V4.0) with its built-in serial monitor.
Advertisement

Development1 release

  1. V1.0PMS5003 Particle Sensor Library for Proteus V1.0this page

    V1.0 is the only release in the Download Center so far. When a newer version is published, it appears above with its own download page.

Installation8 steps

From the download to a working project, in order. The steps follow what the package contains.

You will need

  • Proteus Design SuiteProteus 8 or newer (Labcenter), on Windows
  • Arduino IDE1.8 or 2.x, with the board of the tutorial chosen under Tools → Board
  • Any archive toolWindows, macOS and Linux extract ZIP files on their own

Steps

  1. 1

    Extract the archive

    Right-click pms5003-tep-v1-0-7df0b0743891433cb75975f216a511bd.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (PMS5003-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB and TEPPMS5003.LIB and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.

  3. 3

    Add the simulation model

    Copy TEPARDUINO.DLL and TEPPMS5003.DLL into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.

  4. 4

    Restart Proteus and place the component

    Start Proteus, open a schematic, press P (Pick Devices) and search for the component by the name used in the tutorial. It appears with its pins ready to wire.

  5. 5

    Open the sketch in the Arduino IDE

    Open PMS5003_Air_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.

  6. 6

    Load the HEX file

    In Proteus double-click the microcontroller, set Program File to PMS5003_Air_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open PMS5003-Air-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.

  8. 8

    Follow the tutorial

    PMS5003 Particle Sensor Library for Proteus V1.0: PM2.5 and PM10 explains every connection and setting in order; keep it open beside the files while you build.

How to add a library in Proteus 8

FAQs9 questionsContact TEP

How do I download PMS5003 Particle Sensor Library for Proteus V1.0?

Wait for the 30-second guest countdown on this page, then press the download button; the file comes straight from our storage. Members who are logged in skip the wait. If the browser opens the file instead of saving it, use its Save as option. The download link is made for you when the countdown ends and works for 15 minutes; a saved or shared link stops working, so share this page instead.

What is inside the archive?

PMS5003 Particle Sensor Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.6 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware. Open the File Structure tab for the full list of 10 files.

What should I do if the download does not start?

Check the browser's download list first; an ad blocker or a company firewall can also hold it back, so try another browser or network. If the file arrives incomplete, download it again. For an installation problem, read the Install tab or tell us in the comments with your software version and the exact error message.

Is this file free?

Yes. Every file in the TEP Download Center is free for learning, personal and student projects. If you share it, link back to this page or the tutorial so others find the latest version.

How do I check that the file arrived complete?

Compare its SHA-256 with the one on this page, 9c41f168293ffbdfc606636c11fc4bc43d4dc8a6c164d86eabbdc7ec312155c3. In PowerShell run Get-FileHash "pms5003-tep-v1-0-7df0b0743891433cb75975f216a511bd.zip"; on macOS or Linux run shasum -a 256 "pms5003-tep-v1-0-7df0b0743891433cb75975f216a511bd.zip". The same value means the file is exactly the one in our storage; a different one means the download broke off, so download it again.

Do I need WinRAR to open the ZIP file?

No. Windows, macOS and Linux open ZIP archives on their own (Extract All, or double-click). WinRAR and 7-Zip work too. Extract the whole archive before using the files.

Where do I put the LIB and IDX files?

Both files go into the LIBRARY folder of your Proteus installation (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY; Proteus 7 has the same folder under its own name). Restart Proteus afterwards and search for the component with P.

Which Proteus version does the library need?

The tutorial names the Proteus version the library was made and tested with. Most TEP libraries work in Proteus 7 and Proteus 8; if the component does not appear after a restart, check that both the LIB and the IDX file were copied and that Proteus was fully closed while copying.

How do I get the HEX file into the simulation?

Compile the sketch in the Arduino IDE (Sketch → Export Compiled Binary gives you the HEX next to the sketch), then in Proteus double-click the board, set Program File to that HEX and run.

preparing · pms5003-tep-v1-0-7df0b0743891433cb75975f216a511bd.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 25Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 17 Oct 2026Uploaded at
Last 14 days18 downloads
SHA-256 9c41f168293ffbdfc606636c11fc4bc43d4dc8a6c164d86eabbdc7ec312155c3
DocumentationPMS5003 Particle Sensor Library for Proteus V1.0: PM2.5 and PM10
Need help with this file? Bug report Ask a question Download problemsGet updates
Advertisement

Comments

0

Join the conversation

Start the conversationAsk a question or share how you used this download.