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 #217 background imageLoading...
Page #217 background image
Chapter 6: Light Sensitive Navigation with Photoresistors · Page 203
Figure 6-6: Modify RoamingWithPhotoresistorDividers.bs2
' Excerpt from
' RoamingWithPhotoresistor
' Dividers.bs2
IF (IN6 = 0) AND (IN3 = 0) THEN
GOSUB Back_Up
GOSUB Turn_Left
GOSUB Turn_Left
ELSEIF (IN6 = 0) THEN
GOSUB Back_Up
GOSUB Turn_Right
ELSEIF (IN3 = 0) THEN
GOSUB Back_Up
GOSUB Turn_Left
ELSE
GOSUB Forward_Pulse
ENDIF
' Modified excerpt from
' RoamingWithPhotoresistor
' Dividers.bs2
IF (IN6 = 0) AND (IN3 = 0) THEN
GOSUB Back_Up
' GOSUB Turn_Left
' GOSUB Turn_Left
ELSEIF (IN6 = 0) THEN
' GOSUB Back_Up
GOSUB Turn_Right
ELSEIF (IN3 = 0) THEN
' GOSUB Back_Up
GOSUB Turn_Left
ELSE
GOSUB Forward_Pulse
ENDIF
Modify RoamingWithPhotoresistorDividers.bs2 as shown in the right side of
Figure 6-6.
Run the program, and compare the performance.
ACTIVITY #3: A MORE RESPONSIVE SHADOW CONTROLLED BOE-BOT
By eliminating the FOR…NEXT loops in the navigation subroutines, you can make the Boe-
Bot significantly more responsive. This wasn’t really possible with the whiskers, because
the Boe-Bot had to back up before turning since it had already made physical contact
with the obstacle. When you are using shadows to guide the Boe-Bot, it can check
between each pulse to see if the shadow is still detected regardless of whether it’s moving
forward or executing a maneuver.
A Simple Shadow Controlled Boe-Bot
One interesting form of remote control is to have the Boe-Bot sit still in normal light,
then follow a shadow you cast over the photoresistors. It’s kind of a user-friendly way of
guiding the Boe-Bot’s motion.
Example Program – ShadowGuidedBoeBot.bs2
When you run this next program, the Boe-Bot should stay still when no shadow is cast
over its photoresistor dividers. When you cast a shadow over both photoresistors, the

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