P Comp Week 3 Labs

To start this lab, I did not have a working speaker, so I rigged this tool I have from work that can take an input and produce it over a small built in speaker. I soldered a 1/4″ jack to a ground and hot wire to put into my breadboard to replace the “+” and “-” terminals of the speaker.

Checking the sensor input range and that the speaker works…

Playing tones and the most depressing renditions of Twinkle Twinkle Little Star and Seven Nation Army…

These were a little tricky to find the proper delay times in between certain notes. So I just kept guessing and trying different values.

Now with a speaker … and a more complex example using pitches.h…

Servo Motor control with an Arduino

I’m not really sure what I’m doing wrong, although I know I am not using an FSR, I tried to print the range of the potentiometer with analogRead(), but this is as much as I can get the servo to move.

Leave a Reply