|
META TOPICPARENT |
name="Exercises" |
I2S and sound
Introduction |
|
- the PCM5102a
, a stereo converter board with a connector for head phones. If we want to connect a loudspeaker to this board we have to pass through an audio amplifier.
Connecting the MAX98357A |
|
> > |  |
| Here is a table showing how I connected the MAX98357A to the ESP32 board:
MAX98357A pin |
pin on ESP32 CPU card |
signification |
|
|
< < |
|
> > |
|
|
|
|
< < |
|
> > |
Gain |
Gnd |
important: don't leave this pin floating! |
|
|
Din |
D2: GPIO 21 |
audio data |
BCLK |
D3: GPIO 17 |
bit clock |
|
|
< < |
RC (LRCLK) |
D1: GPIO |
left/right clock |
|
> > |
LRC (LRCLK) |
D1: GPIO 22 |
left/right clock |
Connecting the PCM5102:
|
| |
|
> > |
PCM5102 pin |
pin on ESP32 CPU card |
signification |
Vcc |
3.3V |
|
Gnd |
Gnd |
|
BCK |
D3: GPIO 17 |
bit clock |
Din |
D2: GPIO 21 |
audio data |
Lck (LRCLK) |
D1: GPIO 22 |
left/right clock |
FMT |
Gnd |
|
Xmt |
Vcc |
|
|
| -- Uli Raich - 2021-01-24
Comments |
|
META FILEATTACHMENT |
attachment="max98357a.png" attr="" comment="" date="1611505403" name="max98357a.png" path="max98357a.png" size="208396" user="UliRaich" version="1" |
META FILEATTACHMENT |
attachment="pcm5102.png" attr="" comment="" date="1611505405" name="pcm5102.png" path="pcm5102.png" size="130048" user="UliRaich" version="1" |
|
|
> > |
META FILEATTACHMENT |
attachment="pcm5102back.png" attr="" comment="" date="1611510513" name="pcm5102back.png" path="pcm5102back.png" size="90367" user="UliRaich" version="1" |
|