• 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 / SMPS and Converters / 5V, 12V Buck Converter Circuit SMPS 220V

DIY Circuits | Learn Basics | Arduino Coding

5V, 12V Buck Converter Circuit SMPS 220V

Last Updated on July 5, 2025 by Swagatam 50 Comments

This step down buck converter will convert a 220V AC input from mains supply to 5V or 12V or 24V DC with 90% efficiency.

The proposed buck converter is an SMPS circuit using the IC VIPer12A from STMicroelectronics.

The circuit uses negligible number of external components yet is able to operate directly from mains AC input.

The Buck Converter Design

Looking at the given circuit diagram we see that the input stage incorporates a surge limiting resistor which quite acts like a fuse, a diode for rectifying the AC, and an LC filter network for further filtration of the DC riples.

The LC filter employed here ensures better DC stabilization and enhanced EMI response.

The capacitor Cin1 may be introduced for further reinforcing the EMI functionality.

The IC VIPer12A becomes the main PWM processor device which single handedly performs the entire buck conversion in the circuit.

Main Features

The main specifications of the configuration may be understood as follows:

  • AC input voltage Vinac 80 - 285Vac
  • Output current Iout 30mA
  • Output current Iout 250mA
  • Output voltage Vout1 +24±10%V
  • Output voltage Vout2 +5V±5%
  • Switching frequency 60 kHz
  • Output Power ~ 1W

How it Works

The circuit facilitates two outputs, rhe 24V output is achieved through a buck converter configuration while the 5V output via fly back mode.

The feedback voltage to the IC is acquired from Vout1 for the required regulation of the output, this supply is also applied to the IC Vdd pin.

The above wiring becomes possible by using a single high voltage diode and just one capacitor, to be precise D1 and C3, making the connections and costing much simpler.

The employed inductor L consists of two windings which are coupled across with each other over a common ferrite core.

The winding are done through appropriate turn ratios, where N1 = 200 turns and N2 = 60 turns. Both these are wound over a PANASONIC ELC10D152E ferrite core material.

Zener diodes z1 and z2 are installed in order to safeguard the outputs against over voltages.

A dummy load resistor is fixed across Vout1 so that appropriate regulation can be executed over both the outputs during open load situations.

Though the addition of the above resistor affects the efficiency a bit, it superbly improves voltage regulation response of the circuit.

The rectifier diodes fixed at the output are fast response fast recovery types. D1 is a high voltage diode as it might be subjected to high reverse voltages delivered by the DC bus voltage...... D2 is a normal diode.

5V, 12V Buck Converter Circuit SMPS 220V

Parts List for the proposed simple SMPS buck converter circuit:

  • Rr = 10W 1/2W
  • Rf = 10KW 1/4W
  • R(load) = 4.7kW 1/4W
  • Cin = 4.7 μF, 450V Electrolytic Capacitor
  • C1 = 33 μF, 50V Electrolytic Capacitor
  • C2 = 100 μF, 16V Electrolytic Capacitor
  • C3 = 1 μF, 25V Electrolytic Capacitor
  • C4 = 22 nF Ceramic capacitor
  • Dr = Diode 1N4007
  • D1 = Diode BA159 (fast)
  • D2 = Diode 1N4148 (fast)
  • D3 = Diode 1N4004
  • Dz = 22V Zener
  • Dz1 = 27V Zener
  • Dz2 = 5.6V Zener
  • L 1 = 0.5 mH
  • Lf = 470 μH Inductor
  • IC1 = STMicroelectronics VIPer12ADIP

PCB Design and Component Layout of the above explained SMPS buck converter circuit using IC VIPer12A

5V, 12V Buck Converter PCB design

Complete Article can be found here

You'll also like:

  • smps110V, 14V, 5V SMPS Circuit – Detailed Diagrams with Illustrations
  • Calculator to Design a High Power 3kW PFC (Power Factor Correction) Circuit
  • Make this 220V to 12V SMPS Using UC2842 IC
  • SMPS Flyback Boost Converter Calculator

Filed Under: SMPS and Converters Tagged With: 12V, 220V, Buck, Converter, 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: « IC 556 Pure Sine Wave Inverter Circuit
Next Post: Thermostat Delay Relay Timer Circuit »

