Skip to main content

Lesson 2: Mini Challenge

For this mini challenge, create a project where the VR Robot navigates the Disk Maze Playground from start to finish using the Front Eye Sensor. Use the [Wait until] and <Color sensing> blocks to instruct the VR Robot to drive up to each disk at least once, before driving to the red disk to finish the challenge. For this challenge, the VR Robot must:

  • Drive up to each disk at least once.
  • Turn right if the Front Eye Sensor detects a green disk.
  • Turn left if a blue disk is detected.
  • Stop at the red disk.

    A top-down view of the Disc Maze playground, with an arrow showing the intended path of the VR robot. The robot should drive through the entire course, turning right at green disks and turning left at blue ones to finally reach the red disk goal. The order is 1 green disk, 4 blue disks, 1 green disk, 1 blue disk, 1 green disk, and then the final red disk.

Follow these steps to complete the mini challenge:

  • Watch the solution video to see how the VR Robot should drive in order to complete the mini challenge. The robot starts on the green arrow near the lower left corner of the playground, opposite the first green disk. To navigate the maze, the robot drives forward to the green disk and turns right. It then drives to the next blue disk and turns left. The robot repeats this with the next three blue disks. Then the robot drives to the green disk and turns right, drives to the final blue disk and turns left, drives to the final green disk and turns right. The robot then drives and stops when the red disk is detected, indicating it has reached the end of the maze. 

  • Create a project by adding or removing the necessary blocks to the Unit7Lesson2 project. Remember that you may use VEXcode blocks, Switch blocks, or a combination of both block types as you solve the challenge. 
  • Start the project to test it.
  • If the project is not successful, edit and try again. Continue to revise and run the project until the VR Robot successfully navigates the Disk Maze Playground from start to finish, driving to each disk once.
  • Save the project once the VR Robot successfully navigates the Disk Maze Playground from start to finish.

Congratulations! You solved the mini challenge!

Questions

Please select a link below to access the lesson quiz.

Google Doc / .docx / .pdf