1.2V-12V Variable Automatic Battery Charger Using Relay

In this project, I will be going to show you a 1.2V to 12V variable auto-cut-off battery charger using a relay. When the battery level is below the maximum threshold voltage level, the charger starts to charge. When it gets its maximum voltage which is set, then the variable battery charger circuit will automatically cut the charging from the battery. Thus it prevents overcharging of the battery. It is used in many electronics projects for hobbyists.

Here are the full details of how a variable automatic battery charger can be built using a 12V relay and LM317 ic. It can be used in many electronics projects.

Must Read Full Wave Rectifier

Principle Behind Automatic Battery Charger

A battery works by converting its stored chemical energy into electrical energy. Once the electrolyte of the battery is used, it needs to be recharged. A battery charger is a device that can provide DC current to the battery to restore the electrolyte. So when all the electrolytes of the battery are restored, its current supply should stop.

Project

12V Automatic Battery Charger

Circuit Diagram

Automatic Battery Charger Using Relay Circuit Diagram

Components Required

  • 15-0 1A Step-Down Transformer
  • LM317 Voltage Regulator
  • 5 Ampere Bridge Rectifier
  • 12V Relay
  • 220Ω Resistor
  • 1KΩ Resistor
  • 1000uF/35V Electrolyte Capacitor
  • LED (Green, Red)
  • 20KΩ Preset (x2)
  • Double-Sided Prototype Board
  • Connection Wire
  • 12V Battery

Circuit Connection

In this automatic variable battery charger circuit, a 15-0 1A step-down transformer is used. The main AC voltage 220V, 50Hz is connected to the primary part of the transformer.

The output of the transformer i.e. from the secondary part is connected between the diodes D1 and D2 and diodes D3 and D4. Here diodes D1, D2, D3, and D4 are used to convert the AC voltage to the pulsating DC voltage. This is a rectification process. A 1000uF/35V electrolytic capacitor is connected across the pulsating DC voltage to remove the unwanted ripples.

Thus we can get an unregulated DC voltage. This unregulated DC voltage needs to be regulated by using the LM317 voltage regulator to drive a regulated DC voltage.

The output voltage from the voltage regulator can be regulated from 1.2V to 37V and the maximum output current from this IC is 1.5A. The output voltage of the voltage regulator has operated by a preset whose value is 20KΩ which is connected to the adjustable pin of the LM317 ic. A 220Ω feedback resistor is connected between the adjustable pin and output pin of the LM317 ic.

The output of the LM317 voltage regulator is applied to a 12V relay module. Here we join the common terminal and one of the coil terminals together. Then it is directly pointed to the output terminal of the regulator ic. One of the terminals of another 20KΩ potentiometer is connected to another terminal of the relay coil.

After that, we connect the normally open terminal to the anode of the red LED. Another closed terminal to the anode of the green LED for indication purposes. And these two LED cathode terminals are connected to the ground through a 1KΩ resistor.

When it gets full charge, the relay which is connected to the circuit will not conduct the current flow. So all the current flow through the circuit will be grounded.

In this automatic battery charger circuit, the red LED indicates the charging of the battery and the green LED indicates the full charge.

Must Read LM317 Variable Voltage Power Supply

PCB Design

After designing the schematic diagram of the Automatic Battery Charger System, the assembled components and wiring are too clumsy and look unprofessional. In fact, the wiring also has a chance of loose connection. To give it a clean and professional look I decided to build its PCB prototype using EasyEDA software as it is so simple to use. Now come to the main part, where we need to order our PCB prototype. I always prefer PCBWay for their quality assurance, fastest delivery and also for 24/7 customer support.

PCB View

Automatic Battery Charger Using Relay 2D View
2D View
Automatic Battery Charger Using Relay 3D View
3D View

Why I Choose PCBWay as My First Preference?

I’ve done several runs with PCBWay and am happy with the results, it’s good quality. The etching, solder mask, and hole sizes are all done well and that is what matters to me. It takes a few hours for a design to get approved and then a couple of days to finish and ship. With more than a decade in the field of PCB prototypes and fabrication, PCBWay has proved its assurance from time to time. They always look at the customer’s needs from different regions in terms of quality, on-time delivery, cost-effectiveness and any other demanding requests.

PCBWay Gold Finish
PCBWay Thickness