Reader Interactions

Comments

Diego says:
January 23, 2026 at 3:20 am

If I want it to send a voltage of 75 to 80v with a current of at least 40mA, what modification could be made to the circuit?

Reply
Swagatam says:
January 23, 2026 at 8:04 am

I don’t think 75V is possible using the above explained concept…

Reply
Greg says:
June 19, 2025 at 8:26 pm

how to use a MOSFET to gain more current >2-2.5A output from LM317 .

Will appreciate any help and cicuit design

the oupt voltage +5v

Reply
Swagatam says:
June 20, 2025 at 8:04 am

In that case why not use an LM338? No need of any MOSFET, it will provide 5 amp current from 3V onwards. Plus it is fully protected internally against heat, over current, over load, which the MOSFET cannot provide…

Reply
Greg says:
June 24, 2025 at 2:32 pm

Hi Thanks for the tip but will this regulator LM338 be ‘low noise” .?
I intend to use it as a filamenrt supply for a power triode 845 . It needs DC 10v 3A supply . I read that buck converters were great for that because of the high operating frequency is above the the audio spectrum and so no “50Hz hum of the tube. Not sure it cab withsatand a 3A current?

Reply
Swagatam says:
June 24, 2025 at 5:28 pm

It’s my pleasure! To reduce or eliminate noise, you can put capacitors at the input and output terminals of the IC, that will take care of the noise issue. Even in a buck converter, possibly a 50Hz hum can easily ride over the high frequency content. In order to 100% eliminate the hum you can consider using a notch filter, such as this:
https://www.homemade-circuits.com/simple-hum-filter-circuit-for-amplifiers/

Reply
Daniel says:
March 28, 2024 at 6:32 pm

Sir, I need DC 96v to 12v not Ac, please can I get simpler version, thanks

Reply
Swagatam says:
March 28, 2024 at 7:12 pm

The following circuit can be used with DC also….for DC you can remove the input coil and the capacitors.
https://www.homemade-circuits.com/simple-220v-smps-buck-converter-circuit/
For simple circuit you can make the following:
https://www.homemade-circuits.com/wp-content/uploads/2021/11/single-transistor-voltage-regulator.jpg
replace the zener with 12V zener and the resistor with 10k 2 watt. the transistor will get immensely hot.

Reply
james says:
December 24, 2021 at 11:40 am

here the transformer you have used “PANASONIC ELC10D152E” has 2 pins then how come it has primary and secondary windings in it?

Reply
Swagatam says:
December 24, 2021 at 1:24 pm

I only wanted to show the type of ferrite core required for the project. The two secondary wires can be left hanging after properly gluing them with the winding, and then the ends can be soldered to the PCB.

Reply
Justin says:
October 10, 2021 at 8:31 am

pls is it possible to use a voltage regulator as replacement for output inductor if you can’t find an inductor?thanks

Reply
Swagatam says:
October 10, 2021 at 10:15 am

A Buck converter can never work without an inductor, so it cannot be replaced by anything else. The above inductor is very easy to build.

Reply
Justin says:
October 10, 2021 at 3:13 pm

Thanks for your reply.Please i would appreciate any suggestions on how i can go about buiding my inductors personally as it is not easily available in my area..Much appreciated.

Reply
Swagatam says:
October 10, 2021 at 7:39 pm

The coil are already given in the article. The primary is 200 turns, and secondary is 60 turns.

Reply
ENGR CHUKS MOFUS says:
September 14, 2021 at 2:10 pm

iam an electronics engr right from NIGERIA the aboved diagram the viper had no starting position pls send it eill help so much thanks

Reply
Karthikeyan says:
July 20, 2021 at 11:52 am

why do we need Cin1?

Reply
Swagatam says:
July 20, 2021 at 1:15 pm

To create an LC pi filter for improved filtration….

Reply
Student in college says:
December 11, 2019 at 7:22 pm

Sorry to ask this but I’m very beginner.
I would like to ks.ow about that inductor how to connect like a transformer which has 4 pins.
because I look in the datasheet that Panasonic inductor has only 2 pins.

Reply
Swagatam says:
December 11, 2019 at 8:52 pm

Hello, the 4 pin inductor shown in the diagram does not need to have pins, you can use the wire ends of the winding directly on the PCB, just make sure the winding are firmly secured with insulation tape.

Reply
Vardy says:
November 26, 2019 at 4:13 pm

How can i find the text file of VIPer12A ?

Reply
AKASH SINGH says:
September 20, 2019 at 8:22 pm

Hello Sir,
Kindly suggest an application for winding Ferite Core Inductors using EE cores and Dog Bone cores.
Thanks in Advance.

Reply
Swagatam says:
September 20, 2019 at 9:18 pm

Hi Akash, the calculations can be found here:

https://www.homemade-circuits.com/how-to-design-and-calculate-ferrite-core-transformers-for-inverters/

I have no idea what a dog bone core is?

Reply
manish kumar says:
September 1, 2018 at 4:48 pm

how to make only one 12V 1A(approx) usinh this ic.

Reply
Swagatam says:
September 1, 2018 at 6:49 pm

try replacing the IC with viper22A, as used in this design

https://www.homemade-circuits.com/how-to-make-simple-12-v-1-amp-switch/

Reply
jignesh says:
August 13, 2018 at 12:46 pm

hi what modification need in above circuit to get 4.2V 2Amp as out put from 230V ac

Reply
Swagatam says:
August 13, 2018 at 12:58 pm

You can slightly adjust the number of turns on the side of the inductor which is associated with the 5V output….or simply add a 1N4007 diode in series with the 5V output to get the required 4.2V approximately.

Reply
jignesh says:
August 13, 2018 at 1:14 pm

is it related to inductor wire guage

Reply
Swagatam says:
August 13, 2018 at 1:27 pm

it is related to number of turns not gauge, gauge is related to current…

Reply
jignesh says:
August 13, 2018 at 1:43 pm

yes sir for 2 Amp current i need to change winding guage i think and for voltage as you said i use diode

Reply
Swagatam says:
August 13, 2018 at 1:57 pm

sorry, I just forgot to tell you that 2 amp may not be possible with this circuit, the maximum current is 250mA for this design
you can try this instead

https://www.homemade-circuits.com/12v-2-amp-smps-circuit/

Reply
Odie D.Santos says:
July 29, 2017 at 3:42 am

Hello Sir,

Possible to design viper50 or viper 100. smps circuits. output is dual 15V @2amp. i need to power-up my preamp mixer.

thanks

Reply
Swagatam says:
July 29, 2017 at 5:32 am

Hello Odie, the part values for the Viper100 circuit has not been properly detailed in the datasheet of the IC, I will have to study and then estimate the part values, so that might take some time.

in the meantime you could try the following design instead

https://www.homemade-circuits.com/2014/06/smps-2-x-50v-350w-circuit-for-audio.html

the output winding turns could appropriately reduced for getting the required 15V

Reply
Jānis says:
April 19, 2017 at 3:11 pm

please remove this circuit as beginners may think it is working.

Reply
Swagatam says:
April 20, 2017 at 6:56 am

Ofcourse it is working.

it is a wonderful circuit, I have tested it myself

Reply
Muhammad Salahuddin says:
February 16, 2016 at 6:31 pm

hello sir, currently i am trying to get 13V 4Amp DC from 19V 4.5Amp DC input….i tried voltage divider cct but at the end found out buck converter to be the possible solution…….

I am avoiding LM317 with resistor network…..as i fear its O/P may vary if resistor got burned ………..

could u plz suggest the buck converter design ……??

is cct in this article could be modified to get 13V O/P……..??

Reply
Swagatam says:
February 17, 2016 at 8:32 am

Hello Muhammad,

You can try the following circuit:

https://www.homemade-circuits.com/2015/05/5v-pwm-solar-battery-charger-circuit.html

you can alter R8, R9 values for getting the desired output

Reply
Swagatam says:
February 17, 2016 at 8:34 am

…for 4amp load LM317 will not work, you can try LM338 instead.

Reply
Muhammad Salahuddin says:
February 17, 2016 at 4:56 pm

