28824 Parallax Inc, 28824 Datasheet - Page 7

SERVOPAL SERVO PULSER TIMER

28824

Manufacturer Part Number
28824
Description
SERVOPAL SERVO PULSER TIMER
Manufacturer
Parallax Inc
Datasheet

Specifications of 28824

Accessory Type
Servo Motor Control
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
BASIC Stamp®
For Use With
28803 - KIT BOARD OF EDU W/O PWR SUPP
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
The program works like this:
Here’s the program:
' =========================================================================
'
'
'
'
'
'
'
'
'
'
'
' =========================================================================
' -----[ Program Description ]---------------------------------------------
' This program uses the ServoPAL in conjuction with IR emitters and
' detectors to steer the BOE-Bot past obstacles in encounters in its
' path.
' -----[ I/O Definitions ]-------------------------------------------------
IRDetR
IREmtR
IREmtL
IRDetL
nInp
Alarm
' -----[ Constants ]-------------------------------------------------------
NONE
RIGHT
LEFT
© Parallax, Inc. • ServoPAL (2007.10.30)
1. Start the BOE-Bot moving forward.
2. Keep checking for obstacles until one is found.
3. If obstacle is on left or right, begin turning in opposite direction.
4. If obstacle is in front, back up for one second, then begin turning right for at least ½ second.
5. Continue evasive action until clear of obstacles AND any timed motion has completed.
6. Go to step 1.
File...... ServoPAL_IR_Roaming.bs2
Purpose... BOE-Bot IR Roaming Program using ServoPAL
Author.... Parallax, Inc.
E-mail.... support@parallax.com
Started... 2007.10.29
Updated...
{$STAMP BS2}
{$PBASIC 2.5}
PIN
PIN
PIN
PIN
PIN
PIN
CON
CON
CON
0
2
8
9
12
13
0
1
2
'Righthand IR detector.
'Righthand IR emitter.
'Lefthand IR Emitter.
'Lefthand IR detector.
'ServoPAL input pin.
'ServoPAL alarm pin.
Page 7 of 9

Related parts for 28824