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 comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: