Skip to Main Content
The Art of LEGO MINDSTORMS NXT-G Programming
book

The Art of LEGO MINDSTORMS NXT-G Programming

by Terry Griffin
August 2010
Intermediate to advanced content levelIntermediate to advanced
288 pages
13h 21m
English
No Starch Press
Content preview from The Art of LEGO MINDSTORMS NXT-G Programming

the ultrasonic sensor

The Ultrasonic Sensor (shown in Figure 5-30) measures the distance between the sensor and an object. The sensor sends out high-frequency sound waves and measures the time it takes for them to be reflected, which allows it to determine the object’s distance from the sensor. (Bats use sonar in the same way.)

The Ultrasonic Sensor

Figure 5-30. The Ultrasonic Sensor

An object’s shape and texture greatly affect how well it will be detected by the Ultrasonic Sensor; some surfaces reflect sound waves better than others and therefore are easier to detect. Flat, hard surfaces are the easiest to detect because they reflect most of the sound waves back toward ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

Terry Griffin

Publisher Resources

ISBN: 9781593272180Errata