
3S BMS Board Library for Proteus Simulation

Hello friends, I hope you all are doing great. Today, I am going to share the new 3S BMS Board Library for Proteus Simulation. A 3S BMS is the small board that sits on every 11.1 V lithium pack - in power tools, e-bike lights, robots and power banks - and quietly decides when the pack may be charged and when it may be used. It watches each of the three cells, cuts the discharge when the weakest one is empty, cuts the charge when the fullest one is full, trips on over-current and short circuits, and balances the cells as they top up. With this library you can run a full Proteus simulation of such a board and watch every decision it makes, cell by cell.
3S BMS Board Library for Proteus
Latest version: V1.0 (December 2026, this tutorial)
Helping Tools
- Serial Monitor Advance: a serial terminal window for the UART of your board
- Serial Monitor Expert: the serial monitor with extra debugging tools
- LCD Library for Proteus V3.0: 16x2, 20x4 and I2C LCDs to show your readings
The demo is a small drama in two acts: a pack with one weak cell is charged from a supply set too high on purpose until the BMS steps in, then discharged into a load until the weak cell is empty - and the BMS steps in again.
NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the motor driver board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the 3S BMS Board Library for Proteus Simulation:
What Is a 3S BMS Board?
A battery management system for three lithium-ion cells in series. The board connects to the pack at four points - B- (the pack's minus), B1 and B2 (the junctions between the cells) and B+ (the pack's plus) - so its protection IC can measure each cell on its own. The pack's user sees only P+ and P-: P+ is B+ directly, while P- reaches B- through a pair of MOSFETs that the IC can open. The load and the charger connect to P+ and P-, never to B-.
| 3S BMS board | |
|---|---|
| Cells | 3 in series, 11.1 V nominal, 12.6 V full |
| Over-charge | 4.25 V per cell (back after 0.2 s under 4.15 V) |
| Over-discharge | 2.70 V per cell (back at 3.0 V or with a charger) |
| Over-current | 25 A (short circuit at once) |
| Balance | 62 ohm bleeder over 4.18 V per cell |
| Pins | B- B1 B2 B+ / P+ P- |
Two MOSFETs, Back to Back
Why two MOSFETs? A MOSFET blocks current in one direction only; in the other its body diode conducts. The BMS puts two of them in series, facing opposite ways: the discharge (DSG) MOSFET and the charge (CHG) MOSFET. To stop the discharge it opens DSG - and a charger can still push current in through DSG's body diode, which is exactly what you want after an over-discharge. To stop the charge it opens CHG - and a load can still draw current through CHG's body diode. The library models both MOSFETs and both body diodes, so the pack behaves this way in your circuit.
Protecting the Weakest Cell
Cells in a pack are never identical. One has a little less capacity or a little more internal resistance, and it reaches empty first and full first. A pack voltage of 9 V could mean three cells at 3.0 V - or two at 3.5 V and one at 2.0 V, already damaged. That is why a BMS measures every cell: the discharge ends when the weakest cell reaches the over-discharge threshold, and the charge ends when the fullest reaches the over-charge threshold, whatever the others say.
Balancing
A balance board helps the cells stay together. When a cell rises above about 4.18 V near the end of a charge, the BMS connects a resistor across it - 62 ohm here, about 68 mA - so it charges more slowly than the others, or even slowly discharges while the charger is stopped. Over many cycles that keeps a pack matched. It cannot rescue a badly mismatched pack in one charge: 68 mA against a capacity of 2600 mAh is a very gentle correction.
The BMS in the Simulation
The model reads the three cell voltages from the taps. Between P- and B- it stamps the MOSFET pair: 12 mohm when both are on, the 0.6 V body diode (with 50 mohm) when one is off, and nothing in the blocked direction - linearised at each iteration so Proteus converges cleanly. The protections work like the real IC's, with detection delays: any cell over OVERCHARGE for 20 ms turns CHG off, any cell under OVERDISCHARGE for 10 ms turns DSG off, a discharge over OVERCURRENT for 10 ms turns DSG off and a short does it at once. A real IC waits about 1 s and 100 ms; the delays are shorter here because the demo's cells run on a clock 3600 times faster, where a whole second would be an hour of charge. Each protection has its release - CHG comes back only after every cell has stayed under 4.15 V for 0.2 s, so a charger that keeps pushing gets a slow on-off rhythm, not a buzz - and the event log names the cell that tripped it. A bleeding balance resistor glows on the sheet.
Features of the 3S BMS Board Library for Proteus Simulation
- A real-looking board: the 50 x 22 mm board at its real size with its pads, the protection IC, four MOSFETs and the balance resistors that glow while they bleed.
- Per-cell protection: over-charge and over-discharge for the fullest and the weakest cell, with delays and releases.
- Real MOSFETs: back to back with their body diodes - a cut discharge still lets a charger in.
- Over-current and short circuit: with the release when the load goes.
- A pop-up: the three cells against the thresholds, both MOSFETs, the cells over time, eight tiles - graphs, an event log and a check page.
- A complete package: about 3.3 MB with the library, our 18650 cells, voltage sensor, MOSFETs, resistors and power resistors, our Arduino UNO V4.0 and the demo, without the source code of the model.
The 3S BMS in Proteus
The device is BMS3S25ATEP in TEPBMS3S.LIB, under Modules > Power, with the prefix U and the model TEPBMS3S.DLL. Search BMS or 3S in Pick Devices. On the left are B+, B2, B1 and B-; on the right P+ and P-. Three properties: OVERCHARGE, OVERDISCHARGE and OVERCURRENT.
Download 3S BMS Board Library for Proteus Simulation
Click the button below to download 3S-BMS-Board-Library-for-Proteus-v1.0.zip (about 3.3 MB, without the source code of the models):
3S BMS Board Library for Proteus V1.0- README.txt: installation, the demo, the wiring, troubleshooting and the limits of the simulation.
- Proteus Library Files:
TEPBMS3S.LIB,TEP18650.LIB,TEPVSENSE25.LIB,TEPNMOS.LIB,TEPPMOS.LIB,TEPRESISTOR.LIB,TEPPOWERRES.LIBandArduinoV4TEP.LIB. - Proteus Model Files: the DLLs of the same names and
TEPARDUINO.DLL. - Arduino Code: the demo sketch (no library).
- Proteus Simulation: the demo project, its HEX file and copies of the DLLs.
No Proteus yet? Read How to Download and Install Proteus 7 and 8. New to libraries? Follow How to Install a New Library in Proteus.
How to Install 3S BMS Board Library for Proteus Simulation
- Close Proteus and extract the whole zip file, for example to your Desktop.
- Copy the files from Proteus Library Files into the LIBRARY folder of Proteus.
- Copy the files from Proteus Model Files into the MODELS folder.
- Delete
TEPBMS3S.IDXfrom the LIBRARY folder if it is there. - Start Proteus, press P and search for BMS.
Proteus Simulation of a Protected 3S Pack
The demo uses an A3 sheet with our Arduino UNO Library for Proteus V4.0, the BMS U1 on three cells from our 18650 Li-ion Battery Library for Proteus - cell 1 at 80 % charge, cell 3 at 85 %, cell 2 at only 20 %, all with a battery clock 3600 times faster, so each simulated second is an hour. P- is the circuit's ground. Our Voltage Sensor 0-25V Library for Proteus reads P+ on A0. A 33 ohm load on P+ is switched by our IRLZ44N on D7. The charger is a 13 V supply through 3.3 ohm and our IRF4905 from the P-MOSFET Library for Proteus as a high-side switch, its gate pulled up by 10 kohm and pulled down by our 2N7000 on D8. 13 V is more than a 3S pack may ever take - that is the point. The Arduino's monitor is built in, the same window as our TEP Serial Monitor Advance for Proteus. Open 3S-BMS-Pack-Protection-ArduinoUnoV4.pdsprj.
The Sketch
The sketch needs no library. It plays the part of a careless device: it switches the 13 V charger on through D8 and leaves it on for two seconds - two hours on the cells' clock - without looking at the cells at all. Whatever happens to them in that time is the BMS's business. Then it swaps the charger for the load:
if (phase == CHARGE && millis() - phaseAt >= CHARGE_MS) {
setPhase(DISCHARGE, F("Charger off, load on (33 ohm)"));
During the discharge the Arduino sees only P+ on the voltage sensor. The weak cell gives out first, and P+ vanishing is the sign that the BMS has cut the pack off:
} else if (phase == DISCHARGE && millis() - phaseAt > 300 && p < 1.0) {
setPhase(DONE, F("P+ gone: the BMS has cut the pack off (a cell is empty) - load off"));
The same sketch prints P+ and the phase every 250 ms, so the monitor tells the whole story in numbers while the pop-up tells it cell by cell.
3S BMS Simulation Results
Open the project and press Run. The demo runs 6.0 simulated seconds and took about two minutes on our PC with the pop-up open and the pictures being taken. Click the BMS for its pop-up. Every number below comes from one simulation run, the demo exactly as it ships.
Charging
The Arduino switches the 13 V charger on at once. Cell 3, the fullest, is the first to feel it: at 0.50 s it passes 4.18 V and the BMS connects its 62 ohm bleeder - the event log says "cell 3 at 4.180 V: balancing - 62 ohm across it (68 mA)" - and at 1.06 s cell 1 follows. Cell 2, which started at 20 %, is still far below 3.8 V. This is the whole problem of a series pack in one picture: the same current flows through all three cells, so the full ones climb towards their limit while the weak one has barely started.
Over-Charge and Balancing
At 1.110 s cell 3 reaches 4.253 V, holds it for the 20 ms detection delay, and the BMS opens the CHG MOSFET: "cell 3 at 4.253 V: over-charge - the CHG MOSFET goes off". The current drops to zero and P+ rises to the charger's own 12.995 V, because nothing is drawing from it any more. Without the charging current cell 3 relaxes to 4.145 V, every cell stays under 4.15 V for 0.2 s, and the BMS lets the charge in again at 1.316 s - only for cell 3 to trip once more at 1.342 s, and again at 1.569 s. The charger is simply the wrong one, and the BMS keeps saying no in a slow rhythm: five over-charge stops before the sketch switches the charger off at 2.0 s. The pop-up at 1.6 s shows it - "OVER-CHARGE (cell 3)", the cells at 4.114, 3.768 and 4.149 V, DSG on and CHG off. The highest cell 3 ever saw was 4.289 V.
Discharging
At 2.0 s the sketch swaps the charger for the 33 ohm load. The CHG MOSFET is back on by then, but it would not matter: a load can always draw through CHG's body diode. At 2.6 s the pack delivers 0.356 A and P+ reads 11.746 V; the cells are at 4.017, 3.690 and 4.044 V. A second later, at 3.6 s, the current is 0.347 A and P+ 11.435 V. The two full cells are losing voltage slowly; cell 2, a 20 % cell asked to deliver the same current, is sliding fast.
Over-Discharge
At 4.497 s cell 2 falls to 2.647 V, under the 2.70 V limit for the 10 ms delay, and the BMS opens the DSG MOSFET: "cell 2 at 2.647 V: over-discharge - the DSG MOSFET goes off (the load is cut)". P+ collapses to about 0.39 V and the Arduino sees it at once: "P+ gone: the BMS has cut the pack off (a cell is empty) - load off". Look at the other two cells in the pop-up: 3.887 and 3.907 V - more than half full. The pack as a whole still holds 10.66 V, but one weak cell decided for all of them, exactly as it should. Relieved of the load, cell 2 recovers to 2.863 V and stays there.
The Graphs, the Event Log and the Check Page
The Graphs page plots the three cells and the pack current through the whole story. The Event log names every protection with its cell. The Check page sums up the run: cell 1 between 3.852 and 4.183 V over the run, cell 2 between 2.647 and 3.796 V, cell 3 between 3.872 and 4.289 V, the MOSFETs with DSG off and CHG on at the end after at most 0.363 A, and six protection events - five over-charge stops, because the charger kept pushing, and one over-discharge.
The Arduino's monitor shows the outside view: "Charger on (13 V through 3.3 ohm)", P+ every 250 ms, "Charger off, load on (33 ohm)", P+ sliding from 11.80 V down through 11.27 and 10.61 V, then "P+ gone: the BMS has cut the pack off (a cell is empty) - load off" and P+ resting at 0.39 V. The Arduino never sees a single cell - only the pack - which is exactly why the protection has to live on the BMS.
A BMS Is a Safety Net, Not a Charger
The demo's 13 V charger is the wrong charger, and the BMS saved the pack from it. But a BMS that trips on every charge is a pack living on its last line of defence. The right way is a 12.6 V constant-current, constant-voltage charger - our XL4015 board set to 12.60 V and the charge current does it - with the BMS as the net underneath. In the same way, a device should switch itself off before the BMS has to cut the discharge; the BMS is for when everything else has failed.
Try It Yourself
- Start all three cells at the same charge (SOC 45): the discharge lasts longer and the cells stay together.
- Set OVERDISCHARGE to 3.0 V: the BMS cuts earlier and the cells keep more of their life.
- Replace the 33 ohm load with 0.1 ohm: the over-current protection trips within 10 ms.
- Change the charger to +12.6V: the charge ends gently in CV instead of being cut.
- Set OVERCHARGE to 4.20 V and watch the balance resistors do more of the work.
Ideas to Extend the Demo
- A complete pack: the BMS, the XL4015 as a proper 12.6 V charger and a fuel gauge.
- A pack monitor that reads each cell with three voltage sensors and differential maths.
- A 4S version for 14.8 V packs.
Your Own Sketches
The demo sketch is in the zip file, and you can change it in the Arduino IDE. New to Arduino? Start with our Arduino Tutorial for Beginners. Export the compiled binary, and set the UNO's PROGRAM property to the new file. Our guide on How to get the HEX file from Arduino shows you where the file ends up.
Things to Know Before Using a Real 3S BMS
- Wiring order: B- first, then B1, B2 and B+.
- P- not B-: the load and the charger go on P+ and P-; anything on B- bypasses the protection.
- Matched cells: build packs from cells of the same type, age and charge.
- Current: the rating depends on cooling and on the wires; leave a margin.
- The charger: 12.6 V CC / CV; the BMS is the safety net.
Troubleshooting
- P+ is 0 V: the BMS has cut the discharge - see the PROTECTION tile and the event log for the cell.
- The charge stops early: one cell is full while others are not - the pack is unbalanced.
- The protection does not trip: the load or the charger is wired to B- instead of P-.
- Cell voltages look wrong: B1 and B2 swapped, or a tap not connected.
- The part is not simulated:
TEPBMS3S.DLLis missing from MODELS and from the project folder.
Limitations of the Simulation
- The per-cell protections, the back-to-back MOSFETs with their body diodes and the balance follow the way these boards work; the board is our own drawing.
- Our own figures: 12 mohm for the MOSFET pair, 0.6 V body diodes, 62 ohm balance resistors, the detection delays (shortened for the fast battery clock).
- Not modelled: the protection IC's own current, the MOSFETs' heating, temperature protection (not on this board).
- Arduino is a name of Arduino; this library is not made or endorsed by Arduino, Labcenter or the chip's maker.
- Tested in Proteus 8.5 in November 2026 (the demo as shipped). Proteus 7 is not supported.
So, that was all about the 3S BMS Board Library for Proteus Simulation. I hope it helps you understand what the little board on your pack is doing - and design your charger and your load so it rarely has to. If you have any questions, ask in the comments and I will help you out. Till the next tutorial, take care and have fun!






















Comments
0