I'm working on building the shell of an arcade cabinet for an art project and I've got these cool buttons that light up. However, they aren't functional yet! I'm looking to make them interactive, ideally by having each button play a different sound when pressed. I have a total of 8 buttons and a joystick, and I'm curious if the joystick can also be programmed to produce sounds. Since I'm a beginner with coding and electronics, I'm hoping for a straightforward solution. Any suggestions?
2 Answers
A great option for you is the DFPlayer Mini module. Check out their wiki page; it has an 'AD button mode' which sounds perfect for your needs! You won’t need any microcontroller or programming skills to set it up. Plus, it even supports a 3W speaker if you need more volume!
Do I need one module for each button, or can I use just one for all 8?
You might want to consider getting a cheap circuit board from sites like AliExpress. They have modules that can play different MP3s from a MicroSD card depending on which pins are triggered. Just look up "MP3 Player Voice Playback Module" for options.

You can use one module for multiple buttons, just wire them correctly! You connect the buttons to the inputs on the DFPlayer.