DIY Universal 100W Battery Charger Tutorial

Diy Universal Battery Charger Project

Hello and welcome to this DIY project where we will be making a universal battery charger capable of delivering up to 100 watts of power. This charger is best suited for charging 3S, 4S, and 5S lithium batteries as well as 12V lead-acid batteries.

Project Overview

In this project, we will be using a 24V AC to DC SMPS (Switch-Mode Power Supply) as the primary power source. This will be combined with a DC to DC step-down converter that has both constant current and constant voltage options. We will also be incorporating a power socket with a switch and fuse for added safety features.

Components Used

  • 24V AC to DC SMPS (Switch-Mode Power Supply)
  • DC to DC step-down converter with constant current and constant voltage options
  • Power socket with switch and fuse
  • 10A voltage and amp meter
  • Mountable XT60 connector

Enclosure Design

To house all the components, we have designed a custom 3D printed enclosure. The design files for this enclosure are available in the resources section below.

Resources

  • JLCPCB: A leading PCB manufacturer offering high-quality boards at competitive prices.
  • LCSC.com: The largest electronic parts supplier with a wide selection of components and fast shipping options.
  • Wiring diagrams and 3D printing files for the enclosure design can be found in the resources section below.

Conclusion

This DIY universal battery charger project is a great way to create a versatile and powerful charging solution for your lithium-ion batteries. With its ability to deliver up to 100 watts of power, this charger is perfect for charging larger batteries such as the 18650 4S 3P lithium-ion battery.

Special Thanks and Sponsorship

A big thank you to our sponsor, JLCPCB, for their continued support of this project. As a leading PCB manufacturer, JLCPCB offers high-quality boards at competitive prices.

JLCPCB has recently updated their website with new features and discounts. They are now offering up to 30% off on 1-6 layer PCBs, up to 20% off on stencils, and up to 10% off on shipping.

Components Purchasing Links

  • 24V AC to DC SMPS (Switch-Mode Power Supply): [insert link]
  • DC to DC step-down converter with constant current and constant voltage options: [insert link]
  • Power socket with switch and fuse: [insert link]
  • 10A voltage and amp meter: [insert link]
  • Mountable XT60 connector: [insert link]

Resources and Download Links

  • Wiring diagrams: [insert link]
  • 3D printing files for the enclosure design: [insert link]
  • JLCPCB Gerber file format: [insert link]
Please note that you will need to insert the actual links and purchasing information in the above tables.

Battery Charger A battery charger is an electrical device that converts AC power from a wall outlet into DC power to recharge a battery.
Background The development of battery chargers dates back to the late 19th century, with the invention of the first rechargeable batteries. Over the years, advancements in technology have led to the creation of various types of battery chargers, including linear chargers, switching-mode chargers, and smart chargers.
Types of Battery Chargers There are several types of battery chargers available, each designed for specific applications. These include:
   • Linear Chargers: Simple and inexpensive, but less efficient than other types.
   • Switching-Mode Chargers: More efficient and compact than linear chargers.
   • Smart Chargers: Can detect the battery type and adjust charging parameters accordingly.
Features and Safety Precautions Battery chargers often come with features such as overcharge protection, reverse polarity protection, and thermal monitoring. It is essential to follow safety precautions when using a battery charger, including avoiding overheating and ensuring proper ventilation.


DIY Universal 100W Battery Charger Tutorial

Introduction: This tutorial will guide you through the process of building a universal 100W battery charger using easily available components. This charger can be used to charge a wide range of batteries, from small Ni-Cd and NiMH cells to larger lead-acid batteries.
Components:
  • 1 x LM317T voltage regulator
  • 1 x 10uF/25V electrolytic capacitor
  • 1 x 100uH inductor
  • 1 x 1N4007 diode
  • 1 x 10kΩ potentiometer
  • 1 x 10kΩ resistor
  • 1 x LED (optional)
  • Jumper wires and breadboard
Circuit Diagram: Circuit Diagram The circuit diagram shows the connections between the components. The LM317T voltage regulator is used to regulate the output voltage, while the inductor and capacitor form a filter to smooth out the output.
Step-by-Step Instructions:
  1. Connect the input power source (a wall adapter or a battery) to the input terminals of the circuit.
  2. Connect the output terminals of the circuit to the battery being charged.
  3. Adjust the potentiometer to set the desired output voltage.
  4. Connect the LED (if using) across the output terminals to indicate when the charger is active.
  5. Plug in the input power source and verify that the charger is working by checking the output voltage with a multimeter.
Safety Precautions:
  • Always use caution when working with electrical components and power sources.
  • Make sure the charger is properly insulated to prevent short circuits.
  • Never leave the charger unattended while it is in operation.
  • Use proper ventilation when charging batteries to avoid explosion hazards.
Conclusion: This DIY universal battery charger is a simple and cost-effective solution for charging a wide range of batteries. By following the instructions in this tutorial, you can build your own charger using easily available components.


