Author Topic: Self oscillating flyback converter (SMPS)  (Read 1069 times)

0 Members and 1 Guest are viewing this topic.

Offline faxmodemTopic starter

  • Newbie
  • Posts: 7
  • Country: fr
Self oscillating flyback converter (SMPS)
« on: December 23, 2024, 11:47:43 am »
Hi there,

I've been trying to repair a switching power supply for ages, and I thought it wise to step back and study the theory.
After some research, I identified said device (an SR98 Atari 520ST) as being a self-oscillating flyback converter.
Now I grabbed a copy of "Switchmode Power Supply Handbook, Keith Billings, 1st edition, 1989, McGraw-Hill" and there's a similar circuit (Fig. 2.6.4)
and a detailed explanation which I don't understand. So I fired up circuitjs and tried to simulate it, in the hopes it would give me some insight
to the inner workings of the circuit. Unfortunately, there are no values in the book, and so I tried to guess them and now have a somewhat functioning oscillating primary, but regulation doesn't work at all.

I would be very grateful to get some help on finding the right values, and understanding the circuit. You can find the link to the circuit at falstad.com.

Thanks,

Fabien
« Last Edit: December 24, 2024, 04:09:06 pm by faxmodem »
 

Offline faxmodemTopic starter

  • Newbie
  • Posts: 7
  • Country: fr
Re: Self oscillating flyback converter (SMPS)
« Reply #1 on: December 23, 2024, 05:30:03 pm »
I just realized the book scan at archive.org required to log in to be viewed. There's a copy of the diagram on e-magnetica.pl with a simplified explanation and for your convenience here's the diagram.

2468505-0
 

Offline Konkedout

  • Regular Contributor
  • *
  • Posts: 200
  • Country: us
Re: Self oscillating flyback converter (SMPS)
« Reply #2 on: December 23, 2024, 06:59:04 pm »
I used to design commercial AC-DC flyback power supplies which were self oscillating.  This was > 30 years ago.

Self oscillators may not simulate properly because noise may be needed for the oscillation to begin.  Noise is always present in real circuits, but simulators....not so much.

I would send a schematic if I had one to send....but I think I would need to re-design.  The schematic you show may be OK (yeah it lacks values) but I do better to design than to reverse engineer an existing schematic.

The earlier AC-DC designs used bipolar transistors such as MJE13005 which may no longer be available.  Now it is all MOSFET main switches, and boundary mode also is sort of obsolete but I think it is worth understanding.

If you mainly want to learn, I recommend that you start off trying to make a critical conduction boost converter, as that avoids the difficulty of having a good flyback transformer.  The transformer itself is probably the biggest challenge.  If you DO want to do a flyback converter, make your job easier by using a larger sized PQ core.

What is your desired input voltage, output voltage, output current?

I recommend: Search for key words: Boundary mode, critical conduction, flyback converter.
 
The following users thanked this post: faxmodem

Offline Xena E

  • Frequent Contributor
  • **
  • Posts: 609
  • Country: gb
Re: Self oscillating flyback converter (SMPS)
« Reply #3 on: December 23, 2024, 07:05:48 pm »
Hello Fabien.
The circuit is basically a blocking oscillator based on the positive feedback between L1 and L3, without the regulation the output voltage would rise until circuit losses or more likely component breakdown limited it.

A proportion of the output is applied to the comparator A1 non inverting input, the inverting input of which has a stable voltage provided by the regulator diode Ref. When the non inverting input exceeds the inverting, the output switches high, turning on Q2 shunting away the input to the switching transistor.

Q2 is also used to provide current limit as it also senses the voltage across the switching transistor emitter resistor, R4.

As for some of the specific component values, that would be a hard task as we would need a lot more information about the original circuit.

If you have one to repair then can the original not be reverse engineered?

If, it is a repair, then the most likely faiures are the capacitors, switching transistor, or transformer.

Hope that helps.

X
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Self oscillating flyback converter (SMPS)
« Reply #4 on: December 24, 2024, 01:15:29 am »
A common failure point is the start-up resistor, R4 R1 in the example.
Careful, if the start-up resistor is open circuited, the large HVDC capacitor or reservoir capacitor can stay charged and be a shock hazzard.
I have had this kind of SMPS spring to life while bring probed with multimeter probes when the start-up resistor is open.
Also, avoid powering it with any components removed that disable output voltage regulation.
« Last Edit: December 24, 2024, 03:44:03 am by xavier60 »
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline Konkedout

  • Regular Contributor
  • *
  • Posts: 200
  • Country: us
