|23rd August 2013, 04:49 PM||#11|
Join Date: Feb 2008
This is the one calculator that I just can not find on the web and even though the equation is simple, I get tired of having to look it up and decipher it using my values in place of the examples!!!
|24th August 2013, 12:37 AM||#12|
You're welcome, jer.
The spreadsheet is a lot easier to use than the equation, and provides a lot more insight. It also gives the capacitance values to meet only the "DC at sine RMS value" type requirements, like most people seem to calculate for, in addition to the capacitance that will handle "DC at sine PEAK value" that the equation gives, which is how I think it should be calculated (and how it must be done, in order to be "bulletproof").
About the only difficult part, sometimes, is finding the Vclip value for the output stage, which is the voltage between the power rail and the amp output, when at the rated max output. It still amazes me that so many people forget that the voltage across the amplifier itself has to have room to sit between the top of the signal and the bottom of the ripple.
|24th August 2013, 01:50 PM||#16|
It just didn't like my version of excel it seems. I had to convert the file and then it opened. Thanks gootee.
|24th August 2013, 03:05 PM||#17|
With the spreadsheet, after setting the specs in the top section, I typically select Data --> What If Analysis --> Goal Seek and then tell it to set each capacitance in row 21 by changing the corresponding figure in row 10.
So, for example, if I have a pile of 4700 uF caps, I will ask it to set each cap value in row 21 to a multiple of 4700, with 4700 on the far right, then 9400 to the left of that, then 14100, etc., and it automatically sets the row 10 figures and the max rated power in row 11, and any of the other rows that are affected. OR, you can manually tweak the row 10 figures, since they are blue and you are allowed to change any blue cells.
In addition to the rated max power figure, also consider the max ripple voltage. But remember that it is given for when the amp is pushing the rated max peak signal with a pathologically-worst-case DC signal, and will be much lower under most listening conditions (probably roughly 1/4th of the given value, for real music instead of DC).
Last edited by gootee; 24th August 2013 at 03:08 PM.
|24th August 2013, 03:06 PM||#18|
Join Date: Sep 2010
Location: Perth, Western Australia
Actually gootee - is the ltspice "highway to hell" (Oh, btw - very applicable song to the subject looking at the current peaks!) test an easily postable/sharable thing? I've read about feeding a wav to an ltspice sim but never done it...
I feel the urge to hit a sim with some pink floyd heartbeat bass, and follow up with ...zarathusta.
|24th August 2013, 07:49 PM||#19|
Also be aware of additional decoupling capacitance requirements.
The spreadsheet only gives you the minimum capacitance value to prevent clipping and to prevent bass current starvation. The total capacitance at the PSU plus the decoupling capacitance near the point of load (near the active amplifier output stage devices) must add up to what the spreadsheet (or the equation) gives as the minimum capacitance, for your specs and your chosen rated max power.
But there are higher-frequency requirements, which only the decoupling and bypass caps can fulfill, by being very near the power connections of the output devices.
There are two separate high-frequency issues:
1. One is the hidden positive feedback loop through the power rail that affects most transistor amplifiers. For that, we must place a very small (small physical package) cap, very close to the power connection of each output device, connected between power and ground. Connection lengths of more than a few mm will make this cap much less effective. So no axial-lead caps are allowed. Use radial-lead types or surface-mount. The cap value is usually anywhere from 0.01 uF to 1 uF. The small size of the package and the use of short connections matter more than the actual capacitance value. Ceramic or film caps will work. Do not use anything worse than an X7R ceramic. NP0 and C0G ceramics, or film types, would be better. But be aware that with such low ESRs, there is a chance of high frequency LC resonances being formed with the inductance of nearby electrolytic cap(s). A very small resistance can be placed in series with the electrolytic(s), if that becomes a problem. Using an X7R bypass cap might mitigate the resonance problem. But check to see if the X7R is microphonic, by tapping on it with the volume turned up high, with no signal.
2. The other issue is the fast transient currents that will be needed. And they are not just for the frequencies in the music output, since the feedback system will also always be trying to cancel some very high frequency harmonics. It's probably safe to assume that the required transient current frequency content will extend to 300 or 400 kHz.
For those high frequencies, the tiny inductances of the traces, wires, and leads will have a significant effect. That means that all of the lengths and distances need to be very short.
The decoupling capacitance values and the maximum acceptable connection lengths and capacitor lead-spacing(s) can be calculated. Or we could use a "rule of thumb", such as
10 uF per Watt of rated max output power,
which sort-of fits with the LM3886 datasheet recommendation of 470 uF minimum, connected as close as possible to each of the chip's power pins.
To try to actually calculate the minimum decoupling capacitance required, we could use the output device's maximum slew rate and maximum peak output voltage, as a worst case.
I never remember equations so let's just try to derive it from scratch:
We should know, or be able to find:
slewmax: the max slew rate in V/us,
Vpk: the max peak output voltage,
RL: the load (speaker) resistance,
dv: the maximum allowable p-p ripple voltage
The ideal capacitor equation is
i = C dv/dt
We can say
C = i dt/dv
i is the peak current transient
C = the required capacitance that we want to find
dt = the time it takes to reach the peak transient current
dv = the know maximum allowable peak-to-peak ripple voltage
We are assuming that the voltage slews from 0 to Vpk.
So ipk = Vpk / RL.
That ipk might be 2X what we really need to use, since it slews from 0 to ipk so the average would be 1/2 of that. But since we are going to ignore ESR of the cap, it will provide a safety margin.
dt is just
dt = Vpk / slewmax, in us (microseconds).
And we specify dv, or, rather, calculate it based on the max rated power (see spreadsheet).
So C = (Vpk/RL)(Vpk/slewmax)/dv
(Remember to divide by 1000000 for the microseconds, and then view the result as Farads. Or forget dividing by 1000000 and view the result as microfarads.)
(I must have missed something because I don't get the 470 uF that national/TI says is required for the LM3886. But you get the general idea...)
THEN we need to know how far away from the device we are allowed to place the C. The inductance of the connection lengths will decide that.
V = L di/dt, for an inductance. So we can say:
L = V dt/di
di = the change in current, which is our ipk, since it changes from 0 to ipk,
dt is the same as above,
V is our dv from above, so we have
L = dv(Vpk/slewmax)/(Vpk/RL)
For example, if the peak output voltage is 35V and the max slew rate is 19V/us, and we have a 4 Ohm load and the ripple needs to be 0.25 V or less, we get
L = 53 nH
If we use the typical rule of thumb for self-inductance being about 1 nH per mm, we could allow up to 53 nH "round trip", to include the conductor lengths plus the cap's lead spacing. So the C could be placed up to about 25 mm from the output device, possibly. But you should use a better estimate of the inductance of your conductors, if it's critical.
For higher-speed circuits, i.e. with faster edge times, such as digital ICs, the distance will typically be impossibly small. In that case, you would need to use multiple smaller caps in parallel, to try to divide their inductance by the number of caps.
(I have ignored the cap's ESR and the conductors' R values, everywhere above. But it gives the general idea of how it could be done.)
|24th August 2013, 11:32 PM||#20|
The attached zip folder should contain four files, including a WAV file for testing the WAV input to LT-Spice.
To simplify the setup and usage of the simulation, I replaced the transformer models with ideal voltage sources.
Besides the WAV file, there is a main .ASC file, a .PLT file that automatically sets up the plotting, and the Cordell Models.txt file, which contains the spice models for the transistors used in the output stage.
Just unzip all four files into the same folder, so the ASC file can find the other three.
If you want to use a WAV file input in another schematic, you could just copy and paste the voltage source that uses the WAV file, and then change the name of the WAV file by right-clicking on it. (I think it was entered originally by just right-clicking on the displayed voltage of the source.)
Note that there is also a way to set up a WAV file to be an output, on the schematic. You could LISTEN to the output of any simulated audio circuit! Unfortunately, they don't yet simulate in real time.
I originally used the included test WAV file to simulate DC servo circuits with power amplifiers. It had to be left fairly long (40 seconds) because some of my servos had very long time constants. You might want to download some free wave file editing software, so you can create shorter snippets of the parts of WAV files that you are most interested in using in your simulations, since they run relatively slowly when WAV file data is being used or produced.
In the attached screen image of the LT-Spice simulation, you can see that it would probably be sufficient to simulate with only the portion of the WAV file between 8 and 12 seconds, or even less than that.
Looks like clipping was just barely avoided, at around 9.668 seconds, in the plot detail that I attached. You can see that the voltage across the amp (top plot pane) gets down to about 10 V, while the rail voltage has fallen to about 66.15 V, and the signal peak climbs to about 55 V, at almost the same time. (I adjusted the transformer output voltage and the reservoir capacitance, to get it close, like that.) If you want, you can also plot the input signal, so you can verify when it clips, by comparing its shape to that of the output. Or, there are ways to do waveform math to make a new "difference/error" plot, that will be near zero but will spike when clipping occurs. You can right-click on any plot heading and replace it with any math expression you like.
Last edited by gootee; 24th August 2013 at 11:59 PM.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Power Supply Resevoir Size||Nico Ras||Power Supplies||2118||12th April 2015 05:36 PM|
|Chip Amps and Pre Amps||bcmbob||Chip Amps||17||13th August 2010 09:38 AM|
|Chip amps vs class D amps||lanchile||Chip Amps||46||21st April 2010 04:38 AM|
|resevoir cap. replacments, recommended makes||lt cdr data||Parts||2||23rd December 2005 06:36 PM|
|Has anyone compared the Chip amps against Class T amps?||soongsc||Chip Amps||3||24th July 2005 11:50 AM|
|New To Site?||Need Help?|