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

  • Social distancing? Try a better way to work remotely on your online files. Dokkio, a new product from PBworks, can help your team find, organize, and collaborate on your Drive, Gmail, Dropbox, Box, and Slack files. Sign up for free.


Lab 6 write up

Page history last edited by Benjamin Tee 7 years, 9 months 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.