# How to limit current consumption for integrated class D amp?

I have a small amplifier IC, rated at about 2.5 - 3W output going into a 3W rated 8 Ohm speaker. The input signal is going through a pot. and than into the amp though a cap and resistor in series, as shown below - only pot. not shown.

I only have 1 speaker connected to pins 1 & 3, the other output is currently not connected.

Normally the amp. uses under 5mA current which is fine, as I turn the pot. the volume goes up as well as the current consumption. When it reaches about 30mA my batteries can't hold the voltage which causes the source device to reset.

Can I limit the current consumption somehow? Perhaps attenuating the input with even larger input resistors. Right now I have 50 Ohms in series with the 100nF caps.

I have this for a datasheet: How is your Chinese?

The circuit:

simulate this circuit – Schematic created using CircuitLab

The NCN pin seems to be doing some limiting or compression to the signal. The datasheet does not give a formula to calculate it however it gives a short table with some examples.

## Update

I've tried swapping the input resistor from 50 Ohms to 150 Ohms but that made things much worse - distortion is much higher. I swapped it again to 68K (that's what I had around) and it works very well.

New problem - I can hear a high pitched sound from the speaker, going to use my scope with FFT to find out at what freq. this is at and going to need to filter it out.

## Update II

Looks like this IC is a clone or similar to this one

• A series resistor won't do. You need two resistors to form a voltage divider. One would be your series resistor, the other would be the input impedance of the amp. That is probably pretty high, so you would need a very large value series resistor - which sets you up for noise problems. You need to make an attenuator for each input.
– JRE
Feb 16, 2018 at 11:55
• The real problem seems to be that your amp is overkill for the task. Assuming 5V for Vdd, you would need several hundred milliamperes at full volume - but you say your battery drops out at just 30mA.
– JRE
Feb 16, 2018 at 11:57
• @JRE - I can see your point, if I assume the amp will output about 3W of distorted signal at max. input, I'm looking at 60mA current consumption which is more than I can handle. However this device is already on the bench so has some benefits. Feb 16, 2018 at 12:03
• Why don't you show your exact input circuit. At the moment it's all guesswork as to what you have. Feb 16, 2018 at 12:27
• @Andyaka Updated. Feb 16, 2018 at 12:36

The increase in power consumption is simply a result of the amplifier delivering power to the speakers.

You could:

• increase the impedance of the speakers, then for the same signal less current will flow. This also means less power is delivered to the maximum volume will be lowered.

• decrease the signal gain, the amplifier itself does not seem to have a setting for this. Looking at the input stage (datasheet page 5) is does appear that the input series resistors (the 50 ohm resistors) are part of a gain-setting network. So I would suggest making the 50 ohm resistors a factor 2, 5, or even 10 higher and see what happens. It is unclear what the on-chip resistor values are around the amplifier so you will have to try and see if that helps.

Edit: it appears increasing the value of the input series resistors doesn't help much. Then you could try to attenuate the signal like so:

simulate this circuit – Schematic created using CircuitLab

C2 is needed in order to not disturb the DC biasing voltage on the amplifier.

Note that you need this circuit for both left and right channels.

There also seems to be some setting possible with the CNC pin and the resistor and capacitor connected to it. But due to the Chinese text I cannot understand what that exactly does.

• I've replaced the 50 Ohm resistors with 150 Ohm resistors and now there's much more distortion introduced into the signal and I can hear a high pitched sound coming from the speaker. Feb 16, 2018 at 12:01
• @user34920 I added a suggestion to my answer. Feb 16, 2018 at 12:30
• @Thanks. I updated the post with a table from the datasheet that shows how the output wattage ( = gain?) behaves with different R & C combinations. Wish they had a formula or graph in there as well. Feb 16, 2018 at 13:29
• That attenuator using 50 ohm resistors loads the DAC output with 100 ohms which it'll struggle to drive. Use a voltage divider like the potentiometer arrangement shown. Oct 8, 2020 at 3:39