• 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 | Hire Me | Contact | Calculators-online
You are here: Home / Battery Charger Circuits / 12V, 5 Amp SMPS Battery Charger Circuit

12V, 5 Amp SMPS Battery Charger Circuit

Last Updated on May 17, 2026 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.

Table of Contents
  • How it Works
    • Circuit Diagram
    • How to Wind the ferrite 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:

  • wirelessHigh Current Wireless Battery Charger Circuit
  • Parallel Battery Charger Circuits Explained
  • powerbank5 Simple Power Bank Circuits for Mobile Phones
  • 220V AC to 12V DC Flyback SMPS Circuit using IC 555 (7555)

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

Discussion & Solutions

Total Posts: 500
Newest Oldest
Justin Adie
March 24, 2014 • 12 years ago #20790

Hi
Is there any reason why this kind is switched topology can't be used as a (constant voltage) power supply rather than a charger?

Reply
SwagatamAdmin
March 25, 2014 • 12 years ago #20808

Hi,
a charger is also a kind of power supply so definitely smps circuits can be used as DC power suppies.
in fact smps itself stands for "switch mode power supply"

Reply
Syed Arham
March 27, 2014 • 12 years ago #20861

Hi,
can i increase the output volts to 36v or 24v?

Reply
SwagatamAdmin
March 28, 2014 • 12 years ago #20900

yes you can do it by adding more no. of turns at the secondary side of the transformer.

Reply
SwagatamAdmin
March 28, 2014 • 12 years ago #20901

.the opto zener will also need to be changed appropriately

Reply
biannz
March 29, 2014 • 12 years ago #20950

sir please can i use 1n5404 in place of ba159?

second question please what is EMI coil?

Reply
SwagatamAdmin
March 30, 2014 • 12 years ago #20970

1N5404 will not work as it's not a fast recovery type of diode.
you can eliminate the EMI coil it's not compulsory.

Reply
biannz
March 31, 2014 • 12 years ago #21009

ok sir but if eliminate the EMI coil that mean it should connect straight to the A/C plug? sir i went to electronic shop i asked them to give me ba159 diode but they said it not available only they have does not have a number but it a shape diode can it be use?.

Reply
SwagatamAdmin
April 1, 2014 • 12 years ago #21026

biannz, you can connect the input directly without the EMI coil, it's there only for suppressing noise.

do not use anything that's not verified or is without a number…..I think your shop keeper sells old used parts ..is it?

Reply
Skl Dj
April 2, 2014 • 12 years ago #21079

dear sir i want to build the smps. i want to know what is Th-NTC used in this circuit?is it possible to use IRF640, or IRF Z44N mosfet in this circuit? can i change the value of the capacitor 10uf 400v with 3.3uf or 100uf…..just i want to know….please reply.

Reply
SwagatamAdmin
April 3, 2014 • 12 years ago #21097

Dear Skl,
Th-NTC is a 350V NTC thermister.

Only those mosfets which ca handle in excess of 400V will work here, the ones you have suggested won't work

The input filter capacitor voltage should be rate at 400V, anything less will be unsafe.

Reply
Unknown
April 24, 2014 • 12 years ago #21753

Hi,

Nice blog and circuits!

I'm trying to drive a 1/4 hp three-phase motor with an atmega, for which I'll be using this setup:

https://drive.google.com/file/d/0B_0sypSANVUcdDA4SGxEcFpUOHc/edit?usp=sharing

The author told me I'd need 4 separate 12v supplies (3 for the high-side bridges, 1 for all low-side bridges would be fine).

Would it be too complex to split your 12V single-output 5A into 4x12V outputs? It seems I'd need 2A to switch my mosfets, though, being such a design also useful for using igbt's instead in a future.

Regards,

Reply
SwagatamAdmin
May 3, 2014 • 12 years ago #22061

Hi Thanks! Saw this just now, so replying you rightaway!.

I can't suggest actually until I see the entire circuit diagram, because high/low side configurations could be crucial designs and need special care.
it's always better to go for the extreme safety measures, as much as possible, so using separate power supplies could be preferred

Reply
Md Shakil
May 2, 2014 • 12 years ago #22026

what is the purpose of using R220 2W at output?

Reply
SwagatamAdmin
May 3, 2014 • 12 years ago #22062

it's for dissipating excess power and for aiding the zener stage, it may be removed though, since the inclusion is not crucial.

Reply
Bojan Jakovljević
May 18, 2014 • 12 years ago #22616

Hello,

is there any way to make this to be variable power supply?

And yes this is one of the best blogs I found for electronic projects!

Best regards.

Reply
SwagatamAdmin
May 20, 2014 • 12 years ago #22660

Hi, thanks!!

You can try replacing the zener diode with a 4k7 pot and 22 ohm resistor with a 1K resistor, the pot could be used to vary the intensity of the opto LED allowing desired voltages at the output.

The LED anode will go to the center of the pot, the remaining free ends of the pot will connect with 1K and ground.

Reply
Bojan Jakovljević
May 27, 2014 • 12 years ago #22917

Thank you kind sir!

Reply
Bojan Jakovljević
May 27, 2014 • 12 years ago #22921

Sorry for disturbing again,

but is this transistor near ZD 16-18V in schematic actually part of 4N35?

Reply
SwagatamAdmin
May 28, 2014 • 12 years ago #22936

It's inside the 4n35, an inside view of the opto.

check the datasheet of 4n35 for getting an exact idea about it.

Reply
Syed Arham
May 20, 2014 • 12 years ago #22686

Sir,
the size of the transformer is standard or the transfo which can hold these no. of winding can be used?

Reply
SwagatamAdmin
May 21, 2014 • 12 years ago #22708

the one which would hold the turns comfortably must be used.

Reply
Syed Arham
May 21, 2014 • 12 years ago #22712

thanks sir…

Reply
mehul patodiya
May 22, 2014 • 12 years ago #22745

Sir, Give me no of transformer used in your circuit

Reply
SwagatamAdmin
May 23, 2014 • 12 years ago #22774

The transformer winding details are given in the article.

Reply
Syed Arham
June 10, 2014 • 12 years ago #23379

Sir,
Is there any way to increase the amp of this circuit..Like 8a or 10a

Reply
SwagatamAdmin
June 11, 2014 • 12 years ago #23388

Syed, use more number of wires in parallel while winding the secondary turns, this will proportionately double or triple the current rating of the system.

Reply
Syed Arham
June 11, 2014 • 12 years ago #23396

Thanks You…

Reply
Syed Arham
July 8, 2014 • 12 years ago #24118

Sir BA159 is not available in my city. I have checked all the shops.
can i use any 1000v , fast recovery diode

Reply
SwagatamAdmin
July 10, 2014 • 12 years ago #24137

yes, any similar 1kv fast recovery type diode will do.

Reply
Syed Arham
July 9, 2014 • 12 years ago #24133

Sir can you suggest me any diode instead of ba159 or otherwise i will try other fast rectifier diode..
I have seen a NTC in the ballast circuit of 25 watt CFL ..Can i use that one..
I am waiting for your reply

Reply
SwagatamAdmin
July 10, 2014 • 12 years ago #24151

Syed, any equivalent fast ercovery diode will do.

yes, the specified NTC could be used

Reply
Syed Arham
July 24, 2014 • 12 years ago #24551

Sir can i use gpp20j instead of ba159..
shopkeeper said that i should work in this circuit..

Reply
SwagatamAdmin
July 25, 2014 • 12 years ago #24566

Syed please check its datasheet, if it's a 1amp/300V fast recovery type diode then there's no problem using it.

Reply
Syed Arham
July 25, 2014 • 12 years ago #24579

Diode Type Standard
Voltage – DC Reverse (Vr) (Max) 600V
Current – Average Rectified (Io) 2A
Voltage – Forward (Vf) (Max) @ If 1.1V @ 2A
Current – Reverse Leakage @ Vr 5µA @ 600V
Speed Standard Recovery >500ns,>200mA (Io)
Does it work here, It is standard recovery diode??????

Reply
SwagatamAdmin
July 26, 2014 • 12 years ago #24595

If it's mentioned "fast recovery" in the datasheet, then it can be surely used.

Reply
dragos spirea
July 26, 2014 • 12 years ago #24603

HI! Sir, tell me please number of turns for the primary and secondary auxiliary transformer ETD 29. Wire diameters of bobbin.Not have EE core 15mm

Reply
SwagatamAdmin
July 27, 2014 • 12 years ago #24615

Hi Dragos, no changes are required it's exactly the same as mentioned in the above article.

Reply
Ashok Dhenge
August 7, 2014 • 12 years ago #24879

sir i want to make power supply for 1watt LED drive. I want 24 – 36 volt dc supply at 5amp. because i m not electronics knowledge i am not understand coil turn even i don't see what are the material. please can you design another circuit if possible or please guide me or send me video on ashokagreatking06@gmail.com please help me. I already search in your blog also post comment in another post regarding LED drive for ceiling lights.

Reply
SwagatamAdmin
August 8, 2014 • 12 years ago #24892

Ashok, you don't need to make the power supply, you need to buy it from the market. Your main project is LED lighting not the power supply, so please buy it for the market and use it for your purpose.

Reply
Ashok Dhenge
August 8, 2014 • 12 years ago #24894

can we use computer SMPS for supply as i check out SMPS 450watt it gives 12volt 20A. Is it useful as it gives warranty? Is it useful for LED driver?

Reply
SwagatamAdmin
August 8, 2014 • 12 years ago #24905

yes will do, and now since the LEDs are connected in series, parallel mode the 1.5meter distances will have no effect or minimal effect.

Reply
Ashok Dhenge
August 8, 2014 • 12 years ago #24906

ok so sir can now we can connect LED in grid of 0.5m X 0.5m using any computer SMPS. right sir? Thank you for guidance.

Reply
SwagatamAdmin
August 9, 2014 • 12 years ago #24915

yes can be done as per the series/parallel instructions and the formulas given in the other article..

Reply
Syed Arham
August 15, 2014 • 12 years ago #25043

Sir i have tried that circuit with GPP20j diode but the fuse always broken?

Reply
SwagatamAdmin
August 16, 2014 • 12 years ago #25056

Syed, if the fuse is blowing it could be due to some other fault in the circuit, not because of the diode….you may have to seek help from an expert for troubleshooting the actual fault.

Reply
OKIF
September 14, 2014 • 12 years ago #25643

Sir, What kind of bobbin do you use to wind the transformer? do you have bobbin dataheet?

Reply
SwagatamAdmin
September 15, 2014 • 12 years ago #25659

Any bobbin recommended for 15mm EE core can e used, an example image of the E cores can be seen here:

ee core

B should be 15+15 = 30mm

Reply
OKIF
September 15, 2014 • 12 years ago #25673

is it Okay if i use Ferrite Bobbin Core EE22PL3K /Ferrite Bobbin Core EE25R3K ?

Reply
SwagatamAdmin
September 18, 2014 • 12 years ago #25725

yes, any ferrite core bobbin assembly is ok as long as the winding fits in it comfortably…

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



My Youtube Channel

Circuit Simulator

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (134)
  • Automation Projects (18)
  • Automobile Electronics (103)
  • Battery Charger Circuits (88)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • Energy from Magnets and Earth (40)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (99)
  • Lamps and Lights (162)
  • Meters and Testers (72)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Security and Alarm (65)
  • Sensors and Detectors (107)
  • SMPS and Converters (45)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (50)
  • Voltage Control and Protection (44)
  • Water Controller (37)
  • Wireless Circuits (31)



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 |



Recent Comments

  • Swagatam on 5 Useful Power Failure Indicator Circuits Explained
  • Swagatam on Simple 20 watt Amplifier Circuits
  • David Lloyd on 5 Useful Power Failure Indicator Circuits Explained
  • Dale on Simple 20 watt Amplifier Circuits
  • Swagatam on Blood Electrification Circuit: Explanation And Working Principle

Social Profiles

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

© 2026 · Swagatam Innovations