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 ...

Get Learning LEGO MINDSTORMS EV3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.