Skip to content

feat: add Class D Audio Amplifier HAT tutorial with PAM8403#741

Open
pvbang wants to merge 1 commit into
tscircuit:mainfrom
pvbang:feat/class-d-audio-amplifier-hat-tutorial
Open

feat: add Class D Audio Amplifier HAT tutorial with PAM8403#741
pvbang wants to merge 1 commit into
tscircuit:mainfrom
pvbang:feat/class-d-audio-amplifier-hat-tutorial

Conversation

@pvbang

@pvbang pvbang commented Jun 14, 2026

Copy link
Copy Markdown

Summary

Adds a comprehensive Class D Audio Amplifier HAT tutorial using the PAM8403 chip.

/claim #603

What's Included

  • Interactive tscircuit preview with full schematic (3D + PCB view)
  • PAM8403 Class D amplifier — 3W per channel stereo output
  • Complete signal path: Pi PWM → coupling caps → amplifier → speaker terminals
  • Power supply design with bulk and HF decoupling
  • Volume control via potentiometer
  • Software mute via GPIO17
  • Bill of materials with component values and packages
  • Raspberry Pi configuration (PWM audio, ALSA setup)
  • PCB layout guidelines for low-noise design
  • Testing procedures and troubleshooting guide

Technical Details

  • Uses bridge-tied load (BTL) output topology
  • Input coupling capacitors block DC offset from PWM
  • SHUTDOWN pin pulled high via 10kΩ for always-on operation
  • Output filter caps for EMI suppression
  • Dual-channel PWM audio (GPIO18 left, GPIO13 right)

Checklist

  • Tutorial follows existing pi-hats format (matches simple-buzzer-hat.mdx structure)
  • Interactive TscircuitIframe component with full circuit code
  • Step-by-step circuit design explanation
  • Class D operation explanation
  • Raspberry Pi integration guide
  • Audio configuration guide
  • BOM table
  • Testing procedures

Wallet: 0x911d202f713Ee2ad139E8b8b8a0A712347eFE31f

- Complete tutorial for building a Raspberry Pi HAT with PAM8403 Class D amplifier
- 3W per channel stereo output with volume control
- Interactive tscircuit circuit preview with full schematic
- Bill of materials, PCB layout guidelines, and testing procedures
- Raspberry Pi audio configuration (PWM, ALSA)
- Software mute control via GPIO
- Troubleshooting guide

Closes tscircuit#603
@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Error Error Jun 14, 2026 4:56pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant