Battery Charger Circuit using IC LM317 is an useful project in electronics, it charges rechargeable batteries well.
The main part is the LM317 IC, a voltage regulator used in power supplies and battery charging, it also works well for charging 12V lead-acid batteries.
This post show how LM317 IC charger works, what calculations to use and how to make it.
Circuit Working:

Parts List:
| Components | Values | Quantity |
|---|---|---|
| Resistors | 0.56Ω 1/4 watt | 1 |
| 470Ω 1/4 watt | 1 | |
| 120Ω 1/4 watt | 1 | |
| 100Ω 1/4 watt | 1 | |
| Preset 220Ω | 1 | |
| Capacitors | Ceramic 0.22µF | 2 |
| Electrolytic 1000µF 25V | 1 | |
| Semiconductors | IC LM317 | 1 |
| Transistor BC547 | 1 |
This circuit uses 18V DC input and LM317 IC control voltage for charging and BC547 transistor give extra current when needed.
Then LM317 keep voltage stable so its charging is safe and good and then resistor R1 limit current to battery.
Adjustable resistor R5 set charging voltage as per battery need and capacitors C1, C2, C3 remove ripples and make voltage smooth for better working.
Formulas with Calculations:
Below are formulas for simple LM317 battery charger:
Output Voltage:
LM317 give output voltage by:
Vout = 1.25V × (1 + R5 / R3) + Iadj × R5
Iadj is very small of about 50µA, so we ignore.
If R3 = 120Ω and R5 = 0 to 220Ω:
Vout = 1.25V × (1 + 220 / 120)
This give voltage around 1.25V to 6V which is good for many batteries.
Current Limit:
Use ohms law:
Icharge = VR1 / R1
R1 = 0.56Ω
Voltage drop on R1 sets the current and then this stops too much current and protects the battery.
How to Build:
To build a Battery Charger Circuit using IC LM317 follow the below mentioned steps for connections
- First, collect all parts from circuit diagram.
- Then ADJ pin 1 of IC1 goes to collector of Q1, base of Q1 goes to resistor R4 and emitter of Q1 go to GND.
- Now ADJ pin also connect between R3 and R2.
- After that, OUTPUT pin 2 of IC1 connect to one side of C3 and other side to other end of R4 and OUTPUT pin also go to R2, R3 and VR1 in series to GND.
- Next, INPUT pin 3 of IC1 goes to C2 and GND.
- Also, C1 positive connect to INPUT pin and negative to GND and also INPUT pin connect to +18V DC and negative to GND.
- Finally, R1 connect to control charging current and protect battery.
Conclusion:
To conclude, this Battery Charger Circuit using IC LM317 is good for many batteries.
We require change R5 to set voltage as need, so use good parts and manage heat for safe working; therefore, the circuit is easy to make, cheap and is best for DIY lovers.
Leave a Reply