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    

About CDB 361 Articles
Self-Employed Software Developer, Spark, Property Management, Hobby Forestry, Ex-Teacher, Engineering - Wood, Metal, Electrics & Computers. Outdoors - Walk, Cycle, Kitesurf,

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.