This is a two bank, 25 button Sound Effects/Audio Machine that triggers one sound effect (or any audio file) per button, which is read off an SD card that you populate. Change the bank switch from A to B to get a whole new set of audio to trigger. Perfect for podcasts.
This design has been updated to add a stop button to stop what audio is playing as well as a bank button to double the amount of audio tracks you can trigger (updated 6-9-19) Check the zip file for updated schematics and code. I did not include holes for the stop button, the bank switch or the bank B LED on the printable Main_Case.STL. You can drill them according to your choice of buttons/switches. The LED hole should be 5mm. I have also included the 3DS Max file in the .zip so you can add the holes or modify the case as needed.
Overly Simple Instructions:
- Load up to 50 sound effects on to the SD card and insert the card into the Sound Effects/Audio Machine's card slot.
- Power on the device.
- With the Bank Switch in A, press and hold one of the 25 buttons to ready your sound effect.
- Release the button to trigger audio from tracks 1-25.
- With the Bank Switch in B, press and hold one of the 25 buttons to ready your sound effect.
- Release the button to trigger audio from tracks 26-50.
- If needed, press the Stop Button to stop what ever audio is playing.
Schematics, diagrams, illustrations and code are in the zip file.
The resistor values I have used for the key matrix can be modified to your liking. Upload 'Get_Keyboard_Matrix_Values.ino' to the Arduino Uno and press each button a few times to see the values displayed in the serial monitor. Choose the highest value for each key and then add 1. Ex: if repeatedly pressing button 08 gives you a highest value of 768, use 769 as the variable in the main code's 'decode' function. If there are button values close to each other, such as button 08 being 769 and button 04 being 772, you can add resistance directly to one of the button legs to increase it's value. It's probably best to have at least a 10 value difference between any given buttons.
If you have any questions, email me at email@example.com
Materials I used:
SparkFun MP3 Player Shield
12x12x7.3 mm Tactile Push Button with Caps
Stop Button (normally open)
Micro SD to SD Card Extension Cable Adapter
SD Card (anything small and cheap will work)
5.5mmx2.1mm DC Power Jack
Rocker Switch for power
Stop Button (or any normally open momentary switch)
Bank Switch (or any spst rocker switch)
3.5mm Socket Headphone Jack
2.1mm DC wire pigtails
1/8" stereo male pigtail (Cheap solution, just cut the 1/4" end off and use the rest)
(1 kit) Resistors
Prototype Perfboard board
Note: I could not find online the original prototype boards I used, so with the above link,
you will need to cut two 2" x 5.6" (51.5 x 142mm) pieces and one 1.1" x 5.6" (27.5 x 142mm) piece.
The holes on the boards are 2.54mm apart center to center, but the gap between boards needs to be 3.42mm (See diagram)
Green 5mm LED
(1 box) wire
(1 Kit) Shrink Tube
Adhesive Rubber Feet Bumper Pads
Glue Gun and Glue