Author Topic: Need help solving a nasty power rail ripple from switching IC  (Read 3592 times)

0 Members and 1 Guest are viewing this topic.

Offline ttodorovTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Need help solving a nasty power rail ripple from switching IC
« on: August 05, 2018, 05:30:35 am »
Hi everyone,

I needed to interface some 6V induction proximity limit switches to my 3V3 Arduino Due/GRBL CNC setup, so I built my own interface board with 74AHC14 schmitt trigger inverters and 4050 level shifters. My PSU is 24V, so I decided to use a switching IC to drop the voltage to 12V and then use linear regulators to create 5V and 3V power rails. For the switching IC I chose LM2593HV-ADJ, as I had many of them on hand (got them for free from my work, but never used them before)...

My problem is that this IC is injecting way too much ripple in my circuit. The ripple is between 1V-1.2V and is affecting my digital ground. Level transitions from high to low for my limit switches and my E-stop or Z probe are not reliably detected, because the noise floor is higher than 0.9V! I have attached some screenshots: one is of my schematic for the power supply, the rest are captures from my oscilloscope - CH1 is at first my 12V rail, then a PWM signal that drives my spindle; CH2 is the noise on my Z probe (AC coupled probe).

So what should I do to reduce the noise? Would a low pass filter after the C6 capacitor work? Would a 150kHz ferrite bead chip after C6 also prevent switching noise being injected into the ground plane, or is it possible to use another ferrite bead to isolate the LM2593 ground pin from the rest of the ground plane? I have so far tried increasing the C6 capacitor from 220uF to 470uF, but that did not help at all :-(
 

Offline forrestc

  • Supporter
  • ****
  • Posts: 653
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #1 on: August 05, 2018, 06:00:34 am »
Could you provide a picture or other information about the layout of the circuit?   In switchmode supplies, this is critical, and there's a good chance that the problem lies not with the schematic, but with the way the components are hooked together on the PCB.
 

Offline ttodorovTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #2 on: August 05, 2018, 06:52:04 am »
Ok, here are 3 more screenshots. The first is a 3D rendering of the board, the modeled component dimensions are pretty much on par with the actual ones. The other 2 screenshots are top and bottom copper layers, where light orange color is the top ground pour, and the light blue color is the bottom ground pour.

Let me know if there is any other information that I should provide, thanks!
 

Offline forrestc

  • Supporter
  • ****
  • Posts: 653
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #3 on: August 05, 2018, 07:07:47 am »
Ok, here are 3 more screenshots. The first is a 3D rendering of the board, the modeled component dimensions are pretty much on par with the actual ones. The other 2 screenshots are top and bottom copper layers, where light orange color is the top ground pour, and the light blue color is the bottom ground pour.

Let me know if there is any other information that I should provide, thanks!

Ok, the first thing I see is that the output capacitor (C6 I believe), has a long ways for the ground to get back to the IC.   See figure 24 in the datasheet at http://www.ti.com/lit/ds/symlink/lm2593hv.pdf (pg 11).   There are going to be fairly large currents passed from the regulator output, through the inductor, then through Cout and back to the regulator.  The path on the negative side of the output capacitor seems to have to snake through half of your board, probably generating spikes/noise everywhere.   

There might be other similar paths.   This is just the first one I noted which would make me nervous. 

It would have been better to rotate the capacitor the other way.  I'd, as an experiment, remove C6, then flip it around and wire the ground lead directly to the side of the IC ground pad.   This would result in the ground path from the capacitor ending up right back at the regulator.   See if that improves things.   And look for other similar paths which are long.
 
The following users thanked this post: ttodorov

Offline ttodorovTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #4 on: August 05, 2018, 07:38:41 am »
Thanks! I will try rotating Cout (C6) and see what happens. In the mean time, would you have any idea, if ferrite bead chips would help? Obviously, I would need to redesign the board for them, but it looks like I will have to redo the layout anyway... What can I add filtering-wise, that would mitigate the noise - at least somewhat?

Best regards!
 

Offline ocset

  • Super Contributor
  • ***
  • Posts: 1516
  • Country: 00
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #5 on: August 05, 2018, 07:41:28 am »
With SMPS, a lot of the scope “fuzz” is noise coupled into the scope lead itself.
Unhook the scope lead, and connect ground and probe tip of scope probe, and  touch it to the circuit node and see if the fuzz is still there…..if it is, then its  just noise induced into the scope leads.
That said,  those ICs that comprise the fet give you no chance to staunch the drain switching transition, because you cant access the internal fet or its drive circuit……….if you did have access to the switching fet, then you can actually then get away with poor grounding, as the switching of the smps is less violent..

But yes, the main rules of smps layout are
1…..try  to not have power switching currents running through lengths of control ground.
2….Keep power switching current loops as small in area as possible……remember the capacitor forms part of the loop.

The attached is a layout guide to laying out smps

The most noisy thing about an  hard switched smps is the switching transition. If you can staunch that, then your smps is less noisy…….obviously slowing up the switching means more switching loss.
Once  I designed a 150w led driver, (three 50w ones on the same pcb)  which fed off the output of a 48v offline meanwell PSU. When the gate series resistors  were  1R, switching the led driver on literally resulted in the lab radio (a digital radio) going totally silent from having been on full loudness…..changing the gate series resistor to 4r7 stopped this.

i wouldnt bother with ferrite beads in  the ground in your case
 
The following users thanked this post: ttodorov

Offline veryevil

  • Supporter
  • ****
  • Posts: 221
  • Country: gb
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #6 on: August 05, 2018, 08:19:23 am »
I would suggest some much lower esr output capacitors. Add some ceramic caps as close to output as possible. Try 10n, 1u and 10u in a row with the 10n closest then building to your Al elec cap. This will reduce high frequency noise.
 
The following users thanked this post: ttodorov

Offline ttodorovTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #7 on: August 05, 2018, 09:12:07 am »
First off, thank you all for the input. I am going to redesign the PCB layout and shorten the ground loops where I can, especially C1, C2 and C6. I will also add more decoupling on the output.

Rotating C6 and soldering the negative terminal to the tab of the LM2593 reduced the ripple by about 250mV.

@treez, I did the test you suggested. There is still "fuzz" when I have the probe's ground clip connected to the probe's tip and then touch that to the 12V rail output. But... If you have a look at the attached screenshot, I have both CH1 and CH2 probes on, both ground clips are clipped to their respective tips, but CH2 is just lying on the table next to the board, while CH1 is touching the 12V output. If it were only noise coupled through the probe lead itself, wouldn't both channels show the same amount of fuzz?
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4760
  • Country: nr
  • It's important to try new things..
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #8 on: August 05, 2018, 09:24:07 am »
 

Offline forrestc

  • Supporter
  • ****
  • Posts: 653
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #9 on: August 05, 2018, 09:31:33 am »
Rotating C6 and soldering the negative terminal to the tab of the LM2593 reduced the ripple by about 250mV.

I also agree with veryevil:   The ESR of those capacitors matter.   Note the Nicicon PM series mentioned on the datasheet are described as "Extremely Low Impedance", which is another word for Low ESR.   Not sure which ones you're using.

I'm a big fan of TI's Webbench designer.   It does a good job of specifying specific parts which work.   There seem to be more than a circuit's fair share of gotchas involved in getting a SMPS to work correctly.   But once you get it, it just works.

One other thought is that if this is making it's way through the 7805 to pay attention to similar loops in the 7805 circuit, as the output of the 7805 across it's output capacitor should be rather noise-free...   If it isn't, you could also be ending up with this noise on the ground of the 7805 circuit.
 

Offline ocset

  • Super Contributor
  • ***
  • Posts: 1516
  • Country: 00
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #10 on: August 05, 2018, 09:52:11 am »
Quote
@treez, I did the test you suggested. There is still "fuzz" when I have the probe's ground clip connected to the probe's tip and then touch that to the 12V rail output. But... If you have a look at the attached screenshot, I have both CH1 and CH2 probes on, both ground clips are clipped to their respective tips, but CH2 is just lying on the table next to the board, while CH1 is touching the 12V output. If it were only noise coupled through the probe lead itself, wouldn't both channels show the same amount of fuzz?
...actually no because you have the CH1  tip closer to the swithcing "disturbance point".

If you have the samae amount of "fuzz" with your test of the above post, then the "noise" is actually just "pickup"......coupled into the scope lead.

I remember once, when i worked at Alcatel...the engineering manager tricked a load of young intern engineers into trying to filter out this "pickup", and they couldnt do it...then hours later he returned and told them that it had been a trick job and they should have known all the time that it was "pickup".

Another point is i hope you are not using a "dangling ground clip" style ground on the scope probe...you should get one of the small "spring" tip things which reduces the loop area of the scope lead end.
« Last Edit: August 05, 2018, 10:07:25 am by treez »
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4760
  • Country: nr
  • It's important to try new things..
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #11 on: August 05, 2018, 10:15:37 am »
Filters with small ferrite beads and large Al capacitors will not work. That noise is high frequency one, with pretty energetic content (due to the nature of dc-dc converters).

A PI filter(s) [CLC] may help, with ~10uH quality inductor (for at least 1-3A saturation current) and 3 capacitors in parallel 1n||100n||10u (best all 3 are ceramic or ceramic multilayers) at each side of the L in the filter (EDIT: thus 6 capacitors in total per PI, with as short as possible leads - a high-frequency construction basically). You may try to put a filter into the gnd lead as well.
« Last Edit: August 05, 2018, 10:39:01 am by imo »
 

Offline MasterT

  • Frequent Contributor
  • **
  • Posts: 785
  • Country: ca
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #12 on: August 05, 2018, 02:14:58 pm »
If I'm not mistaken, scope traces show 100kHz, same time TI LM2593 DS specify frequency as fixed 150kHz.
I had a bad experience getting LM2596 based dc-dc converters from aliexpress in the past, troubleshooting low output current capability (less than 50% compare to DS) I discovered that IC works differently than common PWM (variable pulse width ) regulator. Instead IC is doing somekind burst mode regulation, and it makes me think that chip marked as LM2596 could be anything except genuine TI IC.  And conversion frequency was way out of spec, 2-4x lower, that makes much harder to filter it out.
« Last Edit: August 05, 2018, 02:18:08 pm by MasterT »
 

Offline ttodorovTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #13 on: August 05, 2018, 06:35:38 pm »
If I'm not mistaken, scope traces show 100kHz, same time TI LM2593 DS specify frequency as fixed 150kHz.
I had a bad experience getting LM2596 based dc-dc converters from aliexpress in the past, troubleshooting low output current capability (less than 50% compare to DS) I discovered that IC works differently than common PWM (variable pulse width ) regulator. Instead IC is doing somekind burst mode regulation, and it makes me think that chip marked as LM2596 could be anything except genuine TI IC.  And conversion frequency was way out of spec, 2-4x lower, that makes much harder to filter it out.
Funny you should say that... I got the LM2593 parts for free from my work, because they were just throwing them out. At the time I did not ask why they were getting rid of them, and now it's too late - it's been 3 years since.

But the frequency shown on the screenshots from my oscilloscope is only indicative of the frequency at the time I pressed the print button - it was jumping all over the place, oscillating between 16 kHz and 150 kHz. As it was already mentioned, it would be difficult to filter such range out with LC filter. I am left wondering, if my old company was ditching the chips, because they just didn't need them any more, or they got a bad batch, or the chip design itself is bad/unstable. Should I look for a better alternative, as I am resending the board anyway? Could anyone recommend a switching IC that can deliver 1.5A to 2A of DC output?

Thanks!

Sent from my XT1575 using Tapatalk

 


Offline ttodorovTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
 

Offline MasterT

  • Frequent Contributor
  • **
  • Posts: 785
  • Country: ca
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #16 on: August 06, 2018, 08:17:14 am »
Can't advise, my design experience limited to shopping on the  i-net china market. Lowest price is the best option to start with, since pictures and description is misleading. And surprises  and a lot of fun when modules arrived  :)
 

Offline ttodorovTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #17 on: August 06, 2018, 08:46:52 am »
… And surprises  and a lot of fun when modules arrived  :)

LOL - I feel ya! ;-)

Had some "fun" experience with buying cheap AVR MEGA328Ps and some XMEGA chips for cheap from China.... I've heard some other people having similar issues with ICs like these too, but what I find incredibly more frustrating about buying from China, is the lack of proper documentation.
 

Offline ttodorovTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #18 on: August 06, 2018, 09:03:09 pm »
First of, a big thank you to everyone who chimed in on this thread and offered advice! After considering everything, I decided to not only redo the layout, but change components - most importantly replace the feed-in and Cout electrolytics with ceramic caps, and use a different IC. I decided to go with a triple output buck switching converter, actual part is A4490 from Allegro (manufacturer link https://www.allegromicro.com/en/Products/Regulators-And-Lighting/Multiple-Output-Regulators/A4490.aspx). It looks like a very interesting part and I found it easy to design with. So I would appreciate it very much, if you would look at the attached screenshots of the new design and offer comments and critique, if you see anything wrong...

A couple of things of note: One, the datasheet advises to minimize the ground loop between feed-in caps, inductor, flyback diode and output caps; and to preferably put the flyback diode on the back side of the board - so I used a lot of via stiching alongside attempting optimal placement. Two, the bottom copper is mainly ground pour, but every free square inch on the top will be ground pour as well. Hopefully, with a bit more via stitching, the current will find a short un-obstructed path out... Lastly, just in case anyone wonders, there is a big solder mask region on the bottom side under the converter IC, in order to leave the copper bare - for thermal dissipation. It is not much wider than the chip, since it is constrained by the diodes and traces, but it is tall, about 4x-5x the width of the chip.

And while on the last point... The datasheet lists a few recommendations on page 14 about the board layout, mainly to reduce the GND loop between Cin, D, L, and Cout. Here is my question: As it is, I have placed the flyback diodes closest to the IC, rather than the respective inductor - is this better than placing them closer to the inductor, or should I move them?

As always, thank you all for taking the time to read, contribute and help out!
« Last Edit: August 06, 2018, 09:04:41 pm by ttodorov »
 

Offline bson

  • Supporter
  • ****
  • Posts: 2269
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #19 on: August 07, 2018, 11:46:50 pm »
Your decoupling caps, C12-C15, if they're involved in the switching, look woefully small. 0402, so 0.1uF?  Try adding 10uF as well.  This is pretty easy to test by just holding a 10uF axial TH cap against the pads and see if it helps things.  It should.
 
The following users thanked this post: ttodorov

Offline ttodorovTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #20 on: August 08, 2018, 12:19:09 am »
Your decoupling caps, C12-C15, if they're involved in the switching, look woefully small. 0402, so 0.1uF?  Try adding 10uF as well.  This is pretty easy to test by just holding a 10uF axial TH cap against the pads and see if it helps things.  It should.

I think you mean C11-C14? Well, C11 at 0.1uF is used only to bypass the internal circuitry (from what I gather looking at the functional block diagram in the datasheet) - things like soft start, undervoltage lockout, and reset/enable internal switches. C12 is 470nF and is only for the soft start. C13 and C14 are both 47nF and part of the charge pump, which produces the 550 kHz operating frequency of the IC. If any, only these last 2 would be involved in the switching. That's all I got from the datasheet and these are all fixed values - no alternative parts, no alternative values suggested, no formula to crunch...

So if anything, only C13 and C14 need to be changed. As their value is 47nF, do I need to use a bigger package? I guess I could go to 0603, do you think that would be enough? I really appreciate your input!

Thanks!
 

Online Phoenix

  • Frequent Contributor
  • **
  • Posts: 422
  • Country: au
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #21 on: August 08, 2018, 12:42:44 am »
The capacitor values look OK to me. BUT C13 from VCP should be connected to VIN1 (called VBB in the datashhet) to add it's voltage on top of the input voltage. The charge pump is likely for the high side gate drive and therefore must result in a voltage above VIN.
 
The following users thanked this post: ttodorov

Offline ttodorovTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #22 on: August 08, 2018, 12:48:01 am »
Shoot, that's something I goofed. In the schematic it is connected between VCP and VBB pins. I guess, I grounded it by rote  |O Thank you for the catch!

What about the packages sizes for C13 and C14 - is it OK to stay with 0402, or should I move to a bigger ones there, as @bson suggested?

Thanks!
 

Offline ttodorovTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #23 on: August 08, 2018, 01:01:53 am »
Actually, I guess that the question about size will resolve itself in favor of bigger packages. Turns out, 50V rated 0402 capacitors are rather (order of magnitude) more expensive, than say 0603 or 0805. :o
 

Online Phoenix

  • Frequent Contributor
  • **
  • Posts: 422
  • Country: au
Re: Need help solving a nasty power rail ripple from switching IC
« Reply #24 on: August 08, 2018, 01:06:59 am »
I think when he says small he means capacitance, I don't see a problem. But physical size will impact things like cost/availability/esr. They aren't "involved in the switching" however.

Maybe you also want to tweak your thermal vias so they are more central in the pad (more effective). Something like this https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS9cEe1tMJ6GZ7CNSSfY2pnzZUw5GLH73mO_gAmPcjqJO0U7FtQ
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf