27403 Parallax Inc, 27403 Datasheet - Page 170
27403
Manufacturer Part Number
27403
Description
GUIDE APP ROBOTCS W/SUMOBOT V1.0
Manufacturer
Parallax Inc
Datasheet
1.27404.pdf
(266 pages)
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
- Current page: 170 of 266
- Download datasheet (6Mb)
Example Program: FrontAndSideIrNavigation.bs2
The beauty in terminating the rotate loop as soon as one of the front IR detectors sees the
object is that one of the other code blocks will then take over to get the SumoBot to face
its opponent. Let's see how it performs:
' -----[ Title ]--------------------------------------------------------------
' Applied Robotics with the SumoBot - FrontAndSideIrNavigation.bs2
' This is FrontIrNavigation.bs2 with peripheral IR object detection added.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Definitions ]---------------------------------------------------
ServoLeft
ServoRight
IrLedLS
IrSenseLS
√
√
√
√
√
√
√
√
√
√
Save FrontIrNavigiation.bs2 as FrontAndSideIrNavigation.bs2
Insert the peripheral vision
before the
Use the printed example program to check your work.
Run the program.
Press and hold the Reset button as you take the SumoBot to the practice ring.
Make sure there all objects are well away from the SumoBot's front and side. If
there are objects near the ring, consider using an
makes the SumoBot nearsighted.
Set the SumoBot on the practice ring so that you are behind it. Otherwise, it will
see you and react immediately. Make sure that there are no other objects within
a couple meters of the ring.
Let go of the Reset button. The SumoBot should stay still because it doesn't see
anything.
Place your hand in view of its right IR object detector. The SumoBot should
immediately turn to face your hand and then lunge forward.
Press and hold the Reset button, and again place the SumoBot so that it can't see
you.
Place your hand in view of its left IR object detector and verify that it rounds on
an object to its left as well.
PIN
PIN
PIN
PIN
ELSE
keyword in the Main Routine.
13
12
2
1
ELSEIF...THEN...
' Target = BASIC Stamp 2
' Language = PBASIC 2.5
' Left servo connected to P13
' Right servo connected to P12
' Left IR LED connected to P2
' Left IR detector to P1
code blocks shown above just
IrFreq CON
directive that
Related parts for 27403
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: