Zumo Inertia

The Zumo Robot is fitted with a set of Inertia Sensors that can be used to detect collisions and determine bearings/direction. The later 1.2v of the Zumo Shield includes a Gyroscope.  You will need to download the LSM303 library from GitHub and place it inside your libraries folder.

Calibrating

To begin you should run the calibrate example to get the maximum and minimum values for your particular robot.  During this phase you should move the robot through every possible orientation.  Using the serial monitor you will be able to get six values that you can use in the next phase. inertiaCalibration  

Heading

The following script shows how once calibrated the robot can read its heading. headingReading    

Last Updated:
Posted in k0ding

Comments 0

Write a Reply or Comment

We will not publish your email.*


*