70016 Parallax Inc, 70016 Datasheet - Page 115

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
In the next example program, a variable named
servos can be set with a
you can make the Boe-Bot roam at anywhere between 0 and 100 % of full speed.
The
lends itself to speed control. Instead of using the values 650 and 850 for full speed, the
values of
variable and then adding to or subtracting it from 750. Table 3-1 shows how the original
IF…THEN
statement from the next example program, IrRoamingWithSpeedControl.bs2.
On the "With Speed Control" side of the table, the
right servos use the
arguments. The command
speed
wheel rotates clockwise very slowly. As the
Bot's left wheel gets closer to full speed clockwise. Now, look at how
850
Without Speed Control
IF (irDetectLeft = 0) AND ••• THEN
ELSEIF (irDetectLeft = 0) THEN
ELSEIF (irDetectRight = 0) THEN
ELSE
ENDIF
pulseLeft = 650
pulseRight = 850
pulseLeft = 850
pulseRight = 850
pulseLeft = 650
pulseRight = 650
pulseLeft = 850
pulseRight = 650
IF…THEN
has been replaced with
. When
Sensor inputs
Messages from the Debug Terminal
Messages from an IR remote
statement from FastIrRoaming.bs2 looks next to the modified
pulseLeft
statement from FastIrRoaming.bs2 really needs some restructuring before it
speed
Table 3-1: Roaming Code with/without Speed Control
is a small value,
and
pulseLeft
DEBUGIN
pulseRight
pulseLeft = 650
pulseRight = 750 + speed
command. By entering a value between 0 and 100,
and
pulseLeft
should be determined by declaring a
pulseRight
speed
With Speed Control
IF (irDetectLeft = 0) AND ••• THEN
ELSEIF (irDetectLeft = 0) THEN
ELSEIF (irDetectRight = 0) THEN
ELSE
ENDIF
pulseLeft
pulseRight =
pulseLeft
pulseRight = 750 + speed
pulseLeft = 750 - speed
pulseRight = 750 - speed
pulseLeft = 750 + speed
pulseRight = 750 - speed
speed
is replaced with
is close to 750, and the Boe-Bot's left
variable gets closer to 100, the Boe-
PULSOUT
is added so that the speed of the
variables for their
=
= 750 + speed
. When
commands to the left and
750 - speed
750 + speed
pulseLeft = 750 –
speed
pulseRight =
is small, the
Duration
IF…THEN
speed

Related parts for 70016