Re: Self oscillating flyback converter (SMPS)
« Reply #5 on: December 24, 2024, 03:14:48 am »
A common failure point is the start-up resistor, R4 in the example.
Careful, if the start-up resistor is open circuited, the large HVDC capacitor or reservoir capacitor can stay charged and be a shock hazzard.
I have had this kind of SMPS spring to life while bring probed with multimeter probes when the start-up resistor is open.
Also, avoid powering it with any components removed that disable output voltage regulation.

Maybe we are looking at different schematics, but I see the startup resistor as R1.  And yes the startup resistors do fail.   In addition to the power rating of R1, watch the voltage rating.  Be conservative about the voltage rating of that resistor...and do NOT ignore it!  It is OK to put a few resistors in series to get the needed voltage rating.
 
The following users thanked this post: faxmodem

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Self oscillating flyback converter (SMPS)
« Reply #6 on: December 24, 2024, 03:45:29 am »
I should have said "R1"
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline faxmodemTopic starter

  • Newbie
  • Posts: 7
  • Country: fr
Re: Self oscillating flyback converter (SMPS)
« Reply #7 on: December 24, 2024, 05:06:19 pm »
Thanks for your answers.
They helped me experiment in a more educated way with the values, and I think I found a stable setup !
I still have to figure out how to avoid overvoltage on the output just after switching on :



It's going up to 18V and then stabilizes around 15V with some ripple.
One probably stupid question I have is about the Op-Amp. It's an ideal one in the simulation with -15/+15V, but if I were to try this circuit out on a breadboard, how would I feed it the -15/+15V ?

Here's an updated version of the simulation
« Last Edit: December 24, 2024, 05:08:01 pm by faxmodem »
 

Online schmitt trigger

  • Super Contributor
  • ***
  • Posts: 2410
  • Country: mx
Re: Self oscillating flyback converter (SMPS)
« Reply #8 on: December 24, 2024, 05:42:21 pm »
You don’t require a negative supply in this particular application.
 

Offline faxmodemTopic starter

  • Newbie
  • Posts: 7
  • Country: fr
Re: Self oscillating flyback converter (SMPS)
« Reply #9 on: December 24, 2024, 06:07:29 pm »
And where can I get the positive supply from ?
 

Offline Xena E

  • Frequent Contributor
  • **
  • Posts: 609
  • Country: gb
Re: Self oscillating flyback converter (SMPS)
« Reply #10 on: December 24, 2024, 06:36:27 pm »
And where can I get the positive supply from ?
The output!
 

Offline Konkedout

  • Regular Contributor
  • *
  • Posts: 200
  • Country: us
Re: Self oscillating flyback converter (SMPS)
« Reply #11 on: December 24, 2024, 09:17:32 pm »
You need to observe the specifications of the....

I do not see whether it is an op amp or a comparator.  Usually an op amp will be used with negative feedback, and many comparators (such as LM339) need output pullup resistors.  So identifying the device is one issue.

The (op amp or comparator) will have a common mode input voltage range.  In a uA741 op amp or LM311 comparator, the input voltage range does not reach either the negative or positive supply rail.
In an LM324 type op amp or LM339 comparator, the input voltage range extends down to the negative rail but not up to the positive rail.
Some (mostly lower voltage devices) have rail-rail input.  And some are RRIO which is rail-rail input and output.

But from the looks of your circuit, I think your input voltage is far enough above the (amplifier) negative supply rail so that I do not think you have a problem.

 

Offline faxmodemTopic starter

  • Newbie
  • Posts: 7
  • Country: fr
Re: Self oscillating flyback converter (SMPS)
« Reply #12 on: December 24, 2024, 09:44:02 pm »
When I try to feed the op-amp the output voltage, the output voltage drops a lot and isn't stable (1-2V)

« Last Edit: December 24, 2024, 10:00:02 pm by faxmodem »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Self oscillating flyback converter (SMPS)
« Reply #13 on: December 24, 2024, 11:00:11 pm »
The snubber should go to GND and 10 ohms is way too low for the start-up resistor. It makes better sense swapped with the 100K.
I spent some time on the simulation with no success.
Time would be better spent tracing out the actual SMPS.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline Konkedout

  • Regular Contributor
  • *
  • Posts: 200
  • Country: us
