Project Files of SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation
104333b8eb12493f93e4ef4e85e9ae65.zip

SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation V1.0
SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation V1.0 comes as a ZIP archive of 144 files (14.4 MB, 28.3 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, source code and a nested archive.
- LIBProteus library
- DLLProteus model
- DSNProteus simulation
- SRCSource code
- ZIPNested archive
Description
SCD41-Classroom-Air-Monitor-Raspberry-Pi-5-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (a Raspberry Pi 5, an SCD41 CO2 sensor, an SGP40 VOC sensor, a 1.8 inch ST7735 TFT, three 5 mm LEDs, the Laptop and Mobile WiFi Monitors), the Python program classroom_air.py, every LIB and DLL, the TEP Pi runtime and a README.
File Structure
39.5 KB21.8 KB13.1 KB306.9 KB60.5 KB17 KB14.6 KB58.4 KB3.3 MB34.3 KB620.8 KB36 KB169.8 KB628.1 KB99.3 KB65.3 KB4.8 MB4.1 MB80 B97.8 KB26.8 KB1.2 MB1.1 MB88.9 KB27.3 KB55.8 KB79.8 KB105.8 KB193.8 KB113.8 KB48.8 KB145.8 KB36.8 KB29.3 KB42.3 KB28.8 KB67.3 KB89.3 KB153.8 KB22.8 KB38.8 KB2.1 KB9.9 KB4.1 KB1.3 KB4.7 KB431 B2.5 KB17.5 KB283 B6.5 KB37.9 KB11.1 KB5.5 KB885 B13.6 KB9 KB878 B1.5 KB4 KB1004 B10 B110 B2.6 KB1.1 KB8.9 KB58.5 KB12.4 KB6.6 KB18.5 KB20.7 KB27.8 KB21.1 KB7.1 KB7.7 KB2.7 KB51.2 KB100.9 KB1.2 KB24.3 KB7.4 KB53.6 KB26.1 KB20.5 KB60.5 KB19.6 KB1.6 KB8.4 KB20.9 KB2.6 KB539 B1.4 KB9.7 KB2.8 KB21 B92 B7.9 KB264 B3.4 KB3.8 KB17.5 KB55.2 KB3.3 KB10.8 KB1.5 KB4.2 KB7.3 KB2.5 KB32.6 KB14.5 KB283 B17.4 KB257 B691 B14.5 KB12.8 KB3.6 KB1.7 KB37 KB418 B6.2 KB7 KB37.3 KB10.6 KB23.7 KB28.7 KB8.8 KB16.9 KB289.5 KB3.0 MB311 KB330.5 KB324 KB310.5 KB18.9 KB36.6 KB289.5 KB3.0 MB311 KB330.5 KB324 KB310.5 KB18.9 KB11.1 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation - Project V1.0
The Engineering Projects - www.TheEngineeringProjects.com
===============================================================================================================
IMPORTANT LINKS
The project tutorial (circuit, code, simulation results):
https://www.theengineeringprojects.com/2026/11/scd41-classroom-air-monitor-raspberry-pi-5-proteus-simulation.html
The libraries this project is built from (each post has its own full download and tutorial):
Raspberry Pi 5 board:
https://www.theengineeringprojects.com/2026/10/raspberry-pi-5-library-for-proteus.html
SCD41 CO2 sensor:
https://www.theengineeringprojects.com/2026/11/scd41-co2-sensor-library-for-proteus.html
SGP40 VOC sensor:
https://www.theengineeringprojects.com/2026/11/sgp40-voc-sensor-library-for-proteus.html
TFT ST7735:
https://www.theengineeringprojects.com/2026/10/tft-st7735-library-for-proteus-v1-0.html
5 mm LED:
https://www.theengineeringprojects.com/2026/11/5mm-led-library-for-proteus.html
Resistor:
https://www.theengineeringprojects.com/2026/11/resistor-library-for-proteus.html
Laptop WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/laptop-wifi-monitor-library-for-proteus.html
Mobile WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/mobile-wifi-monitor-library-for-proteus.html
Support our free work: https://www.theengineeringprojects.com/donate
FILE STRUCTURE
Pi-5-Classroom-Air-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPLAPTOP.LIB 39.5 KB a part of the project -> LIBRARY folder
| |-- TEPLED5MM.LIB 21.8 KB a part of the project -> LIBRARY folder
| |-- TEPMOBILE.LIB 13.1 KB a part of the project -> LIBRARY folder
| |-- TEPRESISTOR.LIB 306.9 KB a part of the project -> LIBRARY folder
| |-- TEPRPI5.LIB 60.5 KB a part of the project -> LIBRARY folder
| |-- TEPSCD41.LIB 17.0 KB a part of the project -> LIBRARY folder
| |-- TEPSGP40.LIB 14.6 KB a part of the project -> LIBRARY folder
| |-- TEPTFT.LIB 58.4 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPLED5MM.DLL 289.5 KB a model -> MODELS folder
| |-- TEPNET.DLL 3.01 MB a model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB a model -> MODELS folder
| |-- TEPSCD41.DLL 330.5 KB a model -> MODELS folder
| |-- TEPSGP40.DLL 324.0 KB a model -> MODELS folder
| |-- TEPTFT.DLL 310.5 KB a model -> MODELS folder
| |-- TEPPi/python/ 17.54 MB Python 3.11 embeddable -> MODELS\TEPPi (33 files)
| |-- TEPPi/runtime/ 1.11 MB TEP Pi runtime, gpiozero -> MODELS\TEPPi (87 files)
|-- Proteus Simulation/
| |-- classroom_air.py 18.9 KB the program PI1 runs
| |-- Pi-5-Classroom-Air.pdsprj 36.6 KB the project simulation
| |-- TEPLED5MM.DLL 289.5 KB copy of the model
| |-- TEPNET.DLL 3.01 MB copy of the model
| |-- TEPRESISTOR.DLL 311.0 KB copy of the model
| |-- TEPSCD41.DLL 330.5 KB copy of the model
| |-- TEPSGP40.DLL 324.0 KB copy of the model
| |-- TEPTFT.DLL 310.5 KB copy of the model
|-- Python Code/
| |-- classroom_air.py 18.9 KB the program (the same file)
|-- README.txt ~10.8 KB this file
Total: 28.34 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
In a closed classroom every breath out adds carbon dioxide. The CO2 level tells how much of the air in the room has
already been breathed by someone - the rebreathed fraction. A Raspberry Pi 5 reads an SCD41 CO2 sensor and an SGP40
VOC sensor and turns the numbers into what a teacher can act on.
* PI1 RASPBERRY PI 5 runs classroom_air.py on Ethernet at 192.168.1.51 (port 8000).
* U1 the SCD41 (SCD41TEP, I2C 0x62, PROFILE CLASSROOM - a class comes in at minute 2, the windows open at minute
35; SPEED 60, TEMP 22, HUMIDITY 45) and U2 the SGP40 (SGP40TEP, I2C 0x59, PROFILE STEADY, VOC 150 - lived-in air;
the pop-up's Spray chip: a cleaning spray) on I2C1: SDA GPIO2 (pin 3), SCL GPIO3 (pin 5), VCC 3.3 V (pin 1).
* TFT1 a TFT 1.8" ST7735 (TFT18ST7735ADVTEP) on SPI0: SDA = MOSI GPIO10 (pin 19), SCK = SCLK GPIO11 (pin 23),
CS = CE0 GPIO8 (pin 24), A0 = GPIO25 (pin 22), RESET = GPIO24 (pin 18), VCC / LED on 3.3 V.
* The traffic light: D1 green, D2 yellow, D3 red 5 mm LEDs (LED5MMGREENTEP, LED5MMYELLOWTEP, LED5MMREDTEP) from
GPIO17 / 27 / 22 (pins 11 / 13 / 15) through R1 - R3 220 ohm.
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.51:8000/.
What the program does:
the SCD41 start_periodic_measurement (0x21B1): a result every 5 s; get_data_ready_status (0xE4B8), then
read_measurement (0xEC05): CO2 ppm, temperature, humidity - every 16-bit word with its CRC-8
(polynomial 0x31, start 0xFF)
the SGP40 measure_raw_signal (0x260F) once a second with the room's humidity and temperature from the SCD41
as the compensation words; the raw signal falls when VOCs rise; a simplified VOC index: 100 = the
room's usual air (learned in the first half minute), one point per 25 counts below it, 1 - 500
rebreathed f = (CO2 - 420 ppm outdoors) / 38,000 ppm (exhaled air holds about 38,000 ppm more CO2)
ventilation at steady state Q = G / (CO2 - 420 ppm), G = 0.0043 L/s of CO2 a person at a desk (10 L/s a person
or more is the usual target, about 850 ppm); after the windows open, the air changes an hour from
the decay: ACH = ln((C1 - 420) / (C2 - 420)) / (t2 - t1)
the light green below 800 ppm, yellow 800 - 1400 (STUFFY), red 1400 and more (VENTILATE NOW)
the TFT the CO2 in its band's colour, the band, the rebreathed fraction, the ventilation, the VOC index and
a chart of the last 42 readings (only the columns that changed are sent)
ROOM_SPEED 60: the SCD41's room runs 60 x faster in the simulation (its SPEED) - a simulated second is a minute
of the lesson; the program converts its times with it; on a real monitor ROOM_SPEED = 1
Its pages:
/ the dashboard /data JSON
Python libraries: lgpio and spidev (both in the TEPPi runtime; on Raspberry Pi OS: python3-lgpio and python3-spidev);
threading, http.server.
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the lesson's minutes):
- Start: "SCD41 serial 9D57EE4410BF"; periodic measurement, a result every 5 minutes of the lesson, 0 CRC errors.
- Minute 5.5: 658 ppm, rebreathed 0.63 %, 18.1 L/s a person - FRESH, the green LED; the VOC index learning.
- Minute 10.6: 907 ppm, 1.28 %, 8.8 L/s - STUFFY, the yellow LED; minute 15.6: 1159 ppm, 5.8 L/s.
- Minute 20.1: the Spray chip - VOC INDEX 279 (SRAW 22172 against the usual 26649), on the TFT in red.
- Minute 25.8: 1513 ppm, 2.88 % - VENTILATE NOW, the red LED; minute 30.9: the peak, 1638 ppm, 3.21 %, 3.5 L/s.
- The windows open at minute 35: minute 40.8 "the CO2 is falling from 1638 ppm"; 1003 ppm, 689 ppm at minute 45.9 (9.0
air changes an hour), 533 ppm at 50.5 (10.1 an hour), 442 ppm at 60.8 - FRESH, the green LED again.
- 63.3 s of simulation (an hour of the lesson) in 262 s.
INSTALLATION
1. Close Proteus. Extract the WHOLE zip file, for example to your Desktop.
2. Copy the files from "Proteus Library Files" into the LIBRARY folder of Proteus, for example
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
3. Copy everything in "Proteus Model Files" - the DLL files and the TEPPi folder - into the MODELS folder (next
to LIBRARY).
4. Start Proteus. Press P in the schematic and search for RASPBERRY PI 5 or SCD41TEP to check that the parts are
there.
RUN THE SIMULATION
1. Open "Proteus Simulation\Pi-5-Classroom-Air.pdsprj". Keep classroom_air.py and the DLL files beside it.
2. Press Play. A simulated second is a minute of the lesson: the class comes in at minute 2, the windows open at 35.
3. Watch the traffic light and the TFT; open the Laptop or the Mobile WiFi Monitor (Go) for the dashboard. Click U2
for the SGP40's pop-up and press Spray for a cleaning spray.
PROPERTIES USED IN THIS PROJECT
PI1 RASPBERRY PI 5 PROGRAM=classroom_air.py, ETHERNET=IN (192.168.1.51)
U1 SCD41TEP PROFILE=CLASSROOM, CO2=450, TEMP=22, HUMIDITY=45, SPEED=60
U2 SGP40TEP PROFILE=STEADY, VOC=150, TEMP=22, HUMIDITY=45, SPEED=60
TFT1 TFT18ST7735ADVTEP; D1 - D3 LED5MM*TEP; R1 - R3 220; PC1, MOB1 HOMEPAGE=http://192.168.1.51:8000/
TROUBLESHOOTING
* "SCD41 serial not read": SDA / SCL on pins 3 / 5, VCC on 3.3 V; the SCD41 answers at 0x62.
* The CO2 never changes: the SCD41 gives a result only every 5 s; with ROOM_SPEED 60 that is 5 minutes of the lesson.
* The VOC index sits far from 100 in clean air: it learns the usual air in the first half minute - restart in
clean air.
* The TFT stays black: CS / RESET / A0 / SDA / SCK on pins 24 / 18 / 22 / 19 / 23, VCC and LED on 3.3 V.
LICENCES
* The project, the program, the parts (LIB files) and the models (DLL files) are made by The Engineering Projects
and are free for learning and for your own projects. The models use only standard Windows libraries.
The C++ source code of the models is not included; the source code is not included for any model.
* TEPPi\python is the Python 3.11 Windows embeddable package (Python Software Foundation License); TEPPi\runtime
holds our TEP Pi runtime with gpiozero and colorzero (BSD licences) - their licence files are inside the folders.
* The thresholds and the CO2 rates are typical values for learning; they are not medical advice.
* Proteus is a product of Labcenter Electronics and is not included. Raspberry Pi is a trademark of Raspberry Pi
Ltd; SCD41 and SGP40 are products of Sensirion. This project is not made or endorsed by them.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation 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.
Installation7 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
- Pythonto build the source files into firmware
- Any archive toolWindows, macOS and Linux extract ZIP files on their own
Steps
- 1
Extract the archive
Right-click 104333b8eb12493f93e4ef4e85e9ae65.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (Pi-5-Classroom-Air-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPLAPTOP.LIB, TEPLED5MM.LIB and TEPMOBILE.LIB and 5 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 TEPLED5MM.DLL, TEPNET.DLL and TEPRESISTOR.DLL and 10 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
Build the source code
Open classroom_air.py, attr.py and color.py and 28 more in the compiler named in the tutorial (MikroC, Keil, MPLAB, Code Composer or the Arduino IDE) and build it to get the firmware.
- 6
Open the example simulation
Open Pi-5-Classroom-Air.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 7
Follow the tutorial
SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs8 questionsContact TEP
How do I download SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation 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 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation V1.0 comes as a ZIP archive of 144 files (14.4 MB, 28.3 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, source code and a nested archive. Open the File Structure tab for the full list of 144 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, bccc1ec8984d38404bd232246049d94c70b3e50f6de9d3c7410eede265d5cfb1. In PowerShell run Get-FileHash "104333b8eb12493f93e4ef4e85e9ae65.zip"; on macOS or Linux run shasum -a 256 "104333b8eb12493f93e4ef4e85e9ae65.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.
Members skip the wait. Log in or join TEP.
- 0Total downloads
- 4%Popularity
- Raspberry PiCategory
- 0Comments
- ssyedzainnasirUploaded by
- 29 Nov 2026Uploaded at
bccc1ec8984d38404bd232246049d94c70b3e50f6de9d3c7410eede265d5cfb1






















Comments
0