Battery Management System *UPDATE

Standard

As promised, here’s the rest of the code for the battery management system. The BMS now reads the voltage of each battery cell and balances each cell until the battery voltage across all cells is closely matched; +/-0.03V.

I also included a box with a switch and an LCD display. Some extra components are included such as a small trimmer potentiometer to adjust the LCD brightness, DIP switch with 4 contacts, toggle switch to turn power-off and on and a box to store the components.

This is what the new setup looks like:
dis4

dis5

And here’s the result:

1.This is the starting position of the 4 lithium batteries.
dis1
2. Then the batteries begin to discharge.
dis2
3. And at the end, the battery voltages are closely matched.
dis3

Here’s the new code:
Continue reading