This video outlines both how a servo work, and how to control one using the Raspberry Pi using pulsewidth modulation.Learn more about programming, electronics, and the Raspberry Pi at:http://cutequbit.zapto.org