Project Files of SCD41 CO2 Sensor Library for Proteus Simulation
a1a0ee5477a04f7897c62383d46b8483.zip

SCD41 CO2 Sensor Library for Proteus V1.0
SCD41 CO2 Sensor Library for Proteus V1.0 comes as a ZIP archive of 19 files (2.1 MB, 4.7 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
SCD41-CO2-Sensor-Library-for-Proteus-v1.0.zip with the SCD41 CO2 sensor for Proteus simulation (TEPSCD41.LIB and TEPSCD41.DLL), our 5mm LED, Resistor and Passive Buzzer libraries, our Arduino UNO V4.0, the A4 demo with its sketch and a README.
File Structure
4.5 KB201.9 KB21.8 KB13.4 KB306.9 KB17 KB883.5 KB289.5 KB288.5 KB311 KB330.5 KB25.1 KB28.9 KB883.5 KB289.5 KB288.5 KB311 KB330.5 KB16.4 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in SCD41 CO2 Sensor Library for Proteus Simulation. Open an image for its full size.












README
SCD41 CO2 SENSOR LIBRARY FOR PROTEUS SIMULATION - V1.0 (true CO2, temperature and humidity over I2C, a pop-up)
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/11/scd41-co2-sensor-library-for-proteus.html
Report a bug or suggest a feature (our forum):
https://www.theengineeringprojects.com/forum/category/mh-z19b-co2-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 demo's traffic light is our 5mm LED library (in this zip; its article):
https://www.theengineeringprojects.com/2026/11/5mm-led-library-for-proteus.html
Its resistors are our Resistor library (in this zip):
https://www.theengineeringprojects.com/2026/11/resistor-library-for-proteus.html
Its buzzer is our Passive Buzzer library (in this zip):
https://www.theengineeringprojects.com/2026/11/passive-buzzer-library-for-proteus.html
Support us (the libraries are free):
https://www.theengineeringprojects.com/donate
FILE STRUCTURE
SCD41-CO2-Sensor-TEP-v1.0/
|-- Proteus Library Files/
| |-- ArduinoV4TEP.LIB 201.9 KB TEP Arduino boards V4.0 (UNO) -> LIBRARY
| |-- TEPLED5MM.LIB 21.8 KB a part the demo uses -> LIBRARY folder
| |-- TEPPASSIVE.LIB 13.4 KB a part the demo uses -> LIBRARY folder
| |-- TEPRESISTOR.LIB 306.9 KB a part the demo uses -> LIBRARY folder
| |-- TEPSCD41.LIB 17.0 KB the library -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPARDUINO.DLL 883.5 KB the Arduino board model -> MODELS folder
| |-- TEPLED5MM.DLL 289.5 KB its model -> MODELS folder
| |-- TEPPASSIVE.DLL 288.5 KB its model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB its model -> MODELS folder
| |-- TEPSCD41.DLL 330.5 KB the model -> MODELS folder
|-- Proteus Simulation/
| |-- SCD41_Demo.hex 28.9 KB the demo firmware
| |-- SCD41-CO2-ArduinoUnoV4.pdsprj 25.1 KB the demo project
| |-- TEPARDUINO.DLL 883.5 KB copy of the board model
| |-- TEPLED5MM.DLL 289.5 KB copy of its model
| |-- TEPPASSIVE.DLL 288.5 KB copy of its model
| |-- TEPRESISTOR.DLL 311.0 KB copy of its model
| |-- TEPSCD41.DLL 330.5 KB copy of the model
|-- Arduino Code/
| |-- SCD41_Demo/SCD41_Demo.ino 4.5 KB the demo sketch (source of the .hex)
|-- README.txt ~17.0 KB this file
Total: 4.73 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
An SCD41 true-CO2 sensor module, drawn at its real size (22 x 20 mm) from above: the black board,
the sensor - a green
10 x 10 mm carrier with a silver can and the white membrane over its photoacoustic cell - a 3.3 V
regulator, the I2C pull-ups
and three LEDs. The module is our own drawing (no maker's mark); the commands, their timing and the
conversions follow the
maker's own driver for the SCD4x:
* I2C at 0x62. Every command is a 16-bit word, sent high byte first; every data word, both ways,
is followed by a CRC-8
(polynomial 0x31, start value 0xFF).
* start_periodic_measurement (0x21B1) gives a result every 5 s,
start_low_power_periodic_measurement (0x21AC) every 30 s;
measure_single_shot (0x219D) gives one result after 5 s, measure_single_shot_rht_only (0x2196)
temperature and humidity
after 50 ms. read_measurement (0xEC05) returns three words: CO2 in ppm, T raw and RH raw (T =
-45 + 175 x raw / 65535,
RH = 100 x raw / 65535); get_data_ready_status (0xE4B8) tells when a new result waits.
* stop_periodic_measurement (0x3F86, 500 ms), the temperature offset (0x241D / 0x2318, 4 C at the
start), the altitude
(0x2427 / 0x2322), the ambient pressure (0xE000), automatic self-calibration (0x2416 / 0x2313,
its target and periods),
perform_forced_recalibration (0x362F, 400 ms), persist_settings (0x3615, 800 ms),
get_serial_number (0x3682),
perform_self_test (0x3639, 10 s), perform_factory_reset (0x3632, 1.2 s), reinit (0x3646),
get_sensor_variant (0x202F),
power_down (0x36E0) and wake_up (0x36F6, not acknowledged).
* On the sheet the module comes alive at Run: PWR lights with the supply, I2C flashes with every
transfer, MEAS with every
measurement, and the white membrane glows when the infrared lamp in the cell pulses (the I2C and
MEAS LEDs and the glow
are our additions). Click it at Run for the pop-up: the photoacoustic cell, the CO2 over the
room's clock on the
800 / 1200 ppm bands, the readings and the air chips; graphs, an event log and a check page.
The body is drawn as on the real part and to true scale against our Arduino.
The TEP signature and the pop-up are TEP additions.
ONE DEVICE (search "SCD41" or "CO2" in Pick Devices):
SCD41TEP "SCD41 CO2 Sensor V1.0" in TEPSCD41.LIB (Sensors > Gas), prefix U, model TEPSCD41.DLL
(mixed: analog and
digital). Four pins along the bottom: VCC (3.3 - 5 V), GND, SCL, SDA.
THE POP-UP
Click the part at Run. Tabs:
CO2 Sensor chips: the air (Fresh 420, Office 800, Class 1500, Crowded 2500 ppm), Breath (a
breath on the sensor),
Ventilate (the windows open) and Classroom (the profile again from minute 0). The
photoacoustic cell - the IR
lamp, the CO2 molecules (more with more CO2) and the microphone that hears them when
the lamp pulses; the CO2
over the room's clock - the room (grey) and the results (blue) on the good / stuffy
/ poor bands; eight
tiles: the last CO2, temperature and humidity (with the room's beside them), the
mode and the next result,
the measurements, the I2C traffic, the compensation and the calibration.
Graphs the live values over the last 2, 6 or 15 s. Live / Freeze.
Event log every change and warning; filters All / Changes / Warnings, Pause, Clear
Check what the part is doing and what to look at, each with a verdict (green = fine, amber
= check, red = wrong)
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
TEST STATUS
V1.0: verified in Proteus 8.5 on 19 Nov 2026 (the demo project as shipped: an A4 sheet, an Arduino UNO V4.0).
What the runs showed (the model's own numbers and the sketch's monitor):
* The project loads and starts cleanly; the demo ran 52 simulated seconds (almost an hour of the
classroom at SPEED 60) in 327 s on
our PC with the pop-up open and the pictures being taken.
* Power on at 2 ms; the sketch read the serial number and the temperature offset (4.0 C) and
started the periodic measurement at
601.7 ms. The first result at 5.6 s: CO2 597 ppm, 22.2 C, 46.3 %RH - GOOD AIR, the green LED.
* The class came in at room minute 2: 856 ppm at 10 s (STUFFY, yellow), 1116 ppm, 1323 ppm at 20 s
(POOR, red), 1484 ppm,
1614 ppm at 30 s (VENTILATE NOW: red and two beeps after every result), 1699 ppm at 35 s; the
room warmed to 23.1 C, 52.0 %RH.
* The windows opened at room minute 35: 1107 ppm at 40 s (yellow), 736 ppm at 45 s (green), 553
ppm at 50 s.
* The membrane glowed and the MEAS LED flashed before each result; 10 results, 66 commands, 0 not
acknowledged, 0 CRC errors.
The pop-up: CO2 Sensor, Graphs, Event log, Check - all four followed the run.
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" (TEPSCD41.LIB, TEPLED5MM.LIB, TEPRESISTOR.LIB,
TEPPASSIVE.LIB 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
(use the folder that already holds Proteus's own .LIB files).
3. Copy TEPSCD41.DLL, TEPLED5MM.DLL, TEPRESISTOR.DLL, TEPPASSIVE.DLL and TEPARDUINO.DLL from
"Proteus Model Files" to the MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPSCD41.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "SCD41".
RUN THE DEMO
"Proteus Simulation\SCD41-CO2-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex file and the DLLs
beside the project.
A classroom CO2 traffic light:
ARD1: Arduino UNO V4.0 running SCD41_Demo.hex, its serial monitor built in (window "TEP Arduino
UNO - ARD1").
U1: the SCD41 module: PROFILE CLASSROOM, CO2 450, TEMP 22, HUMIDITY 45, SPEED 60 (a minute of
the room each simulated
second); VCC on VCC, GND, SCL on A5, SDA on A4.
D1-D3: our 5 mm LEDs, green (D5), yellow (D6) and red (D7), each through 220 ohm (R1 - R3).
BZ1: our passive buzzer on D8 through 100 ohm (R4).
The sketch talks to the sensor with plain Wire calls and checks every CRC: it reads the
serial number and the
temperature offset, starts the periodic measurement, polls get_data_ready_status once a
second and reads each new
result. Green under 800 ppm, yellow up to 1200 ppm, red above; at 1500 ppm the buzzer
beeps after every result.
Closed the monitor? Click the UNO's USB port.
WIRING (the same in Proteus and on a real board)
VCC to 3.3 V or 5 V (the module has its own 3.3 V regulator), GND to ground, SCL to the I2C clock
(A5 on an UNO), SDA to
the I2C data (A4). The module has 10 k pull-ups to its own 3.3 V, so a 5 V board reads it without
a level shifter.
REAL HARDWARE:
* The real sensor draws short current peaks of about 200 mA when its lamp fires: give it a clean
supply and a capacitor.
* The first results after power-on settle for a few minutes, and the sensor needs fresh air now and
then for its
automatic self-calibration (or a forced recalibration in fresh air, after at least 3 minutes of
periodic measurement).
* Keep the white membrane free: no glue, no tape, no conformal coating over it.
* Set the altitude (or feed the ambient pressure) where the device works: the CO2 reading depends
on the air pressure.
* Settings, calibration and the self-test only work in idle mode: stop_periodic_measurement first
and wait 500 ms.
THE DEMO SKETCH ON THE SERIAL MONITOR (SCD41_Demo V1.0, 9600 baud)
The sketch prints each result (one every 5 s) and every change of the light. EXPECTED MONITOR OUTPUT
SCD41 CO2 traffic light - The Engineering Projects
Serial number 0x....
Temperature offset 4.0 C
Periodic measurement started - the first result in 5 s
#1 t=5 s CO2 ... ppm ... C ... %RH
>> GOOD AIR - green
PROPERTIES (double-click the part > Edit Properties)
The room (PROFILE) STEADY (the CO2 below; the chips change it) or CLASSROOM (a
class comes in at minute 2,
the windows open at minute 35) (CLASSROOM)
The air at the start (CO2) 400 - 40000 ppm (450)
Temperature, humidity (TEMP, HUMIDITY) the room's: C (22), % (45)
The room clock (SPEED) 1 real time, 60 a minute each simulated second (60); the 5 s
interval stays
The air pressure (PRESSURE) the real pressure around the sensor, hPa (1013)
Every run starts again from the properties.
LINKS.INI (OPTIONAL)
The Help page cards of the pop-up open web pages. To point them somewhere else without a new DLL,
put a text file named links.ini next to TEPSCD41.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
* Every command NACKed: the sensor is busy (a command still runs - stop_periodic_measurement takes
500 ms) or asleep
(power_down: wake_up first). The pop-up's banner and Event log say which.
* Settings ignored in periodic mode: they are not acknowledged - stop_periodic_measurement first.
* read_measurement not acknowledged: no new result yet - poll get_data_ready_status (0xE4B8) first.
* The CO2 is a few percent off at altitude: set the altitude (0x2427) or the ambient pressure
(0xE000).
* A setting ignored with a CRC warning: the CRC of the data word is wrong (polynomial 0x31, start
0xFF, over the 2 bytes).
* The part is not simulated: TEPSCD41.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPSCD41.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.
BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and the pop-up's Copy diagnostics text:
https://www.theengineeringprojects.com/forum/category/mh-z19b-co2-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 model (TEPSCD41.DLL), the symbols and artwork, the other parts of ours in the demo 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 models use 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 .hex file is built from the demo sketch 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
* 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 Arduino or Labcenter.
REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied; Arduino IDE is not needed to run the demo. To edit the sketch, open
Arduino Code\SCD41_Demo\SCD41_Demo.ino, select Arduino Uno and use Sketch > Export Compiled Binary.
Replace the simulation's .hex with the exported HEX. The sketch needs 10,502 bytes of flash and 537
bytes of RAM.
MODEL SCOPE AND LIMITS
Modelled: the commands, their busy times and their replies with CRC-8; the periodic, low-power and
single-shot modes; the
data-ready flag; temperature offset, altitude and pressure compensation; forced recalibration; the
self-test, the serial
number and the variant; the room (PROFILE, SPEED, the chips) and the sensor following it with tau 60
s of the room's clock,
the noise, the self-heating that the 4 C offset cancels, the supply current. Our choices: while a
command runs the sensor
does not answer its address; in periodic mode the commands it may not take are not acknowledged;
read_measurement with no
new result is not acknowledged. Not modelled: the accuracy band and the drift of a real sensor, the
slow automatic
self-calibration itself (its settings are stored and read back), the current peaks of the lamp.
VERSION
TEP SCD41 CO2 Sensor library V1.0 (Nov 2026). Device SCD41TEP (TEPSCD41.LIB / TEPSCD41.DLL). Demo
sketch SCD41_Demo V1.0 (plain Wire, CRC-8). The demo also uses our 5mm LED (TEPLED5MM:
LED5MMGREENTEP, LED5MMYELLOWTEP, LED5MMREDTEP), Resistor (TEPRESISTOR) and Passive Buzzer
(TEPPASSIVE: BUZZERPASSIVETEP) libraries, shipped in this package. Demo board: ARDUINO UNO V4.0 (TEP
Arduino Library V4.0) with its built-in serial monitor.Development1 release
-
V1.0SCD41 CO2 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
Extract the archive
Right-click a1a0ee5477a04f7897c62383d46b8483.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (SCD41-CO2-Sensor-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV4TEP.LIB, TEPLED5MM.LIB and TEPPASSIVE.LIB and 2 more 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
Add the simulation model
Copy TEPARDUINO.DLL, TEPLED5MM.DLL and TEPPASSIVE.DLL and 2 more into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.
- 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
Open the sketch in the Arduino IDE
Open SCD41_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.
- 6
Load the HEX file
In Proteus double-click the microcontroller, set Program File to SCD41_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open SCD41-CO2-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 8
Follow the tutorial
SCD41 CO2 Sensor Library for Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download SCD41 CO2 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?
SCD41 CO2 Sensor Library for Proteus V1.0 comes as a ZIP archive of 19 files (2.1 MB, 4.7 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 19 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, d73815652ab750cee57aaa32d7f9b92fc9c3fedfb7c15a54db8d6979a59b67d6. In PowerShell run Get-FileHash "a1a0ee5477a04f7897c62383d46b8483.zip"; on macOS or Linux run shasum -a 256 "a1a0ee5477a04f7897c62383d46b8483.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.
Members skip the wait. Log in or join TEP.
- 0Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 25 Nov 2026Uploaded at
d73815652ab750cee57aaa32d7f9b92fc9c3fedfb7c15a54db8d6979a59b67d6
















Comments
0