Book Image

Arduino Robotic Projects

By : Richard Grimmett
Book Image

Arduino Robotic Projects

By: Richard Grimmett

Overview of this book

Table of Contents (21 chapters)
Arduino Robotic Projects
About the Author
About the Reviewers

Accessing the altimeter/pressure sensor from the Arduino IDE

The following are the steps associated with connecting this device to Arduino:

  1. The first step in accessing the device is to download the appropriate library. Here, you have a choice. You can use the library described in the Connecting an accelerometer/gyro to Arduino section, or you can download a library just for this device. The library supplied for the accelerometer/gyro is a more general library designed to communicate with many different I2C devices. The library for this device supports only this device. If you want to download the library for this device, go to and select the Download Link selection at the bottom of the link. This will download a .rar file that will include an example sketch. I personally prefer to use the I2C library version; it is more up to date, so I will follow that example here.

  2. Open the example by navigating to File | Examples...