Data Sheet
37
Lesson 12
Servo Motor
Overview
In this lesson, you will master how to control a servo motor with the UNO
R3 or MEGA
2560 
board.
Components
Required
Name
Qty
Name
Qty
UNO
R3 or MEGA
2560
1
DuPont Wire
3
Servo (SG90)
1
Component
Introduction
Servo  motor  is  a  kind  of  geared  motor  that  can  rotate
with  a  certain  angle 
according to the input pulse's frequency an duty cycle.
The input pulse frequency 
and duty cycle should be in a certain range for proper operation.
A servo motor 
can usually only turn 90° in  either direction for  a  total  of  180° movement. The 
PWM signal can be sent to servo to
move the shaft to
the desired position.
Wiring Diagram
Result
After downloading  the example,
the servo motor turn
left at  15˚ every
second, then come 
back to initial position at the same speed. In next
loop, it will turn left at a higher
speed and 
then come back.










