Chapter 5. sensors

In this chapter, you’ll learn how to use the EV3 sensors to make your robot react to what’s happening around it. We humans learn about the world around us using our five senses (touch, sight, sound, smell, and taste). A robot uses sensors in a similar way to gather information about its environment. By using the EV3 sensors, you can program your robot to avoid obstacles, follow a line on the floor, react to light, identify objects based on their color, and much, much more!

In most cases, your program will use the data from the sensors to make decisions about what to do next, but it can also use sensors to collect data as part of an experiment. This chapter describes how to operate sensors and how to use them to make decisions ...

Get The Art of LEGO MINDSTORMS EV3 Programming (Full Color) 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.