Table of Contents

The Preview

Click to open in a new window.

Media ID: B30KSr3iJab

The Files


The Code



Audio Library:

The Hardware

PCM5102A Datasheet: PAM8406 Datasheet:

PAM8406 Pin settings –> Mode Class D -> Mode HIGH –> Mute -> HIGH –> SHD -> can float (is internally pulled up)

PCM5102A Pin settings

If you are using PCM5102, you need to pull the XMT pin high for it to output audio (0v = mute, 3.3v = unmute) .
|ESP32|PCM5102A| |—-:|:——-| |GPIO25/DAC1|LRCK| |GPIO26/DAC2|BCLK| |GPIO22|DATA|