TEP DOWNLOAD CENTER

Project Files of XL4015 CC CV Buck Converter Library for Proteus Simulation

Libraries Code Projects Simulation
tep://download-terminal 82f2225501214d44a4feec5ca88bbccb.zip ZIP archiveV1.0Verified0 downloadsFree
XL4015 CC CV Buck Converter Library for Proteus Simulation: the XL4015 board charging an 18650 cell with an INA219 and an Arduino UNO V4.0
Proteus library · File 1 of 1

XL4015 CC CV Buck Converter Library for Proteus V1.0

XL4015 CC CV Buck Converter Library for Proteus V1.0 comes as a ZIP archive of 16 files (1.8 MB, 3.9 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

XL4015-CC-CV-Buck-Converter-Library-for-Proteus-v1.0.zip with the XL4015 CC CV buck converter for Proteus simulation (TEPXL4015.LIB and TEPXL4015.DLL), our 18650 cell and INA219, our Arduino UNO V4.0, the A4 demo, its sketch and a README.

Read XL4015 CC CV Buck Converter Library for Proteus Simulation

File Structure

82f2225501214d44a4feec5ca88bbccb.zip16 files · 5 folders · 3.9 MB unpacked
XL4015-CC-CV-Buck-Converter-TEP-v1.0/16 files · 3.9 MB
Arduino Code/1 file · 3.5 KB
XL4015_Demo/1 file · 3.5 KB
INO XL4015_Demo.inoArduino sketch 3.5 KB
Proteus Library Files/4 files · 296 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEP18650.LIBProteus library 11.9 KB
LIB TEPINA219.LIBProteus library 62.6 KB
LIB TEPXL4015.LIBProteus library 19.6 KB
Proteus Model Files/4 files · 1.8 MB
DLL TEP18650.DLLSimulation model 319.5 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPINA219.DLLSimulation model 319.5 KB
DLL TEPXL4015.DLLSimulation model 305.5 KB
Proteus Simulation/6 files · 1.8 MB
DLL TEP18650.DLLSimulation model 319.5 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPINA219.DLLSimulation model 319.5 KB
DLL TEPXL4015.DLLSimulation model 305.5 KB
DSN XL4015-LiIon-Charger-ArduinoUnoV4.pdsprjProteus simulation 22.7 KB
HEX XL4015_Demo.hexCompiled HEX file 23 KB
TXT README.txtText file 13 KB

README

README.txt 220 lines
XL4015 CC CV BUCK CONVERTER LIBRARY FOR PROTEUS SIMULATION - V1.0 (a 5 A CC / CV step-down board, 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/xl4015-cc-cv-buck-converter-library-for-proteus.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/motor-driver-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
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
XL4015-CC-CV-Buck-Converter-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                              201.9 KB   TEP Arduino boards V4.0 (UNO) -> LIBRARY
|   |-- TEP18650.LIB                                   11.9 KB   a part the demo uses -> LIBRARY folder
|   |-- TEPINA219.LIB                                  62.6 KB   a part the demo uses -> LIBRARY folder
|   |-- TEPXL4015.LIB                                  19.6 KB   the library -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEP18650.DLL                                  319.5 KB   its model -> MODELS folder
|   |-- TEPARDUINO.DLL                                883.5 KB   the Arduino board model -> MODELS folder
|   |-- TEPINA219.DLL                                 319.5 KB   its model -> MODELS folder
|   |-- TEPXL4015.DLL                                 305.5 KB   the model -> MODELS folder
|-- Proteus Simulation/
|   |-- TEP18650.DLL                                  319.5 KB   copy of its model
|   |-- TEPARDUINO.DLL                                883.5 KB   copy of the board model
|   |-- TEPINA219.DLL                                 319.5 KB   copy of its model
|   |-- TEPXL4015.DLL                                 305.5 KB   copy of the model
|   |-- XL4015_Demo.hex                                23.0 KB   the demo firmware
|   |-- XL4015-LiIon-Charger-ArduinoUnoV4.pdsprj       22.7 KB   the demo project
|-- Arduino Code/
|   |-- XL4015_Demo/XL4015_Demo.ino                     3.5 KB   the demo sketch (source of the .hex)
|-- README.txt                                        ~13.8 KB   this file
Total: 3.92 MB (unzipped). The C++ source code of the models is not included.

WHAT IS IT?
The common XL4015 5 A constant-voltage / constant-current step-down board, drawn from the top at its
real size: the 51 x 26 mm blue board,
the IN and OUT pads, the XL4015E1, the toroid inductor, the SS54 Schottky, the LM358 and the 0.05
ohm shunt of the current loop, the two
220 uF capacitors, the CV and CC multi-turn trimmers, the small FULL trimmer and the CC / CHG / FULL
LEDs. The drawing is our own; the model
follows the XL4015 datasheet and the board's circuit:
  * 5 - 36 V in, 1.25 - 32 V out (the CV trimmer: VOUT), the current limit 0.05 - 5 A (the CC
    trimmer: IOUT), 180 kHz.
  * CV: the board holds the voltage; CC: when the load asks for more than IOUT the LM358 takes over
    and the board holds the current while the
    voltage follows the load - a battery charger, an LED driver or a bench supply with a current
    limit.
  * The LEDs: CC (red) in current limit, CHG (red) while the current is above FULL % of IOUT, FULL
    (blue) below it - the end of a charge.
  * The averaged buck with its losses (the MOSFET, the diode, the switching, the quiescent current),
    dropout, the chip's temperature.
  * Click the part for the pop-up: the CC / CV curve with the working point, the output's trend, the
    efficiency, the LEDs; 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 "XL4015", "CC CV" or "buck" in Pick Devices):
  XL4015CCCVTEP  "XL4015 CC CV Buck Converter V1.0" in TEPXL4015.LIB (Modules > Power), prefix U,
  model TEPXL4015.DLL (analog).
                 Pins: IN+ IN- (left), OUT+ OUT- (right). OUT- is joined to IN- through the board's
                 0.05 ohm shunt.
  The demo also uses our 18650 Li-ion cell (LIION18650TEP, TEP18650) and our INA219 current sensor
  (INA219ADVTEP, TEPINA219).

THE POP-UP
Click the part at Run. Tabs:
    Converter   The CC / CV curve (the CV line, the CC line, the FULL mark) with the working point;
    the output's voltage and current over the
                last seconds; tiles: the input, the output, the mode, the efficiency, the settings,
                the LEDs, the duty and the ripple, the chip.
    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 21 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 4.0 simulated seconds in about 2 minutes on
    our PC with the pop-up open and the
    pictures being taken. The 18650 cell starts at 20 % with a battery clock x 3600 (an hour each
    simulated second).
  * Power-up: CV 4.20 V, CC 1.00 A, FULL under 10 % (0.100 A); 12.00 V in; within 2 ms the current
    reached 1.000 A: CC (the CC and CHG LEDs).
  * CC at 0.7 s: 1.000 A at 4.05 V out, 0.377 A / 4.53 W in, 89.6 %, duty 37 %; the cell climbing
    from 3.91 V.
  * CV from 1.18 s: 0.845 A at 1.4 s (90.4 %), 0.273 A at 2.2 s (4.186 V on the terminals, 87.3 %).
  * FULL at 2.87 s: under 0.099 A, the blue LED; the sketch: "Charge complete: 1790 mAh in 2.75 h of
    battery time"; 0.036 A at 4 s.
  * The INA219 and the Arduino followed the charge four times a second; no limit reached; the chip
    at 25 C.
  * The pop-up (Converter, Graphs, Event log, Check) 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" (TEPXL4015.LIB, TEP18650.LIB, TEPINA219.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 TEPXL4015.DLL, TEP18650.DLL, TEPINA219.DLL and TEPARDUINO.DLL from "Proteus Model Files" to
the MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPXL4015.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "XL4015".

RUN THE DEMO
"Proteus Simulation\XL4015-LiIon-Charger-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex file and
the DLLs beside the project.
  ARD1:   Arduino UNO V4.0 running XL4015_Demo.hex (window "TEP Arduino UNO - ARD1"): A4 / A5 = SDA
  / SCL to the INA219.
  U1:     the XL4015 board (VOUT 4.20, IOUT 1.00, FULL 10): IN+ on +12V, IN- to the ground, OUT+ to
  the INA219's VIN+, OUT- to the cell's -.
  U2:     our INA219 (I2C 0x40): its 0.1 ohm shunt between the charger and the cell's +.
  BAT1:   our 18650 cell, SOC 20 %, SPEED 3600 (an hour of battery time each simulated second).
  The sketch prints the cell's voltage, the charge current, the phase (CC, CV, FULL) and the
  milliamp-hours every 250 ms.
Closed the monitor? Click the UNO's USB port.

WIRING (the same in Proteus and on a real board)
  IN+ / IN- from the supply (at least 1.5 V above the output, 5 - 36 V), OUT+ / OUT- to the load.
  Set CV with no load, then CC with the
  output shorted through an ammeter; for a charger set FULL with the small trimmer. Keep OUT-
  separate from IN- (the shunt is between them).
REAL HARDWARE:
 * Set CV with no load first, then CC with the output shorted through an ammeter - never the other
   way round.
 * A Li-ion cell: 4.20 V CV, CC at 0.5C or less; a bare cell has no protection - charge it with a
   BMS or watch it.
 * Never join OUT- and IN- outside the board: the shunt between them is how the board measures the
   current.
 * Above about 3 A continuous the board needs a fan; the toroid and the diode run hot too.

THE DEMO SKETCH ON THE SERIAL MONITOR (XL4015_Demo V1.0, 9600 baud)
XL4015_Demo prints the cell and the phase. EXPECTED MONITOR OUTPUT
  Li-ion charger: XL4015 at 4.20 V / 1.00 A - The Engineering Projects
  Battery clock x 3600: a simulated second is an hour.

PROPERTIES (double-click the part > Edit Properties)
  VOUT  The voltage set by the CV trimmer, V (1.25 - 32). Default 5.0.
  IOUT  The current limit set by the CC trimmer, A (0.05 - 5). Default 2.0.
  FULL  The FULL LED's threshold, % of IOUT (the small trimmer; 10 = the usual end of a Li-ion
  charge). Default 10.
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 TEPXL4015.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 output: the input under 5 V, or the chip in thermal shutdown.
* The voltage collapses under load: CC - the load wants more than IOUT (the CC LED is lit); raise
  IOUT or lower the load.
