Physical computing. Servo Lab.

Servo Motor Control with an Arduino

I am posting this lab from week 4 a little late.

There were a series of problems I had once I followed the lab instructions. The sensor’s analog value turned out to definitely not be 0-1023. It turned out to work best (after my other discovery below) at a value of 0-700.

The other problem I had was that I had placed my pin for the sensor to be A1 because that is the way the picture showed it. But the written directions were to stick the pin in A0, and the programming code reflected that. I was wondering why the servo was not turning much at all and I finally looked over everything after trying out different analog values and it turned out to be that the sensor was still reading something at the A1 pin, but it needed to be in the A0 pin. Interesting.



fail: http://vimeo.com/30926078

success:

Here is the video of my “creative” interpretation of the lab. A mini surrender/”I’m sorry” flag wave.

Advertisements

Leave a Reply

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: