O'Reilly logo

Raspberry Pi Sensors by Rushi Gajjar

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 3. Measuring Distance Using Ultrasonic Sensors

We, humans have five senses. They are touch, smell, sight, hearing, and taste. However, computers and robots can have as many senses as we want. We can sense different things around us; for example, changes in the temperature can be felt by our skin, but we cannot precisely say what the actual temperature value that we are feeling is. Computers such as RasPi can be used to sense and monitor the surrounding entities. It does the job well, precisely, and untiringly. The computing and interfacing capability of RasPi allows us to interface sensors with it.

Measuring distance using meter tapes and odometers is impractical or inconvenient for some of the applications. If you want to measure the depth ...

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