Bringing maker education and computational thinking to the classroom.
Activity Name:Code aMAZEing to the Rescue
Grade 8 (Could work for grades 7 to 11)
Each student needs to be familiar with the basics of drive forward & turning. It may be helpful to review experiments two and three in the SparkFun Inventor's Kit for RedBot Experiment Guide with students prior to introducing this lesson.
Group Size:2-3 students. (One robot and one computer per group)
algebra, computer science, geometry, measurement, physical science, physics, problem-solving, reasoning & proof, science & technology
In this lesson, using code from previous experiments (drive forward and turning), students will use the code to develop a sequence of coded movements to have their robots autonomously move through a maze (or pathway). Students will also use measurements and conversions of units of time into distance traveled to create the coded pathway. The whole lesson theme is developing a route to bring a safety line to trapped people in a building through an autonomous moving robot .
code, vectors, drive forward, turning, maze, pathways, problem-solving, robotics
Introduction / Motivation:
Today we have been tasked with how to send a robot through a damaged building. (show an image of a collapse building- see below for example) There are people trapped at some point within the building. A robot needs to carry a line that will have light and communications in it to the trapped people. Since you can't see, you can’t manually control the robot. You will have to allow the robot to autonomously maneuver to these people. As the Robotic Engineer(s), your team will have to code your robot to the designated area to reach the trapped people. We have been provided the plans for the building. (Show the plans for the building- in Appendix B).
Using the plans, your team will have to measure and record the pathway/route your team plans on traversing. Your team will have to know each distance and the angles to turn. Remember, the plans are a small scale version of the actual building. Your team will have to convert your data to match. You all have learned the basics of coding these robots – So what do you think you can do to get this cable to these people? (Answer- code the robot to maneuver through the hallways – code the robot to follow a very specific path and turns) What information do you need to know to get the robot to autonomously get to these people? (the actual measurements; length of each part of a hallway, the turns, degree of turn, direction of turn, etc)
Here is our building and where the people are trapped. (Place scenario 1 on the interactive whiteboard board- smaller scale) I am giving each group their own floor plan with the scale. Make sure you take accurate measurements and degrees of turns. You will write the code for the robot to autonomously travel to the trapped people. Time is of the essence.
Before the Activity
With the Students
|Route (Steps Command)||Scale Drawing Measurements||Measurements Needed for Actual Drawing||Distance Converted to Time||Code Language|
|1. Go forward||9cm||180cm||1.7 sec|
|2. Turn right||90'|
|3. Go forward||5cm||100cm||
|4. Turn left||90'|
|5. Go forward||3cm||60cm||0.5 sec|
|6. Turn left||90'|
|7. Go forward||4cm||80cm||0.72 sec|
|8. Turn right||90'|
|9. Go forward||5cm||100cm||0.9 sec|
* Scale is 1cm to 20cm. Distance traveled in 2 secs = 110cm or 1 sec= 55cm