Introduction: ENJOY WITH SOUNDS
The aim of this project is to create a new product that solves some kind of problem using an arduino board to make a quick prototype.
Step 1: Problem Definition
Nowadays, children do not seem anymore interested on music and instruments. One of the reason we think this happens is because, with all the technology that they are surrounded, they do not grow that interest on how music is done. From this idea we thought, why don’t we use technology to solve this problem? And that's how we originated our product! Based on the classic Simon Says, we will create a game that will help children learn the different kind of musical instruments that are used on different styles of music.
Step 2: Solution Proposed
We will code the arduino board so that we can control the information given by 5 different buttons so that, first, a led will turn on at the same time that the sound of and instrument sounds. Then the kid will have to push the same button. It is the same function that Simon Says use but using the sound of different types of music instruments. That way the kid will relate the sound of the instrument with the image of the instrument.
Step 3: Parts: Elements to Do a Playgame
Arduino Uno Board: 1 unit
Jumpers: 1 unit of package model
Proto Board: 1 unit
Resistance: 5 units
Led: Button: 5 units
Speaker: 1 unit
Battery: 1 unit
SD Card: 1 unit
Battery 9Volts: 1 unit
Case drawings: 1 unit
Step 4: Circuit Format
Step 5: CODE
I post the game file "PlayMemmory". We have been inspired by a folder of the game Simon but with 5 buttons, instead of 4. To work with files to play music you have to use the library "TMRpcm-master". Therefore what you have to do is open the ardunio library and attach the folder that I will put below.
The code of the game is simple and commented. But I've been inspired by two folders to create the game.
On the other hand, the folder "DFPlayer-Mini-mp3-master" is responsible for checking if the reading of the WAV files works. To go to the file you have to go: C: \ DFPlayer-Mini-mp3-master \ DFPlayer_Mini_Mp3 \ examples \ DFPlayer_sample
On the one hand you control the buttons with the LEDs, the buttons and their file in WAV format. To locate the file you have to go: C: \ Button-master \ Button-master \ examples \ SimpleOnOff
I share the folders with your code so you add more buttons and more sounds.
Step 6: Prototype
POSTER AND CASE
To make the model of the case we used the laser cut. We will hang the file "template.dxf" so you can cut it in a laser machine if you have. We must say that we will post an example "viento" and "cuerda" of the music files in wav format and its respective poster.
To convert mp3 files to WAV, I show you the program "ffmpeg" with the format that arduino can read.
- 8 bits
- Audio format (mono). Because we use a speaker.
It is important that you convert the mp3 file to wav in the same "bin" folder. There must be files in the same bin folder to convert. It must go inside "ffmpeg-20171109-723b6ba-win64-static" to:
C: \ ffmpeg-20171109-723b6ba-win64-static \ bin
We have a be nice policy.
Please be positive and constructive.