• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.


Lab 6 write up

Page history last edited by Benjamin Tee 8 years, 1 month ago

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.


Then, I changed the volume setting line from the beginning of setup():


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.