ESP32 device driver - I2S playing audio (using MAX98357A amplifier)

Play audio over I2S (using MAX98357A amplifier)


This article will detail how to use the I2S interface of ESP32 to play audio through MAX98357A.

1. Introduction to I2S

I2S is an Inter-IC Sound protocol, mainly used to transmit or receive audio data between two devices through a synchronous serial port. There are many applications in digital devices that require audio communication, such as adding a microphone or adding a speaker output to play some audio.

Various audio protocols are available in electronic devices using audio codecs, DACs (in case of audio output) or ADCs (in case of audio input). One of the easiest and probably best ways is to use the I2S protocol, which uses a simple pin configuration and communicates between two digital audio devices.

I2S protocol developed by Philips Semiconductor

Guess you like

Origin blog.csdn.net/wujuxKkoolerter/article/details/131446114