Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Arduino Robotic Projects

You're reading from  Arduino Robotic Projects

Product type Book
Published in Aug 2014
Publisher
ISBN-13 9781783989829
Pages 240 pages
Edition 1st Edition
Languages
Author (1):
Richard Grimmett Richard Grimmett
Profile icon Richard Grimmett
Toc

Table of Contents (21) Chapters close

Arduino Robotic Projects
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Powering on Arduino 2. Getting Started with the Arduino IDE 3. Simple Programming Concepts Using the Arduino IDE 4. Accessing the GPIO Pins 5. Working with Displays 6. Controlling DC Motors 7. Controlling Servos with Arduino 8. Avoiding Obstacles Using Sensors 9. Even More Useful Sensors 10. Going Truly Mobile – the Remote Control of Your Robot 11. Using a GPS Device with Arduino 12. Taking Your Robot to Sea 13. Robots That Can Fly 14. Small Projects with Arduino Index

Accessing the compass from the Arduino IDE


The first step in accessing the compass capability from the IDE is to install a library. Finding a library that supports the module is a bit difficult, but one that works well is available at www.emartee.com/product/42254/HMC5883L%203%20Axis%20Digital%20Compass%20Module.

The following are the steps to install the library and run the example:

  1. Select the Arduino Library for HMC5883L link on the previously mentioned page, and it will take you to a set of library selections.

  2. You need to select the HMC5883L / HMC5883L Library For Arduino.rar link at the bottom of this page, and it will download a .rar file that holds the library.

  3. Unzip this file into the libraries directory of your Arduino installation.

  4. Now, bring up the Arduino IDE and select the Examples option under the File menu, and you should be able to select the HMC5883L library example, as shown in the following screenshot:

  5. Once you have selected this example, upload it to your Arduino and open the...

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}