28125 Parallax Inc, 28125 Datasheet - Page 296
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: 296 of 360
- Download datasheet (5Mb)
' -----[ Title ]--------------------------------------------------------------
' Robotics with the Boe-Bot - FollowingBoeBot.bs2
' Boe-Bot adjusts its position to keep objects it detects in zone 2.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
' -----[ Constants ]----------------------------------------------------------
Kpl
Kpr
SetPoint
CenterPulse
' -----[ Variables ]----------------------------------------------------------
freqSelect
irFrequency
irDetectLeft
irDetectRight
distanceLeft
distanceRight
pulseLeft
pulseRight
' -----[ Initialization ]-----------------------------------------------------
FREQOUT 4, 2000, 3000
' -----[ Main Routine ]-------------------------------------------------------
DO
LOOP
' -----[ Subroutine - Get IR Distances ]--------------------------------------
GOSUB Get_Ir_Distances
' Calculate proportional output.
pulseLeft =
pulseRight = SetPoint - distanceRight * Kpr + CenterPulse
GOSUB Send_Pulse
√
Move the sheet of paper too close to the Boe-Bot, and it should back up, away
from the paper.
CON
CON
CON
CON
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
SetPoint - distanceLeft
-35
35
2
750
Nib
Word
Bit
Bit
Nib
Nib
Word
Word
* Kpl + CenterPulse
' Stamp directive.
' PBASIC directive.
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: