Skip to the content
2 layers84.5 × 82.6 mmClassab amp, the printed circuit board in 3D

MOSFET-based 50W Class AB amplifier

Size
84.5 × 82.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
67
Nets
36
Pads
144
Tracks, vias
288, 1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
18 Oct 2024
Updated
2 Feb 2025

Overview

Classab amp is an open-source printed circuit board by prydin, from the prydin/classab-amp-mosfet repository on GitHub. It is a 2-layer board of 84.5 × 82.6 mm with 67 parts on 36 nets, routed with 288 tracks and 1 via.

It is built around the BD139, BD140 and IRFP240, with the IRFP9240 among its other parts. Its parts include 24 resistors, 13 transistors, 11 capacitors, 9 diodes and 5 connectors. It belongs with the audio and music boards of this library.

Main components

4

README

README.md

50W Class AB MOSFET Amplififier

3D rendering

Disclaimer

This amplifier has been built and tested and, at least subjectively speaking, sounds great. However, I'm not a professional designer and this is my first "serious" attempt at amplifier design. I invite you to build this amplifier if you like, but don't expect it to perform like a professionally designed high-end amplifier. That said, I think it sounds pretty darn good.

Background

This is an updated version of the bipolar Class AB amplifier I designed a while ago that can be found here: https://github.com/prydin/classab-amp I tried to correct some of the mistakes (mostly in the PCB design) and I also wanted to try use MOSFETs for the output stage. I settled on the tried and tested IRFP240/9240 combination. Although not marketed as audio transistors, these devices have found their way into countless amplifier designs, perhaps most notably some of Nelson Pass' First Watt creations. I really like the way they're performing. They seem to run a lot cooler at the same quiescent current compared to their BJT counterparts. I'm also seeing less distortion and mostly concentrated on the second harmonic.

Repository structure

  • kicad - Schematic and PCB layout in KiCAD format
  • spice - LTSpice simulations

Overall design

The design is a simple single differential stage amplifier with a single ended, two transistor emitter coupled VAS driving two complementary MOSFETs on the output.

Input stage

After the customary DC-blocking capacitor and RF filter, the signal is fed into a long tailed pair differential amplifier that's enhanced to an active current sink and current mirror loads. The active sink and load helps improve both distortion and frequency response. The bias current of the LTP is set to approximately 1.5mA. The LTP and its current mirrors are placed closely togethe for maximum heat condudctivity between the transistors. If so desired, they can be put into physical contact using a brace or a zip tied. The feedback is fed through a 22k/1k voltage divider, yielding about 23x (27dB) gain. This is a conservative estimate and may have to be adjusted when testing the physical build. The active current sink and load seem to offer a robustpower supply rejection.

Voltage amplification/drive stage

I went for a very simple single-sided design here. I've gotten many suggestions that I should try a dual differential design instead, but the current design seems good enough, so I stuck with it. The VAS has a 220pF compensation capacitor which appears to be enough to provide ample phase margin.

Output stage biasing

The output stage is biased using a servo transistor driven by a constant current sink. The BD139 for the servo as chosen just because it's easy to mount on a heat sink together with the power components for good heat conductivity between components. A much less powerful transistor works too, but would have been harder to attach to the heat sink.

Output stage

The output stage consists of a complementary pair made up of IRFP240/9240 MOSFETs with a 330ohm gate resistor. Before the signal reaches the speaker, it is passed througha snubber and an inductor to further improve stability.

Short circuit projection

Rather than the "base current thief" arrangement in the BJT version, I'm solely relying on a pair of zener diodes to keep the gate voltage about 5V above or below the source voltage. This limits the power to about 50W and results in fairly soft clipping.

Output coil

The output coil is realized simply by winding 10-12 turns of 16 AWG wire around R21. See the photo below! Coil

Power improvements

Altough this hasn't been tested or thorouhgly analyzed, it should be possible to increase the rail voltages to +-40V, which yields about 160W according to simultions. For this to work, the gain needs to be made higher by increasing the value of the feedback resistor. The voltage limiting zener diodes on the gates also have to be adjusted.

