Skip to main content

Learn

Before you can compete in the Eye Spy Treasure 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 specific colors of Buckyballs. You will also learn how to use additional Control blocks like [If then] and [Repeat] to have your robot make decisions.

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 EXP 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 EXP Python project.

Open Lesson Summary

Google / .docx / .pdf

Making Decisions in a VEXcode EXP Project 

You can use an [If then] block or if statement in a project to have your robot make decisions.

Watch this video to learn about the [If then] block and how it can be used in a project to make a robot make a decision based on a reported condition.

Open Lesson Summary

Google / .docx / .pdf

Watch this video to learn about the if statement and how it can be used in a VEXcode EXP Python project to make a robot make a decision based on a reported condition.

Open Lesson Summary

Google / .docx / .pdf

Repeating Actions

The [Repeat] block or for loop gives you a more efficient way to repeat behaviors in a project, which is particularly useful as your projects get more complex.

Watch this video to learn about the [Repeat] block and how it can be used in a VEXcode EXP Blocks project to repeat behaviors.

Open Lesson Summary

Google / .docx / .pdf

Watch this video to learn about the for loop and how it can be used in a VEXcode EXP Python project to repeat behaviors.

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 (Block) questions Google / .docx / .pdf

Check Your Understanding (Python) questions Google / .docx / .pdf


Select Next > to practice using the Optical Sensor data in a project to collect a red Buckyball.