REV Color Sensor V3
Last updated
Was this helpful?
Last updated
Was this helpful?
This sensor is emits light and then analyzes the reflected light that it sees. It is capable of measuring:
raw distance up to 10cm (but most effective under 2cm)
Alpha
Hue
Red
Blue
Green
Full Guide from REV Robotics:
Color Sensor Class Documentation:
Distance Sensor Class Documentation:
Supporting Images:
Add your sensor object with the rest of your robot objects:
Hardware map it!:
Add some code like this to your main loop to read the values on your sensor:
Try something like this to drive until your sensor sees a red line:
*Note, this code is not intended to work right off the bat… this is just an idea of how you could use a color sensor to control your robot!*