Step 6Sound Effects
Adding sounds to the system makes for a better game experience. It is nice to have sounds for the:
Fire, been shot, start, dead / out of lives sound, out of ammo..........
Ideally to add sounds you would use a fully featured audio shield like the wave shield.
keep me updated if you try this.
For simplicity and to save on build cost I chose just to use a piezo buzzer, this works well for most of the system tones, but it is tricky to use the piezo to make a good gun shot noise.
If you are interested in the details of making sounds on an arduino usining a piezo buzzer have a look at the melody example.
One simple and cheap way of adding better sound effects to your duinotagger is to use the electronics form a “record your own message” card. You can get the cards for £2/3 off ebay.
Mini instructable.
1. Remove the electronics from the greetings card.
2. Play around with the electronics for a while to get an idea for what it all does.
3. The card circuit will play the recorded sound as soon as it is powered. The card circuit draws about 50mA so can be powered direct from an arduino output, ideally you would power it at 3V to the card circuit (the same as the button cells that powered it previously), but I did not encounter any problems powering it with the 5v direct form the arduino. If you found that 5v was damaging the circuit you could diodes to reduce the voltage (just make sure you pick ones able to cope with 50mA).
4. Connect the arduino output to where the positive on the batteries originally powering the circuit would have been and connect the arduino ground to where the battery negative was. You should now find when the arduino output goes high the sound recorded on the card circuit is played.
Methods of recording the sound to the card circuit, you could just use the microphone (peizo transducer) that came with it or for slightly better sound quality you could use a potential divider (eg 10k pot) to connect it up to a computer and record directly to the circuit.
You may wish to consider adding an audio amplifier to make the sound effects a bit more impressive.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|












