Q1: What is the main goal of this DIY project?This DIY project aims to create a universal 100W battery charger that can charge various types of batteries, including Li-ion, NiMH, and Lead-Acid.
Q2: What are the required components for this project?The required components include an Arduino board, a voltage regulator, a current sensor, a thermistor, a power transistor, a diode, a resistor, a capacitor, and a battery holder.
Q3: What is the purpose of the Arduino board in this project?The Arduino board serves as the brain of the charger, controlling the charging process and monitoring the battery's state of charge.
Q4: How does the voltage regulator work in this project?The voltage regulator (e.g., LM317) regulates the input voltage to a stable 5V or 12V, which is required for the Arduino board and other components.
Q5: What type of current sensor is used in this project?A hall-effect current sensor (e.g., ACS712) is used to measure the charging current, allowing the charger to adjust its output accordingly.
Q6: Why is a thermistor used in this project?A thermistor monitors the temperature of the battery and charger, ensuring that they do not overheat during the charging process.
Q7: What type of power transistor is recommended for this project?A high-current power transistor (e.g., TIP120) is used to control the flow of current from the charger to the battery.
Q8: Can I use a different type of battery holder in this project?Yes, you can use different types of battery holders, but ensure they are compatible with your specific battery type and size.
Q9: How do I set the charging parameters (e.g., voltage, current) for my specific battery type?You need to consult your battery's datasheet and adjust the charger's settings accordingly using the Arduino code. The default values are usually provided in the example code.
Q10: What safety precautions should I take when building and using this DIY charger?Always use proper insulation, keep the charger away from flammable materials, and ensure good ventilation. Additionally, never leave a charging battery unattended, as it may cause damage or fires.




Rank Pioneer/Company Contribution
1 Gaston Planté Invented the lead-acid battery, a fundamental component of modern battery chargers.
2 Nikola Tesla Developed alternating current (AC) systems, which enabled efficient transmission of electricity for charging batteries.
3 Robert Bosch GmbH Introduced the first commercial battery chargers in the early 20th century, revolutionizing the automotive industry.
4 Black & Decker Popularized DIY home improvement and introduced affordable power tools, including cordless drills with rechargeable batteries.
5 Maxim Integrated Developed high-performance, compact battery charger ICs (integrated circuits) for a wide range of applications.
6 Linear Technology Created advanced battery charger solutions with features like high efficiency, low heat dissipation, and compact designs.
7 Texas Instruments Introduced battery management ICs that enable efficient charging and monitoring of lithium-ion batteries in various devices.
8 NXP Semiconductors Developed battery charger solutions with advanced features like wireless charging, power management, and safety protection.
9 Analog Devices Created high-performance, low-power battery charger ICs for applications like wearables, IoT devices, and electric vehicles.
10 STMicroelectronics Introduced a wide range of battery charger solutions with features like high efficiency, low standby power, and compact designs.




Component Description Value/Part Number
Transformer Step-down transformer for AC input TOROIDAL 12-0-12V 3A (or equivalent)
Rectifier Diodes Full-wave rectification for DC output 4x 1N4007 (or equivalent)
Filter Capacitors Smoothing and filtering of DC output 2x 100uF/250V (or equivalent)
Voltage Regulator Constant voltage regulation for battery charging LM317T (or equivalent)
Current Limiting Resistor Limiting current to safe value for battery charging 1kΩ (or calculated value based on desired current limit)
MOSFET High-side switching for voltage regulation and protection IRF540N (or equivalent)
Battery Connection Screw terminal or connector for battery connection JST-XH 2-pin (or equivalent)
Indicator LEDs Visual indication of charging status and errors 3x LED, 1kΩ resistor each
Thermal Sensor (optional) Monitoring temperature for overheating protection NCP18WF104F03RC (or equivalent)
PCB and Wiring Printed Circuit Board and wiring for component connections Custom-designed PCB or perfboard with wire
Circuit Diagram
Circuit Diagram
Schematic Explanation
The circuit diagram shows the detailed connections between components. The AC input from the transformer is rectified by the diodes and filtered by the capacitors. The voltage regulator (LM317T) provides a constant output voltage, which is adjusted based on the desired charging voltage for the battery. The current limiting resistor ensures that the charging current does not exceed a safe value. The MOSFET acts as a high-side switch to regulate the output voltage and provide protection against overcharging or short circuits. The indicator LEDs provide visual feedback of the charging status.
Bill of Materials (BOM)
  • TOROIDAL 12-0-12V 3A transformer
  • 4x 1N4007 diodes
  • 2x 100uF/250V capacitors
  • LM317T voltage regulator
  • 1kΩ resistor (or calculated value)
  • IRF540N MOSFET
  • JST-XH 2-pin connector
  • 3x LEDs, 1kΩ resistors each
  • NCP18WF104F03RC thermal sensor (optional)
  • PCB and wiring materials
Assembly Instructions
  1. Assemble the PCB or perfboard with components, following proper soldering techniques.
  2. Connect the transformer, rectifier diodes, and filter capacitors according to the circuit diagram.
  3. Install the voltage regulator (LM317T) and adjust the output voltage according to the desired charging voltage for the battery.
  4. Mount the MOSFET on a heat sink if necessary, and connect it to the PCB or perfboard.
  5. Connect the indicator LEDs and resistors to the PCB or perfboard.
  6. If using a thermal sensor, install it according to the manufacturer's instructions.
Testing and Verification
  • Verify that the output voltage is within the desired range for battery charging.
  • Check that the current limiting resistor is functioning correctly to prevent overcharging or short circuits.
  • Monitor the temperature of the charger and ensure it remains within a safe operating range.
Troubleshooting Guide
  • If the charger is not functioning, check for loose connections or soldering issues.
  • If the output voltage is incorrect, verify that the voltage regulator (LM317T) is set correctly.
  • If the charger is overheating, ensure proper heat sinking and airflow around the MOSFET.