• 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 12 July 2025 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.

It is good for learning how battery charging works.

Also will talk about how this battery charges best and how to keep it safe so battery live longer time.

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

What is a Li-ion Battery Charger Circuit:

Li-ion battery charger is electric circuit made to charge Li-ion battery.

Li-ion battery are used in many things like computer, mobile phone, camera and electric car.

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:

CategoryComponentQuantity
Resistors (All resistors are /14 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.

Very important to know that charging to 4.2V can make battery life short.

If we charge only to 4.1V then battery gives little less power which is about 10% less but it lives almost double time.

Also 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 full 4.2V voltage must be set very exact to about ±1%.

If charge to 4.1V to 90% full then voltage should be ±3% is OK.

Small screw trimmer P1 is used to set the voltage and LM317 controls it is very good.

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:

The output voltage (Vout) from LM317 circuit with adjustable resistors is found by this formula:

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.

If voltage is too high then LM317 get hot and waste power.

If voltage too low then circuit does not work right.

Use big heat sink for LM317 so it stay cool.

The charger is made to work safe and good with right settings. be resistant to output short circuits.

How to Build:

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

  • Put LM317 on breadboard.
  • Connect 330 ohm resistor between output pin and adjust (Adj) pin.
  • Connect Adjust (Adj) and Input (Vin) pin to DC power from 6V to 12V.
  • Connect two capacitors 10μF and 1000μF between Adjust pin and ground.
  • 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.
  • Connect emitter of Q1 BC547 to ground.
  • Connect Adjust pin to collector of Q1.
  • Connect one side of P1 to base of BC547.
  • Use this formula: Rx = 0.6 / Imax
  • Imax is how much charging current we want
  • Connect Rx in series with battery negative wire.
  • Add fuse right value in series with battery positive wire for safety.
  • Connect LM317 to big heat sink so it does not get too hot.
  • 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 strong 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:

This Li-ion Battery Charger Circuit using LM317 IC can work but it has limits.

It is good for learning and for small projects but is not best for full safety.

For best and safe charging better to use charger made specially for Li-ion batteries.

References:

Datasheet LM317

Lithium-ion battery

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

  • Alarm Circuits (30)
  • Amplifier Circuits (67)
  • Arduino Projects (29)
  • Audio Circuits (93)
  • Automobile Circuits (19)
  • Battery Charger Circuits (48)
  • Free Energy (13)
  • Heater and Temperature Controllers (9)
  • Indicator Circuits (38)
  • Inverter Circuits (13)
  • LDR Circuits (13)
  • LED and Lamps (111)
  • Meters and Testers (27)
  • Motor Controllers (18)
  • Oscillator Circuits (32)
  • Power Supply Circuits (91)
  • Remote Control Circuits (6)
  • Security and Protection (23)
  • Sensors and Detectors (71)
  • Solar Circuits (16)
  • Timer Circuits (27)
  • Transistor Circuits (56)
  • Transmitter Circuit (12)
  • Tutorials (4)
  • Water Level Controller (4)

Copyright © 2025 | New Circuit Ideas