Project Files of PWM Solar Charge Controller Library for Proteus Simulation
f705976f3edc4b3090d0f8d09fd4cf8a.zip

PWM Solar Charge Controller Library for Proteus V1.0
PWM Solar Charge Controller Library for Proteus V1.0 comes as a ZIP archive of 16 files (1.9 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
PWM-Solar-Charge-Controller-Library-for-Proteus-v1.0.zip with the PWM solar charge controller for Proteus simulation (TEPPWMCC.LIB and TEPPWMCC.DLL), our 12V solar panel, our 12V lead-acid battery, our Arduino UNO V4.0, the A3 demo with its sketch and a README.
File Structure
5.2 KB201.9 KB16.2 KB15.8 KB40.5 KB883.5 KB325 KB321 KB311.5 KB27.7 KB25.6 KB883.5 KB325 KB321 KB311.5 KB17.4 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in PWM Solar Charge Controller Library for Proteus Simulation. Open an image for its full size.












README
PWM SOLAR CHARGE CONTROLLER LIBRARY FOR PROTEUS SIMULATION - V1.0 (12 V / 24 V, 10 A, with an LCD and 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/pwm-solar-charge-controller-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
The demo measures the battery with our INA219 library (installed from its own package - not in this zip):
https://www.theengineeringprojects.com/2026/10/ina219-current-sensor-library-for-proteus-v1-0.html
The demo's panel is our 12V Solar Panel library (its LIB and DLL are in this zip; its own article):
https://www.theengineeringprojects.com/2026/11/12v-solar-panel-library-for-proteus-v1-0.html
The demo's battery is our 12V Lead-Acid Battery library (its LIB and DLL are in this zip; its own article):
https://www.theengineeringprojects.com/2026/11/12v-lead-acid-battery-library-for-proteus.html
Support us (the libraries are free):
https://www.theengineeringprojects.com/donate
FILE STRUCTURE
PWM-Solar-Charge-Controller-TEP-v1.0/
|-- Proteus Library Files/
| |-- ArduinoV4TEP.LIB 201.9 KB TEP Arduino boards V4.0 (UNO) -> LIBRARY
| |-- TEPLEADACID.LIB 16.2 KB a part the demo uses -> LIBRARY folder
| |-- TEPPWMCC.LIB 15.8 KB the library -> LIBRARY folder
| |-- TEPSOLAR.LIB 40.5 KB a part the demo uses -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPARDUINO.DLL 883.5 KB the Arduino board model -> MODELS folder
| |-- TEPLEADACID.DLL 325.0 KB its model -> MODELS folder
| |-- TEPPWMCC.DLL 321.0 KB the model -> MODELS folder
| |-- TEPSOLAR.DLL 311.5 KB its model -> MODELS folder
|-- Proteus Simulation/
| |-- PWM-Solar-Charge-Controller-Battery-INA219-ArduinoUnoV4.pdsprj 27.7 KB the demo project
| |-- SolarCharge_Demo.hex 25.6 KB the demo firmware
| |-- TEPARDUINO.DLL 883.5 KB copy of the board model
| |-- TEPLEADACID.DLL 325.0 KB copy of its model
| |-- TEPPWMCC.DLL 321.0 KB copy of the model
| |-- TEPSOLAR.DLL 311.5 KB copy of its model
|-- Arduino Code/
| |-- SolarCharge_Demo/SolarCharge_Demo.ino 5.2 KB the demo sketch (source of the .hex)
|-- README.txt ~18.2 KB this file
Total: 3.94 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
The common small PWM solar charge controller - 12 V / 24 V, 10 A, an LCD, two USB ports, 120 x 75 mm
- the box between a
solar panel, a battery and a load, drawn at true scale (the dark case, the LCD, three buttons, six
screw terminals; our own
drawing, no maker's mark). The figures are from a maker's manual of such a controller:
* BULK: while the battery is low the panel's switch stays closed and the panel sits straight on
the battery.
* BOOST: at 14.4 V (a sealed lead-acid battery) the switch starts to pulse, 100 times a second,
and the width of the pulses
holds the battery at 14.4 V for two hours. FLOAT: then the pulses hold 13.8 V. Under 13.2 V it
starts again.
* No sun: the switch opens, so the battery cannot empty itself into the panel at night.
* The load terminals: cut when the battery is under 11.1 V, back at 12.6 V - the battery's
deep-discharge protection. Cut
on an overload too. LOADMODE: always on, dusk to dawn, or some hours after dusk.
* Five battery types (B01 sealed lead-acid, B02 gel, B03 flooded, B04 lithium-ion 3S, B07
LiFePO4), 12 V or 24 V.
* The three + terminals are joined inside (a common-positive controller): the switches are in the
- lines.
* The pulses are real on the panel's side (put an oscilloscope on PV-). At the battery terminals
the model smooths them
to a ripple of some tens of millivolts, as the plates of a real battery do.
* On the sheet the LCD works at Run - the panel, the battery with its bars, the lamp, the arrows
of the current, the
charge current, the battery voltage and the load current - and the stage with the PWM duty is
written above the case.
Click it at Run for the pop-up: the power flow, the pulses, the stages, eight live values;
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 "PWMCHARGE" in Pick Devices):
PWMCHARGECONTROLLERTEP "PWM Solar Charge Controller 12 V / 24 V 10 A V1.0" in TEPPWMCC.LIB
(Electromechanical > Charge
Controllers), prefix CC, model TEPPWMCC.DLL (analog). Six pins along the
bottom, as the terminals of
the real controller: PV+ PV- (the panel), BAT+ BAT- (the battery), LOAD+
LOAD- (the load). The
name starts with P so that it sorts after the embedded ARDUINO UNO V4.0.
THE POP-UP
Click the part at Run. Tabs:
Controller chips: the load on or off (the controller's button); the battery type (B01 B02 B03
B04 B07); the clock (x 1,
x 60, x 3600). The power flow from the panel through the PWM switch to the battery
and the load, with the
currents; three periods of the pulses with the time the switch is closed; the three
stages with the one now
lit; eight live values: the panel's voltage, the charge current, the battery voltage
with the aim, the PWM
duty, the load, the stage's time or voltage, the amp-hours in and to the load, the
battery type.
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 16 Nov 2026 (the demo project as shipped: an A3 sheet, an Arduino UNO V4.0).
What the runs showed (the model's own numbers and the sketch's monitor):
The demo as shipped (SolarCharge_Demo; PV1 20 W in full sun, CC1 B01 12 V with the load always on,
BAT1 SOC 75 %, R1 22 ohm,
SPEED 3600 on the battery and the controller), one run (ccfinal2), the model's own pauses:
* BULK from 30 ms (the battery at 12.53 V): the switch closed all the time. At 0.5 s: 1.21 A from
the panel at 13.0 V,
0.59 A to the load, 0.61 A into the battery (12.99 V). At 2.5 s the panel's pop-up: 13.81 V,
1.211 A, 16.72 W (84 % of the
20.0 W this light could give); the battery's pop-up: 0.53 A in at 13.73 V, 93 %, no gas; the
INA219 (U1): 13.740 V on the
bus, 53.34 mV on the shunt, 533.4 mA into the battery.
* BOOST at 3.000 s (14.4 V): PWM 83 %, 1.04 A, the battery at 14.41 V (3.2 s); PWM 65 % (6.5 ms of
every 10 ms), 0.79 A,
14.40 V, the panel's mean 16.9 V, 0.65 A to the load, 0.13 A into the battery, 59 min left (4.0
s).
* FLOAT at 4.990 s: PWM 54 %, 0.66 A from the panel, 0.63 A to the load, the battery held at 13.80
V (5.5 s to the end).
* In all 6.53 Ah (89.6 Wh) from the panel and 4.38 Ah (60.5 Wh) to the load; the battery between
12.52 V and 14.43 V; the
panel's highest voltage (open, between the pulses) 21.6 V; the most charge current 1.21 A.
* The monitor named the stages from the battery's side: bulk charge up to 13.85 V, boost charge at
14.37 - 14.39 V while
the current fell from +0.35 A to +0.05 A, float charge at 13.80 V with +0.02 A; it ended at
+1.94 Ah. 135 s for the 7.0 s
of the run.
A second run at night (cccheck2: IRRADIANCE 0 on the panel, SOC 12 % on the battery): NO SUN, the
panel's switch stays open;
the battery feeds the load, 0.53 A at 11.63 V (0.4 s); LOAD CUT at 1.320 s with the battery down to
11.09 V; the load stays
off, the battery back at 11.16 V (1.6 s).
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" (TEPPWMCC.LIB, TEPSOLAR.LIB, TEPLEADACID.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 TEPPWMCC.DLL, TEPSOLAR.DLL, TEPLEADACID.DLL and TEPARDUINO.DLL from "Proteus Model Files" to
the MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPPWMCC.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "PWMCHARGE".
RUN THE DEMO
"Proteus Simulation\PWM-Solar-Charge-Controller-Battery-INA219-ArduinoUnoV4.pdsprj" (an A3 sheet) -
keep the .hex file and the DLLs beside the project.
A small solar system with a battery monitor:
ARD1: Arduino UNO V4.0 running SolarCharge_Demo.hex, its serial monitor built in (window "TEP
Arduino UNO - ARD1").
PV1: our 12V Solar Panel, 20 W, in full sun (1000 W/m2): + and - to the controller's PV+ and
PV- (the labels PV+, PV-).
CC1: the PWM solar charge controller: battery type B01, 12 V, load always on, SPEED 3600.
U1: our INA219 (its pop-up version) between the controller's BAT+ (VIN+) and the battery's +
(VIN-); SDA A4, SCL A5.
BAT1: our 12 V 7.2 Ah lead-acid battery, SOC 75 %, SPEED 3600 (an hour each simulated second), -
on ground with BAT-.
R1: 22 ohm on LOAD+ / LOAD-: a 12 V lamp of about 7 W.
The sketch takes 32 readings over four of the controller's pulses, works with their mean,
tells the stage from the
battery's voltage and current, and counts the amp-hours; the UNO's LED lights while the
battery is charged.
Closed the monitor? Click the UNO's USB port.
WIRING (the same in Proteus and on a real board)
Connect the battery first, then the panel, then the load. PV+ / PV- to the panel only, BAT+ / BAT-
to the battery, the
load on LOAD+ / LOAD-. The three + terminals are joined inside; NEVER join PV- to BAT- or to
ground outside the controller:
the switch between them is the whole controller. Measure the system from the battery's side
(ground = BAT-).
REAL HARDWARE:
* A PWM controller needs a panel a few volts above the battery: a 36-cell ("12 V", 18 V at its best
point) panel for 12 V.
* It cannot limit the current: the panel's short-circuit current must stay under the controller's
10 A.
* The panel must stay under 50 V open circuit. A fuse belongs between the battery and the
controller.
* A load that starts with a surge (a motor, an inverter) belongs on the battery, not on the LOAD
terminals.
THE DEMO SKETCH ON THE SERIAL MONITOR (SolarCharge_Demo V1.0, 9600 baud)
The sketch reports every 500 ms. Type a command:
reset the amp-hours back to 0 rate 1000 report every 1000 ms help
EXPECTED MONITOR OUTPUT
Solar battery monitor - The Engineering Projects
+ A: into the battery, - A: out of it. Clock x 3600: a simulated second is an hour.
Commands: reset | rate 500 | help
Battery 12.87 V +0.60 A bulk charge +0.00 Ah
Battery 12.96 V +0.60 A bulk charge +0.24 Ah
...
Battery 13.85 V +0.52 A bulk charge +1.39 Ah
Battery 14.37 V +0.35 A boost charge +1.67 Ah
...
Battery 14.39 V +0.05 A boost charge +1.89 Ah
Battery 13.80 V +0.02 A float charge +1.91 Ah
...
Battery 13.80 V +0.02 A float charge +1.94 Ah
PROPERTIES (double-click the part > Edit Properties)
Battery type (BATTERY) B01 sealed lead-acid, B02 gel, B03 flooded, B04 lithium-ion
3S, B07 LiFePO4 (B01)
System voltage (SYSTEM) 12 or 24; 24 doubles every battery voltage (12)
Load mode (LOADMODE) 24 always on, 0 dusk to dawn, 1 - 23 hours after dusk (24)
Clock (SPEED) 1 real time, 3600 an hour each simulated second - the same as
the battery's, 1 - 7200 (1)
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 TEPPWMCC.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 SUN although the panel is lit: PV- is joined to BAT- or to ground outside the controller, or
the panel's open voltage
is not a volt above the battery. Wire PV- to the panel only.
* NO BATTERY: under 8 V on BAT+ / BAT-. The controller is powered by the battery: connect it first.
* The load is off: the battery fell under 11.1 V (it comes back at 12.6 V), the load mode waits for
the night, or an overload.
* The stage never leaves BULK: the panel is too small for the load, or the two-hour clock runs in
real time - set SPEED as
the battery's (60 or 3600).
* A meter on the panel shows a voltage between the battery's and the panel's open voltage: it reads
the mean of the pulses.
* The part is not simulated: TEPPWMCC.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 (TEPPWMCC.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\SolarCharge_Demo\SolarCharge_Demo.ino, select Arduino Uno and use Sketch > Export
Compiled Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 9,316 bytes
of flash and 504 bytes of RAM.
MODEL SCOPE AND LIMITS
Modelled: the three stages with the voltages and times of a maker's manual (boost 14.4 V for 2 h,
float 13.8 V, again under
13.2 V, equalise 14.6 V after a load cut; the other battery types' voltages), the load cut at 11.1 V
and back at 12.6 V, the
high-voltage cut (16 V, back at 15 V), the panel's 50 V limit, the 8 V the controller needs, its own
10 mA; a real switch
in the panel's - line (30 mohm on - ours) pulsing at 100 Hz (ours); the load's switch (20 mohm -
ours); the overload cut
(over 12.5 A for a second or 30 A at once - ours); the load modes; the common-positive wiring (ours:
check your controller).
Not modelled: the USB ports (drawn only), the menus and the settings of the buttons (the properties
and the pop-up's chips
set them), the temperature compensation, the controller's heat; the ripple at the battery terminals
is smoothed inside the
model (47 mF - ours), as the plates of a real battery smooth it.
VERSION
TEP PWM Solar Charge Controller library V1.0 (Nov 2026). Device PWMCHARGECONTROLLERTEP (TEPPWMCC.LIB
/ TEPPWMCC.DLL). Demo sketch SolarCharge_Demo V1.0 (the INA219 read straight with Wire). The demo
also uses our 12V Solar Panel (TEPSOLAR: SOLARPANELTEP) and our 12V Lead-Acid Battery (TEPLEADACID:
LEADACIDBAT12V7TEP), shipped in this package. Demo board: ARDUINO UNO V4.0 (TEP Arduino Library
V4.0) with its built-in serial monitor.Development1 release
-
V1.0PWM Solar Charge Controller 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 f705976f3edc4b3090d0f8d09fd4cf8a.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (PWM-Solar-Charge-Controller-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV4TEP.LIB, TEPLEADACID.LIB and TEPPWMCC.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
Add the simulation model
Copy TEPARDUINO.DLL, TEPLEADACID.DLL and TEPPWMCC.DLL and 1 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 SolarCharge_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 SolarCharge_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open PWM-Solar-Charge-Controller-Battery-INA219-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
PWM Solar Charge Controller 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 PWM Solar Charge Controller 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?
PWM Solar Charge Controller Library for Proteus V1.0 comes as a ZIP archive of 16 files (1.9 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, 6d5a945e1e333393600eb7ca5210ea36b6a99b314c6374baf4b985919d327cc6. In PowerShell run Get-FileHash "f705976f3edc4b3090d0f8d09fd4cf8a.zip"; on macOS or Linux run shasum -a 256 "f705976f3edc4b3090d0f8d09fd4cf8a.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
- 16 Nov 2026Uploaded at
6d5a945e1e333393600eb7ca5210ea36b6a99b314c6374baf4b985919d327cc6
















Comments
0