Projects / Per-cell LiPo monitor

Per-cell LiPo monitor

Beginner1.5 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. NANO

    Build the three dividers

    Check them with a bench supply first.

  2. NANO

    Connect the ground first

    Then the taps, lowest to highest.

  3. NANO

    Upload the sketch

    Read the Serial values if needed.

  4. NANO

    Compare with a meter

    Adjust VREF.

  5. NANO

    Test the alarm

    Use a bench supply, not a real pack.

  6. NANO

    Try a real pack

    Away from anything flammable.

  7. NANO

    Unplug it after use

    Do not store it connected.

In short

How do you build a per-cell LiPo monitor?

A tiny board shows each cell of a 2S or 3S LiPo and beeps when any cell is low. You need Arduino Nano, Resistor 10 kΩ × 3, Resistor 4.7 kΩ × 3, Active buzzer 5 V and SSD1306 OLED Display. It takes 7 steps and about 90 minutes.

Level
Beginner
Time
About 90 min
Parts
5

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Balance lead black (pack minus)Nano GND and the bottom of all three 4.7 k resistorsCommon ground
Balance lead cell 1 tap (about 4.2 V)10 k resistor, its other end to A0 and a 4.7 k to GNDDivider 1
Balance lead cell 2 tap (about 8.4 V)10 k resistor, its other end to A1 and a 4.7 k to GNDDivider 2
Balance lead cell 3 tap (about 12.6 V)10 k resistor, its other end to A2 and a 4.7 k to GNDDivider 3
OLED SDA and SCLNano A4 and A5I2C display
OLED VCC and GNDNano 5V and GNDPower
Buzzer plus and minusNano D8 and GNDLow-cell alarm
Nano USBA power bank, not the LiPoPower for the monitor

Code

A balance lead has one wire for each cell tap, so each tap carries the voltage of everything below it: about 4.2 V, 8.4 V and 12.6 V on a full 3S pack. A divider of 10 k over 4.7 k scales 12.6 V down to about 4 V, safe for the Nano, and the sketch works backwards from there, then subtracts one tap from the next to get each cell. Calibrate against a meter: check each tap and adjust VREF until they agree. The alarm at 3.5 V per cell leaves some margin, since LiPo cells should not be run flat. Treat this as a monitor, not as protection: it does not cut off the load. LiPo safety: never short the balance lead, plug it in with the pack disconnected from load and the correct polarity, and do not leave the dividers connected to a stored pack because they draw a small and slightly uneven current from the cells. Never charge a damaged or puffy pack, charge on a non-flammable surface, and never leave charging packs unattended. Power the Nano from a power bank, not from the pack, so its supply does not change what you are measuring. Arduino IDE, board "Arduino Nano" (try the Old Bootloader option if the upload fails).

Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

// Per-cell LiPo monitor for 2S or 3S packs: reads three dividers, works out each cell, beeps if any cell is below 3.5 V.
// Libraries: Adafruit SSD1306, Adafruit GFX. Board: Arduino Nano powered from USB (reference is about 5 V).
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
const uint8_t PIN_BUZ = 8;
const float VREF = 5.00;                   // measure the Nano 5V pin with a meter and enter it here
const float RATIO = (10.0 + 4.7) / 4.7;    // divider ratio, about 3.13
const float ALARM_V = 3.5;
const int CELLS = 3;                       // set to 2 for a 2S pack; the unused input just reads 0
float tap(uint8_t pin) {
  analogRead(pin);                          // throw away the first reading, the divider is high impedance
  long sum = 0;
  for (int i = 0; i < 8; i++) sum += analogRead(pin);
  return (sum / 8.0) * VREF / 1023.0 * RATIO;
}
void setup() {
  pinMode(PIN_BUZ, OUTPUT);
  oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
  oled.setTextColor(SSD1306_WHITE);
}
void loop() {
  float t[3] = { tap(A0), tap(A1), tap(A2) };
  float cell[3];
  cell[0] = t[0]; cell[1] = t[1] - t[0]; cell[2] = t[2] - t[1];
  float lowest = 99; int lowIdx = 0;
  oled.clearDisplay(); oled.setTextSize(1);
  for (int i = 0; i < CELLS; i++) {
    oled.setCursor(0, i * 12);
    oled.print("Cell "); oled.print(i + 1); oled.print(": "); oled.print(cell[i], 2); oled.print(" V");
    if (cell[i] < lowest) { lowest = cell[i]; lowIdx = i; }
  }
  oled.setCursor(0, 44); oled.print("Lowest: cell "); oled.print(lowIdx + 1);
  oled.setCursor(0, 54); oled.print("Pack: "); oled.print(t[CELLS - 1], 2); oled.print(" V");
  oled.display();
  if (lowest < ALARM_V) { tone(PIN_BUZ, 3000, 300); }
  delay(1000);
}

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Bench supply 4 V, 8 V, 12 V on tapsCell readings near 4.0 V each
Pack on the leadReadings agree with a meter within 0.05 V
One cell below 3.5 VBeeps and lowest cell is shown
DisplayUpdates once a second

If it does not work

Readings jump

Add a small capacitor from each divider output to GND, or average more.

Cell values look wrong

Check the tap order on the connector.

All zero

The balance lead ground is not joined to the Nano ground.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the per-cell LiPo monitor?

Arduino Nano, Resistor 10 kΩ × 3, Resistor 4.7 kΩ × 3, Active buzzer 5 V and SSD1306 OLED Display.

How long does the per-cell LiPo monitor take to build?

About 90 minutes for a beginner maker, in 7 steps.

How do I know the per-cell LiPo monitor works?

Bench supply 4 V, 8 V, 12 V on taps: Cell readings near 4.0 V each. Pack on the lead: Readings agree with a meter within 0.05 V. One cell below 3.5 V: Beeps and lowest cell is shown.

Readings jump: what should I check?

Add a small capacitor from each divider output to GND, or average more.

Cell values look wrong: what should I check?

Check the tap order on the connector.

All zero: what should I check?

The balance lead ground is not joined to the Nano ground.