GD3300 Serial MP3 Power to Arduino Mega, 5v pin, ground to Arduino Ground.
TX to Arduino 10, RX to Arduino 11.
PAM8406 3.5 to GD3300 3.5 jack.
PAM8406 to Buck 5v/ground.
Connect speakers to PAM8406.
Insert SD Card with files copied over to test the music player.
Download mp3s 2026-02-16
All the files can be in the ROOT directory with numbers and can be played by using:
myDFPlayer.play(29); delay(20);
But v3 uses sub folders.
The folders must have 2 digits, 01, 02, 03, etc.
File names can be anything but must start with 3 digits. /01/001_laser.mp3, /02/002_winner.mp3, /02/029_loser.mp3 and will be called using the number.
This will make it easier to add/remove songs and change code.
myDFPlayer.playFolder(1,1); Serial.println("Play Folder 01, track 001_laser.mp3"); delay(5000);
myDFPlayer.playFolder(2,2); Serial.println("Play Folder 02, track 002_winner.mp3"); delay(5000);
myDFPlayer.playFolder(2,29); Serial.println("Play Folder 02, track 029_loser.mp3"); delay(5000);
Make sure you have a delay of at least 20 after every play call. delay(20);
NOTE: The GD3300 unit has all the components to help w/ static, feedback, etc. It also makes it easier by having a 3.5 jack that connects to the PAM8406 3.5 connector.
Version 2 would need a ground from Arduino to Buck to stop static feedback.
NOTE 2: Version 2 (DF Mini Player), the mp3 player plays the music in the order it was copied to the card.
I labeled each song as 001Laser, 002Bell, etc then copied each one by one into the root folder.
V3, GD3300, might be able to use sub folders and play songs based upon the number labels but I need to test it first.
NOTE 2 Follow up: I Found a program that will sort files in alphabetical order so it doesn't matter how you copy them if you sort after.
FAT Reorder, others not tested:
FAT Sorter,
Fat Drive Sorder
NOTE 3: Using the folders/sub folder and number call, it doesn't matter what order they are, just in the right location/named correctly.
Music compatible with DF Music Player
Music for GD3300