Power supply

The amplifier is intended to be powered by an unregulated linear power supply like the one supplied in this repository. Each amplifier board is fitted with 4700uF on each rail, per channel and the rectifier board has an additional 9400uF on each rail. In simulations, measurements and listening tests, this seems sufficient.

The amplifier has been tested with rail voltages ranging from +-24V to +-37V with good results. Obviously, higher output power requires more voltage. The recommended supply voltage range is +-24V to +-40V.

In my build, I'm using a 2x25V toroidial transformer. Where I live, this ended up giving me 2x39V rectified voltage, which is a bit overkill for 50W, but some extra headroom is never a bad thing.

PCB Design

I am NOT an expert at PCB design. In fact, I'm very much a novice and not very good at it, so the PCB layout is probably somewhat naive. In this design, I tried to create a star arrangement for the power ground. The power ground is loosely connected to the signal ground through a 100ohm resistor and to the chassis through a 220ohm resistor and a 10nF capacitor. This is slightly different from the prototype that I originally built, so you may have to tweak this if you experience hum. The prototype I'm currently using in my livingroom has no audible hum.

Build and bring-up

Mechanincal design

Mechnical design is not my forte, so you're probably best off to come up with your own design here. I went with a 11' x 10' metal case from Nobsound. This proved to be rather small with the beefy 250VA transformer I picked, so wire routing turned out to be a challenge. I wouldn't be offended if you called it a rat's nest. I used a pair of inexpensive finned aluminum heatsinks from Amazon and they seem to work very well. During casual listening at a moderate volume, they stay more or less room temperature.

Chassis

Thermal coupling

It is extremely important that Q7, Q9 and Q10 are thermally coupled, i.e. mounted on the same heat sink. Failure to do this may result in thermal runaway and catastrophic damage to the output stage!

You may also want to thermally couple the two transistor pairs in the input stage (R1 and R2, and R3 and R4 respectively). I just wrapped a piece if ziptie around them to make them touch.

Bring-up

This is the procedure I followed when bringing it up the first time. It saved me on the first bring-up since I had accidentally mixed up the transistors in the LTP which put DC on the speaker output.

  1. Disconnect the speakers.
  2. Turn the bias trimmer to its lowest setting (highest resistance)
  3. Connect a current limited power supply with -12V, 0V and +12V to the power inputs. Limit the current to 200mA. The amplifier should draw less than 100mA.
  4. Measure the DC voltage across the speaker terminals. It should be less than 50mV.
  5. Connect an oscilloscope to the output. There should be no oscillations.
  6. Slowly bring the voltage to +/-24V. The current draw should still be well below 100mA.
  7. Connect a 8Ω resistive dummy load to the output. The current draw should not increase significantly.
  8. Connect a signal generator to the input and send in a 10mV p/p 1kHz sine singal. You should see approximately 200mV p/p on the speaker output.
  9. Increase the current limit to 500mA and try the same with a 100mV p/p and 200mV p/p signal.
  10. Increase the current limit to 1A and try a 300mV p/p input.
  11. Connect the speakers and feed a music signal. It it may not sound perfect, since lab supplies aren't designed to power amplifiers, but there should be no severe distortion.
  12. Hook up the amplifier to the power supply that will be used for the final build. I put 3A fuses in series with each rail.
  13. Measure DC voltage on the speaker outputs. The DC voltage should not exceed 50mV.
  14. Measure the voltage between the emitters on the output transistors (Q9 and Q10). Adjust the bias trim until the voltage reaches 20mV. This corresponds to a bias current of 30mA. Verify that the heat sinks are no warmer than luke warm. You may go higher or lower depending on your preferences. Just watch the temperatures!
  15. Bring up the amplifer and test it using a dummy load and signal generator as described above.
  16. If all has gone well up until this point, connect your speakers and crank up your favorite tune. ENJOY!

Schematic

Schematic

Stats

All simulations are done with an 8 ohm resistive dummy load, 1V input at 1kHz.

THD (simulated)

At a fairly moderate quiescent current of 45mA, I get a THD20k of 0.003% at 30% power. A THD below 0.1% is considered to be inaudible, so these numbers are fine by me. I know there are audiophiles who insist on THD numbers <0.0001%, but I'm not one of them. Inaudible is just fine by me. The THD at full power (50W) is about 0.1%.

I unfortunately don't have the equipment to accurately measure THD in the lab, but it looks to be considerably below 0.1% (probably below 0.01%).

text
Fourier components of V(out)
DC component:-0.00638947

Harmonic	Frequency	 Fourier 	Normalized	 Phase  	Normalized
 Number 	  [Hz]   	Component	 Component	[degree]	Phase [deg]
    1   	 1.000e+3	 1.137e+1	 1.000e+0	   90.67°	    0.00°
    2   	 2.000e+3	 2.313e-4	 2.034e-5	  -82.88°	 -173.56°
    3   	 3.000e+3	 1.539e-4	 1.354e-5	  176.54°	   85.87°
    4   	 4.000e+3	 1.334e-4	 1.174e-5	  -87.58°	 -178.26°
    5   	 5.000e+3	 1.239e-5	 1.090e-6	 -166.62°	 -257.29°
    6   	 6.000e+3	 9.620e-5	 8.462e-6	  -84.00°	 -174.67°
    7   	 7.000e+3	 5.301e-5	 4.663e-6	    6.49°	  -84.19°
    8   	 8.000e+3	 6.785e-5	 5.968e-6	  -81.59°	 -172.26°
    9   	 9.000e+3	 6.897e-5	 6.067e-6	    8.04°	  -82.64°
   10   	 1.000e+4	 4.481e-5	 3.942e-6	  -78.43°	 -169.11°
   11   	 1.100e+4	 6.376e-5	 5.608e-6	    9.49°	  -81.19°
   12   	 1.200e+4	 2.633e-5	 2.316e-6	  -73.92°	 -164.59°
   13   	 1.300e+4	 5.062e-5	 4.453e-6	   10.82°	  -79.85°
   14   	 1.400e+4	 1.270e-5	 1.117e-6	  -65.17°	 -155.85°
   15   	 1.500e+4	 3.641e-5	 3.203e-6	   11.89°	  -78.79°
   16   	 1.600e+4	 4.245e-6	 3.734e-7	  -33.69°	 -124.37°
   17   	 1.700e+4	 2.420e-5	 2.129e-6	   12.70°	  -77.97°
   18   	 1.800e+4	 3.632e-6	 3.195e-7	   53.21°	  -37.47°
   19   	 1.900e+4	 1.499e-5	 1.318e-6	   12.97°	  -77.70°
   20   	 2.000e+4	 5.428e-6	 4.775e-7	   75.45°	  -15.22°
Harmonic Distortion: 0.003150%

FFT

AC Analysis (measured)

The amplifier has a 3dB bandwidth of about 250kHz, which is respectable, while not in the hardcore audiophile range, but it keeps any poles far away from the audible range to make both the amplitude and phase response vritually flat where it matters. I am of the opinion that nothing >20kHz has any impact on the listening experience.

Bode plot

Bill of materials

All capacitor voltages are 50V and all resistor power ratings are 1/4W unless otherwise indicated. 1% tolerance resistors are recommended.

Amplifier Board (each channel)

ReferenceValueFootprintQtyVendorPart No
C133uF, non-polarizedRadial_D4.0mm_P2.00mm1Generic
C2,C5100pFRect_L7.2mm_W3.0mm_P5.00mm2Generic
C4220uFRadial_D8.0mm_P5.00mm1Mouser871-B32529C1104J
C610uFCRadial_D4.0mm_P2.00mm1Mouser710-860240672002
C710nFRect_L7.2mm_W3.0mm_P5.00mm1Generic
C13,C144700uFCP_Radial_D18.0mm_P7.50mm2Mouser232-50PK4700MEFC18X4
D4,D51N4148DO-35_SOD27_P7.62mm2Mouser512-1N4148
D6,D111N5919DO-41_SOD81_P10.16mm2Mouser863-1N5919BRLG
D7,D8,D9,D101N4004DO-41_SOD81_P10.16mm4Mouser637-1N4004
J1Terminal BlockTerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm1Generic
J2,J4,J5Spade connector, malePitch 5.08mm, hole 1.4mm3Generic
J3Terminal BlockTerminalBlock_4Ucon_1x02_P3.50mm_Horizontal1Generic
Q1,Q2,Q11,Q12,Q152N5551TO-92_Wide5Mouser583-2N5551-T
Q3,Q4,Q162N5401TO-92_Wide3Mouser583-2N5401-F
Q6BD140TO-126-3_Vertical1Mouser511-BD140-16
Q7,Q8BD139TO-126-3_Vertical2Mouser511-BD139-16
Q9IRFP240TO-247-3_Vertical1Mouser844-IRFP240PBF
Q10IRFP9240TO-247-3_Vertical1Mouser844-IRFP9240PBF
R1150L6.3mm_D2.5mm_P2.54mm1Mouser660-MF1/4LCT52R151J
R2,R922kL6.3mm_D2.5mm_P2.54mm2MouserMFR-25FTE52-22K
R3,R4,R5470L3.6mm_D1.6mm_P7.62mm3Mouser660-MF1/4DCT52R4700F
R6,R114.7kL3.6mm_D1.6mm_P7.62mm2Mouser660-MF1/4LCT52R472G
R7,R191kL3.6mm_D1.6mm_P7.62mm2Mouser279-LR0204F1K0
R8,R12,R18330L3.6mm_D1.6mm_P7.62mm3Mouser660-MF1/4LCT52R331J
R10,R14,R22100L3.6mm_D1.6mm_P7.62mm3Generic
R1310kL3.6mm_D1.6mm_P7.62mm1Generic
R15220 / 3WL11.9mm_D4.5mm_P15.24mm1Mouser603-FMP300JTF73-220R
R16,R170.33 / 3WL11.9mm_D4.5mm_P15.24mm2Mouser71-PAC300003307FAC00
R20,R2110 / 3WL11.9mm_D4.5mm_P15.24mm2MouserEP3WSS10RJ
RV1,RV2300TRIM_T93YA103KT202Amazonhttps://www.amazon.com/BOJACK-Multiturn-Trimmer-Potentiometer-Assortment/dp/B07WDCVGJV

Rectifier board

ReferenceValueFootprintQtyVendorPart No
C1,C2,C5,C64700uFCP_Radial_D18.0mm_P7.50mm4Mouser232-50PK4700MEFC18X4
C3,C4,C7100nRect_L7.2mm_W5.5mm_P5.00mm3Generic
D1,D2,D3,D4GI754D_P600_R-6_P12.70mm4Mouser625-GI754-E3/73
J1, J2, J3, J4, J5, J6Spade connector, malePitch 5.08mm, hole 1.4mm6Generic

Transformer

ReferenceValueFootprintQtyVendorPart No
TR125V / 250VAN/A1Avel LindbergY236652

Case and hardware

Parts

