Open Source • MIT License

OPENDAP-C3

An open-source portable Digital Audio Player built around the ESP32-C3 Super Mini and DFPlayer Mini. Compact, hackable, and designed for makers.

Prototype Build

HARDWARE

OpenDAP-C3 prototype hardware setup showing ESP32-C3, DFPlayer Mini, battery and wiring

Prototype product image — ESP32-C3 Super Mini, DFPlayer Mini, TP4056 charging board and Li-ion battery

What It Can Do

FEATURES

MP3 & WAV Playback

Plays MP3 and WAV files directly from a microSD card via the DFPlayer Mini audio decoder.

5-Button Control

Resistor ladder design gives you Play/Pause, Next, Previous, Volume Up and Volume Down — all on a single GPIO pin.

Deep Sleep Power Management

Intelligent power management with ESP32-C3 deep sleep keeps battery drain near zero when idle.

State Restore on Boot

Volume level and last-played track are saved to flash and restored automatically every time the device powers on.

3.5 mm Headphone Output

Standard headphone jack for private listening — plug in any wired headphones or earbuds.

UART Debug Console

Full debug logging over serial UART for easy firmware development and troubleshooting.

Bill of Materials

COMPONENTS

MCU

ESP32-C3 Super Mini

Audio Decoder

DFRobot DFPlayer Mini

Battery

3.7V Li-ion 402020 (400 mAh)

Charging

TP4056 USB-C Module

Regulator

LM2950-3.3

Pin Connections

WIRING

Component ESP32-C3 / External Pin
DFPlayer RX GPIO4
DFPlayer TX GPIO5
DFPlayer USB+ / USB- USB-C Breakout D+ / D-
Button Ladder GPIO1

See the full Wiring_Table.md for detailed power and resistor connections.

Technologies Used

TECH STACK

ESP32-C3

Arduino Framework

PlatformIO

DFPlayer Mini

C++

Build the Firmware

1

Clone the Repository

Get the source code from GitHub.

git clone https://github.com/shraman-c/OpenDAP-C3.git
2

Open in PlatformIO

Open the project folder in VS Code with the PlatformIO extension installed.

3

Compile & Flash

Build the firmware using the Arduino framework and flash to your ESP32-C3.

pio run
What's Next

ROADMAP

Folder Navigation

Navigate to Next/Previous folders with explicit folder index tracking for the DFPlayer Mini.

Enhanced Debouncing

Improved debouncing filters for more reliable button presses, especially during rapid inputs.

OLED Display

Add a small OLED screen for displaying current track info, volume level, and battery status.

Build Your Own DAP

OpenDAP-C3 is fully open-source. Fork the repo, tweak the firmware, and build a portable music player that's truly yours.