O'Reilly logo

The LEGO MINDSTORMS EV3 Discovery Book (Full Color) by Laurens Valk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. using the color sensor

In this chapter, you’ll learn to use the Color Sensor by adding it to the EXPLOR3R (see Figure 7-1) so the robot can detect colored paper, follow lines, and respond to light signals.

Using the Color Sensor, the EXPLOR3R can detect colors and follow lines.

Figure 7-1. Using the Color Sensor, the EXPLOR3R can detect colors and follow lines.

The Color Sensor can detect the color of a surface (in Color mode), the amount of light reflected by a surface (in Reflected Light Intensity mode), or the brightness of ambient light (in Ambient Light Intensity mode), as shown in Figure 7-2.

You’ll create programs for the EXPLOR3R to try out each of these modes using the Wait, Loop, and Switch blocks, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required