Servo Control

04/11/2015

Digital servo’s are used for a number of applications for example RC toys, drones, biped robots for joint movement. Servo’s range in sizes and prices

Servo1Servo2

When working with servo’s we are using Pulse Width Modulation(PWM) for controlling the servo. In the video below we can see that there three positions set on circular arrows. When we look at the straight ahead or 90 degree position our PWD is set at cycle rate of 1.5ms. If this cycle rate changes to a rate of 1ms the position of our servo moves to the 0 degree position. If this cycle rate changes to a rate of 2ms the position of our servo moves to the 180 degree position.

Lets look at a simple program for moving the servo from position 0 to 90 then to 180.