Elliott Sound Products | Project 23 |
At some stage, we will all find ourselves pushing hi-fi equipment just a little too hard, and if lucky, will just find that the sound has become 'dirty'. If this happens too often or is too severe, tweeters are the first to go - they are damaged by the excessive power generated by a combination of 'power compression' and to a lesser extent the harmonics created when an amplifier clips. The same may well happen to one's ears, but the effect is much more subtle (and cannot be fixed !).
One of the problems is that short duration clipping is very hard to detect by listening alone, but is still capable of causing damage - especially to tweeters, and it does nothing for the sound quality.
What is needed is a simple and reliable way of detecting that the amplifier is clipping (or so close that we have no margin for error). Well, search no more, because here it is.
Many clipping detector circuits have been published over the years, but most of them rely solely on an attenuated (reduced) version of the output signal, supplied to a suitable comparator circuit.
This would be fine if the mains voltage stayed exactly the same at all times, and if the power supply had perfect regulation. The fact is that neither of these is true, and the amplifier's DC supply voltage can vary quite considerably from hour to hour, and even minute by minute.
The clipping detector shown here relies on one factor - how close to the supply voltage is the amplifier's output signal at any instant in time. If (when) the supply voltage varies, the detector varies along with it, and will detect even a very short peak that crosses the detection threshold. (See How It Works, below.)
Figure 1 shows the circuit of the detector. Although a simple circuit, it uses a principle of operation that will be new to many readers. Indeed, it is new to me as well, since this is a method of detection I have never seen published in this form. There was one detector published many years ago that was similar in some respects (this was pointed out by a reader after this circuit was published), but it was dramatically more complex and included extra functionality that (IMO) is best kept separate.
Figure 1 - The clipping Detector Circuit
The terminal marked 'External" is to allow additional channels to use the same pulse stretch circuit, making it possible to have multiple detectors (even using different amp supply voltages), all sharing a common clipping LED.
The pinout for a typical dual opamp is shown for reference. This is pretty much an industry standard, and nearly all dual opamps use this pin configuration. As always, I suggest that you download the data sheet for the device you intend to use to double check. The +ve supply in this circuit is from the 12V zener, and the -ve supply goes to earth. A dual supply is not needed in this application. The LM358 is recommended, as it is low power and both inputs and the output can operate at (or near) ground (zero volts). |
Q1 (PNP) and Q2 (NPN) are the detectors, and we can examine the operation of Q1 (the positive peak detector) - Q2 works the same way, and detects the negative peak.
During normal operation (not clipping), Q1 is turned on continuously. A reference voltage (typically 3 Volts) is created across the 1k emitter resistor by the resistor R9 ('See Table 2'). Now if the output of either channel rises close enough to the supply voltage to equal the reference voltage, Q1 is turned off by forcing the base voltage to be greater than the emitter voltage - no base current, so the transistor will not conduct. This is detected by the opamp U1A. This is connected in such a way as to detect either of the transistors turning off.
The 'pulse stretch' circuit will detect a clipping period as short as 120µs, but reliable detection will take place within 1ms with any program material. Because of the rapid response and deliberate sensitivity to supply voltage variations, this is possibly the most reliable and accurate clipping published to date.
The transistors must be rated for the supply voltage. For most systems with supplies up to ±42V, use BC547 (NPN) and BC557 (PNP). For higher voltage supplies up to ±70V, use BC639 (NPN) and BC640 (PNP). They are over the top in power and current ratings, but we need the 80V rating. Suitable and readily available devices for use at higher voltages are MPSA42 (NPN) and MPSA92 (PNP), both of which are rated for up to 300V.
There is no need to use fast comparators (you can if you want to), so U1 can be a very basic (and very cheap) LM358, which is preferred because it's rail-to-rail for inputs and output. I do not recommend the use of other opamps, because most are not rail-to-rail devices and may not work properly. Please obtain a data sheet for the device you plan to use - these include pinouts and other useful information.
The circuit diagram was updated some time ago to improve the detection. The R12, R13 divider at the input to U1B was too close to the threshold for typical opamps, resulting in erratic operation at higher than ambient temperatures.
Supply Volts | Resistor Value | Power Rating |
± 20 | 390 Ohm | 0.5 Watt |
± 30 | 820 Ohm | 0.5 Watt |
± 35 | 1k Ohm | 1 Watt |
± 40 | 1.2k Ohm | 1 Watt |
± 50 | 2.2k Ohms | 2 Watts |
± 60 | 2.7k Ohms | 2 Watts |
± 80 | 3.3k Ohms | 2 Watts |
Table 1 is used to select the value and power rating of the 'dropper' resistor R8, based on the power amp supply voltage. Intermediate supply voltages should use the value for the next lowest supply voltage. A resistor with a higher rating than shown in the table will reduce operating temperature and increase reliability.
To calculate the value, I have chosen 20mA as the Zener + opamp current, so ...
Resistor (k Ohms) = ( Supply Voltage - 12 ) / 20 [1]
Power (mW) = ( Supply Voltage - 12 )² / Resistor (k Ohms) [2]
For a 45 Volt supply, we get ...
From [1] Resistor = ( 45 - 12 ) / 20 = 33 / 20 = 1.65k Ohms
From [2] Power = (45 - 12 )² / 1.65 = 33² / 1.65 = 1089 / 1.65 = 660 mW
Supply Voltage | Resistor Value | Power Rating |
± 20 | 12k | 0.25 W |
± 30 | 18k | 0.5 W |
± 35 | 22k | 0.5 W |
± 40 | 25k | 0.5 W |
± 50 | 33k | 0.5 W |
± 60 | 39k | 0.5 W |
± 70 | 47k | 1 W |
± 80 | 51k | 1 W |
The table is fairly accurate for a 3V clipping reference, but some amps will not be capable of getting to within 3V of the supply (MOSFET types in particular). In these cases, the resistor value must be calculated.
Current (mA) = Reference Voltage - So a 3V reference requires 3mA [4]
Resistor (k Ohms) = ( ( Supply V - Reference V ) / Current (mA) ) × 2 [5]
Power (mW) = Current² × Resistor [6]
An example would be an amp with 45V supplies, and requiring a reference voltage of 5V. So ...
From [4] Current = 5mA
From [5] Resistor = ( ( 45 - 5 ) / 5 ) *times; 2 = ( 40 / 5 ) × 2 = 16k Ohms
From [6] Power = 5² × 16 = 25 × 16 = 400 mW
Finally, we must select the resistor for the opamp sense inputs. This is required because the voltage on the inverting input must be more positive than that on the non-inverting input for normal operation. The range is quite wide, but not sufficiently so as to cover the entire supply voltage range.
Supply Voltage | Resistance |
± 20 | 33k |
± 30 | 27k |
± 35 | 22k |
± 40 | 18k |
± 50 | 15k |
± 60 | 12k |
± 70 | 10k |
± 80 | 10k |
If the correct value is not used for the power supply voltage, the opamp comparator may hold its output high all the time, which will keep the clipping LED turned on. These resistors can be 0.25 Watt for all supply voltages. Note that at a supply voltage of less than ±25V you may need to increase the value of R11 above that shown in the table. If the output of U1 is continuously high with no signal, increase R11 until the output of U1 goes low.
Figure 2 shows (in red) the points of the output signal voltage that will trigger the detectors. +Ve is the positive power supply voltage and Ref+ is the positive reference voltage. The same applies to the negative supply and reference.
Figure 2 - Instantaneous Voltage Detection
Figure 2A shows the effect as the power supply collapses under sustained load. If the signal drops to a lower level before the supply collapses, the circuit will not be triggered. 2B shows how even the ripple on the power supply is used as a part of the reference, and so will detect that the output signal is about to be clipped based on the supply voltage at any instant in time.
So, as you can see, the actual instantaneous value of the power supply voltage is used as the final reference - the output is measured against this by Q1 and Q2. If the power supply voltage rises or falls, if there is ripple on the supply, this circuit will still indicate if the output of either amp of the stereo pair comes within 3 Volts of the instantaneous value of the power supply voltage (or other value - use formulae 4, 5 and 6 to calculate the reference voltage and required resistor values).
U1A operates as a dual comparator - if either transistor stops conducting, the output goes from around 0V to almost the full supply (12V - regulated with a simple zener). This voltage is applied to the inverting input of U1B, and the capacitor is used to 'stretch' the pulse so that even momentary clipping will be seen. This opamp drives the clipping LED directly.
By using the input 'A', additional separate amplifiers can be connected, so that in a home theatre system, all 5 (or 6) power amps can be monitored, and a single LED will indicate if any amp clips. This can also be done for biamped systems.
Note: It is vitally important that outputs from amplifiers with separate power supplies are monitored by their own transistor pair - this ensures that each amp is compared to its own power supply (as it should be). Do not be tempted to try to have one set of detector transistors for multiple separate power supplies.
Where a common power supply is used for multiple amplifiers (such as in a home theatre system), additional inputs can be added to the detectors - two diodes and a 1k resistor for each amp. The LED will come on if any amplifier that's being monitored exceeds the detection threshold, but a single detector for multiple amps doesn't tell you which one is clipping, so in many cases you may prefer to use more than one detector.