Tone Lab

for the tone lab, my codes seemed to have a problem; the “include pitches.h” on the very top of my code was highlighted red every time I tried to upload the code; the screen at the bottom was stuck at “uploading…” and would not proceed. Below is the copy: 

I know the speaker is working, since I got it to make noise with a potentiometer. However, my potentiometer was super unstable and the frequency kept changing by itself. Below is the video demonstrating that: 

IMG_6916

Although it was unstable, when I rotated the screw, the numbers on the serial monitor would show the correct increase/or decrease in number. This should’ve made the frequency change when I rotated the potentiometer, but maybe my circuit was wrong — the notes did not change.

I will update things as progress gets made

I tried the ‘blink’ example to see if my port was working, but it also did not work; the screen is still stuck and uploading stage. I will book an office hour to figure this problem out. 

Leave a Reply

Your email address will not be published. Required fields are marked *