• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Li-ion Battery Charger Circuit using LM317 IC

Li-ion Battery Charger Circuit using LM317 IC

Last updated on 23 April 2026 by Admin-Lavi Leave a Comment

This Li-ion Battery Charger Circuit using LM317 IC is small and easy charger circuit which is for Li-ion battery, it uses one chip called LM317 and we can make this at home with few parts.

Hence, it is good for learning how battery charging works, also we will talk about how this battery charges best and how to keep it safe so battery live longer time.

But we should be careful while working with battery and should always check everything two time.

What is a Li-ion Battery Charger Circuit:

A Li-ion battery charger is an electric circuit that charges Li-ion batteries, people use them in many devices, including computers, mobile phones, cameras and electric cars.

Also, it is good because it gives lot of power and we can charge again, charger for this battery must work carefully as it helps battery live longer and stop overcharging problem.

Charging Characteristics:

Li-ion and Li-Po battery charge in two steps: current mode and voltage mode.

When charger start it give same current and voltage go up slowly, after battery get full voltage (Umax) the charger change to voltage mode and then the voltage stay same, but current goes down slowly to zero.

This way charging finishes safely and correctly.

Circuit Working:

 Li-ion Battery Charger Circuit using LM317 IC Diagram

Parts List:

ComponentsValuesQuantity
Resistors (All resistors are 1/4 watt unless specified)330Ω CFR1
Rx (as given) CFR1
Preset 1k CFR1
CapacitorsPPC 100nF1
Electrolytic 1000µF1
SemiconductorsTransistor BC5471
IC LM3171
Fuse 1 Amp1
Heatsink for LM3171

For Li-ion and Li-Po battery full voltage is 4.2V and some use 4.1V but low voltage is around 3.7V or 3.6V.

Also, its very important to know that charging to 4.2V can make battery life short and if we charge only to 4.1V then battery gives little less power which is about 10% less but it lives almost double time.

Hence, never let battery go below 3.4V or 3.3V and better to keep battery half charged for long life.

Charger Schematic and Construction:

This Li-ion charger circuit uses LM317 chip to keep voltage stable, for Li-ion and Li-Po battery correct voltage is very important.

To charge to a full 4.2V, we must set the voltage very exactly to about ±1% and if charging to 4.1V (90% full), a voltage tolerance of ±3% is OK.

Also, we can use the small screw trimmer P1 to set the voltage and the LM317 provides excellent control.

Further, one NPN transistor and one shunt resistor Rx help to control the current.

When voltage drops across Rx it become 0.6V and transistor turn ON at lower voltage adjust pin, this controls the charging current.

We find Rx value by this formula:

Rx = 0.6 / Imax

Also, for safety it is good idea to put fuse in series with battery and set it correct.

Formulas:

This formula finds the output voltage (Vout) from the LM317 circuit with adjustable resistors:

Vout = Vref × (1 + R2/R1) + Iadj × R2

where:

  • Vref is inside LM317 which is usually 1.25V.
  • R1 is between output and adjust (Adj) pin.
  • R2 go from Adj pin to ground.
  • Iadj is small current from adjust pin to about 50 to 100 microamp.

Safety and Circuit Information:

Charger works with 9V to 24V power and if voltage is too high then LM317 get hot and waste power.

Furthermore, if voltage is too low then circuit does not work right, so use big heat sink for LM317 so it stay cool.

The charger gives safe, high quality operation with the right settings and resists output short circuits

How to Build:

Below mentioned are the steps to build a Li-ion Battery Charger Circuit using LM317 IC.

  • First, put LM317 on breadboard.
  • Next, connect 330 ohm resistor between output pin and adjust (Adj) pin.
  • Then connect Adjust (Adj) and Input (Vin) pin to DC power from 6V to 12V.
  • After that connect two capacitors 10μF and 1000μF between Adjust pin and ground.
  • Also, connect potentiometer P1 between Adjust pin and ground, turn P1 to set voltage we want.
  • Do this step without battery and check output voltage with no load.
  • Next, connect emitter of Q1 BC547 to ground.
  • Then connect Adjust pin to collector of Q1.
  • After that connect one side of P1 to base of BC547.
  • Also, connect resistor Rx in series with battery negative wire.
  • Now add fuse right value in series with battery positive wire for safety.
  • Then connect LM317 to big heat sink so it does not get too hot.
  • Finally, use power supply between 9V and 24V.

Testing:

  • Power ON the charger with proper voltage from 9V to 24V
  • Use multimeter to check output voltage is correct.
  • Be sure charging current is also correct.
  • Watch if battery or circuit become hot or behave strange then stop if any problem.

Safety Precautions:

  • Check all wires and parts are connected strongly with no loose or short wires.
  • Always check battery and charger wires and be make sure + and – connections are correct.
  • Heat sink must stay cool and keep it in open air to remove heat.
  • Look at battery label and do not go over its voltage or current limit.
  • Do not overcharge because overcharge can make battery hot, weak or even dangerous.

Conclusion:

Overall, this Li-ion Battery Charger Circuit using LM317 IC can work good but still it has limits.

The circuit is good for learning for small projects but is not best for full safety and for best and safe charging better to use charger made specially for Li-ion batteries.

References:

Datasheet LM317

Filed Under: Battery Charger Circuits

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « How to Build a Two LED Temperature Indicator Circuit
Next Post: How to Make a Simple LED Bulb Circuit »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • 555 Timer Projects (17)
  • Alarm Circuits (56)
  • Amplifier Circuits (73)
  • Arduino Projects (102)
  • Audio Circuits (136)
  • Automation Circuits (4)
  • Automobile Circuits (22)
  • Battery Charger Circuits (75)
  • DIY Projects (21)
  • Free Energy (13)
  • Heater and Temperature Controllers (20)
  • High Voltage (11)
  • Hobby Circuits (2)
  • Indicator Circuits (56)
  • Inverter Circuits (19)
  • IoT projects (1)
  • LDR Circuits (34)
  • LED and Lamps (173)
  • Meters and Testers (35)
  • Motor Controllers (22)
  • Oscillator Circuits (44)
  • Power Supply Circuits (174)
  • Remote Control Circuits (9)
  • Security and Protection (41)
  • Sensors and Detectors (154)
  • Solar Circuits (31)
  • Timer Circuits (48)
  • Transistor Circuits (130)
  • Transmitter Circuit (17)
  • Tutorials (8)
  • Voltage Regulator (1)
  • Water Level Controller (7)

Recent Posts

  • UJT Based High Voltage Mini Audio Amplifier Circuit
  • Transformerless Audio Amplifier Circuit using Germanium Transistor
  • Low Impedance Driver Circuit using BJT Transistor
  • How to Replace IC TDA2050 with LM1875 IC in Audio Amplifier Circuit
  • Transistor Based Audio Amplifier Circuit

Recent Comments

  1. Admin-Lavi on Alternate Red Green LED Flasher Circuit
  2. Admin-Lavi on Alternate Red Green LED Flasher Circuit
  3. Mike on Alternate Red Green LED Flasher Circuit
  4. angel on 12 Watts Amplifier Circuit using Transistors
  5. Simple 1.5V Single Cell LED Flasher Circuit - Circuit Ideas for You on Simple 1.5V White LED Flasher Circuit

Copyright © 2026 | New Circuit Ideas