So nice of you Sir, I will check feasibility of both and will be back with results soon………:))

Reply
Sam Fisher says:
August 9, 2015 at 1:09 pm

Hello Sir,i am making a buck converter in analog domain without using any IC's.I have used an astable multivibrator for generating the squarewave(350khz) required for switching the Mosfet on and off.The problem was with the gate driver circuit required for mosfet.i used a complementary symmetry push pull amplifier(using BJT) as the Gate Driver.But this driver circuit was not switching the mosfet ON and OFF.Instead it keep the Mosfet ON continuously.Suggest me ways to overcome it and also give me advice on how to provide automatic feedback for keeping the output voltage constant at 9v irrespective of Input voltage Variation(Line Regulation) and Load Change(Load Regulation).Please Do help me out

Reply
Swagatam says:
August 9, 2015 at 2:59 pm

Hello Sam, without seeing the design it would be difficult for me to assess the fault and suggest an appropriate solution, if possible show me the schematic by uploading the image on Google drive or any other free image hosting site and provide the link to me….

Reply
Anil Batade says:
July 27, 2015 at 8:39 am

hello,
can you please help me how to current increase without changing voltage
thanks in advance

Reply
Swagatam says:
July 28, 2015 at 3:14 am

current cannot be increased, 50mA is the maximum limit of the mentioned IC.

you may have to change the IC with a VIPer22a for getting 250mA…

more info is furnished here:

http://www.st.com/web/en/resource/technical/document/application_note/CD00004329.pdf

Reply
aljarok ku says:
May 6, 2014 at 10:38 pm

Hello
can you wright an explanation how this circuits start to work ( IC VIPer12A )

Reply
Swagatam says:
May 7, 2014 at 1:13 pm

hello,
you can refer to the datasheet of the IC for the details.

Reply
navaneeth bhardwaj says:
March 26, 2014 at 1:23 pm

hello,
can you please help me modify this circuit to get the output voltage at 110v , including the ferrite core transformer design if possible
thanks in advance

Reply
Swagatam says:
March 30, 2014 at 6:37 am

The circuit would be basically the same as suggested in my previous email since the input is 220V.

However the output frequency will be equal to the input mosfet frequency at around 60kHz which unfortunately cannot be changed to 1000Hz. you may have to employ another stage at the 110V output stage of the circuit for enforcing it.

Reply
navaneeth bhardwaj says:
March 28, 2014 at 5:30 pm

thanks a lot for the input,
what i am actually trying is to make an inverter which has :-
input:220v ac 50Hz
output:110V ac 800-1000Hz
right now i am trying a half bridge inverter with mosfets and capacitor divider.
can u suggest some good circuits?

thanks in advance

Reply
Swagatam says:
March 28, 2014 at 11:42 am

no, the above circuit cannot be modified for 110V, you can try it in the following circuit:
3.bp.blogspot.com/-Jbp0LrP-PlU/UxWFwYeF2ZI/AAAAAAAAGaM/kRgOicbzIaE/s1600/12v+5+amp+transformerless+battery+charger+circuit.png

the output winding may be made by winding 50 turns and the zener replaced by a 140V zener

Reply
navaneeth bhardwaj says:
March 28, 2014 at 6:31 am

what i meant was to obtain 110V output instead of 12V from 220V mains input

Reply
Swagatam says:
March 27, 2014 at 11:28 am

hello, the above circuit is designed to work right from 85V to 285V, so the same design could be used for 110V too.

Reply

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 (95)
  • Audio and Amplifier Projects (133)
  • Automation Projects (18)
  • Automobile Electronics (103)
  • Battery Charger Circuits (87)
  • 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 (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 |

Social Profiles

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

Recent Comments

  • Swagatam on Simplest Full Bridge Inverter Circuit
  • Swagatam on Inverter LC Filter Calculator
  • Majaha Masuku on Simplest Full Bridge Inverter Circuit
  • Srecko Kovacevic on Inverter LC Filter Calculator
  • Swagatam on How to Make Dog Barking Preventer Circuit using High Frequency Deterrence

© 2026 · Swagatam Innovations