Preview Mode. Sign in to save progress!
You are in preview mode! Progress will not be saved!
Sign in to save your progress!

Overview

In this activity, you will use the Optical Sensor underneath the robot's claw. The following steps tell you where to attach the Optical Sensor and how to configure it in VEXcode. 

Attaching the Optical Sensor

We have attached the Optical Sensor to the center of the robot's claw. To attach the sensor, you will need the following materials:





 
VEX Smart Cable

Mounting the Sensor

First, use two screws and keps nuts to secure the Angle Coupler Gusset underneath the claw.
Then, use the remaining screws and keps nuts to secure the. Optical Sensor onto the Angle Couper Gusset.
Optical Sensor mounted on claw

How to Test the Optical Sensor

Step 1: Open a New Project in VEXcode

Open the VEXcode app.  Select File > New Project. You can name the project "OpticalDecisions".

VEXcode New Project Instructions

Step 2: Configure the Drivetrain

Step 3: Configure the Optical Sensor

Configure your Optical Sensor within VEXcode by completing the following steps. 

  1. Select the Robot Configuration button located in the top right of VEXcode
  2. Select “Add a device”
  3. Select "Optical"
  4. Choose Port 20
  5. Rename it "ClawOptical"
  6. Click Done
Robot Configuration
Contact Us