* The output is lower than VOUT at no load: DROPOUT - the input is too close to the output.
* The current limit does not work: OUT- is joined to IN- outside the board, so the shunt is
  bypassed.
* The part is not simulated: TEPXL4015.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPXL4015.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/motor-driver-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 (TEPXL4015.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\XL4015_Demo\XL4015_Demo.ino, select Arduino Uno and use Sketch > Export Compiled
Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 8,368 bytes of flash
and 460 bytes of RAM.

MODEL SCOPE AND LIMITS
Modelled: CV and CC (the LM358 loop as a current source), the board's 0.05 ohm shunt, the averaged
buck with its losses (the MOSFET, the
SS54, the switching, the quiescent current and the LEDs) and the efficiency, dropout, the
under-voltage lock-out, the chip's temperature and
thermal shutdown, the three LEDs. Our figures: 0.06 ohm for the MOSFET, 20 ns of switching, 30 K/W
for the chip on the board.
Not modelled: the 180 kHz switching itself (averaged), the output capacitor's transient, the CC
loop's own settling.

VERSION
TEP XL4015 CC CV Buck Converter library V1.0 (Nov 2026). Device XL4015CCCVTEP (TEPXL4015.LIB /
TEPXL4015.DLL). Demo sketch XL4015_Demo V1.0 (Wire only). Demo board: ARDUINO UNO V4.0 (TEP Arduino
Library V4.0) with its built-in serial monitor; our 18650 cell and INA219 V1.0.
Advertisement

Development1 release

  1. V1.0XL4015 CC CV Buck Converter 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 82f2225501214d44a4feec5ca88bbccb.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (XL4015-CC-CV-Buck-Converter-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB, TEP18650.LIB and TEPINA219.LIB and 1 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 TEP18650.DLL, TEPARDUINO.DLL and TEPINA219.DLL and 1 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 XL4015_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 XL4015_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open XL4015-LiIon-Charger-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

    XL4015 CC CV Buck Converter 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 XL4015 CC CV Buck Converter 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?

XL4015 CC CV Buck Converter Library for Proteus V1.0 comes as a ZIP archive of 16 files (1.8 MB, 3.9 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 16 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, 7d17e17538dec5a9c1cc2f07a6746dbbe29fe66d52a9784ebaa3aba782a4a431. In PowerShell run Get-FileHash "82f2225501214d44a4feec5ca88bbccb.zip"; on macOS or Linux run shasum -a 256 "82f2225501214d44a4feec5ca88bbccb.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 · 82f2225501214d44a4feec5ca88bbccb.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
  • 30 Nov 2026Uploaded at
Last 14 days0 downloads
SHA-256 7d17e17538dec5a9c1cc2f07a6746dbbe29fe66d52a9784ebaa3aba782a4a431
DocumentationXL4015 CC CV Buck Converter 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.