symbol for degrees. In math, a circle is divided
up into 360 slices called degrees. They’re
like the minute marks on a clock face. Half
a circle has half of 360 degrees, or 180.) The
midpoint is 90 degrees, where the servo shaft
points forward on the servo. This is the servo’s
neutral position, which means the motor is at
rest. So always start and end with your servo
at 90 degrees.
4. To move the servo to a different position, add
more servo blocks to the stack, and change
the position of the servo horn by using the
slider or typing in the number of degrees. To
avoid straining the little servomotor, don’t
make it go all the way to the ends. Limit its
movement so it only goes between around 10
degrees and 170 degrees (Figures
G
and
H
).
5. To give the servo time to move before the
program goes on to the next step, put a pause
from the Basic menu (blue) after every servo
block (Figure
I
). Set the pause for around
one second; that’s 1,000ms or milliseconds
(Figure
J
).
6. Remember to end with the servo at 90 degrees
(Figure
K
). That’s it!
This article was adapted
from the newly revised
Making Simple Robots,
2nd Edition, by Kathy
Ceceri, available now
from the Maker Shed
(makershed.com) and
fine booksellers.
91
make.co
F
H
J
I
K
G
M81_088-91_SimpRobots2_F1.indd 91M81_088-91_SimpRobots2_F1.indd 91 4/12/22 12:24 PM4/12/22 12:24 PM