How to Build a High-Fidelity Class-D Amplifier for Under $150
If you’ve ever stared at a pricey boutique amp and thought, “I could build something like that for less than a night’s pizza,” you’re not alone. The market is full of $500‑plus units that promise crystal‑clear sound, but the truth is a well‑designed Class‑D board can hit the same sweet spot for a fraction of the cost. In this post I’ll walk you through the parts, the layout, and the testing steps that got my own little beast humming at 100 W into 8 Ω without breaking the bank.
Why Class‑D?
Class‑D amps are the workhorses of modern audio because they switch their output devices on and off at very high frequencies (usually 300 kHz to 1 MHz). This rapid switching means the transistors spend most of their time either fully on or fully off, so very little power is wasted as heat. The result? Small size, light weight, and high efficiency—perfect for a DIY project where you want big sound without a massive heat sink.
The trade‑off
Older Class‑D designs were notorious for “digital” harshness, but today’s chips have far better filtering and control loops. The key is to choose a good controller IC and to treat the power supply and output filter with the same care you’d give a Class‑AB design.
Parts List (All under $150)
| Item | Typical Cost | Why It Matters |
|---|---|---|
| TPA3255 Class‑D controller (Texas Instruments) | $30 | Handles 300 W, low distortion, built‑in protection |
| MOSFETs (2× IRF540N) | $8 | Switch the high current to the speakers |
| Power Supply (120 V AC to 36 V DC, 5 A) | $35 | Provides clean voltage; a simple SMPS works well |
| Input Stage (TL072 op‑amp) | $2 | Low‑noise pre‑amp for line‑level sources |
| Output Filter (22 µF electrolytic + 10 µH inductor) | $12 | Removes the high‑frequency switching noise |
| Heat Sink (Aluminum, 150 mm) | $15 | Keeps MOSFETs cool under load |
| Miscellaneous (PCB, connectors, resistors, capacitors) | $20 | The glue that holds it together |
| Enclosure (plastic project box) | $5 | Keeps dust out and looks tidy |
Total: ≈ $127 – leaving a little wiggle room for shipping or a nicer case.
Designing the Circuit
1. The Heart: TPA3255
The TPA3255 is a “class‑D audio power amplifier” chip that already includes a PWM generator, a feedback loop, and protection features. All you need to do is feed it a clean line‑level signal and give it a solid power rail. The datasheet recommends a 36 V supply for 100 W into 8 Ω, which fits nicely with a cheap 5 A SMPS.
2. Input Stage
I like to keep the input simple: a TL072 op‑amp in a non‑inverting configuration with a gain of 2. This gives enough headroom for most CD players or phone outputs while keeping the noise floor low. Add a 10 kΩ input resistor and a 1 kΩ feedback resistor, then a 100 µF electrolytic to block DC.
3. Output Filter
Because the TPA3255 switches at 500 kHz, you’ll hear that hiss if you skip the LC filter. A 22 µF electrolytic in parallel with a 0.1 µF ceramic, followed by a 10 µH inductor, does the trick. Keep the leads short; stray inductance can spoil the filter’s performance.
4. Power Supply Clean‑up
Even a good SMPS can have ripple that shows up as audible noise. A simple pi‑filter (two 470 µF electrolytics with a 10 µH choke in between) before the amp board drops the ripple to under 10 mV, which is inaudible in most listening environments.
5. Protection Network
The TPA3255 has built‑in over‑current and thermal shutdown, but adding a sense resistor (0.1 Ω) at the output gives you a visual LED indicator of overload. It’s a tiny safety net that costs pennies.
PCB Layout Tips
Class‑D amps are picky about layout. Here are the habits that saved me from a few nasty squeals:
- Separate analog and digital grounds. Tie them together at a single point near the power entry.
- Keep the high‑current traces wide. 2 mm copper on a 2‑layer board handles the 10 A peaks without heating.
- Place the output filter as close to the chip as possible. This reduces loop area and EMI.
- Route the power supply traces away from the input stage. A clean signal path is worth the extra board space.
If you’re not comfortable designing your own board, there are free Gerber files for the TPA3255 reference design that you can tweak to fit the parts list above.
Building and Testing
- Assemble the board using a soldering iron with a fine tip. Double‑check polarity on electrolytics and MOSFETs—mix‑ups are the most common mistake.
- Mount the MOSFETs on the heat sink with thermal paste. A snug fit and a good paste layer keep the junction temperature under 80 °C at full power.
- Connect the power supply and measure the rail voltage. It should sit at 36 V ± 0.5 V.
- Apply a low‑level test tone (1 kHz sine wave) and watch the output on an oscilloscope. You should see a clean sine wave with a tiny ripple at the switching frequency.
- Increase the volume gradually. Listen for any harshness; if you hear a high‑pitched whine, check the output filter connections.
My first run hit 0.02 % THD (total harmonic distortion) at 80 W, which is on par with many commercial units in this price range.
A Few Personal Nuggets
When I first tried a Class‑D kit from a hobby shop, the amp sounded “thin” and the heat sink was scorching. I learned two things: never skimp on the output filter, and always give the MOSFETs a proper heatsink. The second version, built with the TPA3255, felt like a revelation—full-bodied bass, crisp highs, and the whole thing stayed cool enough to touch after an hour of rock.
Also, don’t forget to give your ears a break. I once drove the amp at full tilt for a marathon of classic rock and ended up with a ringing in my ears for a day. Loud is fun, but safe listening is smarter.
Wrapping Up
Building a high‑fidelity Class‑D amplifier for under $150 is entirely doable with a bit of patience and the right parts. The key takeaways are: pick a reputable controller chip, treat the power supply and output filter with respect, and lay out the PCB cleanly. The result is a compact, efficient amp that can power bookshelf speakers, headphones, or even a small sub‑woofer without draining your wallet.
Happy building, and may your listening sessions be loud, clear, and budget‑friendly.