Parallax, Inc. Presentation based on: “Robotics: with the Boe-Bot"

Slides:



Advertisements
Similar presentations
Chapter 6: Digital Display
Advertisements

Chapter 3: Digital Inputs - Pushbuttons
1 Chapter 8: Frequency and Sound Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
1 Chapter 9: Electronic Building Blocks Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
PHY 235 Robotics Workshop Day 6 DC Motors, H-Bridge Board, Simple Lego/Boe Bot.
Boe-bots and STEM Boe-bots and STEM – This sectional will introduce participants to a programmable robot that is useful for engaging students in building.
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Using the Board of Education Breadboard and Your Multimeter ENGR 120 Work in teams of two!
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
1 Lecture 1: Your Boe-Bot's Servo Motors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
Navigating the BOE-BOT
1 Chapter 7: Navigating with Infrared Headlights Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed.
BOE-BOT By: Jonathan Baker Gabby Garcia. BOE-BOT Servo motors to control each wheel independently Castor wheel in rear for stability Aluminum Chassis.
1 Chapter 4: Controlling Motion Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
ENGR 101: Robotics Lecture 2 – Text Programming Outline  Introduction to PBASIC  Variables, I/O, Arithmetic  Controlling the LEDs References 
ENGR 101: Robotics Lecture 5 – Subprograms Outline  Subprograms  The Infrared Sensor System References 
1 Chapter 5: Measuring Rotation Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
Sensors Material taken from Robotics with the Boe-Bot.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Andy.
1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.
Control Some Material taken from RobotSubsumption.pdf.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Jessica.
1 Chapter 3: Tilt with the Memsic Dual-Axis Accelerometer Smart Sensors and Applications Chapter 3: Tilt with the Memsic Dual-Axis Accelerometer Presented.
1 Chapter 1: Parallax Serial LCD Display Smart Sensors and Applications Chapter 1: Parallax Serial LCD Display Presented by: Andy Lindsay Parallax, Inc.
1 A Modification of Chapters 5 & 7 Slides Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by:
Robotics Engineering Basic Maneuvers. Getting the Boe-Bot to Move One of the first tasks we need to do is to get our bots moving.One of the first tasks.
Slide 1 Presentation based on: “Robotics: with the Boe-Bot" by Andy Lindsay Menlo Drive Suite 100 Rocklin, CA
1 Chapter 6: More Accelerometer Projects Chapter 7: LCD Bar Graphs for Distance and Tilt Smart Sensors and Applications Chapter 6: More Accelerometer Projects.
1 With the Parallax USB Oscilloscope Understanding Signals With the Parallax USB Oscilloscope Presented by: Andy Lindsay Parallax, Inc.
Controlling the Outside World
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
Today’s Agenda 1.Scribbler Program Assignment 1.Project idea due next class 2.Program demonstration due Wednesday, June 3 2.Attendance & lab pair groupings.
Software and documentation Download and install: “Setup-Stamp-Editor-Lrg-v2.2.6.exe”  Downloads  BASIC Stamp software BASIC Stamp Syntax.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
Slide 1 IR Remote for the Boe-Bot IR Remote for the Boe-Bot.
Slide 1 IR Remote for the Boe-Bot IR Remote for the Boe-Bot.
Sensors Material taken from Robotics with the Boe-Bot.
1 Chapters 2 And 3 Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel Southern.
1 “Something to put it in perspective…” Slide Show Name “Something to put it in perspective…” Presented by: Andy Lindsay Parallax, Inc.
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
1 Lecture 1: Your Boe-Bot's Servo Motors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
IR Communication October 27, Sources  Lindsay, Andy. IR Remote for the Boe- Bot. v
CSC522 Embedded Systems Introduction to Circuit Design.
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Andy.
ENGR 101: Robotics Lecture 3 – Robot Motion Outline  Robot Motion  FOR Loops  Making Music References 
Slide Menlo Drive Suite 100 Rocklin, CA
Digital Electronics The Boe-Bot and Servo Motors.
PHY 235 Robotics Workshop Day 4 Robotic Behaviors, Light Sensing, Voltage Dividers, LCD-MOD.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
PHY 235 Robotics Workshop Day 5 Distance Sensing Using The Ultrasonic Ping Sensor.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
1 Chapter 5: Accelerometer Gaming Basics Smart Sensors and Applications Chapter 5: Accelerometer Gaming Basics Presented by: Andy Lindsay Parallax, Inc.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
Limited rotation servo basics David Hall output shaft servo horn red wire = 5V + black wire = Gnd - white wire = control signal standard servo.
The “Board of Education” 1 Three-position switch 0 = OFF 1 = ON / wheels OFF 2 = ON / wheels ON breadboard (for building circuits) electrical power (V.
Slide Menlo Drive Suite 100 Rocklin, CA
Introduction to Servos
Servo Positioning Pulse Width Direction of Rotation PULSOUT Period
Diagram of the Board of Education
Some Material taken from RobotSubsumption.pdf
Programming Boe-Bots (Part 1)
Chapter 5: Tactile Navigation With Whiskers
Controlling YOUR ROBOT
Chapter 8: Frequency and Sound
Some Material taken from RobotSubsumption.pdf
Karl Jean-Francois-James Madison H.S. & Eldiquen Mangubat-IS 232
Fevzi Ozaydin & Violet Mwaffo
Chapter 5: Measuring Rotation
Presentation transcript:

Parallax, Inc. Presentation based on: “Robotics: with the Boe-Bot" www.parallax.com 599 Menlo Drive Suite 100 Rocklin, CA 95765

Copyrights and Trademarks This documentation is copyright 2004 by Parallax, Inc. By downloading or obtaining a printed copy of this documentation or software you agree that it is to be used exclusively with Parallax products. Any other uses are not permitted and may represent a violation of Parallax copyrights, legally punishable according to Federal copyright or intellectual property laws. Any duplication of this documentation for commercial uses is expressly prohibited by Parallax, Inc. Duplication for educational use is permitted subject to the following conditions: Parallax grants the user a conditional right to download, duplicate, and distribute this text without Parallax's permission. This right is based on the following conditions: the document, or any portion thereof, may not be duplicated for commercial use; it may be duplicated only for educational purposes when used solely in conjunction with Parallax products, and the user may recover from the student only the cost of duplication. BASIC Stamp, Stamps in Class, and Board of Education are registered trademarks of Parallax, Inc. If you decide to use the names BASIC Stamp, Stamps in Class, and/or Board of Education on your web page or in printed material, you must state that "BASIC Stamp is a registered trademark of Parallax, Inc.," "Stamps in Class is a registered trademark of Parallax, Inc.," and/or "Board of Education is a registered trademark of Parallax, Inc.," respectively, upon the first appearance of the trademark name. Other brand and product names are trademarks or registered trademarks of their respective holders.

What's New In Robotics New Servos Adjustable potentiometer Faster, quieter, draw less power New Board of Education Power Switch Jumper New Wheels and Tires New Whiskers New Infrared Emitters New Text – v2.0 PBASIC 2.5 Not used in Robotics! v.1.5 text

Select the Servo Power Supply New jumper - connects servo power to either Vin – Battery Voltage Vdd – Regulated 5V supply Select Vin for use with 4 AA batteries Pull jumper off pins, then push onto Vin pin

Center the Boe-Bot Servos Plug the battery pack into the BOE Note the correct polarity Plug the servos in to the BOE Important!! Black wire closest to breadboard! Turn the switch to Position 1 Enter and Run "CenterServoP12.bs2" pg. 65 Repeat for "CenterServoP13.bs2" pg. 66

Center the Boe-Bot Servos Move the switch to Position 2 If the servos do not stay still, adjust them with your Parallax screwdriver Do not push too hard Use the Phillips end Adjust each servo so it stays completely still

Build the Boe-Bot Build the robot by following instructions from your manual (pages 85-99) Explain they’ll find some little differences on the manual because they have improved hardware.

Build the Start/Reset Indicator Brownout Batteries drop below 5.2 V Brownout detector circuit resets the BASIC Stamp Program starts over from beginning Low Battery Indicator Add speaker to Boe-Bot "Beep" first thing in program If Boe-Bot beeps during navigation, must have reset Thus batteries are low Figure 3-18 p 102

Test the Low Battery Indicator Run "StartResetIndicator.bs2" Test by pressing the Reset button on the BOE Should beep each time reset DEBUG CLS, "Beep!!!" ' Display while speaker beeps. FREQOUT 4, 2000, 3000 ' Signal program start/reset. DO ' DO...LOOP DEBUG CR, "Waiting for reset…" ' Display message PAUSE 500 ' every 0.5 seconds LOOP

Servo Positioning Pulse Width Direction of Rotation PULSOUT Period Determined by the width of the pulse Distance Each pulse causes the servo to rotate a small amount Speed Maximum at 1.3 and 1.7 ms. Decreases as approaches 1.5 ms Pulse Width Direction of Rotation PULSOUT Period 1.3 ms Clockwise 650 1.5 ms Stopped 750 1.7 ms Counter-clockwise 850 km – p. 73 new text

Controlling Distance Run "BoeBotForwardThreeSeconds.bs2" Follow the instructions on p. 118 to make the Boe-Bot go half as far forward Add code to make the Boe-Bot go backward, left, and right, as shown on pages 119-120 FOR counter = 1 TO 122 PULSOUT 13, 850 PULSOUT 12, 650 PAUSE 20 NEXT put new code here

EEPROM Navigation Run "EEPROMNavigation.bs2" p. 141 Modify the DATA directive to make your own motion sequence DATA "FFFBBLFFRFFQ" F = Forward, B = Backward, L = Left, R = Right, Q = Quit DO READ address, instruction address = address + 1 SELECT instruction CASE "F": GOSUB Forward CASE "B": GOSUB Backward CASE "L": GOSUB Left_Turn CASE "R": GOSUB Right_Turn ENDSELECT LOOP UNTIL instruction = "Q" address VAR Byte instruction VAR Byte ' Address: 0123456789 ' |||||||||| DATA "FLFFRBLBBQ" km – modify code listing

Tactile Navigation with Whiskers Activities: Building and Testing the Whiskers Page 154-165 See also wiring diagram next slide km – Remove this slide?

Build the Whisker Circuit km -- Figure 5-4 and 5-5 p. 156-7 With added LEDs Figure 5-9 5-10 p. 162-3

Testing the Whiskers Run "TestWhiskers.bs2" p.160 Press on each whisker and examine the Debug Terminal output. Each whisker should display 1 when not pressed, 0 when pressed. Position the whisker wires to make good contact with the headers DEBUG "WHISKER STATES", CR, "Left Right", CR, "------ ------" DO DEBUG CRSRXY, 0, 3, "P5 = ", BIN1 IN5, " P7 = ", BIN1 IN7 PAUSE 50 LOOP p. 159 replace code listing

Navigation With Whiskers Run "Roaming with Whiskers.bs2" Compare with pushbuttons exercise from the previous day DO IF (IN5 = 0) AND (IN7 = 0) THEN ' Both whiskers detect obstacle GOSUB Back_Up ' Back up & U-turn (left twice) GOSUB Turn_Left ELSEIF (IN5 = 0) THEN ' Left whisker contacts GOSUB Back_Up ' Back up & turn right GOSUB Turn_Right ELSEIF (IN7 = 0) THEN ' Right whisker contacts GOSUB Back_Up ' Back up & turn left ELSE ' Both whiskers 1, no contacts GOSUB Forward_Pulse ' Apply a forward pulse ENDIF ' and check again LOOP

Navigation with Infrared Headlights Activities: Understanding Infrared Object Detection Building and Testing the IR Circuit Object Detection and Avoidance Object Detection and Avoidance in Real-Time

Using Infrared Headlights to See the Road IR reflect off obstacles IR LED emits light in infrared region (780 nm) Detector shows "0" if detects IR, "1" otherwise Detector tuned to 38,500 Hz only km – new diagram Figure 7-1 p. 218

Building and testing the IR Pairs Figure 7-4 7-5 p. 220-221 Run "TestLeftIrPair.bs2" Follow directions on p. 223 to test right IR pair

How the IR Test Program Works ' Robotics with the Boe-Bot - TestLeftIrPair.bs2 ' Test IR object detection circuits, IR LED connected to P8 ' and detector connected to P9. ' {$STAMP BS2} ' {$PBASIC 2.5} irDetectLeft VAR Bit DO FREQOUT 8, 1, 38500 irDetectLeft = IN9 DEBUG HOME, "irDetectLeft = ", BIN1 irDetectLeft PAUSE 100 LOOP TestLeftIRPair.bs2 p. 222

Object Detection and Avoidance Run "RoamingWithIr.bs2" IF (irDetectLeft = 0) AND (irDetectRight = 0) THEN GOSUB Back_Up GOSUB Turn_Left ELSEIF (irDetectLeft = 0) THEN GOSUB Turn_Right ELSEIF (irDetectRight = 0) THEN ELSE GOSUB Forward_Pulse ENDIF RoamingWithIr.bs2 Place the Boe-Bot on the floor Your Boe-Bot should roam around and avoid objects

Again the Boe-Bot should roam around and avoid objects Fast IR Roaming Run "FastIRRoaming.bs2" Again the Boe-Bot should roam around and avoid objects Observe: How does this behavior differ from that of "RoamingWithIr.bs2"? IF (irDetectLeft = 0) AND (irDetectRight = 0) THEN pulseLeft = 650 pulseRight = 850 ELSEIF (irDetectLeft = 0) THEN pulseLeft = 850 ELSEIF (irDetectRight = 0) THEN pulseRight = 650 ELSE ENDIF "FastIRRoaming.bs2"

Understanding Filter Sensitivity Figure 8-1 p. 248 Figure 8-2 p. 249 TestLeftFrequencySweep.bs2 Screen Shot? Figure 8-3 p. 251

Testing Distance Detection Run "TestLeftFrequencySweep.bs2" Place the Boe-Bot in front of some obstacle (Wall, book, etc) Observe the readings change as you move the Boe-Bot closer to and further away from the obstacle

Boe-Bot Shadow Vehicle Follow the detailed instructions on p. 259-260 In summary: Run "FollowingBoeBot.bs2" Place a sheet of paper in front of your Boe-Bot Move the paper around The Boe-Bot should follow the paper at a constant distance If the Boe-Bot backs away instead, contact the instructor for assistance. Your right/left servos are probably reversed.

Boe-Bot Follow-the-Leader Place sticky notes on the back of all Boe-Bots Now select two or three Boe-Bots from the class to be "Leader" Boe-Bots Create "Leader" Boe-Bots by following the instructions on p. 263 All other Boe-Bots keep the previous program, "FollowingBoeBot.bs2" The "Shadow" Boe-Bots will follow the "Leader" Boe-Bots See how many Boe-Bots will follow in a row, like a train FollowingBoeBot.bs2

Create Stripe-Following Boe-Bots Following a Stripe Create Stripe-Following Boe-Bots Follow the instructions on pp. 264-271 Make sure to point IR pairs downward as detailed in text Figure 8-7 p. 264 – The Course Figure 8-8 p. 265 – The IR Pairs going downward ?

Focus on Proportional Control The Boe-Bot will follow a moving object by maintaining a constant distance from it. The amount of correction is directly proportional to the error. That is, the Boe-Bot will speed up or slow down a varying amount, depending on how far away the object is. Distance Reading Meaning Left Wheel PULSOUT Wheel Direction Robot motion Far Away 650 Clockwise Backward fast 2 Desired distance 680 Backward slow 5 Very close 750 Stopped 820 Counter-clockwise Forward slow 850 Forward fast New servo params

Proportional Control Block Diagram Desired Distance Measured Boe-Bot is… What to do… Error Output Adjustment Left Servo Robot Motion 2 4 A bit too close Go backward 2–4 = -2 -35 * -2 = -70 750 + (-70) = 680 Backwards slow 5 Much too close 2-5 = -3 -35 * -3 = -105 750 + (-105) = 645 Backwards fast 1 Much too far away Go forward ? A bit too far away Figure 8-5 p. 258 – Left Figure 8-4 p. 256 - Right

The End We hope you enjoyed this Educator's Course Don't hesitate to contact us for any reason!