28125 Parallax Inc, 28125 Datasheet - Page 204

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
Solutions
Q1. A tactile switch.
Q2. Zero (0) volts, resulting in Binary zero (0) at the input register.
Q3. IN7 = 1 means the right whisker is not pressed.
Q4. The
Q5. The program can check for one condition, and if that condition is true, it can
E1. The key to solving this problem is to use a second
E2.
IN8 = 0 when whisker is pressed. IN8 = 1 when whisker is not pressed.
IN7 = 0 means the right whisker is pressed.
IN5 = 1 means the left whisker is not pressed.
IN5 = 0 means the left whisker is pressed.
to decide which subroutine to jump to. That decision is based on conditions,
which are logical statements that evaluate to true or false.
check for another condition within the first condition.
place the right whisker state in the proper place on the screen. To line up with
the headings, the text should start on column 9 of row 3.
' Robotics with the Boe-Bot - TestWhiskers_UpdateEaOnNewLine.bs2
' Update each whisker state on a new line.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "WHISKER STATES", CR,
DO
LOOP
Turn
DEBUG CRSRXY, 0, 3, "P5 = ", BIN1 IN5
DEBUG CRSRXY, 9, 3, "P7 = ", BIN1 IN7
PAUSE 250
GOSUB Back_Up
GOSUB Turn_Left
GOSUB Turn_Left
RETURN
GOSUB
_
Away
"Left
"------
command performs the actual jump. The
:
Right", CR,
------"
' Stamp directive.
' PBASIC directive.
' Print in Column 0,Row 3
' Print in Column 9,Row 3
' Change from 50 to 250
IF
CRSRXY
...
THEN
command that will
command is used

Related parts for 28125