background image

Copyright © Parallax Inc.   

 

Page 5 of 8 

Demonstration Program 

'{$STAMP BS2} 
'{$PBASIC 2.5} 
 
counter VAR Word 
 
DO  ' Repeat forever 
  FOR counter = 1 TO 100 ' Loop for 2 seconds 
    PULSOUT 0, 850 ' Servo counterclockwise 
    PAUSE 20 
  NEXT 
 
  FOR counter = 1 TO 100 ' Loop for 2 seconds 
    PULSOUT 0, 650 ' Servo clockwise 
    PAUSE 20 
  NEXT 
 
  FOR counter = 1 TO 100 ' Loop for 2 seconds 
    PULSOUT 0, 750 ' Servo stop 
    PAUSE 20 
  NEXT 
 
LOOP 

A servo can drain a fresh 9 V battery in less than 20 minutes. For tips on using a separate power 
supply for a servo on the HomeWork Board, see the Parallax servos product pages (see For More 
Information, at the end of this document). 

 

Propeller BOE and Propeller QuickStart 

 

Propeller BOE Wiring Diagram

 

Summary of Contents for 900-00008

Page 1: ...ot or model car Standard servo motors made for hobby radio control are designed to spin in a limited circle The Parallax Continuous Rotation CR Servo has the same size and shape as a standard servo bu...

Page 2: ...kwise At 1575 s the motor will turn a little faster and so on You can apply timing pulses shorter than 1300 s and greater than 1700 s however motor speed is not increased beyond these values Parts Lis...

Page 3: ...vo so they are not intended to move heavy loads They re useful for demonstration only To operate bigger loads the servo motor should be connected to its own 4 8 V to 6 V battery supply See the links b...

Page 4: ...Copyright Parallax Inc Page 4 of 8 BASIC Stamp 2 HomeWork Board Calibration Program STAMP BS2 PBASIC 2 5 DO Repeat forever PULSOUT 0 750 Stop PAUSE 20 LOOP...

Page 5: ...2 seconds PULSOUT 0 650 Servo clockwise PAUSE 20 NEXT FOR counter 1 TO 100 Loop for 2 seconds PULSOUT 0 750 Servo stop PAUSE 20 NEXT LOOP A servo can drain a fresh 9 V battery in less than 20 minutes...

Page 6: ...ide 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...

Page 7: ...ude the Servo32v7 object in the same folder as the program file The Servo32v7 object is included in the download archive file See using Propeller object libraries for more information on using Propell...

Page 8: ...full documentation You may substitute the Parallax Standard Servo 900 00005 if you want a regular R C servo motor that turns only in a limited arc Use the following pulse widths to control the motor o...

Reviews: