SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on the software and hardware for Atmel's STK standard.
By robocycle
#166032
Hey guys,

I bought the arduino to play around with for the summer and a servo to go along with it. I played with the library included, and now for my embedded systems class, I want to use my servo for my project. However, I'm not entirely sure how to use it with the ATMega. I don't want to just copy the code over to use either, but I do understand how to use the hardware timers and what PWM is.

I've googled how to control servos, but the links I've found have only redirected me to setting the position of the servo to 0, 90, or 180 degrees. How do I control the servo so that it only moves 1 degree, such as in the Arduino Servo Knob example?

http://arduino.cc/en/Tutorial/Knob