67
QtyValueFootprintReferences
52N5551Package_TO_SOT_THT:TO-92_WideQ1, Q2, Q11, Q12, Q15
41N4004Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD7, D8, D9, D10
3100Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR10, R14, R22
3100nCapacitor_THT:C_Rect_L7.2mm_W3.0mm_P5.00mm_FKS2_FKP2_MKS2_MKP2C3, C15, C16
31N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD1, D4, D5
32N5401Package_TO_SOT_THT:TO-92_WideQ3, Q4, Q16
3470Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR3, R4, R5
3~footprints:Spade ConnectorJ2, J4, J5
20.33Resistor_THT:R_Axial_DIN0414_L11.9mm_D4.5mm_P15.24mm_HorizontalR16, R17
2100Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR23, R24
2100pCapacitor_THT:C_Rect_L7.2mm_W3.0mm_P5.00mm_FKS2_FKP2_MKS2_MKP2C2, C5
21N5919Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD6, D11
21kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR7, R19
2330Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR8, R18
24700uCapacitor_THT:CP_Radial_D18.0mm_P7.50mmC13, C14
2BD139Package_TO_SOT_THT:TO-126-3_VerticalQ7, Q8
1
110Resistor_THT:R_Axial_DIN0516_L15.5mm_D5.0mm_P5.08mm_VerticalR20
110Resistor_THT:R_Axial_DIN0414_L11.9mm_D4.5mm_P15.24mm_HorizontalR21
110kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR13
110nCapacitor_THT:C_Rect_L7.2mm_W3.0mm_P5.00mm_FKS2_FKP2_MKS2_MKP2C7
110uCapacitor_THT:CP_Radial_D4.0mm_P2.00mmC6
1150Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR1
1220Resistor_THT:R_Axial_DIN0414_L11.9mm_D4.5mm_P15.24mm_HorizontalR15
1220uCapacitor_THT:CP_Radial_D8.0mm_P5.00mmC4
122kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR2
122kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR9
1300footprints:TRIM_T93YA103KT20RV1
1330Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR12
14.7kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR11
14.7kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR6
14.7uCapacitor_THT:CP_Radial_D4.0mm_P2.00mmC1
1BD140Package_TO_SOT_THT:TO-126-3_VerticalQ6
1INPUTTerminalBlock_4Ucon:TerminalBlock_4Ucon_1x02_P3.50mm_HorizontalJ3
1IRFP240Package_TO_SOT_THT:TO-247-3_VerticalQ9
1IRFP9240Package_TO_SOT_THT:TO-247-3_VerticalQ10
1SPEAKERTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_HorizontalJ1

The 64 most common of 67 parts.

More from prydin/classab-amp-mosfet

1
  • 2 layers106.9 × 48 mmPower supply, the printed circuit board in 3D

    Power supply

    prydin/classab-amp-mosfet

    MOSFET-based 50W Class AB amplifier

    23 parts9

Similar boards

  • 2 layers113.5 × 152.5 mmClassab amp, the printed circuit board in 3D

    Classab amp

    prydin/bog_on_a_plate

    93 parts1
  • 2 layers81.5 × 60.6 mmMotor, the printed circuit board in 3D

    Motor

    NotoFederico/CC_Motor_Driver_24V

    A half H bridge PCB design for CC Motors

    21 parts1GPL-3.0
  • 2 layers100.6 × 66.6 mmKursaDarbs, the printed circuit board in 3D

    KursaDarbs

    kvilcans/PCB-GIT

    Datorizētā projektēšana. Kristaps Vilcāns darbi

    43 parts
  • 2 layersH using transistor, the printed circuit board in 3D

    H using transistor

    Ajay-Mallesh/PCB-Designs

    Collection of PCB designs -> Basic circuits

    70 parts
  • 2 layers160 × 100 mmDC Electronic Load, the printed circuit board in 3D

    DC Electronic Load

    Jajaho/DC-Electronic-Load

    Digitally controlled dc electronic load.

    88 parts
  • 2 layersIR2110, the printed circuit board in 3D

    IR2110

    M-K-O-Hybrid-open-source/BUCK_manual_Process

    the main aim of this design is the ease of the manual manufacturing process of this PCB and the availability of the component

    43 parts
  • 2 layers100 × 100 mmAmply, the printed circuit board in 3D

    Amply

    T76-org/amply

    A $10 desktop Bluetooth amplifier you'll love

    67 parts14GPL-3.0
  • 2 layers40 × 99 mmOutput mixer, the printed circuit board in 3D

    Output mixer

    mohoyt/output_mixer

    Simple 4 channel Eurorack output mixer

    114 parts7CERN-OHL-S-2.0

Questions

How big is the Classab amp PCB?

It measures 84.5 × 82.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Classab amp use?

67 parts, built around the BD139, BD140, IRFP240 and IRFP9240. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Classab amp KiCad files?

From the prydin/classab-amp-mosfet repository on GitHub, at the commit this page was made from: the board is kicad/classab-amp.kicad_pcb and its schematic kicad/classab-amp.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Classab amp design in my own project?

Its repository states no licence, so its author keeps all rights: ask prydin before reusing the design.