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

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Gilliland Lab 6

Page history last edited by abbygill@... 8 years, 8 months ago

Part B

3. Describe the tone pattern you hear (i.e., high or low, how long, etc.).

3 different pitches, from high to medium to low, repeating

 

Part C

Tell a member of the teaching team what your song is (or better yet, play it for us).

Absolutely Cuckoo, then Baba Yetu, then Adiemus, then Somewhere Over the Rainbow/What A Wonderful World

 

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?

Yes it plays them all, but not the datalog file. It only reads the MP3 files, not the text files.

 

Part D

Draw us a quick sketch of what your circuit looks like.

See image IMG_0144.JPG

 

What are the pros and cons of using this method?

Pros: The buttons work. Before, when you press the button 15 times, it stops reacting properly. After debouncing the button works properly when pressed 15 times. 

Cons: The button is more reliable, but if you press the button many times quickly it doesn't always work. 

 

 

void loop() {

  switch(current_state) {

    //if (analogRead(A5) < 450){

    if (digitalRead(A5) == LOW){

    current_song++;

    sd_file_open();

    }

 

zahraa@stanford.edu

 

 

Comments (0)

You don't have permission to comment on this page.