70016 Parallax Inc, 70016 Datasheet - Page 131

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
The completed program is shown below in case you need to check it for trouble-shooting.
LOOP
Build, save, and run IrMultiBot.bs2.
Test the CH+/- , VOL+/- , and numeric keys and verify that it runs properly.
Press/release the POWER button. The Boe-Bot should beep twice.
Press/release the 2 key.
ENDSELECT
' If operation is 3, execute the following Boe-Bot routine.
CASE 3
IF IN9 = 0 THEN operation = 1
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
GOSUB Send_Pulse
IF IN9 = 0 THEN operation = 1
GOSUB Get_Ir_Distances
' Calculate proportional output.
pulseLeft =
pulseRight = SetPoint - distanceRight * Kpr + CenterPulse
GOSUB Send_Pulse
pulseLeft = 650
pulseRight = 850
pulseLeft = 850
pulseRight = 850
pulseLeft = 650
pulseRight = 650
pulseLeft = 850
pulseRight = 650
SetPoint - distanceLeft
* Kpl + CenterPulse
' <--- New.
' Check IR Detectors
' <--- Modified.
' <--- New
' <--- New
' <--- New
'(End SELECT operation)
' Repeat Main Routine.
' Decide how to navigate.

Related parts for 70016