Turn your ESP32 into a Bluetooth speaker with this Arduino-friendly A2DP library

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

ESP32 developers can now build Bluetooth audio streaming projects with five lines of code and no external DAC hardware, using the free ESP32-A2DP library.

Read this as

A free open-source library called ESP32-A2DP lets the ESP32, a small, inexpensive hobbyist computer chip, act as a Bluetooth speaker, receiving music from your phone without any extra parts. It supports both receiving and sending audio, using the chip's built-in sound output. Hobbyists building custom speakers or retro radios can get sound playing in under ten minutes.

The ESP32-A2DP library by pschatzmann removes the need to buy dedicated audio chips like the MAX98357 or PCM5102, cutting hardware cost for hobbyist audio products. It is free via Arduino's Library Manager and works with PlatformIO. The main limitation is that it supports only the SBC codec, no AAC or aptX, so it suits casual audio, not premium products.

pschatzmann's ESP32-A2DP implements the Bluetooth A2DP source and sink profiles with SBC codec support directly on the ESP32's radio. Audio output routes via I2S, the internal DAC on GPIO25, or PWM. Installation is through Arduino Library Manager or platformio.ini via lib_deps = pschatzmann/ESP32-A2DP; the SimpleSink example is minimal. Limitation: SBC only, no AAC or aptX.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

ESP32 ESP32-A2DP Arduino PlatformIO SBC MAX98357 PCM5102

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading