TEP DOWNLOAD CENTER

Project Files of AS7341 Spectral Sensor Library for Proteus Simulation

Libraries Code Projects Simulation
tep://download-terminal 653be397a2de422ca2f23df973ede36e.zip ZIP archiveV1.0Verified0 downloadsFree
AS7341 Spectral Sensor Library for Proteus Simulation: an Arduino UNO V4.0, the AS7341 module and an OLED showing the spectrum
Proteus library · File 1 of 1

AS7341 Spectral Sensor Library for Proteus V1.0

AS7341 Spectral Sensor Library for Proteus V1.0 comes as a ZIP archive of 13 files (1.6 MB, 3.4 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

AS7341-Spectral-Sensor-Library-for-Proteus-v1.0.zip with the AS7341 spectral sensor for Proteus simulation (TEPAS7341.LIB and TEPAS7341.DLL), our SSD1306 OLED library, our Arduino UNO V4.0, the A4 demo with its sketch and a README.

Read AS7341 Spectral Sensor Library for Proteus Simulation

File Structure

653be397a2de422ca2f23df973ede36e.zip13 files · 5 folders · 3.4 MB unpacked
AS7341-Spectral-Sensor-TEP-v1.0/13 files · 3.4 MB
Arduino Code/1 file · 8.9 KB
AS7341_Demo/1 file · 8.9 KB
INO AS7341_Demo.inoArduino sketch 8.9 KB
Proteus Library Files/3 files · 331.1 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEPAS7341.LIBProteus library 16.8 KB
LIB TEPOLED12864.LIBProteus library 112.4 KB
Proteus Model Files/3 files · 1.5 MB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPAS7341.DLLSimulation model 321.5 KB
DLL TEPOLED.DLLSimulation model 342.5 KB
Proteus Simulation/5 files · 1.6 MB
DSN AS7341-Spectral-ArduinoUnoV4.pdsprjProteus simulation 20.3 KB
HEX AS7341_Demo.hexCompiled HEX file 23.7 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPAS7341.DLLSimulation model 321.5 KB
DLL TEPOLED.DLLSimulation model 342.5 KB
TXT README.txtText file 14.3 KB

README

README.txt 249 lines
AS7341 SPECTRAL SENSOR LIBRARY FOR PROTEUS SIMULATION - V1.0 (11 spectral channels 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/as7341-spectral-sensor-library-for-proteus.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/photodiode-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 spectrum is drawn on our SSD1306 OLED (in this zip; its article):
  https://www.theengineeringprojects.com/2026/10/oled-ssd1306-library-for-proteus-v1-0.html
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
AS7341-Spectral-Sensor-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                              201.9 KB   TEP Arduino boards V4.0 (UNO) -> LIBRARY
|   |-- TEPAS7341.LIB                                  16.8 KB   the library -> LIBRARY folder
|   |-- TEPOLED12864.LIB                              112.4 KB   a part the demo uses -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPARDUINO.DLL                                883.5 KB   the Arduino board model -> MODELS folder
|   |-- TEPAS7341.DLL                                 321.5 KB   the model -> MODELS folder
|   |-- TEPOLED.DLL                                   342.5 KB   its model -> MODELS folder
|-- Proteus Simulation/
|   |-- AS7341_Demo.hex                                23.7 KB   the demo firmware
|   |-- AS7341-Spectral-ArduinoUnoV4.pdsprj            20.3 KB   the demo project
|   |-- TEPARDUINO.DLL                                883.5 KB   copy of the board model
|   |-- TEPAS7341.DLL                                 321.5 KB   copy of the model
|   |-- TEPOLED.DLL                                   342.5 KB   copy of its model
|-- Arduino Code/
|   |-- AS7341_Demo/AS7341_Demo.ino                     8.9 KB   the demo sketch (source of the .hex)
|-- README.txt                                        ~15.4 KB   this file
Total: 3.41 MB (unzipped). The C++ source code of the models is not included.

WHAT IS IT?
An AS7341 11-channel spectral sensor module, drawn at its real size (20 x 17 mm) from above: the
black board, the sensor (a
3.1 x 2.0 mm package with its diffuser window), a white LED driven by the sensor's LDR pin, a 3.3 V
regulator, an I2C level
shifter, the pull-ups and a PWR LED. The module is our own drawing (no maker's mark); the registers
follow the maker's register
map:
  * I2C at 0x39. The first byte of a write is the register address; reads and writes then
    auto-increment. ID (0x92) = 0x24.
  * Eight visible channels F1 - F8 (415, 445, 480, 515, 555, 590, 630, 680 nm), Clear and NIR (910
    nm) - but only six ADCs. The
    SMUX connects the photodiodes to them: write the 20 bytes of the SMUX RAM (0x00 - 0x13, one
    nibble a photodiode: the ADC
    number + 1), set CFG6 = 0x10 (SMUX_CMD write) and ENABLE's SMUXEN; it clears when done. A full
    spectrum is two
    measurements: F1 - F4 + Clear + NIR, then F5 - F8 + Clear + NIR.
  * ENABLE (0x80): PON, SP_EN (measure), WEN, SMUXEN. Integration = (ATIME + 1) x (ASTEP + 1) x 2.78
    us, full scale
    (ATIME + 1) x (ASTEP + 1); the gain AGAIN (CFG1) 0.5x - 512x. AVALID (STATUS2 bit 6) when a
    measurement is ready; then
    ASTATUS (0x94) and CH0 - CH5 (0x95 - 0xA0).
  * The LED register (0x74, register bank 1 - CFG0 REG_BANK) switches the white LED: LED_ACT and the
    drive, 4 - 258 mA.
  * On the sheet the module comes alive at Run: PWR lights with the supply, the diffuser takes the
    colour of the light it
    measures (our addition), and the white LED lights when it is switched on. Click it at Run for
    the pop-up: the light's
    spectrum, the ten channels as bars, the readings and the light 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 "AS7341" or "spectral" in Pick Devices):
  AS7341TEP  "AS7341 Spectral Sensor V1.0" in TEPAS7341.LIB (Sensors > Optical), prefix U, model
  TEPAS7341.DLL (mixed: analog
            and digital). Five pins along the bottom: VIN (3.3 - 5 V), GND, SCL, SDA, INT (open
            drain, active LOW).

THE POP-UP
Click the part at Run. Tabs:
    Spectral Sensor  chips: the light (Daylight, Warm bulb, White LED, Fluorescent, Grow light,
    Dark) and Demo (the scene
                again from now). The light's spectrum from 380 to 950 nm; F1 - F8, Clear and NIR as
                bars against full scale,
                the bands of the last measurement bright; eight tiles: the light, its brightness,
                the SMUX map, the
                measurements, the integration time, the gain and saturation, the white LED and the
                I2C traffic.
    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 20 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 26 simulated seconds in 208 s on our PC with
    the pop-up open and the pictures
    being taken.
  * The sketch read the ID (0x24), set ATIME 29 / ASTEP 599 (50 ms, full scale 18000) and the gain
    16x; for every spectrum it wrote
    the F1-F4 SMUX map, measured, wrote the F5-F8 map and measured again - about 6 spectra a second
    - and drew it on the OLED.
  * Daylight: F1-F8 6084 7227 7228 6878 6873 6485 6105 5779, Clear 5978, NIR 7179 - DAYLIGHT. A warm
    bulb: 343 ... 3657 rising
    to the red, NIR 8673 - WARM BULB. A white LED: F2 5781 with F3 2017, NIR 116 - WHITE LED. A
    fluorescent tube: F5 6498 against
    F4 2599 and F6 3247 - FLUORESCENT. A grow light: F2 5036 and F8 4022, the green bands about 250
    - GROW LIGHT. Dark: every
    channel below 10 - DARK, the bars flat. Daylight again at 24 s: within a few counts of the first
    reading.
  * 311 measurements, none saturated; 8690 reads, 0 not acknowledged. The pop-up: Spectral 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" (TEPAS7341.LIB, TEPOLED12864.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 TEPAS7341.DLL, TEPOLED.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the MODELS
folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPAS7341.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "AS7341".

RUN THE DEMO
"Proteus Simulation\AS7341-Spectral-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex file and the
DLLs beside the project.
  A light-source identifier:
  ARD1:   Arduino UNO V4.0 running AS7341_Demo.hex, its serial monitor built in (window "TEP Arduino
  UNO - ARD1").
  U1:     the AS7341 module: PROFILE DEMO (daylight, then a warm bulb at 4 s, a white LED at 8 s, a
  fluorescent tube at 12 s, a
          grow light at 16 s, dark at 20 s and daylight again at 24 s), LIGHT DAYLIGHT, LUX 500; VIN
          on VCC, GND, SCL on A5,
          SDA on A4 (INT is not used).
  OLED1:  our SSD1306 OLED, 128 x 64, yellow and blue (0x3C, the same I2C bus): the light's name and
  nine bars.
          The sketch sets ATIME 29, ASTEP 599 (50 ms, full scale 18000) and the gain 16x. For each
          spectrum it writes the
          F1-F4 SMUX map and measures, then the F5-F8 map and measures, names the light from the
          spectrum's shape (near-
          infrared: daylight or a warm bulb; red and blue: a grow light; a green line: fluorescent;
          a blue peak: a white LED)
          and draws F1 - F8 and NIR as bars.
Closed the monitor? Click the UNO's USB port.

WIRING (the same in Proteus and on a real board)
  VIN to 3.3 V or 5 V (the module has its own regulator and level shifter), GND to ground, SCL to
  the I2C clock (A5 on an UNO),
  SDA to the I2C data (A4); INT to an input if you use the spectral interrupt.
REAL HARDWARE:
 * The bare AS7341 runs at 1.8 V: on a 5 V board use a module with a regulator and a level shifter,
   as here.
 * Turn SP_EN off before changing the SMUX, and wait for SMUXEN to clear before measuring again.
 * Watch for saturation (ASAT): lower the gain or ATIME / ASTEP when a channel reaches full scale.
 * The counts are raw: light sources and colours are told apart by their ratios; absolute values
   need a calibration.

THE DEMO SKETCH ON THE SERIAL MONITOR (AS7341_Demo V1.0, 9600 baud)
The sketch prints each change of the light. EXPECTED MONITOR OUTPUT
  AS7341 light-source identifier - The Engineering Projects
  ID 0x24 - AS7341 found
  DAYLIGHT  F1-F8 .... .... .... .... .... .... .... ....  Clear ....  NIR ....

PROPERTIES (double-click the part > Edit Properties)
  The scene (PROFILE)                   DEMO (the lights change every 4 s) or STEADY (the light
  below; the chips change it) (DEMO)
  The light at the start (LIGHT)        DAYLIGHT, BULB, LED, FLUORESCENT, GROW or DARK (DAYLIGHT)
  Its brightness (LUX)                  0 - 50000 lux (500)
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 TEPAS7341.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 ID 0x24: check SDA / SCL and VIN; the module answers at 0x39.
* AVALID never comes: SP_EN is off, or PON is 0.
* The F5 - F8 values look like F1 - F4: the SMUX was not written - SP_EN off, CFG6 = 0x10, the 20
  bytes, then SMUXEN.
* Every value is the same and high: saturation - lower the gain (CFG1) or the integration (ATIME,
  ASTEP).
* The part is not simulated: TEPAS7341.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPAS7341.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/photodiode-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 (TEPAS7341.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\AS7341_Demo\AS7341_Demo.ino, select Arduino Uno and use Sketch > Export Compiled
Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 8,600 bytes of flash
and 513 bytes of RAM.

MODEL SCOPE AND LIMITS
Modelled: the register map and its reset values, auto-increment, register bank 1 (CONFIG, LED); the
SMUX RAM, the SMUX commands
(write, read, the ROM map) and SMUXEN; SP_EN, WEN, ATIME / ASTEP and the gain; AVALID, ASTATUS, the
six ADC channels and saturation;
the spectral threshold interrupt on INT; the white LED; the scene (PROFILE, the chips), the supply
current. Our choices: the counts
(the light's relative power in each band x 0.05 x lux x the gain x the integration steps / 1000, an
ADC adding the photodiode halves
the SMUX connects to it), the spectra of the six lights, the white LED reflected by a 50 % white
surface, the ROM's map taken as the
F1-F4 split, the timing. Not modelled: flicker detection, the FIFO, the automatic gain control, the
interrupt persistence and the
exact filter curves of the photodiodes.

VERSION
TEP AS7341 Spectral Sensor library V1.0 (Nov 2026). Device AS7341TEP (TEPAS7341.LIB /
TEPAS7341.DLL). Demo sketch AS7341_Demo V1.0 (plain Wire, our own light identifier and OLED
drawing). The demo also uses our SSD1306 OLED library (TEPOLED12864: OLED12864YELLOWBLUEADVTEP,
TEPOLED.DLL), shipped in this package. Demo board: ARDUINO UNO V4.0 (TEP Arduino Library V4.0) with
its built-in serial monitor.
Advertisement

Development1 release

  1. V1.0AS7341 Spectral 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 653be397a2de422ca2f23df973ede36e.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (AS7341-Spectral-Sensor-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB, TEPAS7341.LIB and TEPOLED12864.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, TEPAS7341.DLL and TEPOLED.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 AS7341_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 AS7341_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open AS7341-Spectral-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

    AS7341 Spectral Sensor Library for Proteus Simulation 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 AS7341 Spectral 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?

AS7341 Spectral Sensor Library for Proteus V1.0 comes as a ZIP archive of 13 files (1.6 MB, 3.4 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 13 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, 4d0ca3bfe66270c794eaa1814619d35c18fbfa47bc17f0e7aa076221bde32fc2. In PowerShell run Get-FileHash "653be397a2de422ca2f23df973ede36e.zip"; on macOS or Linux run shasum -a 256 "653be397a2de422ca2f23df973ede36e.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 · 653be397a2de422ca2f23df973ede36e.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 0Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 25 Nov 2026Uploaded at
Last 14 days0 downloads
SHA-256 4d0ca3bfe66270c794eaa1814619d35c18fbfa47bc17f0e7aa076221bde32fc2
DocumentationAS7341 Spectral Sensor Library for Proteus Simulation
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.