Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Beaglebone Robotics

You're reading from  Mastering Beaglebone Robotics

Product type Book
Published in Dec 2014
Publisher
ISBN-13 9781783988907
Pages 234 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Richard Grimmett Richard Grimmett
Profile icon Richard Grimmett

Table of Contents (18) Chapters

Mastering BeagleBone Robotics
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Preparing the BeagleBone Black Building a Basic Tracked Vehicle Adding Sensors to Your Tracked Vehicle Vision and Image Processing Building a Robot that Can Walk A Robot that Can Sail Using GPS for Navigation Measuring Wind Speed – Integrating Analog Sensors An Underwater Remotely Operated Vehicle A Quadcopter An Autonomous Quadcopter Index

Getting sensor data from the wind speed sensor


You'll use the same Adafruit library that you used in the previous chapters. If you have not installed this library, then install it and follow the instructions in Chapter 6, A Robot that Can Sail. Then create the following program:

When you run the program, you will see the output of the wind sensor in volts. You can put the wind sensor near a fan and you should see the value change, as shown in the following screenshot:

Note

Note that this will give you an indication of the strength of the wind, but the reading is not calibrated.

In this case, you won't need a calibrated reading but just a relative indication of strength; you'll then use it to gauge the direction of the wind. As noted earlier, you'll want to mount the wind sensor on a servo. This can give you a better indication of the direction of the wind with respect to the sailboat. To do this, connect the servo as noted in Chapter 6, A Robot that Can Sail. Connect the control wire connection...

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 $15.99/month. Cancel anytime}