DIY Smart Lithium Battery Charger With LED Fuel Gauge
Built a smart Li-ion charger with 10-LED fuel gauge. Features BQ24075 for charging & LM3914 voltage monitoring. Full build guide available!
Tired of guessing your battery's charge level? In this Instructable, I'll show you how to build a professional-grade lithium battery charger with a visual 10-segment LED indicator. This project combines the reliable BQ24075 charging IC with the classic LM3914 display driver to create a compact, feature-packed module perfect for powering your DIY projects. Whether you're building a portable speaker, robot, or any battery-powered device, this charger will keep your power in check!
- How to design a circuit with charging and monitoring capabilities
- Proper LM3914 configuration for accurate voltage reading
- Professional PCB assembly techniques
- Troubleshooting common circuit issues
- PCB Fabrication:JLCPCB (Green solder mask!)
- Soldering:
- Soldering iron or hot air station
- Solder paste
- PCB stencil
- Tweezers
- Debugging:
- Multimeter
- Microscope
- Design Software: Altium Develop
- USB-C input for universal compatibility
- Voltage dividers scale battery voltage for the LM3914
- MODE pin selection (dot vs. bar display)
- Proper decoupling capacitors for stable operation

- Place power components on top side
- Keep analog and digital sections separate
- Use thick traces for high-current paths
- Add test points for debugging
- Export Gerber files from your EDA software
- Upload to JLCPCB (or similar service)
- Choose your preferred color and finish
- Order a stencil for easy assembly
GERBER Files [Download here]

- Align stencil and apply solder paste
- Place components using tweezers
- Reflow using hot plate (show temperature profile)
- Inspect under microscope

Top Side Assembly:
- Use 3D-printed jig to hold PCB
- Repeat paste application
- Place remaining components
- Use hot air gun for reflow

Initially, all LEDs stayed on regardless of battery voltage. The issue was incorrect voltage scaling for the LM3914. I had to rework the voltage divider resistors to properly scale the battery voltage to the chip's 1.25V reference range.

- The LM3914 needs scaled voltage inputs
- RHI must connect to the 1.25V reference
- Battery voltage must be divided down
- Use proper resistor values for 2.7V-4.2V range

- Visual inspection for solder bridges
- Check power consumption with no battery
- Verify LED blinking pattern (no battery detected)
- Test with fully charged battery (all LEDs on)
Charging Test:
- Connect partially discharged battery
- Monitor LED progression over time
- Measure actual battery voltage vs. LED indication
- Validate full charge detection





Discussion (0 comments)