• 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 / SMPS and Converters / Build Customized 220V Flyback SMPS Circuits: 12V, 5A, 60W Example Discussed

Build Customized 220V Flyback SMPS Circuits: 12V, 5A, 60W Example Discussed

Last Updated on June 8, 2026 by Swagatam 2 Comments

In this post I will explain you all the simple formulas, step by step, which you can use for designing and building professional grade 220V AC SMPS flyback converter circuits. As we know the SMPS transformer is the heart of an SMPS design, so here we will learn all the steps, one by step, using the example of a 220V to 12V. 5 Amp, 60 watt SMPS converter, as the benchmark design. Using these same steps you can configure and design the ferrite transformer for any customized 220V or 120V AC input flyback SMPS converter circuit.

Table of Contents
  • Audio/Video Representation
  • Initial Parameters Required for Designing SMPS Flyback Transformer
  • Step 1: Calculate the Realized Operating Duty Cycle (D)
  • Step 2: Calculate the Primary Inductance (Lp)
  • Step 3: Calculate the Peak Primary Current (Ipk_primary)
  • Step 4: Calculate the Transformer Turns Ratio (Nps)
  • Step 5: Calculate the Primary Turns (Np)
    • Step 6: Calculate the Secondary Turns (Ns)
    • Step 7: Calculate the Peak Secondary Current (Ipk_secondary)
    • Step 8: Calculate the RMS Currents for Wire Sizing
    • Step 9: Final Wire Area Selection
    • Circuit Diagram
  • Complete Bill of Materials (BOM)
    • Resistors
    • Capacitors
    • Semiconductors
    • Transistors
    • Power MOSFET
    • Transformer TR1
    • Primary
    • Secondary
    • Core
    • Input
    • Output
    • Components I Would Upgrade
    • Sources

To begin with, let us consider the following parameters that must be gathered to start the calculations, and we can easily get all these from our intended SMPS specifications and the component datasheets.

Audio/Video Representation

Initial Parameters Required for Designing SMPS Flyback Transformer

  • Input Voltage (Vin): 310 Volts DC
  • Output Voltage (Vout): 12 Volts DC
  • Output Current (Iout): 5 Amps
  • Output Power (Pout): 12 Volts * 5 Amps = 60 Watts
  • Estimated Efficiency (Eff): 85% (0.85)
  • Input Power (Pin): Pout / Eff = 60 / 0.85 = 70.6 Watts
  • Switching Frequency (f): 100,000 Hertz (100 kHz)
  • Chosen Reflected Voltage (Vor): 100 Volts
  • Diode Forward Drop (Vd): 0.7 Volts
  • Core Effective Area (Ae): 120 square millimeters (0.00012 square meters)
  • Maximum Flux Density (Bmax): 0.2 Tesla (200 millitesla)

Now let's proceed step by step and learn all the detailed formulas and calculations required for making any customized SMPS flyback converter.

Step 1: Calculate the Realized Operating Duty Cycle (D)

When we choose the reflected voltage upfront, the operating duty cycle is automatically fixed by the balance of the input voltage and the reflected voltage.

Formula: Operating Duty Cycle = Vor / (Vin + Vor)

Calculation: 100 / (310 + 100) = 100 / 410 = 0.244

Result: Operating Duty Cycle = 24.4%

Step 2: Calculate the Primary Inductance (Lp)

Formula: Primary Inductance = (Vin * Operating Duty Cycle) squared / (2 * Pin * f)

Calculation: Vin * Operating Duty Cycle = 310 * 0.244 = 75.64 75.64 squared = 5,721.4 2 * Pin * f = 2 * 70.6 * 100,000 = 14,120,000 Primary Inductance = 5,721.4 / 14,120,000 = 0.000405 Henry

Result: Primary Inductance = 405 microhenries

Step 3: Calculate the Peak Primary Current (Ipk_primary)

Formula: Peak Primary Current = (Vin * Operating Duty Cycle) / (f * Primary Inductance)

Calculation: Vin * Operating Duty Cycle = 310 * 0.244 = 75.64 f * Primary Inductance = 100,000 * 0.000405 = 40.5 Peak Primary Current = 75.64 / 40.5 = 1.87 Amps

Result: Peak Primary Current = 1.87 Amps

Step 4: Calculate the Transformer Turns Ratio (Nps)

Formula: Turns Ratio = Vor / (Output Voltage + Diode Drop)

Calculation: Output Voltage + Diode Drop = 12 + 0.7 = 12.7 Volts Turns Ratio = 100 / 12.7 = 7.87 (Let's round this to a practical, clean integer ratio of 8)

Result: Turns Ratio = 8 (Meaning you need 8 primary turns for every 1 secondary turn).

Step 5: Calculate the Primary Turns (Np)

Now we find out how many physical turns are needed on the primary winding so that the core safely handles 1.87 Amp peak current without saturating.

Formula: Primary Turns = (Primary Inductance * Peak Primary Current) / (Bmax * Ae)

Calculation: Primary Inductance * Peak Primary Current = 0.000405 * 1.87 = 0.000757 Bmax * Ae = 0.2 * 0.00012 = 0.000024 Primary Turns = 0.000757 / 0.000024 = 31.54 turns

Result: Primary Turns = 32 turns...

Step 6: Calculate the Secondary Turns (Ns)

With our primary turns rounded to 32 and our turns ratio set to 8, finding the secondary turns is easy.

Formula: Secondary Turns = Primary Turns / Turns Ratio

Calculation: Secondary Turns = 32 / 8 = 4 turns

Result: Secondary Turns = 4 turns

Step 7: Calculate the Peak Secondary Current (Ipk_secondary)

Formula: Peak Secondary Current = Peak Primary Current * Turns Ratio

Calculation: Peak Secondary Current = 1.87 * 8 = 14.96 Amps

Result: Peak Secondary Current = 15 Amps

Step 8: Calculate the RMS Currents for Wire Sizing

The primary runs at a 24.4% duty cycle, while the secondary runs during the remainder of the cycle which we call Doff.

Doff is calculated as: 1 - 0.244 = 0.756 (or 75.6% of the cycle)

Formula for Primary RMS Current: Primary RMS Current = Peak Primary Current * square root of (Operating Duty Cycle / 3)

Calculation: 0.244 / 3 = 0.0813 Square root of 0.0813 = 0.285 Primary RMS Current = 1.87 * 0.285 = 0.53 Amps

Formula for Secondary RMS Current: Secondary RMS Current = Peak Secondary Current * square root of (Doff / 3)

Calculation: 0.756 / 3 = 0.252 Square root of 0.252 = 0.502 Secondary RMS Current = 15 * 0.502 = 7.53 Amps

Result: Primary RMS Current = 0.53 Amps Secondary RMS Current = 7.53 Amps

Step 9: Final Wire Area Selection

Using your recommended current density of 4.5 Amps per square millimeter:

Formula for Primary Wire Area:

Primary Wire Area = Primary RMS Current / 4.5 Calculation: 0.53 / 4.5 = 0.118 square millimeters (Standard 26 AWG wire fits this target perfectly).

Formula for Secondary Wire Area:

Secondary Wire Area = Secondary RMS Current / 4.5 Calculation: 7.53 / 4.5 = 1.67 square millimeters (This can be nicely handled by winding 4 parallel strands of 22 AWG wire together).

Circuit Diagram

We can use the following basic IC 555 based SMPS circuit diagram for the above calculated ferrite transformer by adjusting the PWM duty cycle of the IC 555 to 24%.

Complete Bill of Materials (BOM)

Resistors

ReferenceValueRating
R12.2k1/4W
R41k1/4W
R51k1/4W
R822Ω1/4W
R9100Ω2W
R10100Ω1/2W
R111k1/4W
R121k1/4W
R131k1/4W
Rs0.47Ω5W
Startup Resistor47k5W
VR1Preset PotValue not shown (typically 10k)
PWM Preset10kTrimmer

Capacitors

ReferenceValueVoltage
C11.5nF100V or above
C222µF400V
C3100nF400V
C42200µF25V
C6220µF25V
C70.1µF50V
C82.2nF1kV

Semiconductors

ReferencePart
IC1NE555
OP1PC817 Optocoupler
D1FR307 Fast Recovery Diode
Z112V / 1W Zener
1N41482 pcs
Br12A to 4A / 600V Bridge Rectifier

Transistors

ReferencePart
T1BC547
T2BC547
T3BC557

Power MOSFET

ReferenceSuggested Part
Q17N65, FQPF7N65, STF7N65, IRF840, or similar 650V MOSFET

For better efficiency,:

  • STF7N65M2
  • 8N65
  • 10N65

would be preferred.

Transformer TR1

Primary

  • 32 Turns
  • 26 AWG Enamelled Copper Wire

Secondary

  • 4 Turns
  • 4 Parallel Strands
  • 22 AWG Enamelled Copper Wire

Core

  • EE25 Ferrite Core
  • Paper or plastic spacer air gap

Input

ItemSpecification
AC Input220VAC
Fuse1A Slow Blow Recommended
NTCOptional 5D-9 or 5D-11

Output

ParameterValue
Voltage12V Adjustable
Current5A
Power≈60W

Components I Would Upgrade

If I were building it today, then I would use:

  • C2 = 47µF/400V instead of 22µF
  • Q1 = 8N65 or 10N65 MOSFET
  • FR307 replaced with MUR460 or UF5408
  • Bridge Rectifier = 4A/600V minimum
  • Output capacitor = Low ESR 2200µF/25V

This can make the supply much more reliable at the full 5A output current.

Sources

  • ti.com
  • en.wikipedia.org
  • electronics.stackexchange.com

You'll also like:

  • graph1The Role of Inductor Coil in SMPS
  • How to Add Adjustable Current and Voltage feedback Control to SG3525 High Power Inverters
  • 5V, 12V Buck Converter Circuit SMPS 220V
  • variable switching power supply using LM317 2LM317 Variable Switch Mode Power Supply (SMPS)

Filed Under: SMPS and Converters Tagged With: 220V, Build, Circuits, Customized, Flyback, 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: « Fence Charger Animal Contact Detector Circuit with Audible Buzzer
Next Post: Ferrite Core Air Gap Calculator Tool »

Reader Interactions

Questions & Answers

Total Posts: 2
Newest Oldest
AntoDas8
August 26, 2026 • 1 month ago #212381

Can I make the rectifier using SM5063?

Reply
SwagatamAdmin
August 27, 2026 • 1 month ago #212382

Yes, you can use it to make rectifier…

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

My YouTube Channel

Circuit Simulator: Draw and Simulate Schematics

circuit simulator image

Categories

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

Subscribe to get New Circuits in your Email

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 About Me
  • chukwuamaka on About Me
  • Swagatam on Police/Ambulance Siren Circuit with Rotating Beacon Light
  • Swagatam on Room Air Ionizer Circuit – For Pollution Free Living
  • Swagatam on Understanding Motorcycle Voltage Regulator Wiring

Social Profiles

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

Calculators

  • ZVS Induction Heater + Tank Calculator Tool
  • Zener Diode Calculator
  • Wire Current and Thickness Calculator (Ampacity Calculator)
  • Voltage Divider Calculator
  • Transistor Base Resistor Calculator
  • Transistor Astable Multivibrator Calculator
  • TL431 Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Ferrite Core Air Gap Calculator Tool
  • Parallel MOSFET Calculator Tool: How to Connect MOSFETs in Parallel Safely
  • LC Resonance Calculator for EV Battery Charger Circuits
  • LED String Series Resistor Calculator
  • PFC (Power Factor Correction) Calculator Tool: 3kW
  • Passive Power Factor Correction (PFC) Calculator
  • LM567 IC Calculator Tool
  • SMPS Flyback Boost Converter Calculator
  • Shunt Resistor Calculator for Ammeters
  • SCR and Triac Gate Resistor Calculator
  • Battery Back up Time Calculator
  • Boost Converter Calculator (Non-Isolated)
  • Bootstrap Capacitor Calculator
  • Buck Converter Calculator
  • Buck-Boost Converter Calculator
  • Capacitance Reactance Calculator
  • DCM Flyback Transformer & Wire Gauge Wire Size Calculator Tool
  • Filter Capacitor Calculator
  • IC 4047 Calculator (Frequency and PWM)
  • IC 4060 Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • IC SG3525, SG3524 Calculator
  • Inductance Calculator
  • Induction Heater Inductor and Resonant Frequency Calculator
  • Induction Heater Work Coil Calculator
  • Inverter LC Filter Calculator
  • LC Resonance Calculator
  • LED Current Calculator
  • LM317, LM338, LM396 Calculator
  • NAND/NOT Gate RC Values Calculator
  • NOT, NAND Gate Frequency Calculator
  • Notch Filter Calculator Tool
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • RC Filter Calculator
  • Reactance Calculator
  • Sine Table Calculator for SPWM Arduino Code
  • Small Signal Transistor(BJT) and Diode Quick Datasheet
  • SMPS Calculator for Toroidal Ferrite Transformers
  • SMPS Flyback Transformer Calculator – Design by Target Duty Cycle
  • TL431 Calculator
  • Op-Amp Hysteresis Resistor Calculator

© 2026 · Swagatam Innovations