28125 Parallax Inc, 28125 Datasheet - Page 216
28125
Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet
1.28125.pdf
(360 pages)
Specifications of 28125
Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
- Current page: 216 of 360
- Download datasheet (5Mb)
ELSE
ENDIF
LOOP
' -----[ Subroutines ]--------------------------------------------------------
Forward_Pulse:
Turn_Left:
Turn_Right:
Back_Up:
Your Turn – Improving performance
You can improve your Boe-Bot’s performance by commenting some of the subroutine
calls that were designed to help the Boe-Bot back away from obstacles and then turn to
avoid them. Figure 6-6 shows an example where the two
commented from the
detect a shadow. Then, when only individual photoresistors detect shadows, the
subroutine calls are commented so that the Boe-Bot only turns in response to a shadow.
GOSUB Forward_Pulse
PULSOUT 12,650
PULSOUT 13,850
PAUSE 20
RETURN
FOR pulseCount = 0 TO 20
NEXT
RETURN
FOR pulseCount = 0 TO 20
NEXT
RETURN
FOR pulseCount = 0 TO 40
NEXT
RETURN
PULSOUT 12, 650
PULSOUT 13, 650
PAUSE 20
PULSOUT 12, 850
PULSOUT 13, 850
PAUSE 20
PULSOUT 12, 850
PULSOUT 13, 650
PAUSE 20
IF…THEN
statement when the condition is that both photoresistors
' Neither photoresistor detects
' shadow, apply a forward pulse.
' Send a single forward pulse.
' Left turn, about 90-degrees.
' Right turn, about 90-degrees.
' Back up.
Turn_Left
subroutine calls are
Back_Up
Related parts for 28125
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: