470 likes | 636 Views
ASTA Workshop – Basic Robotics Erik Von Burg, MacArthur Elementary School ( elvonbur@mpsaz.org ) Bill Johnson, Scottsdale Community College (SCC) ( bill.johnson@sccmail.maricopa.edu ). Goals:. Have FUN!!! Demo the power of robotics to: improve problem solving skills utilize math skills
E N D
ASTA Workshop – Basic RoboticsErik Von Burg, MacArthur Elementary School(elvonbur@mpsaz.org)Bill Johnson, Scottsdale Community College (SCC)(bill.johnson@sccmail.maricopa.edu)
Goals: • Have FUN!!! • Demo the power of robotics to: • improve problem solving skills • utilize math skills • develop an “engineering mindset” • improve communication/teamwork skills • Identify info sources (websites, etc.)
Workshop Rules • Ask questions!!!!! • Work as teams. • Try as many different challenges as you can. • Stop working and listen during instructional times.
Topics to be Covered: • Problem solving through mission planning. • Use of mathematical models to predict: • Linear moves • Turns • Use of ultrasonic, sound, touch, and light sensors. • Programming with LEGO Mindstorms • FIRST LEGO League competitions
Problem Solving Process • Understand problem. • Choose strategy and plan. • Implement plan. • Reflect and check answer. • Pick a path of travel. • Map path by measuring angles and distances. • Convert measurements to computer control parameters. • Generate program and download to robot • Test program. • Adjust parameters and program as needed.
Obstacle Race Challenge First Robot Across Finish Line WINS!!
Obstacle Race Challenge Mission Mapping Example StepMeas. 1 F 16” 2 R 45° 3 F 8.5” 4 R 90° 5 F 30” 1 1 2 3 4 5 First Robot Across Finish Line WINS!!
Needed Information • Precise measurements of- • linear moves • turns • reference points • Conversion of physical measurements to needed computer control parameters
How do you move the robot a certain distance? The NXT uses 4 different ways to control movement: - Tire rotations* - Degrees turned by tire (360° = one rotation) - Time - Unlimited (used with sensors) *rotations is the easiest to use
Wheel/Tire Calibration(distance vs rotation) • Measure diameter – calculate circumference • Measure tape wrapped around wheel • Use “wheelies” • make table • graph
Move Calibrations Students use a concrete model of the robot wheel called a “wheelie” to determine the distance travelled for different numbers of rotations. By plotting the data, they can see the relationship between distance and rotations.
Wheel/Tire Calibration(distance vs rotation) • Measure diameter – calculate circumference • Measure tape wrapped around wheel • Use “wheelies” • make table • graph • Verify distance traveled by direct measurement of bot vs wheel rotations • Key issue: Does bot move straight?
First Activity – Bot Calibration • Linear (forward/backward) • Use wheelie to measure dist vs rotations • Run “five rotation test” key issues: measurement reference points run straightness • Fill in score sheet
Key Move Formula Distance traveled, Dt is: Dt = n × C where n = number of tire rotations C = tire circumference Note: An alternate approach using speed over time (Dt = S × t) is NOT recommended because speed is not constant.
What are potential problems causing inaccurate movement? • Tires of different size will cause the robot to veer towards the smaller wheel. • Friction will reduce the power to the wheel causing it to turn slightly. • Loose connections in chassis can cause unwanted variation. • Motors that are not synched can cause the wheels to spin at different rates.
How can you identify and solve these problems? • Isolate the problem through experimentation. • How could you determine that the wheels were the cause of the problem? Chassis? Motors? • Brainstorm solutions. • How could you solve the problem now that you have an idea of what it is? (There are wrong answers, but there is never only one correct one.) • Test the solutions. • Did it solve the problem? Does it work consistently over repeated trials?
Youtube Video? • Two wheel test video
Challenge 1: Moving into Parking Space Start anywhere behind the starting line and park the bot between the finish lines. The bot must not be over either of the lines. Extensions: 1) drive past two lines, reverse back and park 2) try a different speed The bot must be completely within lines. Finish Lines Starting Line
Challenge 2: Closest to the Wall Start the bot any where behind the starting line. The bot should move forward and come within 0.5 jn without any piece of the bot touching the wall. The bot should stop within 0.5 in of the wall. Starting Line Wall
Video Run challenges – 30 Min Fill in score sheet
How do you determine the wheel circumference? Dt = n × C In the above equation, we can control the distance traveled and number of rotations. With a little algebra, we can find the circumference of the wheel. C = Dt / n This can be done a number of ways. Initially, concrete methods are the best because students will understand them more readily. Notes: - did the robot run straight?? - measurement skills/reference points
Learning Opportunities • Calibrating forward/backward moves - measuring distances - making data tables - plotting data - fractions vs decimals - division/multiplication • Geometry - wheel diameter/circumference • Computer Terminology
Discussion Points • Does distance moved depend upon robot speed? Why? • Does wheel size matter? Why? • Do robots with big wheels go faster or slower than standard wheels? Why? • Why don’t some robots go straight? Experiments should be encouraged!!
Turning • There are many different types of turns, but we will use pivot turns. They are the easiest to understand and calibrate, and they can be pretty accurate. • Pivot turns occur when one wheel remains stationary while the other turns. Question: How many rotations does it take to complete a turns of various angles?
Turning Calibration Exercises • 360° Turns Calibration – This will serve as a basis for other turn parameters. • Four Turn Test – This will help refine the 90° by highlighting errors over multiple movements. Errors compound, so minor parameters errors will create large inaccuracies in final placement.
Visualizing Turn Mechanics Tire Rotations Using a concrete model will help students visualize the number of rotations it takes to complete various turns. One wheel turns while the other is locked into position.
Predictable Turn Angles r Tire rotations = path length/tire circumference # rotations = (desired angle/360°)(2πr)/C r => turning radius (distance between the tires) C => tire circumference
360° Turn Test The bot must move forward one rotation, complete a 360° pivot turn, and move forward again one rotation. The bot should finish the movement exactly in line with its original trajectory. Oversteer (decrease turn) Perfect Turn Parameter Understeer (increase turn) Why do this test? This will help develop experiential knowledge, so students can reasonable estimate 90° turn parameters. The movement after the turn highlights turning parameter errors.
Four Turn Test Program the bot to move forward and turn 90ᵒ. Repeat this a total of four times, and end the with one final movement forward. Test the turn duration and adjust as necessary. Under steer Over steer All forward should be the same duration ( movements about 2-3 rotations). When the bot completes its movements, check to see if it under or over turned and adjust the turn parameter appropriately. Why this test? This test helps determine the 90° turn parameter, and it illustrates compounded error.
Discussion Points • Does wheel size affect turn parameters? Why? • Do castor wheels and sliders change the turn parameter? Why? • Do different surfaces change the turn accuracy? How? Why? • Does weight placement affect the turn? Where should the weight be placed on a robot?
Challenge 3: Turn to Park Start the bot any where behind the starting line. The bot should move forward and turn to park within the parking space. No part of the bot can be touching or over the boundaries. Starting Line No part of the bot can be out of the parking space. Parking Space
Challenge 4: Turn to Closest to Wall Start the bot any where behind the starting line. The bot should move forward, turn towards the wall, park between the lines, and stop within 0.5” of the wall. No part of the bot can be touching the wall. Starting Line Wall Distance should be less than 0.5”.
Challenge 5: Figure 8 7 2 3 4 5 6 1 Place one of the robot’s wheels on the tape line. Program the robot to complete the figure 8 without having that tire stray from the tape line. Blue tape lines
Discussion Points • How does the initial placement affect the ending position? • How can you accurately place the robot in the beginning? Notes: - reference points (x-y) - initial alignment “angle” L ~ d (π/180) a where L is the lateral placement error, d is the distance traversed, a is the misalignment angle Example: for d = 30”, a at 2° , L ~ 1.05”
Sensor Uses • “Find” things • Establish “intermediate reference points” (position errors cumulate as bot moves away from starting point) • Types (sonar, sound, touch, light, other)
Wait Block • WAITBlock Operation: keep doing whatever action that is being done BEFORE the WAIT block UNTIL the desired sensor is triggered – then continue actions along the sequence beam examples: • stopped - sensor trigger - move • moving forward “unlimited”- sensor trigger - stop • etc.
Sensor Examples • “clap-on” (sound, other) • ultrasonic wall sensing • touch sensing • line sensing (need light calibration) • sensor combinations
Summary • Robotics is a great vehicle to teach: • problem solving skills • application of classroom math skills • an “engineering mindset” • communication/teamwork skills • Etc. • Can utilize a teacher’s creativity skills
Some Information Sources • http://engineering.asu.edu/k12outreach/fll (look for “coaches resources” link) • http://usfirst.org • http://nxtprograms.com • www.education.rec.ri.cmu.edu • http://robotics.scottsdalecc.edu • http://youtube.com (in search field - type Lego robots+FLL) • And many more