กลับไปหน้ารวมไฟล์
nodemcu-mp3-player-display-en.md

The Custom Walkman: Digital MP3 Player

While an Arduino can easily generate simple beeps and "Happy Birthday" using the tone() function, it cannot play high-quality vocals or MP3 audio files natively. The NodeMCU MP3 Player solves this using a dedicated audio decoding chip.

stock_counter_lcd_setup_1772706693516.png

Heavy Lifting: The DFPlayer Mini

The secret to this project is the DFPlayer Mini module.

  • It has its own Micro SD card slot.
  • It contains a dedicated hardware MP3 decoder chip.
  • It has a built-in 3-Watt amplifier, meaning you can plug a small speaker directly into it!
  • The NodeMCU doesn't process any audio; it simply acts as the "remote control." It sends commands over Serial to the DFPlayer like myDFPlayer.next(); or myDFPlayer.volume(15);.

Building the Graphic Interface

With the audio handled off-board, the NodeMCU can use its processing power to draw the UI.

  1. You use an I2C OLED Screen to create a menu.
  2. Push Buttons allow the user to scroll through track numbers (e.g., Track 001, Track 002).
  3. The NodeMCU updates the screen with a "Now Playing" icon and a pause symbol when toggled.

Parts Checklist

  • ESP8266 NodeMCU or Arduino Nano.
  • DFPlayer Mini MP3 Module.
  • 0.96" OLED Display.
  • Micro SD Card (formatted to FAT32, with MP3s named 001.mp3, 002.mp3).
  • 3W 8-Ohm Mini Speaker.

ข้อมูล Frontmatter ดั้งเดิม

title: "NodeMCU MP3 Player with Display"
description: "Your own digital jukebox! Build a standalone MP3 player using an ESP8266, a DFPlayer Mini, and an OLED screen to browse your music."
category: "Audio & Sound"
difficulty: "Intermediate"