Sweeping The Servo By 180 Degrees - oddWires Arduino Robotics Kit With Motor Shield Manual

Table of Contents

Advertisement

Sweeping the Servo by 180 Degrees

In this section we learn how to use a servo with Arduino. We will sweep the shaft of a RC
servomotor
back and forth across 180 degrees.
This example makes use of the Arduino
Hardware Required
Arduino Board
(1) Servo Motor
Jumper wire
Circuit
Servomotors have three wires: power, ground, and signal. The power wire is typically red, and
should be connected to the six-volt power supply. The ground wire is typically black or brown and
should be connected to a ground pin on the Arduino board AND the 6V power supply. It is essential
that there is a common ground. The signal pin is typically yellow, orange or white and should be
connected to pin 9 on the Arduino board.
Click the image to enlarge
Image developed using Fritzing. For more circuit examples, see the
Sweeping the Servo by 180 Degrees
servo
library.
Fritzing project page
10
Arduino Robotics Kit

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Arduino Robotics Kit With Motor Shield and is the answer not in the manual?

Table of Contents