29122 Parallax Inc, 29122 Datasheet - Page 9

KIT PARTS IR REMOTE FOR BOE-BOT

29122

Manufacturer Part Number
29122
Description
KIT PARTS IR REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 29122

Accessory Type
IR Remote
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Boe-Bot Application for the BASIC Stamp 2
This next application requires a Boe-Bot robot with a BASIC Stamp 2 module which you will be able to
control by pressing and holding the numeric keys to execute the maneuvers shown in the figure. In
addition, you can use CH+ = forward, CH- = backward, VOL+ = rotate right, VOL- = rotate left.
The routine below is for a Boe-Bot robot with Parallax Continuous Rotation servos. Its left servo should
be connected to P13, and its right servo connected to P12. If you have Parallax PM servos, use 500 in
place of 650 and 1000 in place of 850 for the PULSOUT command duration arguments.
© 2004 Parallax Inc. • IR Remote AppKit (#29122) • 10/2004
LOOP
Replace the DO…LOOP in the IrRemoteButtonDisplay.bs2's main routine with this one, run it,
and operate the Boe-Bot with your remote. Have fun!
DEBUG CR, CR, "Press and hold digit", CR, "or CH+/-, VOL+/- keys", CR,
DO
LOOP UNTIL (remoteCode = Enter)
DEBUG ? value, CR, "Ready for next value...", CR
GOSUB Get_Ir_Remote_Code
SELECT remoteCode
LOOP UNTIL (remoteCode < 10) OR (remoteCode = Enter)
CASE 2, ChUp
CASE 4, VolDn
ELSE
ENDIF
"to control the Boe-Bot..."
PULSOUT 13, 850
PULSOUT 12, 650
DEBUG "Use digit keys or ENTER", CR
PAUSE 300
DEBUG "You pressed: "
IF remoteCode = Enter THEN
ELSE
ENDIF
PAUSE 300
DEBUG "Enter", CR
DEBUG DEC remoteCode, CR
' Forward
' Rotate Left
Numeric Keypad
Direction Control
Page 9 of 10

Related parts for 29122