Wednesday, February 18, 2009

Week 4 Programming a Servo & Getting my Wires Crossed

This week we learned how to program a MicroController
So this week Gordie and I worked on getting the arduino to activate a servo motor using an analog input device. We chose a flex sensor, since we had purchased them for an earlier project.
Here Gordie working the MicroController



My servo had a little bit of the shakes due to some shady wiring on my part, here's I am testing my microcontroller seems a little nervous



Thankfully Todd helped me sort out my breadboard (I was shorting out my board due to the incorrect wires) and lived to tell the tale. Here's my servo being much more relaxed


Video thumbnail. Click to play
Click To Play

Afterwards, we hooked up an 8 ohm speaker to the arduino unit and programmed it to play a melody. The moment the unit started putting out its music was super cool.


We tried the other melody program, but that resulted in only some odd tones. I looked up the key progressions for “Twinkle, Twinkle, Little Star”, and we tried to program the arduino to play it, but what came out went more like, Radiohead's "Idioteque" which was cool but not exactly what we had in mind.
So we still have a ways to go in mastering the use of the arduino as a musical device. Perhaps that could be our mid-term project!

No comments:

Post a Comment