• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Battery Charger Circuits / 12V, 5 Amp SMPS Battery Charger Circuit

DIY Circuits | Learn Basics | Arduino Coding




12V, 5 Amp SMPS Battery Charger Circuit

Last Updated on July 5, 2025 by Swagatam 500 Comments

In this article we study a simple flyback based converter design which is implemented as an SMPS 12V, 5amp battery charger power supply, without using a iron core transformer.

How it Works

The proposed 12V, 5 amp smps battery charger circuit employs a flyback converter topology which results in the required smps based high current, compact, mains isolated converter design.

Here, the a high power mosfet becomes the main switching component and is used for triggering the ferrite primary winding with the set high frequency mains rectified Dc.

When switched ON, the 470k resistor charges the mosfet gate into conduction and initiates the switching action.

The above action induces a voltage across the auxiliary winding of the transformer which results in a feedback voltage to the mosfet gate via the 2n2/100V capacitor forcing the mosfet to conduct even harder.

As soon as this happens, the primary winding gets connected with the full 310V DC rectified voltage via the mosfet drain/source terminals.

During this process, the voltage across the 0.22 ohm resistor situated at the mosfet source tends to cross the 0.6V level, which instantly triggers the transistor BC546, which shorts the gate of the mosfet to ground, rendering it completely switched OFF.

This also ensures cutting-of the auxillary feedback voltage, restoring the entire primary section to its original switched OFF state.

The cycle now begins afresh and is switched continuously at around 60kHz rate which may be varied by increasing or decreasing the values of the 2n2 feed back capacitor and the 100pF base capacitor of BC546 NPN (it's not recommended though).

During the switched OFF periods of the primary winding, an induced equivalent back emf is transferred to the secondary winding which translates it into the specified stepped down low voltage, high current secondary output.

The above secondary output is appropriately rectified and filtered by the high current diode and a filter capacitor.

A feedback stage across the secondary and the primary stages is implemented via a optocoupler which determines the required fixed, regulated output voltage.

The zener associated with the optocoupler may be tweaked for getting different stabilized outputs for the desired applications.

Here it has been fixed to about 14.4V which becomes the optimal level for charging a 12V lead acid battery.

The current output of this transformerless 12V, 5 amp smps battery charger can also be changed by two methods.

Either by modifying the secondary wire thickness of the transformer or by tweaking the value of the 0.22 ohm resistor positioned across the source/ground terminals of the mosfet.

The input stage typically consists of a bridge rectifier stage, followed by an NTC and filter stage.

The input EMI coil is optional.


Recommended for you: 24watt, 12V, 2 amp SMPS using a single IC Must Read.


Circuit Diagram

12V, 5 Amp SMPS Battery Charger Circuit Diagram

How to Wind the ferrite transformer

The ferrite transformer is wound over a 15mm EE ferrite core compatible plastic bobbin.

The one half primary is wound first, using a 0.4mm super enamelled copper wire (15 turns).

Secure the end of this on one of the primary side pins of the bobbin. Cover the winding with a layer of insulation tape.

Next wind the secondary winding (5 turns) using 0.6mm wire over it.

Terminate the ends on the secondary pins of the bobbin.

Apply insulation tape over this winding.

On this wind 3 turns of 0.4mm auxiliary winding, cover it with insulation tape.

Finally continue from the secured end of the first primary winding and wind 15 more turns over the above auxiliary wind to finish of the ferrite transformer coils.

Put a few layers of insulation tape to finalize the winding insulation.

Fix the EE cores and tape it yet again along its periphery.

Make sure the EE core edges are separated with an air gap through a piece of insulation tape or a paper, this will prevent core saturation and stalling of the desired smps induction.

THE CIRCUIT EXPLAINED ABOVE IS NOT ISOLATED FROM MAINS, AND THEREFORE IS EXTREMELY DANGEROUS TO TOUCH WHILE EXPERIMENTING IN POWERED CONDITION, AND ALSO THE DESIGN IS RECOMMENDED SPECIFICALLY FOR USERS HAVING ADVANCED KNOWLEDGE IN THE FIELD, NOT FOR THE NEWBIES..

You'll also like:

  • P 20161105 061716Arduino Battery Level Indicator Circuit
  • boostHow to Build a Boost Converter Circuit: Explained with Calculations
  • graphNi-Cd Low Battery Monitor Circuit using Lambda Diode
  • wirelessHigh Current Wireless Battery Charger Circuit

Filed Under: Battery Charger Circuits, SMPS and Converters Tagged With: 12V, Battery, Charger, SMPS

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!

Previous Post: « Linear Hall-Effect Sensor – Working and Application Circuit
Next Post: Simple Automatic Plant Watering Circuit for Monitoring Soil Moisture »

Reader Interactions

Comments

Armstrong Buba says:
July 11, 2025 at 12:11 am

Thank you for this design. Can i power this circuit directly from a battery of 48vdc instead of using AC? I intend using it as power supply in my 48Vdc inverter.

Reply
Swagatam says:
July 11, 2025 at 9:10 am

You are welcome. Sorry, No, a 48V will not work as the input source for this circuit.
Instead, you can simply use a buck converter circuit, as described in the following article:
https://www.homemade-circuits.com/buck-converter-calculator/

Reply
M. Ahsan says:
October 18, 2024 at 11:16 am

hello sir, sorry for again. sir
1.
I have a faulty cct of a bty belt. it’s ratting are: I/P =220vAC O/P =14vdc, 10 A. can I use this cct’s o/p transformer in this project?
2. If not then if I use this transformer in this project so what can I change/replace in this cct to make compatible with these o/p ratings (14vdc, 10 A). plz need ur guide.

Reply
Brandon Murphy says:
June 16, 2025 at 9:54 pm

hey id like to get in tutch with u sir I have some electrical questions I have my basic electricity certificate id like to say im verry self tought and could be great at this with someone to guide me and brainstorm with me i have some amazing ideas and some impressive mad max tonystark projects well if u have the time and enjoy wires and your down with the current like me lol here’s my Gmail mega.cloud94z@gmail.com

Reply
Swagatam says:
June 17, 2025 at 9:21 am

Hey Brandon, you can definitely get in touch with me, in fact you can share your thoughts on this commenting platform, so that the other folks here can also benefit from your suggestions and feedbacks…

Reply
Swagatam says:
October 18, 2024 at 12:03 pm

Hello M.Ahsan,
The transformer must be a ferrite core type and the size and the number of turns must be exactly as per the above given specifications, otherwise it cannot be used.

Reply
M. Ahsan says:
October 22, 2024 at 9:17 pm

thank you sir.

Reply
M. Ahsan says:
October 17, 2024 at 1:26 am

can I charge 3 series li-ion btys total (11.1v), wd this cct?

Reply
Swagatam says:
October 17, 2024 at 7:51 am

3 series cells will require 12.6V, so you may have to adjust the transformer turns to get this output, and also the max current will need to be limited to 50% of the battery Ah rating..

Reply
M. Ahsan says:
October 18, 2024 at 10:54 am

thank u sir , for 12.6 v what are the transformer specifications?

Reply
Swagatam says:
October 18, 2024 at 12:01 pm

For 12.6V, you can adjust the 13.5V zener diode until the exact 12.6 or 12.4V is achieved.

Reply
M.Ahsan says:
October 17, 2024 at 1:12 am

Hello sir, Can I buy a readymade ferrite transformer with these specifications from market?

Reply
Brandon Murphy says:
June 17, 2025 at 10:19 pm

how do I make a toyota camera hybrid battery charger. im working on a number of projects my biggest one is converting my dodge journey into a electric rc car crawler mad max lab lol just need to finish pulling this moter out of it and saying goodbye to the bad emissions

Reply
Swagatam says:
June 18, 2025 at 8:03 am

Do you mean Toyota Camry?
Please provide more specifications about the hybrid battery charging system you want…
I will try to solve it for you…

Reply
Swagatam says:
October 17, 2024 at 7:48 am

Hello M.Ahsan, If you can get the exact specifications then you can buy it readymade.

Reply
Zen says:
July 11, 2024 at 4:47 am

Can you explain what the function of the 18k resistor and capacitor coupled with it is, and what the effect is if I change the value of the resistor and capacitor?

Reply
Swagatam says:
July 11, 2024 at 8:36 am

The capacitor, resistor and the diode together form a high voltage transient suppressor for protecting the MOSFET.
A slight change in the value will have no impact on the overall working of the circuit.

Reply
yasin amini says:
November 17, 2023 at 9:06 pm

hi swagatam
thank u so much it was good circuit
to build a switching power suply without i.c
best wishes for u
yasin

Reply
Swagatam says:
November 17, 2023 at 9:40 pm

Thank you Yasin, glad you found the circuit helpful.

Reply
Pranav Srinivasan says:
October 13, 2023 at 9:16 am

Hello sir,
I would like to have your help to design a Charger circuit for LiFePO4 batter of 12V and 5Ah capacity
need to design from the base circuit
Thank you

Reply
Swagatam says:
October 13, 2023 at 9:44 am

Hello Pranav, you can try the LAST circuit from the following article. You must replace the battery with your 12V battery, and the relay with a 12V relay, and make sure that charging input is from a constant current source such as from a LM338 current controller:

https://www.homemade-circuits.com/usb-automatic-li-ion-battery-charger/

Reply
Pranav Srinivasan says:
October 20, 2023 at 9:18 am

Thank you sir

Reply
Mayank says:
September 20, 2023 at 2:38 pm

Thanks sir

Reply
Mayank says:
September 20, 2023 at 1:38 pm

Because 4N35 has 6 pins and circuit shows 4 points of connection so I am not able to connect.

Reply
Swagatam says:
September 20, 2023 at 1:47 pm

Please compare the datasheet images of the two opto-couplers to confirm and match their pinouts.

Reply
Mayank says:
September 20, 2023 at 1:32 pm

Sir can we use optocupler 817 in place of 4N35.

Reply
Swagatam says:
September 20, 2023 at 1:46 pm

Yes that will also work…

Reply
Mayank says:
September 20, 2023 at 12:10 pm

Inductance or air gap

Reply
Swagatam says:
September 20, 2023 at 12:40 pm

paper gap is recommended between the E core legs…

Reply
Mayank says:
September 20, 2023 at 1:27 pm

Sir kindly suggest paper specification to use right paper, I discussed with transformer manufacturer but he requires inductance or paper gap.

Reply
Swagatam says:
September 20, 2023 at 1:46 pm

You can insert a layer of insulation tape between the E cores.

Reply
Mayank says:
September 20, 2023 at 11:57 am

Hi Sir for 12v 5a SMPS pls suggest the inductance of primary/ secondary coil.

Reply
Swagatam says:
September 20, 2023 at 12:40 pm

Hi Mayank, sorry inductance details are not available for this circuit, only the winding details are available.

Reply
Swagatam says:
February 15, 2023 at 4:46 pm

You are welcome Kamussuwanto!

Reply
Kamussuwanto says:
February 15, 2023 at 4:06 pm

Dear Swagatam, thank you very much for your quick reply

Reply
Swagatam says:
February 14, 2023 at 5:21 pm

Hi Kamussuwanto,
A ferrite core size should be such that it accommodates the winding comfortably, neither cramming it nor leaving too much free space. So if your EE25 frrite core is not too large leaving too much internal space, then it can be used for the above SMPS.

Reply
Kamussuwanto says:
February 14, 2023 at 4:15 pm

Dear Swagatam,
this datasheet shows ee25 ferrite core, but it is used for a 110v AC input SMPS (Hence Vs =85*1.3=110V) If my input is 220v AC, can I use ee25 ferrite core for assembling this transformer? Is the calculation on this datasheet will be the same for 220v ac input?

Thank ypu for your help

Reply
Swagatam says:
December 21, 2022 at 4:41 pm

The transformer in the image should work. Make sure winding fits inside this core properly.

Reply
Biprendu says:
December 21, 2022 at 1:45 pm

i found this transformer from cfl and it’s core size was 15 mm
https://ibb.co/ctBCPwQ

Reply
Biprendu says:
December 21, 2022 at 12:56 pm

i found this transformer from cfl and it’s core size was 15 mm
https://drive.google.com/file/d/1pjI0bO1vkRqS2ftb1Izl8xe7TPQO38bT/view?usp=drivesdk

Reply
Biprendu says:
December 21, 2022 at 10:01 am

i found the transformer from a cfl circuit i match the size and it’s 15mm

Reply
Swagatam says:
December 21, 2022 at 1:10 pm

Make the link “sharing” otherwise I cannot access it.

Reply
Swagatam says:
December 21, 2022 at 10:46 am

No problem Biprendu, all the best to you.

Reply
Biprendu says:
December 21, 2022 at 10:27 am

ok sir ☺️ thank you for helping me really appreciate to you sir ????

Reply
Swagatam says:
December 21, 2022 at 10:20 am

That’s great, remember to put a paper gap between the E cores. Meaning when you close the two cores inside the bobbin make sure the E core edges do not touch each other directly, instead put a piece of paper of insulation tape between the edges that meet each other.

Reply
Swagatam says:
December 21, 2022 at 9:52 am

EE13 will not accommodate the winding.

Reply
Swagatam says:
December 21, 2022 at 9:52 am

You can see the following image:

https://www.homemade-circuits.com/wp-content/uploads/2022/12/15mm-E-core-image-EE15.jpg

Reply
Biprendu says:
December 21, 2022 at 9:12 am

can I use ee13 transformer core please tell me ???? please wire turns for ee13 transformer

Reply
Biprendu says:
December 21, 2022 at 9:10 am

can you send me ee15 transformer core image and datasheet

Reply
Swagatam says:
December 20, 2022 at 10:18 am

You can search the phrase “Buy ferrite E Cores” then while ordering specify them about EE15 size. However, the best place to buy them is from any local electronic spare part retailer shop

Reply
View Older Comments

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

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

Primary Sidebar

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (93)
  • Audio and Amplifier Projects (133)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (85)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • Energy from Magnets (27)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (95)
  • Lamps and Lights (159)
  • Meters and Testers (71)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Renewable Energy (12)
  • Security and Alarm (64)
  • Sensors and Detectors (106)
  • SMPS and Converters (34)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (49)
  • Voltage Control and Protection (42)
  • Water Controller (36)
  • Wireless Circuits (30)





Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap



People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin



Recent Comments

  • Swagatam on 9 Simple Solar Battery Charger Circuits
  • Gagana on 9 Simple Solar Battery Charger Circuits
  • Swagatam on Arduino 2-Step Programmable Timer Circuit
  • Swagatam on Simple Buck-Boost Converter Circuits Explained
  • Swagatam on IC IR2111 H-Bridge MOSFET, IGBT Driver IC: Full Datasheet, Circuit Diagram

© 2026 · Swagatam Innovations