These PCBs were manufactured by PCBWay and the finish quality really impressive, especially with the gold finish path. If you want to finish your product faster you could also ask PCBWay to make a panelized order where you receive multiple PCBs in a single panel. Together with this, you will also receive SMT Stencil from PCBWay which will save you time and effort. All the orders are high quality and could select a lot of settings such as thickness, flexible PCB, the colour of the solder masks, the number of layers, material, surface finish and more.

Aspects of PCBWay

High Delivery Rate

In previous years, the on-time delivery rate was 99%. Rather than PCB quality, PCBWay knows that the other most important factor is the shortest possible lead time, which is critical for R&D engineers, especially in the prototyping phase. PCBWay keeps working to ensure PCBs will be delivered to customers as soon as possible and they’re delighted. It takes only 3 to 15 days according to the courier service to deliver your products. After PCBWay moved to the new factory, the production capacity of multi-layer PCB can be as high as tens of thousands of square meters per month. So on-time delay is also reduced for that. They have the “Return and Refund” principle, for every unusable board caused by PCBWay, they will rebuild and refund the order soon.

Quality Assurance

When talking about quality assurance, all the PCB prototypes go through the most stringent tests rather than the basic visual checks. They have most of the testing and inspecting types of equipment used in the PCB prototyping industry, such as Flying Probe Tester, X-Ray Inspection Machine, and Automated Optical Inspection (AOI) Machine.

PCB Prototyping & Manufacturing

PCBWay New solder mask

PCBWay can also make advanced PCBs which are high-quality PCBs and they are recommended for industrial types of equipment, instrumentation, automotive electronics, communication types of equipment, etc. They produce FR-4 and Aluminum boards and advanced PCBs like Rogers, HDI, and Flexible and Rigid-Flex boards, at a very reasonable price. Just check this Instant Quote to order premium PCBs for your hobby projects.

Check it out for a High-Quality PCB solder mask. There are some pictures below of the new colours of solder musks.

PCBWay different types of solder masks

Previously there have 9 different types of solder masks available in their company. But now recently they have launched extra 4 solder masks that are pink, grey, orange and transparent solder masks.

PCBWay new solder masks 1

Also, there is great news about the price reduction of PCB prototypes. From 5th August you can now buy 4-layers & 6-layers with upto 20% discounts. As the price dropped, don’t think they will compromise on the quality.

PCB Assembly

It not only offers PCB Prototyping but also offers PCB Assembly service. You can order a full PCB board with attached components by uploading your BOM file. SMT & THT assembly starts from only 30$ including free stencil and worldwide shipping. The components can be sourced and provided by PCBWay or clients themselves.

There are three types of assembly services:

  • Turnkey where PCBWay supplies all PCB parts.
  • Kitted or Consigned where the customer is responsible for buying and sending all parts to PCBWay.
  • Combo, where the customer supplies some parts and PCBWay, completes the rest.

3D Printing & CNC

It also produces Rapid Prototyping like 3D printing, CNC Machining, Sheet Metal Fabrication, and Injection Molding. The quality of the product is too premium and reliable. And also the best part is that you will receive your order within a minimum of 3 days.

Working Principle of Automatic Battery Charger

When the battery level is getting low, then the current is flowing from the LM317 IC through the relay to the battery. At this point, the red LED will be indicating that this is in charging mode.

When the battery level reaches the maximum threshold voltage i.e. 13.7V, then the current flowing to the battery is stopped. Then the close terminal flows the current to the ground. It is indicated by a green LED. Thus the whole circuit is working respectively.

The whole charging process of the circuit is a combination of charging, stabilizing, and terminating. Charging and discharging rates of the batteries are given as C-rate (Charge Rate). It is the measure of the rate at which the battery is charged or discharged with respect to its capacity (Ah). As an example, a fully charged battery of 7Ah will discharge at a 7A rate, then it will take time to get fully charged.

Applications of Automatic Battery Charger

This automatic battery charger can use for all types of lead acid batteries to charge.

It can also be used as a DC variable power source.

FAQ

How does a battery charger work?

A battery charger is worked by converting AC voltage to DC voltage. Once the electrolyte of the battery is used, it needs to be recharged. A battery charger is a device that can provide DC current to the battery to restore the electrolyte. So when all the electrolytes of the battery are restored, its current supply should stop.

How many types of battery chargers are there?

There are three types of battery chargers that are constant voltage, constant current and a combination of constant voltage/constant current.

What are the components of a battery charger circuit?

A battery charger circuit consists of a rectifier circuit, a ripple filter circuit, a voltage regulation circuit and a cut-off voltage circuit.

Leave a Comment