This week we are looking at how to use servos & make tones with Arduino.
I didn't have difficulty with setting up the tone lab. However, I did accidentally mix up the potentiometer connection and I thought I had fried the USB bus on my Mac. Instead, it was apparently shutting off to protect itself. Yay.
Making 'music' with the Tone library is incredibly difficult. This lab reminds me of why many tones made by devices are always so bad. Two in particular come to mind: the MetroCard turnstile and the new microwave/convection ovens at Starbucks. [A YouTube of the Starbucks oven noise. It's pretty bad.]
After class, I thought the idea of a servo capable of rotating 360 degrees sounded pretty cool. I stopped by the NYU computer store and picked one up. I should have done some research first. My expectation was that the servo could be set for any location around 360 degrees or setup to spin. I had an idea of some type of cooky directional sign/elevator sign that could occasionally go crazy.
I was at school this weekend preparing for my group's applications presentation and had an opportunity to learn how the laser cutter works. So I cut myself a cardboard arrow to use with the servo.
In reality, a continuous rotation servo does just that. It rotates continuously. I couldn't get it to reliably stop where I wanted and there doesn't seem to be an index starting point to send it to. [so I ensure it always stops in the same place] That was kind of disappointing. Reviewing documentation for the servo library and for a similar part on sparkfun, it seems I was incorrect in assuming a continuious rotation servo works the same way as a standard one.
What part could I use instead? A stepper motor? Another kind of servo?
Here is the code I was using for these labs: