
Copyright © Parallax Inc.
Page 6 of 8
Propeller QuickStart Wiring Diagram
Important!
Use a separate AA-size battery pack to power the servo. Connect as shown, being
sure not to mix up any of the wires. You can use alkaline or nickel metal hydride (NiMH) cells.
Calibration Program
OBJ
SERVO : "Servo32v7.spin"
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
ServoCh1 = 0
PUB Servo32_DEMO | temp
SERVO.Start
repeat
SERVO.Set(ServoCh1,1500) ' Stop
repeat 800000
Demonstration Program
OBJ
SERVO : "Servo32v7.spin"
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
ServoCh1 = 0 ' Servo to pin 0
PUB Servo32_DEMO | temp
SERVO.Start ' Start servo handler
repeat
SERVO.Set(ServoCh1,1700) ' Pin, width -- CCW
repeat 800000 ' Wait