© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
G. KochLearn Engineering with LEGOhttps://doi.org/10.1007/978-1-4842-9280-8_8

8. The Distance Sensor

Grady Koch1  
(1)
Yorktown, VA, USA
 
The Distance Sensor, shown in Figure 8-1, measures the distance to an object in front of it. It can, for example, tell a robot that it may be about to run into something. Alternatively, it can trigger some action when an object gets close. This chapter will describe how to work with these distance sensing functions, first with a new type of tape measure. Then the chapter project will build a cannon that scans an area to monitor for a target to shoot at.

A photograph of a distance sensor. It has two circular mesh projections ...

Get Learn Engineering with LEGO: A Practical Introduction to Engineering Concepts 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.