O'Reilly logo

Learning LEGO MINDSTORMS EV3 by Gary Garber

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 4. Sensors and Control

In this chapter, we will have the robot respond to the environment using the sensors available in your kit. You will also take a reading from the sensor to display on both the EV3 brick and the computer screen. I will try to focus on information that is not already readily available in the EV3 help menus.

In this chapter, I will introduce:

  • Programming blocks for sensors
  • Official LEGO sensors such as:
    • Touch Sensors
    • Color Sensors
    • Motor rotation sensors
    • Gyro Sensors
    • Ultrasonic motion sensors
    • Infrared Sensors
  • Third-party sensors such as:
    • Dexter industries
    • Mindsensors
    • HiTechnic
    • Tetrix
    • Matrix
    • Vernier

Using sensors

What is great about the official LEGO EV3 (and some NXT) sensors is that the software on the EV3 brick will Auto-ID the sensors ...

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