Projects / LiPo cell checker with alarm

LiPo cell checker with alarm

Beginner1.3 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. NANO

    Identify the balance lead

    Pin 1 is the lowest cell minus.

  2. NANO

    Build the three dividers

    10 k and 4.7 k each.

  3. NANO

    Check with a bench supply

    Feed 4.0, 8.0 and 12.0 V first.

  4. NANO

    Calibrate each tap

    Match a multimeter.

  5. NANO

    Add the display

    Show each cell.

  6. NANO

    Add the alarm

    Below 3.5 V.

  7. NANO

    Test with a real pack

    Unplug when done.

In short

How do you build a liPo cell checker with alarm?

Plug a LiPo's balance lead in and see every cell's voltage, with a beep when any cell falls below 3.5 V. You need Arduino Nano, Resistor 10 kΩ × 3, Resistor 4.7 kΩ × 3, JST XH 2.54 mm connector kit, SSD1306 OLED Display and Active buzzer 5 V. It takes 7 steps and about 75 minutes.

Level
Beginner
Time
About 75 min
Parts
6

Parts list

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

Wiring

FromToWhy
Balance lead pin 1 (lowest, minus)Nano GNDCommon ground
Balance lead pin 2 (cell 1 plus)10 k to Nano A0, with 4.7 k from A0 to GNDDivider 1
Balance lead pin 3 (cell 2 plus)10 k to Nano A1, with 4.7 k from A1 to GNDDivider 2
Balance lead pin 4 (cell 3 plus, 3S only)10 k to Nano A2, with 4.7 k from A2 to GNDDivider 3
OLED SDA and SCLNano A4 and A5I2C
OLED VCC and GNDNano 5V and GNDPower
Buzzer plus and minusNano D8 and GNDAlarm
Nano USBComputer or a power bankPower for the checker

Code

A LiPo pack is a stack of cells in series, and the cells can drift apart over time, so the pack total hides the weak one. The balance lead has a wire to each junction between cells, so measuring each wire against the bottom one and subtracting gives every cell on its own. The dividers bring the 4.2, 8.4 and 12.6 volts of a fully charged 3S pack down to a range the Nano can read. Calibrate each one against a multimeter and type the correction into the sketch. The alarm sounds when any cell falls below 3.5 V, which is a sensible early warning; never discharge a LiPo below about 3.0 V a cell. Safety matters here. The checker draws about a milliamp from the pack the whole time it is connected, so unplug it when done. Check the lead the right way round before plugging in, and never touch two balance pins together with a tool, because LiPo packs can ignite when shorted. Do not use a swollen, damaged or hot pack; take it away from anything flammable. This checker only measures, it does not balance or charge. 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).

// LiPo cell checker for 2S or 3S packs through the balance lead. Libraries: Adafruit SSD1306, Adafruit GFX.
// Board: Arduino Nano. Each tap is divided by 14.7 / 4.7. Calibrate by comparing with a multimeter.
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
const byte NUM_CELLS = 3;                    // 2 or 3
const byte PIN[3] = {A0, A1, A2};
float CAL[3] = {1.000, 1.000, 1.000};        // multiply the reading until it matches the meter
const float RATIO = (10.0 + 4.7) / 4.7;
const float VREF = 5.0;                      // better: measure the Nano 5V pin and enter it here
const float LOW_CELL = 3.50;
float tapVolts(byte i) {
  long sum = 0;
  for (int k = 0; k < 16; k++) sum += analogRead(PIN[i]);
  return (sum / 16.0) * VREF / 1023.0 * RATIO * CAL[i];
}
void setup() {
  pinMode(8, OUTPUT);
  oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
  oled.setTextColor(SSD1306_WHITE);
}
void loop() {
  float tap[3], cell[3];
  for (int i = 0; i < NUM_CELLS; i++) tap[i] = tapVolts(i);
  bool low = false; int worst = 0;
  oled.clearDisplay(); oled.setTextSize(1); oled.setCursor(0, 0);
  oled.print(NUM_CELLS); oled.print("S pack  total "); oled.print(tap[NUM_CELLS - 1], 2); oled.print(" V");
  for (int i = 0; i < NUM_CELLS; i++) {
    cell[i] = tap[i] - (i == 0 ? 0 : tap[i - 1]);
    if (cell[i] < cell[worst]) worst = i;
    if (cell[i] < LOW_CELL) low = true;
    oled.setCursor(0, 14 + i * 12); oled.print("Cell "); oled.print(i + 1); oled.print(": "); oled.print(cell[i], 2); oled.print(" V");
  }
  oled.setCursor(0, 54); oled.print(low ? "LOW: cell " : "Lowest: cell "); oled.print(worst + 1);
  oled.display();
  if (low) tone(8, 2000, 200); else noTone(8);
  delay(500);
}

Test checklist

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

CheckExpected
Bench supply testReadings within 0.05 V of the meter
Charged 3S packEach cell near 4.2 V
Lower one cell tap thresholdAlarm sounds
Unplug the leadNothing is drawn from the pack

If it does not work

Readings too high

Check the divider resistor values.

Cell 1 reads wrong

Check the lead pin order.

Display blank

Check the I2C address and wiring.

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

Ask Lark AI

Common questions

What parts do I need for the liPo cell checker with alarm?

Arduino Nano, Resistor 10 kΩ × 3, Resistor 4.7 kΩ × 3, JST XH 2.54 mm connector kit, SSD1306 OLED Display and Active buzzer 5 V.

How long does the liPo cell checker with alarm take to build?

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

How do I know the liPo cell checker with alarm works?

Bench supply test: Readings within 0.05 V of the meter. Charged 3S pack: Each cell near 4.2 V. Lower one cell tap threshold: Alarm sounds.

Readings too high: what should I check?

Check the divider resistor values.

Cell 1 reads wrong: what should I check?

Check the lead pin order.

Display blank: what should I check?

Check the I2C address and wiring.