B) Describe the tone pattern you hear (i.e., high or low? how long? etc)
It goes from low to high to medium and so on.
✔
C) Tell a member of the teaching team what your song is (or better yet, play it for us). If you don't know the name, just decipher some of the lyrics.
It's the Swedish Chef
✔
Does this code play all the songs in all the directories of the SD card? If not, which songs does it play? How does it keep from playing the text file?
The code plays all the songs in the SD card.
✔
Change the 'song' code to save the current volume setting in your EEPROM and fetch and set that value during initialization. Note that the first max_num_songs*max_name_len (in this case, 520) bytes of the EEPROM are used to store file names, so don't overwrite those.
EEPROM.write(999,currentVolume);
Then, I changed the volume setting line from the beginning of setup():
mp3.volume(EEPROM.read(999));
✔
D) Draw us a quick sketch of what your circuit looks like.
What are the pros and cons of using this method?
Pros: the interrupt handler might not be called multiple times for only one button push. Cons: it may take more time because of debouncing.
Now, take what you learned to make an interrupt driven pause function for your Barebones MP3 player
Comments (1)
Benjamin Tee said
at 11:53 pm on Aug 20, 2012
-1 no video of mp3 player working
-0.5 no sketch of interrupt
You don't have permission to comment on this page.