Using the Vision Sensor
The Builder in each group should get the hardware required. The Recorder should get the group’s engineering notebook. The Programmer should open VEXcode IQ.
Quantity | Materials Needed |
---|---|
1 |
VEX IQ Super Kit |
1 |
VEXcode IQ |
1 |
Engineering Notebook |
1 |
Configuring the Vision Sensor (Tutorial) |
1 |
Tuning the Vision Sensor (Tutorial) |
1 |
Detecting Objects example project |
This activity will give you the tools to use the Vision Sensor.
You can use the Help information inside of VEXcode IQ learn about the blocks. For guidance in using the Help feature, see the Using Help tutorial.
Step 1: Preparing for the activity
Before you begin the activity, do you have each of these items ready? The Builder should check each of the following:
-
Are all the motors and sensors plugged into the correct port?
-
Are the smart cables fully inserted into all of the motors and sensors?
-
Is the Brain turned on?
-
Is the battery charged?
Step 2: Open an Example Project.
-
VEXcode IQ contains many different example projects. You’ll use one of them in this exploration. For help and tips on using example projects, check out the Using Examples and Templates tutorial.
Then, open the Detecting Objects example project.
The Programmer should complete the following steps:
- Open the File menu.
- Select Open Examples.
-
Use the filter bar at the top of the application and select "Sensing."
-
Select and open the Detecting Objects example project.
-
Save your project as Detecting Objects.
- Check to make sure the project name Detecting Objects is now in the window in the center of the toolbar.
-
For addition help, view the Use Example Projects and Templates tutorial video.
Step 3: Configuring and Using the Vision Sensor
- Begin by watching the Configuring the Vision Sensor tutorial video.
-
Next, configure the Vision Sensor for three colored objects: red, green, and blue.
-
Have the Programmer open the previously saved Detecting Objects example project.
-
What is this project actually doing? Predict what the Autopilot will do and have the Recorder write down the predictions in your engineering notebook.
-
Have the Driver Download and Run the project. Have the Builder place different colored objects in front of the Vision Sensor and observe the robot's behavior. Have the Recorder record in your engineering notebook how your prediction was different or correct compared to what you actually observed from the project.
For additional help, view the Download and Run a Project tutorial video.
Step 4: Tuning the Vision Sensor
Often times an object is configured to be recognized by the Vision Sensor in one environment, for example, in a classroom. When the Vision Sensor is then taken into a different environment such as a competition setting, the object may not be recognized by the Vision Sensor. This is often due to a change in lighting after the Vision Sensor has already been configured. To solve this problem, you may have to tune your Vision Sensor.
- Begin by watching the Tuning the Vision Sensor tutorial video.
-
Next, Tune the Vision Sensor for the three colored objects: red, green, and blue.
-
Have the Programmer open the previously saved Detecting Objects example project.
-
How will tuning the Vision Sensor affect how well it can detect objects? Have the Builder take the Autopilot to a different part of the room with more or less light.
-
Have the Driver Download and Run the project. Have the Builder place different colored objects in front of the Vision Sensor and observe the robot's behavior. Have the Recorder document in your engineering notebook how well the Vision Sensor detects objects. Does the Vision Sensor need tuned after it changed locations?
For additional help, view the Download and Run a Project tutorial video. - Tune the Vision Sensor as necessary. Test the Vision Sensor after it has been tuned to determine if it can detect objects better and make adjustments as needed.