70016 Parallax Inc, 70016 Datasheet - Page 117

TEXT INFRARED REMOTE FOR BOE-BOT

70016

Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 70016

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
For Use With
29122 - KIT PARTS IR REMOTE FOR BOE-BOT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
70016SE
Manufacturer:
ST
0
DEBUG "Main routine running..."
DO
LOOP
How IrRoamingWithSpeedControl.bs2 Works
A speed control variable is added to the Declarations section. The variable is wisely
named
A
Bot to roam at.
A
value is set to 100 by the user, the Boe-Bot will roam at full speed. When a value less
than 100 is entered, the Boe-Bot will roam at a percentage of full speed.
FREQOUT 8, 1, 38500
irDetectLeft = IN9
FREQOUT 2, 1, 38500
irDetectRight = IN0
IF (irDetectLeft = 0) AND (irDetectRight = 0) THEN
ELSEIF (irDetectLeft = 0) THEN
ELSEIF (irDetectRight = 0) THEN
ELSE
ENDIF
PULSOUT 13,pulseLeft
PULSOUT 12,pulseRight
PAUSE 15
DEBUG
DEBUGIN
pulseLeft
pulseRight =
pulseLeft
pulseRight = 750 + speed
pulseLeft = 750 - speed
pulseRight = 750 - speed
pulseLeft = 750 + speed
pulseRight = 750 - speed
speed
speed
DEBUG CLS, "Enter percent of", CR,
DEBUGIN DEC speed
command prompts you to enter the percent of full speed that you want the Boe-
command stores the value you enter into the
.
=
= 750 + speed
750 - speed
750 + speed
"full speed (0 TO 100): "
VAR
Byte
' <-- Add
' <-- Change
' <-- Change
' <-- Change
' <-- Change
' <-- Change
' <-- Change
' <-- Change
' <-- Change
' Main Routine
' Check IR Detectors
' Decide how to navigate.
' Apply the pulse.
' Repeat main routine
' <-- Add
' <-- Add
' <-- Add
' <-- Add
speed
variable. If the
speed

Related parts for 70016