OK past midnight, I gave the board one last try before calling it a day and moving on...
... I increased the load even more, to see if the chip would switch to full frequency and what would become of the ripple. Found a beefy 15W 15R resistor. That increased the load to 600mA or so.
Ripple plummeted !
So much so that the fixed x10 Agilent probe that came with the scope, was attenuating a tad too much to zoom on the ripple.
So I replaced it with my usual Tek x1 / x10 probes. Of course doing that limits the B/W to 6 MHz or something, but still good enough to see all the crap coming out of the regulator... no shortage of that for sure.
Ripple as you can see is now only 1mVpp... if you conveniently omit the bursts that contain huge spikes. If you count the spikes then it's more like 5mVpp, which is still very good for a switching anything, especially a cheap one eh ?
So I tried to measure frequency... saying "try" because the waveform looks so noisy, there is no saw tooth to look at any more, it's just noise.... but well, you gotta measure something so....
If I measure between two big bursts, the packets that feature the huge spikes, then I get 100kHz. If I then zoom in to look at the smaller oscillations in between two bursts, then I get 900kHz.. spot on the theoretical switching frequency that we calculated, so that's quite nice. So assuming that's not just luck / coincidence, then that means that all these spiky bursts are at LOWER frequency that the switching frequency ?! How can that be possible ?! I mean of course I am OK having high frequency parasitic oscillations, but LOWER than the commanded frequency... no I don't quite get it.
So that means instead maybe that the chip at 600mA still is running at 100kHz not 900kHz, and that the 900kHz oscillations we see are just a coincidence... it's nothing to do with the 900kHz we set with that resistor.
Lots of fun.
OK taking everything apart and clearing the bench, more component sorting on the agenda tomorrow...
EDIT : tried to add averaging to clean the signal a bit but no joy : the deep memory of the Megazoom makes it a no go : adding even a tiny amount of averaging, like 4 8 or 16, slows down the redrawing tremendously !
With my modest Combiscope and ancient TDS, short memory so I can add LOTS of averaging to clean stuff up really well, with little to no impact on the trace responsiveness. That's great.
So for me at least that's one big problem with the Megazoom, so I am not getting rid of my Combiscope and TDS anytime soon.
Would be nice if the Megazoom allowed you (does it ? Didn't find it in the manual), to disable the deep memory in this particular case.
Also another scenario where the deep memory hurts is refresh rate when trying to find a runt pulse or something. You don't need silly high time resolution to find it, but rather high refresh rates.
I understand the modern scopes allow you to set yourself the trade-off between sampling speed and memory depth which is the best of both worls I guess. The merger between the older scopes, and the Megazoom revolution.
So yeah, I love the Megazoom but I will keep my other scopes as well, I want BOTH !
Naaahhh... you're not wrong. Characterizing noise is one of the areas that, IMO, a good analog scope still excels at and in many ways beats out a DSO. In this scenario, it does the averaging by dint of its inherent nature. You don't need the absolute detail that digitizing gives you; you just want to see where the fuzz is thickest and where it ends.
mnem
OK this is really startingto bug me now !
I WANT to see that signal better !
I mean, that 900kHz oscillation is spot the theoretical switching frequency of the chip, so assuming that tiny oscillation is indeed that, then it has to be a sawtooth not a sine like it looks like here... I WANT to see the signal better to see if's indeed my sawtooth. That's now my goal in life !
So the idea is that maybe it is a sawtooth buty because the probe is set to x1 hence limited to 6MHz or so, it can't passe enough harmonics for a 99kHZ sawtooth hence it looks more like a sine, as we can see.
so I need to use the x10 probe to get the full B/W so that if there is a sawtooth, it can actually SHOW ME a sawxtooth not a sine wave...
So that means I need to amplify the ripple by a factor of 10 to compensate for the x10 attenuation of the probe. Well x20 or x50 would be better, as currently the ripple is only 1 DIV high, small.
So that's the idea, an excuse to build a little amplifier.
So the specs are, therefore :
- AC coupled, as I am only interested in the ripple
- Small signal, 10mV max at the input, and want ideally x50 so 500mV at the output.
- Output coupling : don't need to be AC coupled, the scopes input can do that...
- Power supply : positive only, for simplicity. Say 12V for the sake of deciding something...
- B/W : a few tens of MHz, so as to be much better than 6MHz of the x1 probe.
Not an amp engineer of course but maybe I can just do a simple single stage amp with a small signal transistor, simple common emitter NPN, like a small class A audio amp. We did that at school to learn the basics... I can do that at least.
12V supply and only 500mVpp at the output, so we are really talking small signal amplification here, hence I guess it's not unreasonable to be able to achieve the ideal x50 amplification I am targeting, with a single stage ? A humble 2N2222A has a transition frequency of 300MHz not bad eh. So how does that work ? It's like op-amp ampliers ? I divide the tgransition frequency by the gain of the amp and that gives me the B/W of the amp ? Roughly ? So if I do a x10 amplification with that 2N2222A, I could hope for 30MHz or so, which would be good I guess, 5 times better than the probe.
x10 is the bare minimum I need. x50 would be ideal. So I could ad another stage with a x5 "gain"/amplification, to get 50 total. Or just spread it evenly between the two and get them both to amplify by a factor of 7 or so.
OK will start working on that, that will be fun, regardless of the outcome and regardless of whether everyone think it's stupid and it's never gonna work.... it's about having some educational fun people, I am not doing this to write PhD thesis eh ?!
Stay tuned....