Project Files of 12V Lead-Acid Battery Library for Proteus Simulation
79abbd5aee804882ba8ca607b2ae2ced.zip

12V Lead-Acid Battery Library for Proteus V1.0
12V Lead-Acid Battery Library for Proteus V1.0 comes as a ZIP archive of 13 files (1.5 MB, 3.3 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
12V-Lead-Acid-Battery-Library-for-Proteus-v1.0.zip with the 12 V 7.2 Ah sealed lead-acid battery for Proteus simulation (TEPLEADACID.LIB and TEPLEADACID.DLL), our hand crank generator as the charger, our Arduino UNO V4.0, the A3 demo with its sketch and a README.
File Structure
6 KB201.9 KB13.3 KB16.2 KB883.5 KB317 KB325 KB23.2 KB27.4 KB883.5 KB317 KB325 KB16.8 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in 12V Lead-Acid Battery Library for Proteus Simulation. Open an image for its full size.












README
12V LEAD-ACID BATTERY LIBRARY FOR PROTEUS SIMULATION - V1.0 (the 12 V 7.2 Ah sealed lead-acid battery, with 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/12v-lead-acid-battery-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 it 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 charger is our Hand Crank Generator (its LIB and DLL are in this zip; its own article):
https://www.theengineeringprojects.com/2026/11/hand-crank-generator-library-for-proteus.html
Support us (the libraries are free):
https://www.theengineeringprojects.com/donate
FILE STRUCTURE
Lead-Acid-Battery-TEP-v1.0/
|-- Proteus Library Files/
| |-- ArduinoV4TEP.LIB 201.9 KB TEP Arduino boards V4.0 (UNO) -> LIBRARY
| |-- TEPCRANK.LIB 13.3 KB a part the demo uses -> LIBRARY folder
| |-- TEPLEADACID.LIB 16.2 KB the library -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPARDUINO.DLL 883.5 KB the Arduino board model -> MODELS folder
| |-- TEPCRANK.DLL 317.0 KB its model -> MODELS folder
| |-- TEPLEADACID.DLL 325.0 KB the model -> MODELS folder
|-- Proteus Simulation/
| |-- LeadAcid_Demo.hex 27.4 KB the demo firmware
| |-- Lead-Acid-Battery-Crank-INA219-ArduinoUnoV4.pdsprj 23.2 KB the demo project
| |-- TEPARDUINO.DLL 883.5 KB copy of the board model
| |-- TEPCRANK.DLL 317.0 KB copy of its model
| |-- TEPLEADACID.DLL 325.0 KB copy of the model
|-- Arduino Code/
| |-- LeadAcid_Demo/LeadAcid_Demo.ino 6.0 KB the demo sketch (source of the .hex)
|-- README.txt ~17.9 KB this file
Total: 3.28 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
The 12 V 7.2 Ah sealed lead-acid battery (valve regulated, AGM) - the battery of alarm panels, gate
motors, small UPS units and
solar lights - drawn at true scale from the front (the black case 151 x 94 mm, the white label with
a red band, the two blade
terminals on top, a red and a black lead to the pins; our own drawing, no maker's mark). Six cells
in series:
* The rest voltage tells the charge left: 12.85 V full, 12.6 V at 75 %, 12.3 V at 50 %, 12.0 V at
25 %, then a knee down to
10.5 V empty - behind 22 mohm (twice that when empty, more when cold) and a slow polarisation.
* The charge is counted, and a fast discharge takes more than its amp-hours, by the maker's table:
7.2 Ah at 0.36 A (the 20
hour rate), 6.84 Ah at 0.684 A, 6.12 Ah at 1.224 A, 4.08 Ah at 7.2 A, 2.88 Ah at 21.6 A. 90 % of
a charge is kept. SPEED
runs that battery clock faster (3600: an hour each simulated second).
* Charging: the cells take the current through 0.25 ohm more, less and less willingly over the
last 30 %, so at a fixed
voltage the current tapers off; above 14.7 V the extra current only makes gas.
* There is NO protection inside. A load can drain it below 10.5 V - a DEEP DISCHARGE, which
sulphates a real battery - and
past empty the voltage collapses; a charger without a voltage limit drives it into GASSING. The
model reports both and
counts the amp-hours taken under 10.5 V and the amp-hours turned to gas.
* On the sheet the battery writes its state and the charge left above itself and its volts, amps
and watts under itself at
Run. Click it at Run for the pop-up: the six cells with the current's direction, the voltage
curve with the limits and the
working point, 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 "LEADACID" in Pick Devices):
LEADACIDBAT12V7TEP "Sealed Lead-Acid Battery 12 V 7.2 Ah V1.0" in TEPLEADACID.LIB
(Electromechanical > Batteries), prefix BAT,
model TEPLEADACID.DLL (analog). Pins + and - on the left (the red and black
leads from the terminals). The
name starts with L so that it sorts after the embedded ARDUINO UNO V4.0.
THE POP-UP
Click the part at Run. Tabs:
Battery chips: set the charge (Full, 50 %, 20 %, 5 %); the battery clock (x 1, x 60, x 3600).
The six cells filled to the
charge left, each with its voltage; two lamps for what harms it (too low, gassing);
the current's direction and
size; the rest voltage against the charge left with the three limits (10.5 V a deep
discharge, 13.8 V the
standby charge, 14.7 V gassing), the rest point (ring) and the terminals now (dot);
eight live values: the
charge left in % and Ah, the terminals' volts, the current and its direction, the
power, the time left at this
current (a fast discharge shortens it), each cell's volts, the Ah out and in so far,
the harm so far (Ah taken
under 10.5 V, Ah turned to gas).
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 (LeadAcid_Demo, SOC 5 %, SPEED 3600, R1 22 ohm, HC1 CRANK DEMO), one run
(lafinal2), the model's own pauses:
* Almost empty (0.25 s): 3 % left (0.23 Ah), 11.24 V at 0.51 A out, 5.7 W; about 26 minutes to
empty.
* FLAT and DEEP DISCHARGE at 0.970 s (10.47 V): nothing inside stops the load. At 1.95 s the
terminals are at 9.13 V, each cell
at 1.52 V, the battery still gives 0.03 A beside the hand crank (30 turns a minute); 0.43 Ah
out, 0.08 Ah of it under 10.5 V.
* The crank at 60 turns a minute (2.3 s) charges it back: 0.77 A in at 11.31 V (2.75 s), 0.69 A in
at 11.98 V with 11 % (3.7 s).
* With the crank at the hand's limit (67 turns a minute, 12.39 V 1.46 A 18.1 W): 0.90 A in at
12.30 V, 11.0 W, 26 %, each cell
2.05 V (5.2 s); with the crank at 60 turns a minute 0.64 A in at 12.44 V, 45 % (7.2 s). The
log's marks: 25 % charged at
5.170 s, 50 % at 7.823 s.
* The hand lets go at 8.3 s with 52 % in the battery: it feeds the load alone, 12.20 V at 0.55 A
out, 45 % left (3.23 Ah) at
9.45 s. In all 1.07 Ah (12.5 Wh) out and 4.41 Ah (53.6 Wh) in; 0.09 Ah taken under 10.5 V, no
gassing; the lowest 9.02 V, the
highest 12.54 V at the terminals.
* The INA219 (U1) read 12.388 V on the bus, -89.57 mV on the shunt, -895.7 mA (a charge reads
negative); the monitor printed
"LOW VOLTAGE - switch the load off (no BMS inside)" while the battery was flat, read "about 48 %
by its voltage" at 12.27 V
and ended at "net +3.60 Ah". 172 s for the 9.4 s of the run.
A second run with SOC 99 % (lacheck2), the same circuit: the crank charges the nearly full battery;
GASSING from 4.392 s and
OVERCHARGE at 5.127 s (15.05 V). At 5.2 s: 15.06 V at the terminals, 2.51 V a cell, 0.77 A in of
which 0.60 A makes gas, 0.35 Ah
turned to gas by then; the battery is full at 6.229 s and 0.77 A still flows in at 15.13 V.
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" (TEPLEADACID.LIB, TEPCRANK.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 TEPLEADACID.DLL, TEPCRANK.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the MODELS
folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPLEADACID.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "LEADACID".
RUN THE DEMO
"Proteus Simulation\Lead-Acid-Battery-Crank-INA219-ArduinoUnoV4.pdsprj" (an A3 sheet) - keep the
.hex file and the DLLs beside the project.
ARD1: Arduino UNO V4.0 running LeadAcid_Demo.hex, its serial monitor built in (window "TEP
Arduino UNO - ARD1").
U1: our INA219 (its pop-up version) between the battery's + (VIN+) and the bus (VIN-): a
current out of the battery
reads positive, a current into it negative; SDA A4, SCL A5.
BAT1: the battery, SOC 5 %, SPEED 3600 (an hour each simulated second), TEMP 25.
R1: 22 ohm on the bus, the load (a 12 V lamp of about 7 W).
HC1: our hand crank generator on the bus, CRANK DEMO: 30 turns a minute from 0.3 s, 60 from 2.3
s, 90 asked from 4.3 s,
60 again from 6.3 s, the hand lets go at 8.3 s. Its rectifier keeps the battery from
turning the handle.
The load drains the battery flat - nothing stops it - the sketch raises its LOW VOLTAGE
alarm, and the crank charges
the battery back; the monitor prints the battery's volts, amps and watts, the charge it
reads from the voltage and
the amp-hours lost or gained; the UNO's LED is the alarm.
Closed the monitor? Click the UNO's USB port.
WIRING (the same in Proteus and on a real board)
+ and - like any 12 V battery. Put a fuse in the + lead on a real bench. Add your own low-voltage
cut-off at 10.5 V (a relay
or a MOSFET driven by a comparator or a microcontroller). To measure the current both ways put a
shunt (here the INA219) in
the + lead.
REAL HARDWARE:
* Recharge it straight after use and never store it discharged: a flat lead-acid battery sulphates
within days.
* Charge at 14.4 to 15.0 V for daily cycling, or hold it at 13.5 to 13.8 V on standby; limit the
current to 2.16 A.
* Use only half of the charge if you want many cycles: a discharge to 50 % gives several times the
life of one to 100 %.
* It is heavy (2.4 kg) and holds less in the cold. Do not charge it in a gas-tight box:
overcharged, it vents hydrogen.
THE DEMO SKETCH ON THE SERIAL MONITOR (LeadAcid_Demo V1.0, 9600 baud)
The sketch reports every 500 ms. Type a command:
reset forget the amp-hours rate 1000 report every 1000 ms help
EXPECTED MONITOR OUTPUT
Lead-Acid Battery (12 V 7.2 Ah) demo - The Engineering Projects
Battery 10.69 V 0.21 A 2.2 W out discharging about 1 % by its voltage net -0.20 Ah
Battery 9.04 V 0.01 A LOW VOLTAGE - switch the load off (no BMS inside) net -0.33 Ah
Battery 12.31 V 0.90 A 11.0 W in charging net +1.83 Ah
Battery 12.22 V 0.56 A 6.8 W out discharging about 43 % by its voltage net +3.60 Ah
PROPERTIES (double-click the part > Edit Properties)
Charge at the start (SOC) %, 0 - 100 (80)
Battery clock (SPEED) 1 real time, 3600 an hour of charging or discharging each
simulated second, 1 - 7200 (1)
Temperature (TEMP) C, -20 - 60: a cold battery holds less and resists more (25)
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 TEPLEADACID.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
* DEEP DISCHARGE: the terminals are under 10.5 V and the load is still on. Switch the load off and
recharge: nothing inside
the battery will do it for you.
* FLAT, a few volts only: the charge is used up. A charger brings the model back; a real battery may
be harmed for good.
* GASSING: the charge voltage is over 14.7 V - the charger has no voltage limit. Use 14.4 to 15.0 V
(cycle) or 13.5 to 13.8 V.
* Less running time than 7.2 Ah suggests: 7.2 Ah holds at 0.36 A only; at 7.2 A the same battery
gives 4.08 Ah.
* The charge hardly moves: at SPEED 1 a 7.2 Ah battery needs hours, as a real one does. Raise SPEED
(60 or 3600).
* The voltage rises and falls slowly after a change of load: that is the polarisation (about a
minute of battery time).
* The part is not simulated: TEPLEADACID.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 (TEPLEADACID.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\LeadAcid_Demo\LeadAcid_Demo.ino, select Arduino Uno and use Sketch > Export Compiled
Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 9,982 bytes of flash
and 534 bytes of RAM.
MODEL SCOPE AND LIMITS
Modelled: the rest voltage against the charge left (the sellers' charts: 12.85 / 12.6 / 12.3 / 12.0
V at 100 / 75 / 50 / 25 %;
the knee to 10.5 V at empty and the collapse below it are ours); the internal resistance (22 mohm
from the sheet; its doubling
when empty and its rise in the cold are ours); a polarisation of 40 mohm with 60 s (ours); the
capacity at the five discharge
currents of the sheet, with the logarithm of the current between them; 90 % charge efficiency, the
charge path's 0.25 ohm and
its taper over the last 30 %, the gassing path above 14.7 V with 0.6 ohm (ours); self-discharge 3 %
a month; a cold battery's
smaller capacity (0.8 % a degree under 25 C - ours).
Not modelled: the lasting harm of deep discharges and of gassing (they are reported and counted, the
battery does not age),
the recovery of the voltage and of some charge at rest after a fast discharge, the charge voltage's
shift with temperature,
the heat, the 108 A the sheet allows for five seconds.
VERSION
TEP Lead-Acid Battery library V1.0 (Nov 2026). Device LEADACIDBAT12V7TEP (TEPLEADACID.LIB /
TEPLEADACID.DLL). Demo sketch LeadAcid_Demo V1.0 (the INA219 read straight with Wire). The demo also
uses our Hand Crank Generator (TEPCRANK), shipped in this package. Demo board: ARDUINO UNO V4.0 (TEP
Arduino Library V4.0) with its built-in serial monitor.Development1 release
-
V1.012V Lead-Acid Battery 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 79abbd5aee804882ba8ca607b2ae2ced.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (Lead-Acid-Battery-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV4TEP.LIB, TEPCRANK.LIB and TEPLEADACID.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
Add the simulation model
Copy TEPARDUINO.DLL, TEPCRANK.DLL and TEPLEADACID.DLL 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 LeadAcid_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 LeadAcid_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open Lead-Acid-Battery-Crank-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
12V Lead-Acid Battery 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 12V Lead-Acid Battery 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?
12V Lead-Acid Battery Library for Proteus V1.0 comes as a ZIP archive of 13 files (1.5 MB, 3.3 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, 80d8b9a994f27ead7947d45dd275b77087abe5b8ae27e8f88c232ff99d4cf509. In PowerShell run Get-FileHash "79abbd5aee804882ba8ca607b2ae2ced.zip"; on macOS or Linux run shasum -a 256 "79abbd5aee804882ba8ca607b2ae2ced.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
80d8b9a994f27ead7947d45dd275b77087abe5b8ae27e8f88c232ff99d4cf509
















Comments
0