Skip to main content

Lesson 1: Eye Sensors in a VEXcode VR Project

Using the Eye Sensors in a VEXcode VR Project

The Eye Sensors on the VR Robot can be used in many ways. Note that the Down Eye Sensor does not detect the floor of a Playground as an object. Other items, such as disks, will register as objects. The Front Eye Sensor does detect walls in the Playgrounds.

The Eye Sensors can detect the color of an object near the sensor, such as the colored disks in the Disk Maze Playground. This is useful if you want the VR Robot to sort differently colored objects, drive up to a specifically colored object, or perform different behaviors based on the color of an object detected.

In this project, the VR Robot will drive forward until the Front Eye detects a green object. Once a green object is detected, the VR Robot will turn right.

VEXcode VR blocks project to reach the first disk and then turn right. The project begins with a When Started block followed by a comment explaining the program 'Drive to the first disk (green), then turn right'. Next, Drive Forward and Wait Until Front Eye detects green before Turning right for 90 degrees.

Questions

Please select a link below to access the lesson quiz.

Google Doc / .docx / .pdf