Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Intel Galileo Essentials

You're reading from   Intel Galileo Essentials Leverage the power of Intel Galileo to construct amazingly simple, yet impressive projects

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784398903
Length 162 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

Table of Contents (10) Chapters Close

Preface 1. Getting Started with the Galileo FREE CHAPTER 2. Accessing the GPIO Pins 3. Adding Display Functionality 4. Controlling DC Motors 5. Adding Sensors 6. Remote Control 7. Going Further with Galileo 8. Speech Output Index

Sensing distance


There are two basic sensors that will return information on the distance to an object: sonar and infrared. In the case of sonar, the sensor uses ultrasonic sound to calculate the distance to an object. The sensor consists of a transmitter and receiver, the transmitter creates a sound wave that travels out from the sensor, as illustrated here:

The device is triggered by an electronic signal to send out a sound wave. If an object is in the path of these waves, then the waves reflect off the object, sending waves that return to the sensor, as shown here:

The basic sensor then measures the received sound wave and sends out an electronic signal. The user can then calculate the time difference between when the sound wave was sent out and when it returns to measure the distance to the object. Unfortunately, the return time must be measured with precision for this type of sensor to work. This is challenging for a processor such as the Galileo, that runs Linux as the base operating...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image