70016 Parallax Inc, 70016 Datasheet - Page 128

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
Add these constant declarations to the Constants section of the program:
' Boe-Bot proportional control constants (from FollowingBoeBot.bs2).
Kpl
Kpr
SetPoint
CenterPulse
Copy these variable declarations from FollowingBoeBot.bs2, and paste them
into IrMultiBot.bs2's Variables section.
' Boe-Bot navigation variables (from FollowingBoeBot.bs2).
freqSelect
irFrequency
irDetectLeft
irDetectRight
distanceLeft
distanceRight
pulseLeft
pulseRight
Add two more variable declarations for IrMultiBot.bs2 functions.
' IrMultiBot.bs2 variables.
counter
operation
Add these two subroutines to the end of the program:
' -----[ Subroutine – Get_IR_Distances ]-------------------------------
Get_Ir_Distances:
distanceLeft = 0
distanceRight = 0
FOR freqSelect = 0 TO 4
NEXT
RETURN
LOOKUP freqSelect,[37500,38250,39500,40500,41500], irFrequency
FREQOUT 8,1,irFrequency
irDetectLeft = IN9
distanceLeft = distanceLeft + irDetectLeft
FREQOUT 2,1,irFrequency
irDetectRight = IN0
distanceRight = distanceRight + irDetectRight
CON
CON
CON
CON
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
-35
35
2
750
Nib
Word
Bit
Bit
Nib
Nib
Word
Word
Nib
Nib
' <--- New
' <--- New

Related parts for 70016