28122 Parallax Inc, 28122 Datasheet - Page 135
28122
Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet
1.28123.pdf
(340 pages)
Specifications of 28122
Accessory Type
Parts Kit
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 135 of 340
- Download datasheet (6Mb)
counter
this:
You can also make the servo turn the opposite direction by counting down instead of
counting up. In PBASIC,
argument is larger than the
FOR…NEXT
You can combine counting down with a
quickly in the clockwise direction like this:
The trick to getting the servo to turn at different rates is to use these
count up and down with different step sizes. The next example program uses these
techniques to make the servo’s horn rotate back and forth at different rates.
Example Program: ServoVelocities.bs2
' What's a Microcontroller - ServoVelocities.bs2
' Rotate the servo counterclockwise slowly, then clockwise rapidly.
' {$STAMP BS2}
' {$PBASIC 2.5}
counter
DO
DEBUG "Pulse width increment by 8", CR
FOR counter = 500 TO 1000 STEP 8
NEXT
PULSOUT 14, counter
PAUSE 7
DEBUG DEC5 counter, CR, CRSRUP
√
√
√
FOR counter = 500 TO 1000 STEP 8
FOR counter = 1000 TO 500
FOR counter = 1000 TO 500 STEP 20
each time through the loop (instead of 1) by modifying the
Enter and run the program.
As the program runs, watch how the value of
Terminal.
Also, watch how the servo behaves differently through the two different
FOR…NEXT
loop count from 1000 to 500:
VAR
loops. Both the servo’s direction and speed change.
Word
FOR…NEXT
EndValue
loops will also count backwards if the
argument. Here is an example of how to make a
STEP
argument to get the servo to rotate more
counter
changes in the Debug
FOR…NEXT
FOR
statement like
StartValue
loops to
Related parts for 28122
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: