• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
NFC Jukebox with ESP32, DFPlayer Mini and RC522 3D Printer File Image 1
NFC Jukebox with ESP32, DFPlayer Mini and RC522 3D Printer File Image 2
NFC Jukebox with ESP32, DFPlayer Mini and RC522 3D Printer File Image 3
NFC Jukebox with ESP32, DFPlayer Mini and RC522 3D Printer File Image 4
NFC Jukebox with ESP32, DFPlayer Mini and RC522 3D Printer File Image 5
NFC Jukebox with ESP32, DFPlayer Mini and RC522 3D Printer File Thumbnail 1
NFC Jukebox with ESP32, DFPlayer Mini and RC522 3D Printer File Thumbnail 2
NFC Jukebox with ESP32, DFPlayer Mini and RC522 3D Printer File Thumbnail 3
NFC Jukebox with ESP32, DFPlayer Mini and RC522 3D Printer File Thumbnail 4
NFC Jukebox with ESP32, DFPlayer Mini and RC522 3D Printer File Thumbnail 5

NFC Jukebox with ESP32, DFPlayer Mini and RC522

kevToeg avatarkevToeg

April 13, 2025

makerworld-icon
DescriptionCommentsTags

Description

Wire diagram will follow soon !

 

This project is a compact NFC-powered jukebox based on the ESP32-C3 Mini. It uses an RC522 NFC reader to scan RFID tags, which are mapped via a JSON file to trigger specific songs or entire folders on the SD card. The audio is played through a DFPlayer Mini connected to a small speaker – no AUX output needed.

 

Tracks are organized into folders (01 to 99) on the SD card, and named following the DFPlayer Mini format (001_xxx.mp3 to 255_xxx.mp3). NFC tags can be linked to a specific [folder, track] pair, or just to a folder to play full albums or playlists.

 

As an optional feature, a lightweight web interface allows for playback control over Wi-Fi, including Play/Pause, Next/Previous Track, and Volume adjustment.

 

This build is ideal for makers looking to create a standalone, physical music experience with simple NFC interaction and no need for a screen or smartphone.

 

Micropython Source Code in .zip :-)

 

Features:

  • NFC control via RC522
  • DFPlayer Mini handles audio playback from SD card
  • Tags are mapped in a JSON file stored on the ESP32
  • Folder and track selection per tag
  • Optional web interface for remote control
  • Standalone playback through connected speaker (no AUX)

Use cases:

  • Kid-friendly jukebox
  • Custom playlists with physical cards
  • Embedded music stations for DIY installations

Hardware:

  • ESP32-C3 Mini
  • DFPlayer Mini (TX=21, RX=20)
  • RC522 RFID Module (SCK=2, MOSI=1, MISO=0, CS=3, RST=4)
  • SD card (with folders 01–99, tracks named 001_xxx.mp3 to 255_xxx.mp3)
  • NFC tags (UIDs mapped to folders/tracks in JSON)
  • Mini speaker or AUX output
  • 2x Y-Cable (see below for the 3.3V and GND)

🧰 MicroPython & File Upload with Thonny (short)

  1. Install Thonny: https://thonny.org
  2. Connect your ESP32-C3 via USB
  3. In Thonny: Tools → Install MicroPython (ESP32)
    • Board: ESP32-C3
    • Select correct port
    • Flash firmware
      (if needed: hold BOOT + tap RESET to enter flash mode)
  4. Bottom-right: select MicroPython (ESP32)
  5. Open your scripts → File → Save as... → MicroPython device
    • e.g. main.py, nfc_map.json, libraries

Tip: main.py runs automatically on boot.

 

 

 

 

 

 

 

 

 

📁 File Upload and Setup

Use Thonny to upload the following files to the ESP32-C3:

  • dfmini.py – DFPlayer Mini driver
  • mfrc522.py – RC522 NFC driver
  • app.py – main application logic
  • main.py – startup script

Upload each via:
File → Save as... → MicroPython device

The file nfc_map.json will be auto-generated on first boot if it doesn't exist.
It can be edited and saved directly on the controller later (e.g. using Thonny or WebREPL).

🎵 Music File Setup (SD Card)

  • Create folders 01 to 99 on the SD card
  • Name files like 001_song.mp3 to 255_track.mp3
  • Place music or albums inside the corresponding folders
  • Map NFC tags to [folder] or [folder, track] via nfc_map.json

Example:

{  
  "0487CD44A8": [2],  

  "04A3BC1F22": [3, 5] 

} 

 

Y-Cable

 

 

 

 

 

That’s it – once set up, tapping a tag will play music instantly!

License:

Standard Digital File License

Related Models

Minimalistic Motorized Roller Blinds - NEMA 17 stepper motor gear and mount preview image

Minimalistic Motorized Roller Blinds - NEMA 17 stepper motor gear and mount

lushey profile image

lushey

3,995

Case for Flipper Zero Wi-Fi Module v1 preview image

Case for Flipper Zero Wi-Fi Module v1

fivesixzero profile image

fivesixzero

1,093

ESP32-WROOM Case preview image

ESP32-WROOM Case

MeMaddog profile image

MeMaddog

853

Smart, Self-watering Plant Pot Planter "Flaura" preview image

Smart, Self-watering Plant Pot Planter "Flaura"

Martin_McMaker profile image

Martin_McMaker

3,810

Heltec v3 case for Meshtastic preview image

Heltec v3 case for Meshtastic

TonyG profile image

TonyG

1,577

ESP32 Development Case preview image

ESP32 Development Case

JukeSaber profile image

JukeSaber

821

Hexagonal Nanoleaf - Hexaleaf preview image

Hexagonal Nanoleaf - Hexaleaf

ElHeisa profile image

ElHeisa

3,240

LED Frame 2.0 (Multiboard) for IKEA SKADIS preview image

LED Frame 2.0 (Multiboard) for IKEA SKADIS

Hawk7 profile image

Hawk7

2,964