The VEX IQ Distance Sensor
Read about the Distance Sensor
To learn more about the Distance Sensor, ask the Reader to organize how the group will read the VEX IQ Distance Sensor article from the VEX Library. This article will cover how the Distance Sensor works and provide common uses.
Program with the Distance Sensor
Have the Programmer open VEXcode IQ and follow these steps:
-
Begin by opening the Testbed template example project from VEXcode IQ.
- For help opening the example project, view the Use Example Projects and Templates tutorial video.
-
Build the following project and save it (macOS, Windows, Chromebook, iPad) as Distance Sensor:
Test the Distance Sensor
Have the Tester connect the VEX IQ Brain to your computer and then follow these steps:
- Download the project to the IQ Robot Brain.
- Run the project to report if the Distance Sensor detects an object or not. If it does, it reports how far away it is from the sensor.
- For help downloading and running a project, view the Download and Run a Project tutorial video.
- Based on your observations of how the sensor behaved on the Testbed and the information from the reading, answer the following questions and ask the Recorder to document them in your engineering notebook:
- In what scenario would you use a Distance Sensor instead of a Bumper Switch?
- Why might you want a robot to detect objects at a distance?