I'm working on a senior group project involving a whack - a - mole game device. We are currently doing the audio part of the device and we need to get music played and a sound to make when the user hits the target. Originally, we planned to use two separate audio Arduino shields with two separate Arduinos. One that does the music and the other that makes the sound for the target.
Our mentor thought if we could put both audio Arduino shields into the same Arduino so that it would work the same way and save money, but we don't know if it does work because we never heard of anybody actually doing that. I just need to know if it can work or not.
You can certainly do what you want. There are inexpensive sound generator chips that can be run from the Arduino that produce sounds as well as music if you want them to. I did some experimentation with one type that was used in early 8 bit computers (1980's) and build it onto a shield. You can read about it here if you are interested.
Right. That should work. Most audio shields are 99% "stand alone". The Arduino just sends a few "commands" to start & stop the sound, maybe to adjust the volume, and to choose which file is played, etc.
I don't think you should use 2 Shields- I think you should use 2 Df Mini MP3 players. The problem with the Arduino MP3 shields is that so much of the pins are taken up by the player- I don't think 2 Shields would work together. Here's the hookup schematic and link for the Sparkfun VS1053 Arduino Shield:
Here's the link to the DF Mini MP3 players. Please don't use their recommended libary. I have had great success with PowerBroker2's Df Mini Fast Library. That way you would only tie up 2 of the digital pins on the Arduino. MIGHT be able to power both off the Arduino as well, but may need external power source.
Can also find these on Amazon and Ebay. Hope this helps.
Yes, but for that you could use just one Shield or DF Mini player. There are several examples of that in the Completed Project page or on Instructables. Look for any project where the MP3 players plays ambient noise, then changes at a button press/input change, then back to ambient noise. If you had needed the ambient music AND the Whack A Mole noise at the same time- that may have required 2 players/shields. The way you have described it only needs one as the MP3 player can store many MP3 files to be played on demand.
It depends on the where you want to use them. If the surrounding is noisy and If you want to use them oudside you need more db than the shield can provide. But in your case... I would choice to keep and use only one tone, Like an alarm sound. ON/OFF.