Activity 3: Moving Your Servo Motors
Introduction
In the third activity, you will create a sketch to rotate a servo motor. Servo motors
allow movement to a set position regardless of the start position. The TETRIX servo
motors have a limited range of motion from 0 to 180°. For example, you can tell a
servo to go to position 45° regardless of where it starts. If it starts at 0°, it will move
clockwise to 45°. If it starts at 120°, it will move counterclockwise to 45°.
Figure 34
Open the Program
Before you open your next example sketch, be sure to save any sketch you want
to reference later. Let’s start by looking at the example sketch. Open the sketch by
selecting Examples > GS_Activity_3. A new sketch window will open titled GS_
Activity_3 (Figure 34).
Parts Needed
1x
6 V NiMH Battery
Pack 40235
1x
TETRIX® PULSE™
Controller 44268
1x
3-Foot Type A-B USB
Cable 40967
1x
Computer
1x
HiTec HS322-HD Servo
Motor 40538 with Servo
Mounting Bracket 40232
(Assembly instructions
on pages 54-55)
Getting Started Activities 33