900-00008 Parallax Inc, 900-00008 Datasheet - Page 3

SERVO CONTINUOUS ROTATION

900-00008

Manufacturer Part Number
900-00008
Description
SERVO CONTINUOUS ROTATION
Manufacturer
Parallax Inc
Type
DC Servor
Datasheet

Specifications of 900-00008

Voltage - Rated
6VDC
Rpm
60 RPM
Shaft Rotational Direction
CW, CCW
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With
28824 - SERVOPAL SERVO PULSER TIMER
Features
-
Shaft Diameter
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
The servo is controlled by pulsing of its signal line. If you are using a Basic Stamp® microcontroller this is
done with the ‘pulsout’ command. Below is PBASIC code that will help you with basic control of a servo.
The code below will show center and then rotate the servo to the left and to the right then stop.
Basic Stamp 1 code
SYMBOL Temp = W0
SYMBOL Servo_pin
Stop
BASIC Stamp 2, 2e,2pe code
Temp
Servo_pin
STOP
BASIC Stamp 2sx,2p24/40 code
Temp
Servo_pin
STOP
© 2004 Parallax, Inc. • Continuous Rotation Servo (#900-00008)
FOR temp = 0 TO 200
PULSOUT Servo_pin,150
PAUSE 20
NEXT
FOR temp = 0 TO 200
NEXT
FOR temp = 0 TO 200
NEXT
FOR temp = 0 TO 200
NEXT
FOR temp = 0 TO 200
NEXT
FOR temp = 0 TO 200
NEXT
for temp = 0 to 200
next
for temp = 0 to 200
next
for temp = 0 to 200
next
pulsout Servo_pin,1875
pause 20
PULSOUT Servo_pin,180
PAUSE 20
PULSOUT Servo_pin,120
PAUSE 20
PULSOUT servo_pin,750
PAUSE 20
PULSOUT servo_pin,900
PAUSE 20
PULSOUT servo_pin,600
PAUSE 20
pulsout Servo_pin,2250
pause 20
pulsout Servo_pin,1500
pause 20
VAR
CON
VAR
CON
= 0
'
Word
0
Word
0
I/O pin
'Work space for FOR NEXT
'I/O pin that is connected to servo
'Work space for FOR NEXT
'I/O pin that is connected to servo
'Work space for FOR NEXT
'I/O pin that is connected to servo
Vdd
Vss
White
Red
Black
4/29/2004
Version 1.
3
Page 3

Related parts for 900-00008