Book Image

Learning ROS for Robotics Programming Second Edition

Book Image

Learning ROS for Robotics Programming Second Edition

Overview of this book

Table of Contents (27 chapters)
Learning ROS for Robotics Programming Second Edition
Credits
About the Author
Acknowledgments
About the Author
Acknowledgments
About the Author
Acknowledgments
About the Author
Acknowledgments
About the Reviewer
About the Reviewer
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Using a low-cost IMU – 10 degrees of freedom


In this section, we will learn to use a low-cost sensor with 10 degrees of freedom (DoF). This sensor, which is similar to Xsens MTi, has an accelerometer (x3), a magnetometer (x3), a barometer (x1), and a gyroscope (x3). It is controlled with a simple I2C interface, and, in this example, it will be connected to Arduino Nano (http://arduino.cc/en/Main/ArduinoBoardNano).

This sensor is also used for similar uses. Xsens costs approximately $2,000, which is very expensive for normal users. The sensor explained in this section has an approximate cost of $20. The low price of this sensor permits its usage in a lot of projects. You can see this sensor in the following image. It is thin and has a few components:

This board has the following sensors:

  • ADXL345: This is a three-axis accelerometer with a high resolution (13-bit) measurement of up to ±16 g. This sensor is widely used in mobile device applications. It measures the static acceleration of gravity...