Author Topic: Switching voltage regulator design output voltage issue  (Read 7054 times)

0 Members and 1 Guest are viewing this topic.

Offline dominicMTopic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: ie
    • DominicM
Switching voltage regulator design output voltage issue
« on: August 21, 2014, 03:08:17 am »
I am new to switching regulators and relatively new to electronics in general. I am having an issue with a regulator I designed.

I tested it with a battery input (7.2V) and DC adapter (16V). I get output voltage of just 350mV instead of the expected 5V. There is also a quiet noise when powered. At one point I had forgotten to order a shottkey diode so I tried powering it on without it. I got the expected 5.03V output thought it became unstable at about 7 to 9V range (DC adapter slowly discharging after AC loss). I went and ordered the missing part but now getting the issue describer above.

Here is the schematic:




And here's the PCB:



What could my error be?
« Last Edit: August 21, 2014, 03:09:51 am by dominicM »
 

Offline DanielS

  • Frequent Contributor
  • **
  • Posts: 798
Re: Switching voltage regulator design output voltage issue
« Reply #1 on: August 21, 2014, 03:50:58 am »
By running your circuit without the schottky diode to clamp the inductor's free-wheeling current, you may have busted your PWM. It "worked fine until 7-9V" only because the there was not enough stored energy in the inductor to kill your regulator before then.

Put the Schottky in, replace your regulator and assuming your circuit is wired correctly, it should work since you are using the reference design as-is.
 

Offline georges80

  • Frequent Contributor
  • **
  • Posts: 912
  • Country: us
Re: Switching voltage regulator design output voltage issue
« Reply #2 on: August 21, 2014, 04:07:33 am »
Yep, the schottky is there to clamp the SW node from going negative. Without it you have most likely destroyed the SW output of the switcher IC.

Consider how the voltage across the inductor will change as the VIN is applied to SW and then removed by the switcher at the switching frequency... Since the 'output' of the inductor is feeding a capacitor that initially is at 0V you will get large -ve voltages at the SW node as things power up... poof...

cheers,
george.
 

Offline dominicMTopic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: ie
    • DominicM
Re: Switching voltage regulator design output voltage issue
« Reply #3 on: August 21, 2014, 12:57:54 pm »
It actually worked fine at all input voltages except at ~7-9V It was fine at 9-16V and 6-7V. Under 6V voltage started to drop as expected. Damaged chip does make sense, though I am not sure why I only got the noise and wrong output voltage after I added the diode... Any insight on this? In any case I will try to replace the chip and see if it works, thanks!
 

Offline Niklas

  • Frequent Contributor
  • **
  • Posts: 395
  • Country: se
Re: Switching voltage regulator design output voltage issue
« Reply #4 on: August 21, 2014, 01:59:54 pm »
350 mV is quite close to the forward voltage drop of a Schottky diode. Check the direction of the diode.
The noise can come from the over current protection in the switcher IC that continues to switch and hopes that the fault goes away.
 

Offline dominicMTopic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: ie
    • DominicM
Re: Switching voltage regulator design output voltage issue
« Reply #5 on: August 21, 2014, 02:23:00 pm »
350 mV is quite close to the forward voltage drop of a Schottky diode. Check the direction of the diode.
The noise can come from the over current protection in the switcher IC that continues to switch and hopes that the fault goes away.

The end of the diode with white line is connected to ground. Is that right? If I am right the line indicates a cathode (negative). Does it by any chance need to be connected in reverse?
 

Offline DanielS

  • Frequent Contributor
  • **
  • Posts: 798
Re: Switching voltage regulator design output voltage issue
« Reply #6 on: August 21, 2014, 03:34:00 pm »
The end of the diode with white line is connected to ground. Is that right? If I am right the line indicates a cathode (negative). Does it by any chance need to be connected in reverse?
I looked at your PCB but the picture was too blurry to tell fore sure which orientation your diode was in. Looks like your diode is on backwards.

This "free-wheeling" diode is supposed to allow the inductor's current to continue looping through the inductor, capacitor and diode loop so the inductor can transfer its energy to the capacitor while the PWM switch is off. Connected from PWM output to ground, it simply shorts the PWM switch to ground.
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 2117
  • Country: gb
  • Test instrument designer/G1YWC
    • Electron Plus
Re: Switching voltage regulator design output voltage issue
« Reply #7 on: August 21, 2014, 04:07:48 pm »
How are you grounding the MP2456 (pin2)?
https://electron.plus Power Analysers, VI Signature Testers, Voltage References, Picoammeters, Curve Tracers.
 

Offline dominicMTopic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: ie
    • DominicM
Re: Switching voltage regulator design output voltage issue
« Reply #8 on: August 21, 2014, 05:17:41 pm »
The end of the diode with white line is connected to ground. Is that right? If I am right the line indicates a cathode (negative). Does it by any chance need to be connected in reverse?
I looked at your PCB but the picture was too blurry to tell fore sure which orientation your diode was in. Looks like your diode is on backwards.

This "free-wheeling" diode is supposed to allow the inductor's current to continue looping through the inductor, capacitor and diode loop so the inductor can transfer its energy to the capacitor while the PWM switch is off. Connected from PWM output to ground, it simply shorts the PWM switch to ground.

So should the end with a white band connect to ground or SW? Now the white band is on the GND side.
 

Offline dominicMTopic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: ie
    • DominicM
Re: Switching voltage regulator design output voltage issue
« Reply #9 on: August 21, 2014, 05:18:57 pm »
How are you grounding the MP2456 (pin2)?

I was using a battery for testing so I just clipped the two pins to positive/negative of the battery.
 

Offline Niklas

  • Frequent Contributor
  • **
  • Posts: 395
  • Country: se
Re: Switching voltage regulator design output voltage issue
« Reply #10 on: August 21, 2014, 07:38:15 pm »
The end of the diode with white line is connected to ground. Is that right? If I am right the line indicates a cathode (negative). Does it by any chance need to be connected in reverse?
There you have it! The white band should not be a ground. Desolder and rotate the diode
 

Offline dominicMTopic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: ie
    • DominicM
Re: Switching voltage regulator design output voltage issue
« Reply #11 on: August 22, 2014, 02:49:48 pm »
The end of the diode with white line is connected to ground. Is that right? If I am right the line indicates a cathode (negative). Does it by any chance need to be connected in reverse?
There you have it! The white band should not be a ground. Desolder and rotate the diode

Yup, that was it! Can you give an explanation or a link to one for why it needs to be reversed, seems counter intuitive to me. I think I confused it with a zener diode when reading up on it before...
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3240
  • Country: gb
Re: Switching voltage regulator design output voltage issue
« Reply #12 on: August 22, 2014, 03:14:19 pm »
You have the diode symbol correct in your schematic, so I suspect you have simply confused the anode and cathode ends on the symbol.

An easy way to remember this is that the cathode end of the symbol looks like a K (remember K for 'K'athode)

Cathode  ---K|---- Anode
 

Offline dominicMTopic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: ie
    • DominicM
Re: Switching voltage regulator design output voltage issue
« Reply #13 on: August 22, 2014, 07:37:37 pm »
You have the diode symbol correct in your schematic, so I suspect you have simply confused the anode and cathode ends on the symbol.

An easy way to remember this is that the cathode end of the symbol looks like a K (remember K for 'K'athode)

Cathode  ---K|---- Anode

What confuses me is why you connect the negative/cathode to the positive and anode/positive to the ground.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26906
  • Country: nl
    • NCT Developments
Re: Switching voltage regulator design output voltage issue
« Reply #14 on: August 22, 2014, 08:02:21 pm »
A diode doesn't have a positive or negative. Just a direction in which it lets current through (from anode to cathode).
Google for 'step down switcher' and you'll find some interesting theory.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline dominicMTopic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: ie
    • DominicM
Re: Switching voltage regulator design output voltage issue
« Reply #15 on: August 22, 2014, 09:34:19 pm »
A diode doesn't have a positive or negative. Just a direction in which it lets current through (from anode to cathode).
Google for 'step down switcher' and you'll find some interesting theory.


It has an anode and a cathode, does it not? An LED (type of diode) also has anode and a cathode. All I want to know is why a schottky diode connects in reverse compared to many/most other components like an LED. Is there a general rule or is schottky  diode an exception?
 

Offline Galaxyrise

  • Frequent Contributor
  • **
  • Posts: 531
  • Country: us
Re: Switching voltage regulator design output voltage issue
« Reply #16 on: August 22, 2014, 10:13:03 pm »
A schottky diode conducts in the same direction an LED does.  The usage here is different, though.  You don't want it conducting all the time or you've essentially shorted out your load! (which is why you were measuring ~0.3V at the output.)

Your next task is to understand why there's a diode there at all :)
I am but an egg
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: Switching voltage regulator design output voltage issue
« Reply #17 on: August 22, 2014, 10:26:18 pm »
It has an anode and a cathode, does it not? An LED (type of diode) also has anode and a cathode. All I want to know is why a schottky diode connects in reverse compared to many/most other components like an LED. Is there a general rule or is schottky  diode an exception?

apparently your understanding is quite limited... there is no positive or negative for any diode !  simply get used to it ;)
any diode is a one-way valve - it let the current go from anode to cathode (conventional current direction model) and blocks the current in the opposite way - that's valid for ANY diode even for the LEDs you're mentioning - but those leds have a visible side effect - they emit light while letting the current go :D
now to the direction of the shottky in your schematic - probably you don't even know... but the switching regulator is called switching because of some switching (on-off-on-off-on) is done inside... when the switch is ON - trhe current goes throught the switch and inductor to the load. when the switch is off - you need to somehow catch the energy stored in the inductor - and that's the job of that shottky diode. and actually it's sometimes called a "catch diode".
when you connect the cathode to ground and anode to the switch - then you simply let the current go from the switch to the ground and it doesn't work as you already realized. 
when you connect the anothde to ground and cathode to the switch, it will exactly do what it's supposed to do - catch the energy stored in the inductor when the switch is off.
 

Offline dominicMTopic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: ie
    • DominicM
Re: Switching voltage regulator design output voltage issue
« Reply #18 on: August 22, 2014, 10:56:24 pm »
A schottky diode conducts in the same direction an LED does.  The usage here is different, though.  You don't want it conducting all the time or you've essentially shorted out your load! (which is why you were measuring ~0.3V at the output.)

Your next task is to understand why there's a diode there at all :)

"The usage here is different" - this is answer my question. I a have a vague understanding of what it does but will need to come back to it to understand it better.
 

Offline dominicMTopic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: ie
    • DominicM
Re: Switching voltage regulator design output voltage issue
« Reply #19 on: August 22, 2014, 11:28:45 pm »
Quote
apparently your understanding is quite limited...

I have stated a am new to this in the original question, not sure why you feel the need to say explicitly what is already implied.

Quote
there is no positive or negative for any diode !  simply get used to it ;)

It was said just a few post before, this is why I specifically said cathode/anode instead of positive/negative.

Quote
any diode is a one-way valve - it let the current go from anode to cathode (conventional current direction model) and blocks the current in the opposite way - that's valid for ANY diode even for the LEDs you're mentioning - but those leds have a visible side effect - they emit light while letting the current go :D

This only makes me think that in practice it does have what you might call positive/negative even though theoretically it does not. There is anode to which you connect + voltage and a cathode to which you connect -. It's one thing to correct me so I know next time, but you must have known what I meant? Why not correct my miss understandings AND answer my question too? It's kind of like if  foreigner asked me a question in bad english but I knew what they meant I would just answer the question instead of saying their english is bad, because it would be rude and unhelpful to just do the latter.

Quote
now to the direction of the shottky in your schematic - probably you don't even know... but the switching regulator is called switching because of some switching (on-off-on-off-on) is done inside... when the switch is ON - trhe current goes throught the switch and inductor to the load. when the switch is off - you need to somehow catch the energy stored in the inductor - and that's the job of that shottky diode. and actually it's sometimes called a "catch diode".
when you connect the cathode to ground and anode to the switch - then you simply let the current go from the switch to the ground and it doesn't work as you already realized.
when you connect the anothde to ground and cathode to the switch, it will exactly do what it's supposed to do - catch the energy stored in the inductor when the switch is off.

So you think I learned how to use cad software, drew the schematic, laid out the PCB, ordered all the components, went through the process of making my own PCB and I don't even know the core method of operation of the thing I am building? This is just condescending and improbable to the point where it makes you look silly for saying it...
 

Offline DanielS

  • Frequent Contributor
  • **
  • Posts: 798
Re: Switching voltage regulator design output voltage issue
« Reply #20 on: August 23, 2014, 12:34:52 am »
What confuses me is why you connect the negative/cathode to the positive and anode/positive to the ground.
What is the particularity of an inductor in an electrical circuit? Inductors oppose to changes in current.

What happens to the inductor's current when your switch turns off? It tries to keep going and by doing that, it inverts polarity across the diode. That's why the diode is "in reverse:" to clamp that and let the inductor dump its energy in the output capacitor.
 

Offline dominicMTopic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: ie
    • DominicM
Re: Switching voltage regulator design output voltage issue
« Reply #21 on: August 23, 2014, 02:14:48 am »
What confuses me is why you connect the negative/cathode to the positive and anode/positive to the ground.
What is the particularity of an inductor in an electrical circuit? Inductors oppose to changes in current.

What happens to the inductor's current when your switch turns off? It tries to keep going and by doing that, it inverts polarity across the diode. That's why the diode is "in reverse:" to clamp that and let the inductor dump its energy in the output capacitor.

That clears it up even more, thanks!
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3240
  • Country: gb
Re: Switching voltage regulator design output voltage issue
« Reply #22 on: August 27, 2014, 07:58:32 am »
You have the diode symbol correct in your schematic, so I suspect you have simply confused the anode and cathode ends on the symbol.

An easy way to remember this is that the cathode end of the symbol looks like a K (remember K for 'K'athode)

Cathode  ---K|---- Anode

What confuses me is why you connect the negative/cathode to the positive and anode/positive to the ground.

Just think about it in terms of current flow.  When the switching transistor in the MP2456 turns off, there needs to be a path for current to flow from right hand side of the inductor, through the load, back to ground and then back to the other end of the inductor.  In this case the left side of the inductor will be at a voltage which is lower than ground by one diode drop so the anode will be at a higher voltage than the cathode.
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: Switching voltage regulator design output voltage issue
« Reply #23 on: August 27, 2014, 05:29:03 pm »
So you think I learned how to use cad software, drew the schematic, laid out the PCB, ordered all the components, went through the process of making my own PCB and I don't even know the core method of operation of the thing I am building?

otherwise you wouldn't ask such a question about diodes, would you ? ;)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf