3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Simple PWM Flyback driver tutorial

Simple PWM Flyback driver tutorial
Hi there,

This is an instructable for making your own PWM (Pulse Width Modulated) flyback driver!
The design is relatively simple and easy to make if you have basic electronic skills.
In fact, you don't even have to know how a transistor or a MOSFET works to make this. You only have to follow the instructions.

What the PWM driver does:
The driver is fed by a 12V power supply (a regular DC adapter). This DC voltage is chopped into pieces by our MOSFET because it rapidly switches the 12V on and off. This switching is controllable by two potentiometers. One for the ON-time and one for the OFF-time.
If the ON-time and the OFF-time are equal, the output voltage will be 6V.
If the ON-time is larger then the OFF-time, the output voltage will be between 6V and 12V
If the ON-time is smaller then the OFF-time, the output voltage will be between 0V and 6V.
So with this feature, we can control the average voltage that our primary Flyback coil gets. This will change the output voltage.

When we make sure both potentiometers have the same resistance value, we'll create a block-wave signal that has the same ON- as OFF-time. Decreasing the resistance (of both potentiometers, at the same time) will increase the frequency of the output signal. Increasing the resistance will decrease the frequency.

We now have controllable ON- and OFF-time, and controllable frequency, so this driver is perfect for Any flyback transformer! (Each flyback transformer works better on another frequency).

The operating frequency of the flyback transformer goes somewhere from 15kHz to 50kHz. My flybacks operate best at 20kHz.

(oh, and the power supply doesn't need to be exactly 12V. You can also use a 30V supply or something a little lower then 12V).

Preview video of the PWM driver:

 
Remove these adsRemove these ads by Signing Up
 

Step 1Requirements

Requirements
- soldering iron with solder
- a PCB
- a power supply (DC adapter 12V to 20V)
- a heatsink (the size of the heatsink depends on the flyback and on the type of MOSFET, you'll have to experiment)
- a MOSFET (I used an IRFB17N50L because they're awesome)
- wire for making connections at the bottom of the PCB
- 2x potentiometer 100kohm
- 2x resistor 260ohm 250mW
- 2x resistor 1kohm 250mW
- 1x resistor 4k7ohm 250mW for the LED (high resistance so that we can also use greater power supplies)
- 2x capacitor 3.3nF polyester film or something close to that
- 2x NPN transistor (regular transistor)
- a small pushbutton (not required)
- a flyback transformer (not required)
- a FAN connector for inserting the MOSFET (not required, you may solder it directly on your PCB)

The picture above here shows how the components look like.
« Previous StepDownload PDFView All StepsNext Step »
62 comments
1-40 of 62next »
Nov 29, 2011. 11:15 AMmiar56 says:
Will this work using a MTW32N20E mosfet. It's a N channel but seems to have an internal Zener across the source and the gate?
Nov 28, 2011. 9:46 AMgeckomage says:
i was referring to my plasma speaker ;D it has filter caps ^__^
Nov 22, 2011. 1:41 PMUATradition says:
Got it working on led's and DC motors but not for my flyback ..... however - Once I turn up the on time pot all the way the led on board gets dim and the flyback makes a click - ? Ant idea of what this could be ? And it doesn't matter where the other pot is unless it's all the way up too - that's the only time the led on board stays bright.
Nov 21, 2011. 6:32 AMgeckomage says:
hello my friend, how have you been? :P will this one work decently compared to the ultimate one? because i have the parts for this but not for the ultimate one :P nice bug zapper btw! also i noticed you have a fairly big coil on your flyback. for my flyback i used 14 awg wire and 6 turns xD
Nov 22, 2011. 6:08 AMgeckomage says:
ohh.. this is right o.o i might have to adjust that for when i have to run this thing without two robot batteries xD poodles. i might try to find a good wall power supply that can deliver like 10 amps or w/e is needed. :3 my lil circuit is working properly all bread boarded up. only thing missing on the circuit is the filter caps, and the flyback/mosfets. (the signal goin to the mosfets thats spose to be flipped in reverse with a GDT is workin aight though throwin out 24 v like its spose to :D) soo when i actually make this thing, im hoping it will work! :D what you workin on next?
Nov 21, 2011. 6:54 PMUATradition says:
Will different capacitors work with this ? And also what about a capacitor bank ?
Nov 21, 2011. 9:27 PMUATradition says:
Also the materials say 2 x 260ohm resistors but the schematic says 560 ??? I'm going to go with the 260 right now ! Maybe you'll catch me before it's too late !! HA !
Nov 21, 2011. 6:41 PMUATradition says:
(removed by author or community request)
Nov 8, 2011. 3:52 PMbudhaztm says:
I need some assistence on the mosfet. im pretty confident i wired the two smaller transistors in correctly but im not sure how to wire the big one
Nov 8, 2011. 4:19 PMbudhaztm says:
ok. so lets say i find the gate,drain and source connections for my mosfet. I cant ynderstand the diagram where it has the mosfet. this is my first real circuit and i needs help. thanks by the way
Nov 8, 2011. 5:00 PMbudhaztm says:
i dont quite understand the part where the mosfet is on the diagram, theres too many lines
Nov 7, 2011. 1:53 PMHav0c says:
do you have to use a MOSFET or can you use a power transistor
Oct 10, 2011. 4:55 PMbudhaztm says:
Ok, i took apart two computer monitors to get parts for my science project and i need to construct this amazing device.
I have a handful of what i think are MOSFETS, or transistors. THey all have three prongs and the numbers are as goes: IRFS640A, FS14SM16A and C54119K (this last one says its toshiba). I was curious if i could use one of these instead of buying a mosfet.
Thanks for your help.
Nov 1, 2011. 12:53 PMAlex1M6 says:
I *think* C54119K is a horizontal output transistor.
Sep 22, 2011. 7:47 AMyellowdart31 says:
This is awesome. Every other PWM I've seen is 555 driven (I'm new to electronics). I have a few questions though: What is the frequency range of this device? (ie. range of times for high and low intervals)? Is there a formula for predicting the time of the high and low intervals based on the setting of the potentiometers? Would you explain or provide a link to an explanation of the theory of operation of this circuit? Thanks!
Sep 29, 2011. 12:52 PMyellowdart31 says:
THANKS!! That's even more than I asked for... an actual simulator!!! Wow! ... That site has a LOT of other simulators too... aaannd bookmarked!
Sep 28, 2011. 11:22 PMAlex1M6 says:
Hi what capacitance are those 3.3 "m" capacitors? do you mean nF, uF or mF ?

Thanks.

Sep 29, 2011. 12:52 AMAlex1M6 says:
Thanks,

One more thing what npn transistors did you use and does the MOSFET get hot?
Sep 26, 2011. 8:42 PMAlex1M6 says:
Well done on this circuit.

I am going to give this a try as all of my 555 based drivers keep dieing.
Sep 18, 2011. 2:01 AMTheBlackBird says:
Hello.
Very nice instructable, i need to drive a SSC-P7 LED at max brightness and i've been looking everywhere for an easy to build driver and i found yours.
So can this controller be used to drive a power led? and how much current can the mosfet handle?
I'm going to build it anyway (because it's great) but i ask about the led because i don't know if it could destroy it or not.

Thank You!
Sep 17, 2011. 11:37 PMslipknot rules says:
Nice 'ible! Have been using the 555 timer + MOSFET method for a while but am keen to give this one a try! Cheers!
Sep 14, 2011. 10:18 PMdiykiwibloke says:
Thanks for clarifying *Electorials* and *domints*. Now it makes sense. I enjoyed your video Electorials. I could tell which was your favorite part in your demo. I too used to love creating sparks in a past life, built tesla coils and so on :) I'm only just recently getting into electronics again.

Again, thanks for posting this 'ible.
Sep 15, 2011. 4:12 AMdomints says:
No problem ;)
1-40 of 62next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
57
Followers
9
Author:Electorials(My YouTube channel)
I'm really fascinated by science! From when I was young I've been curious about how stuff works and how I can create those things myself. Now I don't want to just learn things myself but I also want t...
more »