Parallax 900-00008 Скачать руководство пользователя страница 6

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 

Содержание 900-00008

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: