Book Image

BeagleBone: Creative Projects for Hobbyists

By : Rodolfo Giometti, Charles A. Hamilton, Richard Grimmett
Book Image

BeagleBone: Creative Projects for Hobbyists

By: Rodolfo Giometti, Charles A. Hamilton, Richard Grimmett

Overview of this book

BeagleBone is a microboard PC that runs Linux. It can connect to the Internet and run OSes such as Android and Ubuntu. You can transform this tiny device into a brain for an embedded application or an endless variety of electronic inventions and prototypes. This Learning Path starts off by teaching you how to program the BeagleBone. You will create introductory projects to get yourselves acquainted with all the nitty gritty. Then we’ll focus on a series of projects that are aimed at hobbyists like you and encompass the areas of home automation and robotics. With each project, we’ll teach you how to connect several sensors and an actuator to the BeagleBone Black. We’ll also create robots for land, sea, and water. Yes, really! The books used in this Learning Path are: 1. BeagleBone Black Cookbook 2. BeagleBone Home Automation Blueprints 3. Mastering BeagleBone Robotics
Table of Contents (6 chapters)

Chapter 3. Adding Sensors to Your Tracked Vehicle

Now that your platform can move around, you'd want to add some sensors to avoid or track barriers or other objects. Sensors can also tell you the direction in which you are going. Adding sensors will give a sense of direction and intelligence to your robot.

In this chapter, you will learn the following:

  • Using sonar sensors to find the distance to an object
  • Using Infrared (IR) sensors to find distance to an object
  • Some basic path planning techniques for your robot

Basics of sensors

There are many different kinds of sensors. There are sensors that measure distance, temperature, wind strength, and direction. The list is almost endless. In almost every case, the sensor will take some sort of measurement and then turn it into a voltage that the BeagleBone Black can measure and programmatically respond to. There are many different interfaces for these measurement devices; over the next few chapters, you'll explore many of them. But...