TEP DOWNLOAD CENTER

Project Files of ML8511 UV Sensor Library for Proteus Simulation

Libraries Code Projects Simulation
tep://download-terminal ef5babd6abf64127a1a7288332129051.zip ZIP archiveV1.0Verified0 downloadsFree
ML8511 UV Sensor Library for Proteus Simulation: an Arduino UNO V4.0, the ML8511 module, an RGB LED and a buzzer
Proteus library · File 1 of 1

ML8511 UV Sensor Library for Proteus V1.0

ML8511 UV 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

ML8511-UV-Sensor-Library-for-Proteus-v1.0.zip with the ML8511 UV sensor for Proteus simulation (TEPML8511.LIB and TEPML8511.DLL), our RGB LED, Passive Buzzer and Resistor libraries, our Arduino UNO V4.0, the A4 demo with its sketch and a README.

Read ML8511 UV Sensor Library for Proteus Simulation

File Structure

ef5babd6abf64127a1a7288332129051.zip19 files · 5 folders · 4.7 MB unpacked
ML8511-UV-Sensor-TEP-v1.0/19 files · 4.7 MB
Arduino Code/1 file · 3.5 KB
ML8511_Demo/1 file · 3.5 KB
INO ML8511_Demo.inoArduino sketch 3.5 KB
Proteus Library Files/5 files · 550.7 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEPML8511.LIBProteus library 14.5 KB
LIB TEPPASSIVE.LIBProteus library 13.4 KB
LIB TEPRESISTOR.LIBProteus library 306.9 KB
LIB TEPRGB.LIBProteus library 13.9 KB
Proteus Model Files/5 files · 2.0 MB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPML8511.DLLSimulation model 316 KB
DLL TEPPASSIVE.DLLSimulation model 288.5 KB
DLL TEPRESISTOR.DLLSimulation model 311 KB
DLL TEPRGB.DLLSimulation model 287 KB
Proteus Simulation/7 files · 2.1 MB
DSN ML8511-UV-ArduinoUnoV4.pdsprjProteus simulation 24.5 KB
HEX ML8511_Demo.hexCompiled HEX file 20.3 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPML8511.DLLSimulation model 316 KB
DLL TEPPASSIVE.DLLSimulation model 288.5 KB
DLL TEPRESISTOR.DLLSimulation model 311 KB
DLL TEPRGB.DLLSimulation model 287 KB
TXT README.txtText file 14.4 KB

README

