Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Raspberry Pi Robotic Projects - Third Edition

You're reading from  Raspberry Pi Robotic Projects - Third Edition

Product type Book
Published in Oct 2016
Publisher
ISBN-13 9781786467966
Pages 238 pages
Edition 3rd Edition
Languages
Concepts
Authors (2):
Richard Grimmett Richard Grimmett
Profile icon Richard Grimmett
Jon Witts Jon Witts
Profile icon Jon Witts
View More author details

Table of Contents (13) Chapters

Raspberry Pi Robotic Projects - Third Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Getting Started with the Raspberry Pi Building Your Own Futuristic Robot Building a Wall-E Robot Building a Robotic Fish Creating a Robotic Hand with the Raspberry Pi A Self-Balancing Robot Adding the Raspberry Pi to a Quadcopter

Reading the IMU


The IMU is a special measurement unit that will tell you about the movement of your robot. It uses a combination of accelerometers and gyroscopes, sometimes also magnetometers. This will allow your robot to sense when it is falling over, and then can respond and right itself.

Here is an image of a unit that is available at most online electronic retailers:

The connections to this chip are straightforward, and the device communicates with Raspberry Pi using the I2C bus. Since you are using the motor controller, you can connect the device to the I2C bus on the controller board. Here is a close-up of the I2C connector on the RaspiRobot board:

There are five connections. You'll connect your device VCC to the 5V connection on the motor controller. You'll connect GND on your device to GND on the motor controller. Then connect the SCL connector on your device to the C connector on the motor controller and the SDA pin on the device to the D connection on the motor controller. Notice...

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}