logo

P Comp – Week 4 – Analog Output

For some reason I always want to write “Analogue” rather than “Analog.” Is that wrong? Maybe I’m thinking of it in relation to the word Analogy. I keep having to check my code to make sure I spelled it right….

Here I am using a force-sensitive resistor to control a servo:

Using a pair of photoresistors to change the output of a small piezo buzzer:

(I need a new camera. Half the time it won’t focus in movie mode.)

And getting the buzzer to play the ‘shave-and-a-haircut’ song, very off-key:

I also got it to play Ride of the Valkyries, but failed to record it because I got too caught up in the project it inspired: >>>>> on to the Stupid Pet Trick!!!

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post Details

Posted: October 20, 2011

By:

Comments: 0

Seo