EasyManuals Logo

Parallax Boe-Bot User Manual

Parallax Boe-Bot
360 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #126 background imageLoading...
Page #126 background image
Page 112 · Robotics with the Boe-Bot
Using the DEBUGIN Command
By now, you are probably familiar with the DEBUG command and how it can be used to
send messages from the BASIC Stamp to the Debug Terminal. The place the messages
are viewed is called the Receive windowpane because it's the place where messages
received from the BASIC Stamp are displayed. The Debug Terminal also has a Transmit
windowpane, which allows you to send information to your BASIC Stamp while a
program is running. You can use the
DEBUGIN command to make the BASIC Stamp
receive what you type into the Transmit windowpane and store it in one or more
variables.
The
DEBUGIN command places the value you type in the Transmit windowpane into a
variable. In the next example program, a word variable named
pulseWidth will be used
to store the values the
DEBUGIN command receives.
pulseWidth VAR Word
Now, the
DEBUGIN command can be used to capture a decimal value that you enter into
the Debug Terminal’s Transmit windowpane and store it in
pulseWidth:
DEBUGIN DEC pulseWidth
You can then program the BASIC Stamp to use this value. Here it is used in the
PULSOUT command’s Duration argument:
PULSOUT 12, pulseWidth
Example Program: TestServoSpeed.bs2
This program allows you to set the PULSOUT command’s Duration argument by entering
it into the Debug Terminal's Transmit windowpane.
Continue this activity with the Boe-Bot sitting on its nose so that the wheels do
not touch the ground.
Enter, save, and run TestServoSpeed.bs2.
Point at the Debug Terminal’s Transmit windowpane with your mouse, and click
it to activate the cursor in that window for typing.
Type 650 and then press the Enter key.
Verify that the servo turns full speed clockwise for six seconds.

Table of Contents

Other manuals for Parallax Boe-Bot

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Parallax Boe-Bot and is the answer not in the manual?

Parallax Boe-Bot Specifications

General IconGeneral
BrandParallax
ModelBoe-Bot
CategoryRobotics
LanguageEnglish