pibot:challenge1
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
pibot:challenge1 [2021/07/10 16:02] – created jstruebel | pibot:challenge1 [2022/10/20 19:53] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Objective ====== | ||
+ | |||
+ | This challenge is to use the line-following PiBot to solve a maze. Instructions on how to create the maze will be provided along with some hints on how to program the PiBot for solving the maze. At the end, race a friend' | ||
+ | |||
+ | ====== Parts Required ====== | ||
+ | |||
+ | The parts below are required to complete this lesson. Note that all parts except the foam board and clear packing tape are included in the [[https:// | ||
+ | |||
+ | - Assembled PiBot from [[: | ||
+ | - 3cm Wide Black Tape | ||
+ | - 3/16 inch thick White Foam Board or Corrugated Plastic Yard Signs | ||
+ | - Clear Packing Tape | ||
+ | |||
+ | ====== Challenge Setup ====== | ||
+ | |||
+ | - Draw a grid with lines 12 inches apart on the foam board with a pencil\ \\ <WRAP round tip>Use small lengths of the clear packing tape to join multiple pieces of the foam board together to make a larger area for your maze. Place the tape on the top of the foam board for one joint and on the bottom of the foam board for the next joint so that you can fold it up like a Z and store it flat.</ | ||
+ | - Design a line maze that will fit on the grid drawn on the foam board\\ \\ <WRAP round tip>Use a website like [[http:// | ||
+ | - Lay out the maze on the foam board with the black tape as shown below\\ \\ <WRAP round tip> | ||
+ | - Place a 6 inch long strip of the black tape across the end of the line at the start point of the maze as shown below\\ \\ <WRAP round tip> | ||
+ | - Create a solid black rectangle that is at least 6 inches wide and 4.5 inches tall across the finish point of the maze as shown below\\ \\ <WRAP round tip> | ||
+ | - Turn the PiBot on and place it so that the wheels are on the black tape of the starting line as shown below\\ \\ <WRAP box>{{ : | ||
+ | |||
+ | ====== Software ====== | ||
+ | |||
+ | Select the appropriate link below for instructions to setup the software on the PiBot and hints on how to program the PiBot to solve the maze. | ||
+ | |||
+ | * [[: | ||
+ | * [[: | ||
+ | |||
+ | ====== The Challenge ====== | ||
+ | |||
+ | Run the maze solving program that you created and have the robot explore the maze to determine the shortest path from start to finish. Then use a stopwatch to time a second run through the maze to see how fast your robot is. Have a friend try their robot and see whose robot is faster and doesn' | ||
+ | |||
+ | To run the PiBot maze solving program that you created perform the following steps | ||
+ | |||
+ | - Open a terminal in Visual Studio Code from the Terminal-> | ||
+ | - Enter the following command to make the PiBot solve the maze\\ \\ < | ||
+ | - Reset the PiBot to the start of the maze for the second run and time how long it takes with a stopwatch | ||
+ | - Hold down the control + C keys to stop the PiBot if necessary | ||
+ | - When you're finished with the challenge enter the following command in the terminal to shutdown the PiBot\\ \\ < | ||
+ | - Click on the small green rectangle in the bottom left corner of the screen and select "Close Remote Connection" | ||
+ | - Wait 3-5 minutes for the green light on the Raspberry Pi to stop flashing and turn off the switch on the PiBot battery | ||