strange low frequency switching noice from diy sg3525 smps - Page 1
Forum section: electronics / repair

author: Herschel
author_rank: Regular Contributor
timestamp: September 17, 2024, 05:57:36 am
content: So I made a powersupply for an audio amp using sg3525ic and an ir2110 mosfetdriverThe smps works fine, but the problem is, when i connect an amplifier+speaker to the smps, i could hear strange low frequency switching noice from the speaker output:here is a video showing the issue:https://youtube.com/shorts/UIPuuqmjZPY?feature=shareso to check weather its the noice from the amplifier, I disconnected the amplifier and connected an led to the transformer output(before the full bridge rectifier) and the LED isn't constantly on, its blinking andhere is a video showing that:https://youtube.com/shorts/7hwPGjBLxPw?feature=sharethis thing only happens when i connect the output to the feedback circuit

author: Circlotron
author_rank: Super Contributor
timestamp: September 17, 2024, 06:52:45 am
content: Despite what looks like a common mode choke after the diode bridge, you should really have a filter choke between the bridge and the filter capacitors. One choke on each rail. Without a choke, the DC output voltage of the inverter is mostly dependent on the peak voltage of the inverter output, and the PWM for voltage regulation can't work properly. When you connect the feedback the loop is unstable because a large change in pulse width does not produce a corresponding change in DC output voltage.

author: Herschel
author_rank: Regular Contributor
timestamp: September 17, 2024, 07:09:10 am
content: Quote from: Circlotron on September 17, 2024, 06:52:45 amActually i didn't used a common mode choke, I used one choke for each rail. Also the chokes I'm using have iron powder core. Are iron powder cores suitable for this purpose?

author: Herschel
author_rank: Regular Contributor
timestamp: September 17, 2024, 01:36:39 pm
content: Quote from: Circlotron on September 17, 2024, 06:52:45 amI used one choke for each rail, chokes with iron powder core... can this be prevented by adding a capacitor before ther chokes or, is iron powder cores suitable for this purpose?

author: Circlotron
author_rank: Super Contributor
timestamp: September 17, 2024, 11:50:42 pm
content: Powdered iron is fine. Looks like you have used 21 material. What is the switching frequency?Definitely no capacitor before the chokes.

author: Herschel
author_rank: Regular Contributor
timestamp: September 18, 2024, 01:42:05 am
content: Quote from: Circlotron on September 17, 2024, 11:50:42 pmswitching frequency: 60khzdoes the right value of inductor matters? mine has a really low inductance, lower than the specified 20uH...I did used 470uf capacitors before the inductors, later I chaged them to 0.1uf and, the low frequency ticking sound now changed to a high frequency with a cloudy noiseanyway I removed those 0.1uf capacitors and still the same noise...I really doubt on the inductance value, with a really low No. of turns, may be i should try rewinding them...

author: Herschel
author_rank: Regular Contributor
timestamp: September 18, 2024, 03:06:15 pm
content: So I made inductors of 22uH and replaced it with the old ones and seems like the noise have reduced a bit... but not fully. maybe i should try adding a common mode choke at the output of the powersupply?

author: Phil1977
author_rank: Frequent Contributor
timestamp: September 18, 2024, 03:14:51 pm
content: Hearable switching noise often is a symptom of oscillations in the control loop. Did you check that? E.g. by hooking a scope to the optocoupler?

author: T3sl4co1l
author_rank: Super Contributor
timestamp: September 18, 2024, 08:07:18 pm
content: I would be inclined to suspect EMI. Try permutations of 'Y' capacitors. In particular, the one to bridge '-' is probably wrong, but one from there to output may be helpful. Additional filtering (another CMC?), shielding (stuff everything into a box and filter all wires that pass through it) and testing are likely to prove fruitful.Tim

author: Herschel
author_rank: Regular Contributor
timestamp: September 19, 2024, 01:42:30 am
content: Quote from: Phil1977 on September 18, 2024, 03:14:51 pmmaybe I need to take my smps to my college, They have osciloscopes and i don't own one... So I use LEDs instead to note fading or blinking

author: Herschel
author_rank: Regular Contributor
timestamp: September 19, 2024, 05:38:49 am
content: Quote from: T3sl4co1l on September 18, 2024, 08:07:18 pmI tried using the Y capacitors, and it did improved the noise under one "condition":I was testing my smps with a 400 watt class D amplifier board, which is locally assembled one, I found out that the noise is created by that class D amplifier when I connect it to my smps. Does class D amplifers oscillates to create noise?, but after replacing that with a class AB amplifier, which I made, the noise just vanished! (still audiable when I hold my ears really close, covering the tweeters which I'm happy with)So the *condition, only applies for the class ABs not Ds. And yes, the Y caps helped a lotIs it a good idea to use a CMC with .1uf mylar filter caps only for the classD amp does it improves the performance and reduce noise?

author: ftg
author_rank: Frequent Contributor
timestamp: September 19, 2024, 07:21:12 am
content: Could you post a picture of the full SMPS and your test setup?The rectifier and electrolytic capacitor board looked like it was a separate unit at the end of cables.Even on 60kHz the wires will have some inductances and currents will flow in funny ways.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: September 19, 2024, 08:13:13 am
content: Yes... a class D amp is itself an SMPS, to which all the same filtering considerations also apply.In particular, the speaker output may not be well filtered, which puts EMI onto that lead, and by reaction, inversely onto the board itself, and thus up connecting cables to other equipment (and through all these cables, as antennas, into the air).Filtering options are a bit more limited, because you need to know if the output is filtered at all for one (some class D amps have direct drive to the speaker, depending on coil inductance for SMPS filtering; this requires short wires and usually a ground connection to the speaker frame, and must only be done in self-powered speakers, not over any lead length), and thus whether to provide filtering specific to the outputs; and because the audio input itself cannot be filtered arbitrarily low, because of the audio itself; a common-mode choke can be useful here, filtering the input ground with respect to the shield/enclosure (EMI reference plane) while leaving the signal conductor alone (other than by effect of the CMC, and a little RFI filtering say 1nF + ferrite beads).Tim

author: Herschel
author_rank: Regular Contributor
timestamp: September 19, 2024, 09:42:47 am
content: Quote from: T3sl4co1l on September 19, 2024, 08:13:13 amthe class D amp I'm using have an inductor + capacitor at its output, This is just a simple IR2153 class D ampthis is the most similar circuit I could find, also the maker of this amp have added some more components to it at the audio input side... and yes, ICs for powersupplies/inverters are used here

author: T3sl4co1l
author_rank: Super Contributor
timestamp: September 19, 2024, 10:10:14 am
content: Ok, output filter choke, that's a start.Looks to be single-side layout, which means no ground plane, and all the stray inductances wreak havoc on the EMI response in the 10s of MHz where those traces cease being good conductors but stray inductance takes over.Tim

author: Herschel
author_rank: Regular Contributor
timestamp: September 19, 2024, 11:21:51 am
content: Quote from: T3sl4co1l on September 19, 2024, 10:10:14 amEven though, there are some design flaws in the amp, these amps are getting crazy good local reviews in youtube, and those reviews are true. The product seller tested the amp before my eyes, and it sounds great with a really faint humming why? they where using transformers instead of smps. So, really low noiseanyway I'm using this class D amp just to drive the subwoofer. maybe I should try adding CMC+ filter caps before the class D amp, so the noise may not affect other class AB amps connected to that smps

author: Phil1977
author_rank: Frequent Contributor
timestamp: September 19, 2024, 11:32:11 am
content: I´d propose to check your DIY-SMPS for control loop oscillations anyhow. They easily occur, they often are easy to prevent by adding some dampening into the control loop. But if they occur, they do not only produce noise, they stress all the power components of the SMPS in an extreme way.It´s just a good advice: If you can check your SMPS with a scope then do it. Check that the control loop does not oscillate between its extremes. Small oscillations in the control loop show that it´s doing its job, but if e.g. the current through the optocoupler LED oscillates between 0 and some saturated value, then something is definitely wrong.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: September 19, 2024, 01:02:45 pm
content: Quote from: Herschel on September 19, 2024, 11:21:51 amThis doesn't mean very much...Understand that correct operation in one very limited set of functions (in this case, audio amplification) says nothing about operation in a completely different scope (RF emissions).It's pretty easy to make a class D amp sound alright. That's everything below 20kHz.It's not even that hard to make one measure well. Notice these are already two different things, because "sounds good" is already a wide margin above what a typical amplifier might measure as: the gain/flatness might be off by many dB, the distortion might be several percent, the noise and hum background might be noticeable in one setting but not another; and most of all, listeners are notoriously fickle in their perception, it takes an expert listener to properly assess an amplifier (in whatever way a listener can assess one accurately at all, which again, still isn't fantastic compared to electrical measurements).We're talking about anything from 100kHz to 100MHz, very different ball game -- and absolutely nothing you can hear, unless it gets stuffed sideways into an amplifier, rectified and detected, in which case hum, squealing, beeping, clicking and so on are all possibilities.Tim

author: Herschel
author_rank: Regular Contributor
timestamp: September 20, 2024, 08:34:40 am
content: I think, I've found the problem... It was the optocoupler!the original circuit was using a 4n25 opto ic, the feedback voltage going into the opto ic was stable when I tested it with an LED,But when I tested the output from the optocoupler, the led was blinking, also the blnking speed+ frequency of that weird sound changes/increases when I connect the led to the opto icSo i decided to replace the 4n25 with a pc817 opto ic I had, and that low speed ticking sound just vanished! still has a faint, normal smps high frequency with 50Hz humwhat did that opto ic just had to do to make that sound?anyway, i hope there wasn't any 100khz/100mhz noise as my contraption with a 1volt incandescent light and the 474j capacitor didn't glow while testingso what about the classD amp? it just simply amplified the noise in the smps output powerlines as it had a builtin opamp for gain, as opamps aren't happy with noisy powerlines...

author: T3sl4co1l
author_rank: Super Contributor
timestamp: September 20, 2024, 10:51:09 am
content: Compensation problem, then?Again, completely in the dark without an oscilloscope -- you're seriously handicapped without one, we can only guess.Tim

author: Herschel
author_rank: Regular Contributor
timestamp: September 20, 2024, 01:37:46 pm
content: Quote from: T3sl4co1l on September 20, 2024, 10:51:09 amI know but anyway I decided to continue with what I have🥴, and later I would recheck the whole circuit with an oscilloscope after college reopens....