28125 Parallax Inc, 28125 Datasheet - Page 218
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: 218 of 360
- Download datasheet (5Mb)
Boe-Bot should move forward. If you cast a shadow over one of the photoresistors, the
Boe-Bot should turn in the direction of the photoresistor that senses the shadow.
' Robotics with the Boe-Bot - ShadowGuidedBoeBot.bs2
' Boe-Bot detects shadows cast by your hand and tries to follow them.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
FREQOUT 4, 2000, 3000
DO
LOOP
How ShadowGuidedBoeBot.bs2 Works
The
conditions: both, left, right, neither. Depending on which condition is detected,
commands deliver pulses for one of the following maneuvers: forward, pivot right, pivot
left, or sit still. Regardless of the condition, one of the four sets of pulses will be
delivered each time through the
remember to include the
pulses.
IF (IN6
ELSEIF (IN6
ELSEIF (IN3
ELSE
ENDIF
PAUSE 20
√
√
√
PULSOUT 13, 850
PULSOUT 12, 650
PULSOUT 13, 750
PULSOUT 12, 650
PULSOUT 13, 850
PULSOUT 12, 750
PULSOUT 13, 750
PULSOUT 12, 750
IF…THEN
Enter, save, and run ShadowGuidedBoeBot.bs2.
Use your hand to cast shadows over the photoresistor dividers.
Study this program carefully and make sure you understand how it works. It is
very short, yet very powerful.
= 0) AND (IN3 = 0) THEN
statement in the
= 0) THEN
= 0) THEN
PAUSE 20
DO…LOOP
DO…LOOP
to ensure the low time between each pair of servo
. After the
looks for one of the four possible shadow
' Stamp directive.
' PBASIC directive.
' Start/restart signal.
' Both detect shadows, forward.
' Left detects shadow,
' pivot left.
' Right detects shadow,
' pivot right.
' No shadow, sit still
' Pause between pulses.
IF…THEN
statement, it’s important to
PULSOUT
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: