27403 Parallax Inc, 27403 Datasheet - Page 113

GUIDE APP ROBOTCS W/SUMOBOT V1.0

27403

Manufacturer Part Number
27403
Description
GUIDE APP ROBOTCS W/SUMOBOT V1.0
Manufacturer
Parallax Inc
Datasheet

Specifications of 27403

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
SumoBot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
The code block below takes less time than an
surface. It starts like it's going to take an
waiting 1 ms for the V
code bock changes P9 from output to input. That's the same thing the
does internally, and it's what causes the voltage to start to decay. Instead of waiting for
the voltage to decay all the way to 1.4 V like the
block sends a
(the pushbutton).
Keep in mind that the
Figure 3-15 shows what happens in terms of the signals. The instant the
command finishes is the instant the threshold amount of time has passed. The code block
takes a snapshot of
QtiStateLeft
store 0. If the QTI sees black, V0 will not have decayed below 1.4 V, and
store 1.
What about the pushbutton?
True, P6 is connected to the pushbutton, but while the pushbutton is not being monitored,
PULSOUT commands can be sent to it. It is safe to be used as an output because of the 470
Ω current-limiting resistor between the I/O pin and the pushbutton terminal. Regardless of
whether the pushbutton is pressed or not pressed, the I/O pin is protected. Before the
pushbutton is checked, P6 will have to be set back to input with the command INPUT 6, or
if you have used the PIN declaration for it in your program, INPUT pbSense.
HIGH 9
PAUSE 1
INPUT 9
PULSOUT 6, threshold
qtiStateLeft = IN9
PULSOUT
. If the QTI sees white, V0 will have decayed below 1.4 V, and
IN9
0
Duration
at that instant by copying the value it stores into a variable named
to approach 5 V. Instead of taking an
command to an I/O pin whose circuit will not be affected by it
of this
PULSOUT
RCTIME
RCTIME
command is the
measurement, by setting P9 high and
RCTIME
command would over a black
command would, this code
RCTIME
threshold
RCTIME
measurement, the
command
PULSOUT
variable.
IN9
IN9
will
will

Related parts for 27403