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

Copyright © Parallax Inc.   

 

Page 8 of 8 

Demonstration Program 

#include <Servo.h> 
Servo myServo;        // Create Servo object to control the servo  
 
void setup() {  
  myServo.attach(9);  // Servo is connected to digital pin 9  
}  
 
void loop() {  
  myServo.writeMicroseconds(1700);  // Counter clockwise 
  delay(2000);                      // Wait 2 seconds 
  myServo.writeMicroseconds(1300);  // Clockwise 
  delay(2000); 
  myServo.writeMicroseconds(1500);  // Stop 
  delay(2000);  

Note: 

These sketches use the Servo library, which is included with the Arduino IDE software. 

 

For More Information 

 

See th

Parallax 

Continuous Rotation Servo (#900

-

00008)

 

store page for full documentation.

 

 

You may substitute th

Parallax Standard Servo (#900

-

00005)

 if you want a regular R/C servo 

motor that turns onl

y in a limited arc. Use the following pulse widths to control the motor:

 

o

 

1000 μs: Turn clockwise

 

o

 

1500 μs: Center

 

o

 

2000 μs: Turn counterclockwise

 

 

The product pages for

 the standard and continuous rotation servos provide downloads for the 

full product documen

tation and wiring diagrams for separate power supplies.

 

 

Several Parallax development and education boards provide integrated 3-pin headers for easy 

connecting to servos 

(either 4 or 6 headers, depending on the board).

 

These products 

the  

Parallax Board of Education (BASIC Stamp 2)

, 

Board 

of Education Shield (for 

Ardui

no)

, 

Propeller Board of Education

, an

Propeller Activity Board WX

.

 

 

  

 

Содержание 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...

Отзывы: