Skip to main content

Learn

Before you can compete in the Sweep the Field Challenge, you first need to learn about the Optical Sensor, and how you can code your robot to use sensor feedback to complete a task, such as finding and pushing cubes off the Field. You will also learn how to create an algorithm to optimize your code, and have your robot complete a challenge even if the game field changes.

Optical Sensor

The Optical Sensor has three main functions: to detect objects and their proximity, detect the color of an object, and detect ambient light or the light reflecting off of an object.

Watch this video to learn about what the Optical Sensor is, and how you can use data from the Optical Sensor in a project with your robot.

Open Lesson Summary

Google / .docx / .pdf

Watch this video to learn how you can use data from the Optical Sensor in a VEXcode IQ Blocks project.

Open Lesson Summary

Google / .docx / .pdf

Watch this video to learn how you can use data from the Optical Sensor in a VEXcode IQ Python project.

Open Lesson Summary

Google / .docx / .pdf

Using Algorithms

Algorithms allow you to code your robot to autonomously make decisions in response to data from its environment. An algorithm is a precise set of instructions that uses sequence, selection, and loops to enable your robot to complete more challenging tasks, even if the environment changes. 

Watch this video to learn what an algorithm is, and how you can use an algorithm to code your robot to solve more complex challenges.

Open Lesson Summary

Google / .docx / .pdf

Check Your Understanding

Before moving on to the Practice section, ensure that you understand the concepts covered on this page by answering the questions in the document below in your engineering notebook. 

Check Your Understanding questions Google / .docx / .pdf


Select Next > to practice using the Optical Sensor and creating an algorithm to find and push cubes off of the Field.