# `dfplayer_mini` example ## What the example does Initializes DFPlayer Mini over UART and plays `/MP3/0001.mp3`. Every second it logs whether the module is playing (via BUSY pin). ## Wiring | ESP32 pin | DFPlayer Mini | |-----------|---------------| | GPIO17 (TX) | RX | | GPIO16 (RX) | TX | | GPIO4 | BUSY (optional) | | GND | GND | | 5V | VCC | Change pins in `main.c` if needed. ## SD card - Format: FAT32 - Folders: `01` … `99` (two digits) - Files: `001.mp3` … `255.mp3` (three digits) - Example: `/01/001.mp3` ## Build (ESP-IDF 5.4.2) В **новом** PowerShell: ```powershell . C:\Espressif\tools\activate_idf_v5.4.ps1 cd examples\default # если раньше собирали на IDF 6.x — обязательно почистить: Remove-Item -Recurse -Force build -ErrorAction SilentlyContinue idf.py set-target esp32 idf.py build idf.py -p COMx flash monitor ``` Не мешай в одном окне IDF 5.4 и 6.0 — разные `activate_*.ps1`.
To create a project from this example, run:
idf.py create-project-from-example "cezap/dfplayer_mini=1.0.5:default"