• 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 / 220V AC to 12V DC Flyback SMPS Circuit using IC 555 (7555)

DIY Circuits | Learn Basics | Arduino Coding

220V AC to 12V DC Flyback SMPS Circuit using IC 555 (7555)

Last Updated on April 15, 2026 by Swagatam Leave a Comment

This practical flyback SMPS circuit uses ICM7555 as the main oscillator, and yep the whole idea is to take 220V AC mains directly then convert it into isolated low voltage DC through a ferrite transformer..

Unlike many PWM controller designs, here we have very few parts but still it gives mains isolation, voltage feedback, current limiting, adjustable output voltage, and that flyback energy transfer also works properly when winding is correct.

Audio/Video Representation

AC Input Rectification and High Voltage DC Section

We first feed 220V AC into bridge rectifier Br1 and then that AC becomes near 310V DC, because 220 * 1.414 gives around 311V, so now this high voltage DC becomes the main source for transformer primary side.

Across that 310V line we keep two capacitors, C2 = 22uF / 400V and C3 = 100nF / 400V because C2 handles the slower ripple from mains rectification, while C3 catches fast switching noise, so both together keep that DC line cleaner.

Circuit Diagram

Startup Supply Network

One very important part here is the 47k / 5 watt resistor, because when power first comes, then the 7555 has no supply of its own so some starting current must come first from the 310V line.

That 47k resistor lets a small current pass slowly into C6 and C7, until zener voltage builds up, so startup can begin.

If we calculate that current, then I = V / R, so 310 / 47000 gives about 6.6mA which is enough for this CMOS timer to start operaating.

Power in that resistor becomes P = V² / R, so 310² / 47000 gives near 2.04 watts, therefore 5 watt resistor is kept, since then heat stays safer over long run.

After that resistor we have Z1 = 12V / 1 watt zener which clamps supply near 12V, so the timer gets safe voltage and does not see the full high side.

Then C6 = 220uF / 25V and C7 = 0.1uF are placed there, C6 stores charge for pulse operation, C7 removes little high frequency noise, simple but necessary.

7555 Oscillator Configuration

The 7555 runs as astable oscillator using R1 = 2.2k, R2 = 12k, C1 = 2.7nF, and one 1N4148 diode across R2.

That diode matters because without it, duty cycle does not go below 50%, but here flyback needs lower ON time so the diode makes separate charge and discharge paths.

Its cathode goes to pin 7, anode goes to pins 2/6.

Frequency by formula f = 1 / (0.693 * (R1 + R2) * C1) gives near 37kHz, though in practice it sits around 35kHz to 37kHz which suits EE25 ferrite core well.

Duty by formula Duty = R1 / (R1 + R2), so 2.2 / 14.2 gives near 15.5%, therefore practical duty stays around 15%.

This low duty is good because transformer flux stays safer, MOSFET stress drops and flyback energy gets enough OFF time to release.

Flyback Transformer Primary Calculation

For primary turns we use flyback formula Np = Vin × Ton / (Bmax × Ae).

Here Vin = 300V, Bmax = 0.18 tesla, Ae = 25 × 10^-6 m², Ton = 4.28uS because 0.15 / 35000 gives 4.28 microseconds.

Then Np comes near 285 turns so practically 280 turns primary is fine.

Primary wire can be 0.2 mm enamelled copper wire, because current there is pulse type, not continuous heavy current.

Secondary Winding and MOSFET Stress

Secondary is kept 28 turns, so ratio becomes 280 / 28 = 10.

That means reflected voltage becomes 12 * 10 = 120V, so during MOSFET OFF time that 120V reflects back to primary.

Then MOSFET stress becomes 310V + 120V = 430V,therefore MOSFET must safely sit above that.

So we use IRF840 because it handles 500V drain rating.

Secondary wire can be 0.8 mm since output current can go near 1 ampere.

Output Rectification and Filtering

For output rectifier use FR307 because ordinary rectifiers get poor at 35kHz.

Then C4 = 2200uF / 25V smooths the rectified output.

Output Voltage Feedback Control

For output adjustment we use R4 = 1k, VR1 = 1k preset, R5 = 1k, and that preset changes when optocoupler starts reacting.

The optocoupler here is PC817 which sends output voltage information back to primary side while isolation stays safe.

When output rises above set level, then PC817 LED turns ON, BC547 starts acting and then 7555 control pin shifts, so pulse width reduces and output settles.

Current Limiting Through Rs Resistor

A very serious protection part is Rs = 0.47 ohm / 5 watt.

This resistor watches MOSFET source current, because when current rises then voltage appears across Rs.

This voltage across Rs, when it reaches above 0.6V, starts turning ON transistor T1 which causes pin5 of the IC 7555 to get grounded, which in turn causes the PWM width at pin3 of the IC to become proportionately narrower. This narrowing PWM causes the MOSFET to conduct less and less, until the current consumption reaches the tolerable range, in this way the max current is always kept within the tolerable range of the MOSFET.

If that voltage becomes enough, then T2 and T3 transistor side starts acting and MOSFET gate drive gets reduced.

Threshold is near 0.65V so current limit becomes I = 0.65 / 0.47 = 1.38A, meaning limiting starts near 1.3 ampere.

Without Rs, transformer may saturate, MOSFET may fail, startup surge can hit hard, so this resistor gives survival margin for the MOSFET .

Snubber Network Protection

Snubber side uses C8 = 2.2nF / 1kV, R9 = 100 ohm / 2 watt, R10 = 100 ohm.

This part catches leakage spikes, because flyback transformer always throws spike energy when switching stops.

Without snubber, drain voltage can jump too high and MOSFET safety margin can disappear.

Final Notes

With proper winding and cooling, output can reach near 12V at 0.8A to 1A.

One must keep transformer winding tight, put insulation tape between primary and secondary, keep feedback wires short, mount MOSFET on heatsink, and separate high voltage area carefully, because there the danger stays real.

You'll also like:

  • smps 2Make this 3.3V, 5V, 9V SMPS Circuit
  • smps110V, 14V, 5V SMPS Circuit – Detailed Diagrams with Illustrations
  • welding2Bpower2BsupplySMPS Welding Inverter Circuit
  • XL6009 DC-DC Converter IC: Pinout, Working, Circuit Diagram, and Applications

Filed Under: SMPS and Converters Tagged With: 12V, 220V, AC, DC, 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: « Long Duration Timer Circuit using IC 4541: Working and Calculations
Next Post: Build this 85V–265V AC to 12V 5A SMPS Design Using UC3843 (With Calculations) »

Reader Interactions

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 (96)
  • 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 (96)
  • Lamps and Lights (159)
  • 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)
  • Renewable Energy (12)
  • Security and Alarm (64)
  • Sensors and Detectors (106)
  • SMPS and Converters (37)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (50)
  • Voltage Control and Protection (43)
  • 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 Simple Circuits using IC 7400 NAND Gates
  • Swagatam on H-Bridge Sine Wave Inverter Circuit using Arduino
  • Swagatam on Automatic Ultrasonic Water Pump Motor Controller Circuit
  • Julius Lyonga Luma Breeze on H-Bridge Sine Wave Inverter Circuit using Arduino
  • Dhurairaj on Automatic Ultrasonic Water Pump Motor Controller Circuit

© 2026 · Swagatam Innovations