Re: Self oscillating flyback converter (SMPS)
« Reply #14 on: December 24, 2024, 11:19:17 pm »
Given that this is a non-isolated flyback (mosquitofront?)  :D converter, I would replace the op amp (is it that?) and zener with a TL431 and (PNP transistor w emitter resistor).  The TL431 is cheap and versatile.   It can be used as (reference + error amplifier.)  Millions of them (maybe billions?) have been sold and they were almost universally used in AC/DC power adapters.

I drew the attached with KiCad.  Values for R1 and C1 are just an educated guess.  R2 is a gain set resistor which value depends upon the circuitry being driven.

« Last Edit: December 25, 2024, 12:04:58 am by Konkedout »
 

Offline Xena E

  • Frequent Contributor
  • **
  • Posts: 609
  • Country: gb
Re: Self oscillating flyback converter (SMPS)
« Reply #15 on: December 24, 2024, 11:41:21 pm »
Looking closely I'd say the circuit as it is, has to have component values calculated correctly to work, these are just random.

The output sensing and voltage reference for instance should sit the values centrally within the bounds of the comparator (?) supply rails.



I agree with Konkedout, to do this now the go to component would be the 431.

X
 

Offline faxmodemTopic starter

  • Newbie
  • Posts: 7
  • Country: fr
Re: Self oscillating flyback converter (SMPS)
« Reply #16 on: December 25, 2024, 01:24:00 pm »
First of all thanks so much to all of you for taking the time to try to help me, I really appreciate it !
I have to admit many of your answers are a bit over my head and I should give it some time to understand them properly.

Now, due to popular demand :D I'll post the schematic of the original PSU I'm trying to repair, and also the simulation.. Unsurprisingly it uses an TL431 :-)

I've got a working device, and a faulty one. I replaced all the electrolytic caps on the faulty one, and swapped most of the components with the working one to no avail. The symptom is a very low, unstable voltage on the output, and my scope doesn't seem to be able to sync to Vbe of Q1 and Q2 (using an isolation transformer).

2469737-0
« Last Edit: December 25, 2024, 01:25:59 pm by faxmodem »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Self oscillating flyback converter (SMPS)
« Reply #17 on: December 26, 2024, 09:21:31 am »
There are a lot of interactions happening in that primary control circuitry.
There is usually a resistor across the opto's LED in all SMPS designs that use the TL431. Makes it difficult to determine if the TL431 is involved with the problem or not.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline faxmodemTopic starter

  • Newbie
  • Posts: 7
  • Country: fr
Re: Self oscillating flyback converter (SMPS)
« Reply #18 on: December 26, 2024, 10:00:23 am »
Correct me if I'm wrong, but I think I ruled out the secondary by feeding it 5V through the output (disconnecting mains of course) and then measuring the resistance across the optocoupler's transistor while varying the voltage. I don't remember the direction, but the resistance varied nicely with input voltage.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Self oscillating flyback converter (SMPS)
« Reply #19 on: December 26, 2024, 10:41:16 am »
Correct me if I'm wrong, but I think I ruled out the secondary by feeding it 5V through the output (disconnecting mains of course) and then measuring the resistance across the optocoupler's transistor while varying the voltage. I don't remember the direction, but the resistance varied nicely with input voltage.
That's a useful test. The resistance across the opto's transistor should abruptly start dropping at very close to 5V, corresponding to the TL431's REF pin approaching 2.5V. If you see a change in the transistor's resistance well before 5V is reached, put a 1K resistor across the LED.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Self oscillating flyback converter (SMPS)
« Reply #20 on: December 26, 2024, 10:49:00 am »
BTW, dont increase the voltage any more than necessary. From what's shown, there is nothing preventing the TL431 from drawing enough current to damage the LED.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline Konkedout

  • Regular Contributor
  • *
  • Posts: 200
  • Country: us
Re: Self oscillating flyback converter (SMPS)
« Reply #21 on: December 27, 2024, 03:54:46 am »
There are a lot of interactions happening in that primary control circuitry.
There is usually a resistor across the opto's LED in all SMPS designs that use the TL431. Makes it difficult to determine if the TL431 is involved with the problem or not.

Yes the TL431 has an idle current which could get up to 1 mA.  So you want bypass the opto LED using a resistor which will pass at least 1 mA before the LED turns on.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf