Inspired by Skylanders and their Portal of Power, I wanted to make a music box where you put a figurine(typically from a video game) on top, and that character's theme will start playing.
This project plans to use the same technology as the Skylanders series: NFC tags and readers. NFC-or Near-Field Communication-tags do exactly as they are labelled to do: when near an NFC reader, the reader will pick up the data that is loaded onto the tag. Using the NFC Tools App or any similar application for a mobile device, I can write a string of numbers(I will explain why I am using numbers soon) to an NFC chip that when read by the NFC reader, will play the song with the corresponding number. Along with this, I have an Arduino Uno R3 to process and send information, a breadboard for connecting wires, a cheap speaker, and a DFPlayer Mini to play songs from the loaded micro sd card to the speaker. The DFPlayer Mini requires you follow a file naming structure that uses three digits(000 to 999). So by writing "003" onto a chip and placing it near the reader, the mp3 file titled "003.mp3" assuming there is such an audio file.
If you want to skip the explanation of the code and just copy it for your own use, here it is: