Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
BeagleBone Robotic Projects

You're reading from   BeagleBone Robotic Projects Build and control robots that walk, swim, roll, and fly

Arrow left icon
Product type Paperback
Published in Jun 2017
Publisher Packt
ISBN-13 9781788293136
Length 230 pages
Edition 2nd Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Richard Grimmett Richard Grimmett
Author Profile Icon Richard Grimmett
Richard Grimmett
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started with the BeagleBone Blue FREE CHAPTER 2. Programming the BeagleBone Blue 3. Making the Unit Mobile - Controlling Wheeled Movement 4. Avoiding Obstacles Using Sensors 5. Allowing Our BeagleBone Blue to See 6. Providing Speech Input and Output 7. Making the Unit Very Mobile - Controlling Legged Movement 8. Using a GPS Receiver to Locate Your Robot 9. By Land, By Sea, By Air 10. System Dynamics

Connecting a sonar sensor to an Arduino

Here is a picture of a sonar sensor, the HC-SR04, an extremely inexpensive sensor that works well in these sorts of situations:

These sonar sensors are available at most online electronics stores, including amazon.com. There are ways to connect this sensor directly to the BeagleBone Blue; however, there are two disadvantages to this approach. First, you'd need to learn the Programmable Real-Time Unit (PRU) process for BeagleBone Blue development. These sensors need specifically timed pulses, and the PRU system would allow you to create them. Also, since you're going to use multiple sensors to look around your mobile platform, you would need a significant number of General Purpose Input/Output (GPIO) connectors.

For these reasons, you're going to a use a simple and inexpensive processor, an Arduino, to connect to the sensors...

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