Author Topic: dirty smps  (Read 5115 times)

0 Members and 1 Guest are viewing this topic.

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17884
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
dirty smps
« on: April 13, 2012, 08:17:18 pm »
So attached is the diagram and scope view of the circuit. I can't work out why I'm getting all the "ringing". perhaps because it's on a breadboard ?

I actually got a very good output when I coupled the mosfet straight to the comparator output. I'm using a load of 120 ohms. I'm not after a perfect output just a rough stepdown
« Last Edit: April 13, 2012, 08:40:51 pm by Simon »
 

Offline cybergibbons

  • Frequent Contributor
  • **
  • Posts: 400
Re: dirty smps
« Reply #1 on: April 13, 2012, 08:21:15 pm »
Quite likely - it's hard to breadboard SMPS and not have issues like this.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17884
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: dirty smps
« Reply #2 on: April 13, 2012, 08:25:11 pm »
yes that is what I thought, there are wires all over the place, I was going to try vero boarding it to see if it improves
 

Offline muvideo

  • Frequent Contributor
  • **
  • Posts: 418
  • Country: it
Re: dirty smps
« Reply #3 on: April 13, 2012, 08:36:44 pm »
Hello, perhaps only an error in the drawing, but  shouldn't D1 and C? be connected to GND?
Fabio Eboli.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17884
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: dirty smps
« Reply #4 on: April 13, 2012, 08:38:01 pm »
yes drawing error, will correct
 

Offline Harvs

  • Super Contributor
  • ***
  • Posts: 1202
  • Country: au
Re: dirty smps
« Reply #5 on: April 14, 2012, 12:46:10 pm »
This is kind of an interesting circuit...  What's setting the frequency of oscillation?  From what I can see, it's the feedback loop combined with the low pass RC filter on the voltage divider input to the comparator.

Maybe why your seeing less oscillation when you directly couple the mosfet gate to the comparator is because the comparator doesn't have the drive capacity to switch the gate as fast (only 16mA from the datasheet), and therefore it's an extra time constant in the circuit stopping it going into high frequency oscillation.

Either way, I personally would much prefer to use something like a nice and cheap TL494 controller IC that'll give you a fixed frequency output with PWM, soft start etc.  It also has a bandgap 5V ref on chip so you could get away from the regulator as a reference.  If you haven't seen them, have a look at the extensive application notes on the web.  They're an IC that's been around for ages and is in a huge number of computer power supplies. ~$0.30 from digikey last time I checked.

 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16349
  • Country: za
Re: dirty smps
« Reply #6 on: April 14, 2012, 12:55:26 pm »
Put some hysteresis on the comparator, use 1M between output and pin 5 ( or 4, depending) with a 1k resistor to the rest of the circuit. Should stop the oscillation almost totally. Try also adding a 1n capacitor across the output to ground.
 

Offline slateraptor

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: us
Re: dirty smps
« Reply #7 on: April 14, 2012, 01:57:46 pm »
If I'm reading that Rigol screen correctly as 5V/div, then all I have to say is that's looking damn nasty. :P
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17884
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: dirty smps
« Reply #8 on: April 14, 2012, 05:59:00 pm »
If I'm reading that Rigol screen correctly as 5V/div, then all I have to say is that's looking damn nasty. :P

quite, the actual Vrms is what is should be but there are elements of it at the input voltage
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16349
  • Country: za
Re: dirty smps
« Reply #9 on: April 14, 2012, 06:09:58 pm »
Output I was referring to was the comparator, it should slow down the rise to high a lot, and this will stop the ringing which is probably the comparator ringing merrily as it crosses the switch threshold.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17884
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: dirty smps
« Reply #10 on: April 14, 2012, 06:49:48 pm »
This is kind of an interesting circuit...  What's setting the frequency of oscillation?  From what I can see, it's the feedback loop combined with the low pass RC filter on the voltage divider input to the comparator.

Maybe why your seeing less oscillation when you directly couple the mosfet gate to the comparator is because the comparator doesn't have the drive capacity to switch the gate as fast (only 16mA from the datasheet), and therefore it's an extra time constant in the circuit stopping it going into high frequency oscillation.

Either way, I personally would much prefer to use something like a nice and cheap TL494 controller IC that'll give you a fixed frequency output with PWM, soft start etc.  It also has a bandgap 5V ref on chip so you could get away from the regulator as a reference.  If you haven't seen them, have a look at the extensive application notes on the web.  They're an IC that's been around for ages and is in a huge number of computer power supplies. ~$0.30 from digikey last time I checked.

Yes I'm relying on the natural delays in the circuit and the feedback loop to put the breaks on the frequency that otherwise will be a bit load dependant. I gave the project the tile or "dirty smps" before i even started because my aim is to just hash something reasonable together with parts I already have and that are quite generic without expecting a perfect flatline output. Ripple is ok as this is at the moment to power my laptop and as that will have it's own built in regulation I'm not fussed of a few hundred mV ripple as I'm not fussed about extrme output voltage acuracy which is why i bunged a cheap 78L05 in there. This is also a good learning exercise for me

Indeed driving the switch mosfet straight from the comparator gave it a delay of it's own, you could definitely see the slop in the gate voltage and the mosfet (with no heat sink) was getting hot with not a lot of load. The mosfet gets less hot with the buffer/driver in the circuit despite the amount of switching. The .1 uF capacitor in the feedback loop seems to make no difference at all, even a 10 uF capacitor did not change anything.

I'll try the capacitor on the output next.

I know I can get a cheap reg chip to do this but the idea was the learning curve and an excuse to put hand to breadboard and scope.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17884
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: dirty smps
« Reply #11 on: April 14, 2012, 08:06:32 pm »
The 1M feedback resistor and output capacitor made some difference but now the output is every rippled and there is still a lost of ringing. Pushing the wires about causes random reactions so I'm guessing that it maybe time to move away from the breadboard.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17884
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: dirty smps
« Reply #12 on: April 14, 2012, 08:24:05 pm »
The capacitor on the comparator output actually causes the buffer BJT's to heat up, Perhaps to slow a signal now and causing shoot through ? Maybe I should increase the values of the resistors between the BJT's and the mosfet switch
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17884
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: dirty smps
« Reply #13 on: April 18, 2012, 07:00:13 am »
I have to keep the gate drive resistors about equal as the mosfets gate cannot go to -23V (and later in the final version -28V).

I could increase their values. C4 has no effect on the timing or chatter. Perhaps I should look at a fixed frequency design. For the mosfet this needs to provide up to 5A with I guess 10+A switching bursts and the mosfet is a 23A one so about right margin ? As i said the mosfet seems to switch quite fast with the driver, the problem is the feedback loop
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf