A snubber circuit is essential for Flyback converter, to prevent the transistor from burning up. The overshoot on the transistor voltage, is due to the leakage inductance, , of the transformer.
It is not easy to calculate the leakage inductance of a transformer, but it can be measured after the transformer is built, or if a prebuilt transformer is used, it can be obtained from a datasheet. It can be assumed that the leakage inductance is 3% of the magnetizing inductance, .
Snubber resistor
To calculate the snubber resistance, , an acceptable max transistor voltage, . You want to select a that has a wide margin from the peak transistor voltage rating specified in it's datasheet. It still must be greater than the transistors blocking voltage,
Using this, you can calculate , and
Snubber capacitor
Snubber diode
The diode voltage must be able to block voltage a high voltage, 1N4007 tends to work.
Example
flyback using the following specs.
Calculations
Select:
Select: , 5W
Select: , 500V
Schottky snubber design
If you choose to use a schottky diode its a good idea to have a snubber.