Beginner Project

Build a Battery Level Indicator

Knowing the remaining charge of a battery is important in almost every electronic project. A battery level indicator uses LEDs to display the battery voltage, allowing you to quickly determine whether the battery is fully charged, partially discharged or nearly empty. This project introduces voltage sensing, voltage dividers, comparators and LED indicators.

Battery Level Indicator Project

Project Overview

As a battery discharges, its voltage gradually decreases.

A battery level indicator continuously monitors this voltage and lights different LEDs according to the remaining battery capacity.

Several circuit designs are possible, ranging from simple transistor circuits to dedicated LED driver ICs such as the LM3914.

Project Difficulty

Item Value
Difficulty ⭐ Beginner
Build Time 30–60 minutes
Supply Voltage 3V–15V DC
Soldering Optional

Recommended Version (LM3914)

The LM3914 is a dedicated LED bar graph driver that directly displays an analog voltage on up to ten LEDs.

Quantity Component
1 LM3914 IC
10 LEDs
1 10 kΩ Potentiometer
2 Reference Resistors
1 Battery Holder
1 Breadboard or PCB

Alternative Circuit

If an LM3914 is unavailable, a battery indicator can also be built using:

  • LM339 Comparator
  • LM324 Operational Amplifier
  • Zener Diodes
  • BC547 Transistors
  • Voltage Divider Resistors

How the Circuit Works

The battery voltage is compared with several reference voltages.

As the battery voltage decreases, fewer LEDs remain illuminated.

When fully charged, all LEDs light. As the battery discharges, the LEDs turn off one by one until only the red LED remains, indicating that the battery should be recharged.

Typical LED Indication

Battery Condition LED Display
100% 🟢🟢🟢🟢🟢
75% 🟢🟢🟢🟢⚫
50% 🟢🟢🟢⚫⚫
25% 🟢🟢⚫⚫⚫
Low Battery šŸ”“āš«āš«āš«āš«

Example Voltage Levels (12V Lead-Acid Battery)

Voltage Battery Status
12.7–12.8 V Fully Charged
12.5 V Approximately 80%
12.2 V About 50%
12.0 V Low Charge
11.8 V or below Recharge Recommended

Applications

  • Rechargeable battery packs.
  • Solar energy systems.
  • Portable speakers.
  • Emergency lighting.
  • Power banks.
  • Electric bicycles.
  • UPS systems.
  • Arduino projects.

Testing

  1. Connect the battery.
  2. Measure its voltage using a multimeter.
  3. Compare the measured voltage with the LED display.
  4. Adjust the reference potentiometer if required.
  5. Repeat using different battery voltages.

Troubleshooting

Problem Possible Cause
No LEDs illuminate No power or incorrect wiring.
All LEDs stay ON Reference voltage incorrectly adjusted.
Incorrect battery reading Voltage divider values incorrect.
LED brightness uneven Wrong resistor values.
Display unstable Poor battery connection or electrical noise.

Possible Improvements

  • Add an OLED or LCD voltage display.
  • Use a microcontroller for greater accuracy.
  • Add a low-battery buzzer.
  • Display battery percentage.
  • Automatically disconnect the load at low voltage.
  • Support lithium, lead-acid and NiMH batteries with selectable modes.

Skills Learned

  • Voltage measurement.
  • Comparator circuits.
  • Voltage dividers.
  • LED bar graph displays.
  • Battery characteristics.
  • Calibration techniques.

Safety Notes

  • Observe correct battery polarity.
  • Do not short-circuit batteries.
  • Use the correct voltage range for the battery being tested.
  • Recharge batteries before they become excessively discharged.
  • Take care when working with lithium batteries, as over-discharge can permanently damage them.

Next Project

Continue by building a Continuity Tester, an essential tool for checking wires, switches, PCB tracks and electronic components.

Next Project → Continuity Tester