README.txt 244 lines
ML8511 UV SENSOR LIBRARY FOR PROTEUS SIMULATION - V1.0 (UV-A and UV-B as an analog voltage, 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/ml8511-uv-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 index lamp is our RGB LED library (in this zip; its article):
  https://www.theengineeringprojects.com/2026/11/rgb-led-library-for-proteus.html
The alarm is our Passive Buzzer library (in this zip; its article):
  https://www.theengineeringprojects.com/2026/11/passive-buzzer-library-for-proteus.html
The resistors are our Resistor library (in this zip):
  https://www.theengineeringprojects.com/2026/11/resistor-library-for-proteus.html
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
ML8511-UV-Sensor-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                              201.9 KB   TEP Arduino boards V4.0 (UNO) -> LIBRARY
|   |-- TEPML8511.LIB                                  14.5 KB   the library -> 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
|   |-- TEPRGB.LIB                                     13.9 KB   a part the demo uses -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPARDUINO.DLL                                883.5 KB   the Arduino board model -> MODELS folder
|   |-- TEPML8511.DLL                                 316.0 KB   the model -> MODELS folder
|   |-- TEPPASSIVE.DLL                                288.5 KB   its model -> MODELS folder
|   |-- TEPRESISTOR.DLL                               311.0 KB   its model -> MODELS folder
|   |-- TEPRGB.DLL                                    287.0 KB   its model -> MODELS folder
|-- Proteus Simulation/
|   |-- ML8511_Demo.hex                                20.3 KB   the demo firmware
|   |-- ML8511-UV-ArduinoUnoV4.pdsprj                  24.5 KB   the demo project
|   |-- TEPARDUINO.DLL                                883.5 KB   copy of the board model
|   |-- TEPML8511.DLL                                 316.0 KB   copy of the model
|   |-- TEPPASSIVE.DLL                                288.5 KB   copy of its model
|   |-- TEPRESISTOR.DLL                               311.0 KB   copy of its model
|   |-- TEPRGB.DLL                                    287.0 KB   copy of its model
|-- Arduino Code/
|   |-- ML8511_Demo/ML8511_Demo.ino                     3.5 KB   the demo sketch (source of the .hex)
|-- README.txt                                        ~15.0 KB   this file
Total: 4.67 MB (unzipped). The C++ source code of the models is not included.

WHAT IS IT?
An ML8511 UV sensor module, drawn at its real size (18 x 12 mm) from above: the blue board, the
sensor (a 4.0 x 3.7 mm clear-
moulded package, its die visible), a 3.3 V regulator, its capacitors and a PWR LED. The module is
our own drawing (no maker's
mark); the behaviour follows the maker's datasheet:
  * The ML8511 is a photodiode for UV-A and UV-B (about 280 - 390 nm) with an amplifier: its OUT is
    an analog voltage, about
    0.99 V in the dark, rising linearly to about 2.8 V at 15 mW/cm2. Intensity = (VOUT - 0.99) x 15
    / (2.8 - 0.99) mW/cm2.
  * EN high = active (about 300 uA), EN low = standby (about 0.1 uA; OUT falls to 0 V). Tie EN to
    3V3 to keep it on.
  * The module's regulator gives 3.3 V on its 3V3 pin. Read OUT and 3V3 on two analog pins: VOUT =
    3.3 x A(OUT) / A(3V3)
    cancels the board's own supply error.
  * On the sheet the module comes alive at Run: PWR lights with the supply and the die glows violet
    with the UV it sees (UV
    itself is invisible - our way of showing it). Click it at Run for the pop-up: the sky with the
    sun and the clouds, the UV
    and OUT through the day, the readings and the sky 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 "ML8511" or "UV" in Pick Devices):
  ML8511TEP  "ML8511 UV Sensor V1.0" in TEPML8511.LIB (Sensors > Optical), prefix U, model
  TEPML8511.DLL (analog). Five pins along
            the bottom: VIN (3.3 - 5 V), 3V3 (the regulator's output), GND, OUT (the UV voltage), EN
            (high = on).

THE POP-UP
Click the part at Run. Tabs:
    UV Sensor  chips: the UV (Night, Morning, Noon, UV lamp - a UV LED torch close by), Cloud and
    Shade (on / off) and Day (the
                summer day again from 06:00). The sky - its colour by the hour, the sun on its arc,
                the cloud; the UV (violet,
                mW/cm2) and OUT (blue, V) through the day; eight tiles: the UV, OUT, the UV index
                estimate, the sky, 3V3, EN,
                VIN and the sensor's current.
    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 24.5 simulated seconds - a summer day from
    06:00 to after sunset at half an hour
    a second - in 300 s on our PC with the pop-up open and the pictures being taken.
  * The module's regulator gave 3.30 V on 3V3 (EN tied to it: active). OUT followed the maker's
    line: 0.99 V before sunrise, 1.059 V at
    07:00 (0.57 mW/cm2, index about 1, the RGB LED green), 1.260 V at 08:15 (2.24 mW/cm2, yellow),
    1.525 V at 09:36 (4.44, orange),
    1.669 V at 10:30 (5.63, red, the buzzer chirping), 1.774 V at noon (6.50 mW/cm2, index 11 -
    EXTREME, violet).
  * The cloud from 12:30: 1.322 V at 13:00 (2.75 mW/cm2, index 5, yellow); the sun again: 1.596 V at
    14:00 (5.02, red); 1.216 V at
    16:00 (1.87, yellow); 0.990 V after sunset (green). The sketch's readings (3.3 x A0 / A1)
    matched OUT within a few mV.
  * The pop-up: UV 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" (TEPML8511.LIB, TEPRGB.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 TEPML8511.DLL, TEPRGB.DLL, TEPRESISTOR.DLL, TEPPASSIVE.DLL and TEPARDUINO.DLL from "Proteus
Model Files" to the MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPML8511.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "ML8511".

RUN THE DEMO
"Proteus Simulation\ML8511-UV-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex file and the DLLs
beside the project.
  A UV index lamp:
  ARD1:   Arduino UNO V4.0 running ML8511_Demo.hex, its serial monitor built in (window "TEP Arduino
  UNO - ARD1").
  U1:     the ML8511 module: PROFILE DAY (a summer day from 06:00, half an hour every simulated
  second - SPEED 1800 - the sun's
          UV peaking at 6.5 mW/cm2 at noon, a cloud from 12:30 to 13:30, sunset at 18:00); VIN on
          VCC, 3V3 on the net "3V3"
          (to A1 and to EN), GND, OUT on A0.
  D1:     our RGB LED (common cathode): R on D9 through 150 ohm, G on D10 and B on D11 through 100
  ohm each.
  BZ1:    our passive buzzer on D8 through 100 ohm.
          Every 500 ms the sketch averages 8 readings of A0 and of A1, takes VOUT = 3.3 x A0 / A1
          and the intensity from the
          maker's line, and estimates the UV index for sunlight (1.7 per mW/cm2 - our rough rule).
          The RGB LED shows the index
          in its usual colours: green (low), yellow (moderate), orange (high), red (very high),
          violet (extreme); from "very
          high" the buzzer chirps every 2 s.
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's regulator makes 3.3 V), GND to ground, OUT to an analog input
  (A0), 3V3 to a second analog
  input (A1) as the reference, EN to 3V3 (or to a 3.3 V output to switch the sensor).
REAL HARDWARE:
 * The ML8511 sees UV-A and UV-B, not the sunburn-weighted UV index: a true index needs a weighted
   sensor; for sunlight an
   estimate from the intensity is fair, for a UV lamp it is not.
 * Glass and plastic block UV-B and much of UV-A: put the sensor behind a UV-transparent window
   (quartz, PTFE) or none.
 * Average a few readings and read OUT against the module's 3.3 V: the 0.12 V per mW/cm2 slope is
   small next to a 5 V
   board's supply errors.
 * EN can switch the sensor off between readings to save power (0.1 uA in standby); give it a
   millisecond to wake.

THE DEMO SKETCH ON THE SERIAL MONITOR (ML8511_Demo V1.0, 9600 baud)
The sketch prints every 2 s and at each change of the level. EXPECTED MONITOR OUTPUT
  ML8511 UV index lamp - The Engineering Projects
  OUT on A0, the module's 3.3 V on A1: VOUT = 3.3 x A0 / A1
  t=.. s  OUT 1.0.. V  UV 0.0. mW/cm2  index ~0  LOW

PROPERTIES (double-click the part > Edit Properties)
  The sky (PROFILE)                     DAY (sunrise to sunset, a cloud after noon) or STEADY (the
  UV below; the chips change it) (DAY)
  The UV at the start (UV)              STEADY: 0 - 20 mW/cm2 (0)
  The sun at noon (PEAK)                DAY: 0 - 15 mW/cm2 (6.5)
  The day's clock (SPEED)               1 real time, 1800 half an hour each simulated second (1800)
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 TEPML8511.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
* OUT is 0 V: EN is low (tie it to 3V3) or VIN is missing.
* OUT stays at about 1 V: no UV - glass in the way, the shade, or the night.
* The intensity wanders with the board's 5 V: read OUT against the module's 3V3 (A1) instead of the
  5 V reference.
* The part is not simulated: TEPML8511.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPML8511.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 (TEPML8511.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\ML8511_Demo\ML8511_Demo.ino, select Arduino Uno and use Sketch > Export Compiled
Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 7,398 bytes of flash
and 331 bytes of RAM.

MODEL SCOPE AND LIMITS
Modelled: OUT = 0.99 V + 0.12 V per mW/cm2 (the maker's line), its settling, its limit, standby with
EN low; the regulator's 3.3 V
on 3V3 and its dropout; the supply current; the sun's UV through a day, a cloud, the shade, a UV
lamp (PROFILE, PEAK, SPEED, the
chips). Our choices: the day's curve (PEAK x sin(pi (h - 6) / 12)^1.8), the cloud (x 0.45) and the
shade (x 0.3), OUT's 2 ms settling,
its 3.0 V limit and 3 mV of noise, and the UV index estimate (1.7 per mW/cm2, sunlight only). Not
modelled: the spectral response
curve, the temperature drift and the sensor's angle of view.

VERSION
TEP ML8511 UV Sensor library V1.0 (Nov 2026). Device ML8511TEP (TEPML8511.LIB / TEPML8511.DLL). Demo
sketch ML8511_Demo V1.0 (analogRead against the module's 3.3 V, our UV index estimate). The demo
also uses our RGB LED (TEPRGB: LEDRGBCCTEP), Passive Buzzer (TEPPASSIVE) and Resistor (TEPRESISTOR)
libraries, 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.0ML8511 UV 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 ef5babd6abf64127a1a7288332129051.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (ML8511-UV-Sensor-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB, TEPML8511.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. 3

    Add the simulation model

    Copy TEPARDUINO.DLL, TEPML8511.DLL and TEPPASSIVE.DLL and 2 more 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 ML8511_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 ML8511_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open ML8511-UV-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

    ML8511 UV 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 ML8511 UV 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?

ML8511 UV 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, ef4025a1bc5796777b14048ee562def5dde91532f9ba82a9c0cab1cf54c491ee. In PowerShell run Get-FileHash "ef5babd6abf64127a1a7288332129051.zip"; on macOS or Linux run shasum -a 256 "ef5babd6abf64127a1a7288332129051.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 · ef5babd6abf64127a1a7288332129051.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 ef4025a1bc5796777b14048ee562def5dde91532f9ba82a9c0cab1cf54c491ee
DocumentationML8511 UV 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.