Parallax Continuous Rotation Servo Manual Download Page 6

Copyright © Parallax Inc.

 

 

Parallax Continuous Rotation Servo (#900-00008) 

v2.2  10/24/2011  Page 6 of 8 

 

Voltage and RPM: 

Maximum  RPM  will  vary with input voltage; 50 RP M  @  5 V is  typical.    Using 

regulated  Vdd  as the sup ply  source will  reduce fluctuations  in RPM for a given pulse width that might 

otherwise occur with unregulated battery supplies.  

BASIC Stamp

® 

Programming Examples 

PBASIC has a PULSO UT command that  sets the I/O 

Pin to an output and sends a pulse of  the specified 

Duration.  Since the servo needs this pulse refreshed every 20 ms for continuous operation, the PULSOUT 

command is put in a coun ted FOR…NEXT loop to su stain continuous operation for the speci fied number 

of cycles. 

 

PULSOUT 

Pin, Duration 

 

Different  BASIC  Stamp m odules  use  different  units for the P ULSOUT  command's 

Duration  argument.  

When adapting BS2 code to another BASIC Stamp model, you may need to make adjustments. The table 

below lists the PULSOUT ranges for each BASIC Stamp microcontroller.  See the BASIC Stamp Manual or 

BASIC Stamp Editor Help for more information. 

 

BASIC Stamp Model 

1.3 ms

 (Full speed clockwise) 

1.5 ms 

(Center, no rotation) 

1.7 ms 

(Full speed counterclockwise) 

BS1 

130 150 

170 

BS2, BS2e, BS2pe 

650 750 

850 

BS2sx, BS2p, BS2px 

1625 1875 

2125 

   

The example shown below for a BASIC Stamp 2 causes  a servo connected to BASIC Stamp 1/0 pin 12 to 

first  rotate  full-speed  counterclockwise  for  about  3  seconds,  hold still f or  about  3  seconds,  and  then 

rotate counterclockwise for about 3 seconds.   

 

' RotateParallaxCrServo.bs2 
' {$STAMP BS2} 
' {$PBASIC 2.5} 
 
counter VAR Word 
servoPin PIN 12             ' change I/O pin for servo signal here 
 
 
FOR counter = 1 TO 100      ' Rotate counterclockwise for ~3 seconds 
 
  PULSOUT servoPin, 850 
  PAUSE 20 
 
NEXT 

Summary of Contents for Continuous Rotation Servo

Page 1: ...mounting screws Easy to interface with any Parallax microcontroller or PWM capable device Very easy to control with the PULSOUT command in PBASIC or SX B Weighs only 1 50 oz 42 5 g 38 oz in torque 6...

Page 2: ...gram below for jumper settings Servo current draw can spike while under peak load be sure your application s regulator is prepared to supply adequate current for all servos used in combination Board o...

Page 3: ...o their holder Vbp Vss P12 White Red Black Vbp Vss P13 White Red Black P15 P14 P11 P10 P9 P8 P13 P12 X3 Vdd Vss Vin 916 624 8333 www parallaxinc com www stampsinclass com Rev B P15 P14 P11 P10 P9 P8 P...

Page 4: ...servo may take some patience The potentiometer is very sensitive so a very light touch will be required CenterParallaxCrServo bs2 STAMP BS2 PBASIC 2 5 SELECT Stamp CASE BS2 BS2E BS2PE PULSOUT Duratio...

Page 5: ...allax Continuous Rotation Servo is controlled through pulse width modulation Rotational speed and direction are determi ned by the d uration of a high pulse in the 1 3 1 7 ms range In order for smooth...

Page 6: ...ifferent units for the P ULSOUT command s Duration argument When adapting BS2 code to another BASIC Stamp model you may need to make adjustments The table below lists the PULSOUT ranges for each BASIC...

Page 7: ...from the 900 00008 product page ServoContinuousRotation spin Turn Parallax Continuous Rotation Servo clockwise full speed for 21 sec hold still 2 sec and then counterclockwise full speed for 2 sec CO...

Page 8: ...lockwise fast pulse t tC 200 Calculate next cycle repeat waitcnt t Wait for next cycle 20 ms Revision History Version 2 1 corrected values in BASIC Stamp Model PULSOUT table updated example programs t...

Page 9: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Parallax 900 00008...

Reviews: