Skip to Content
Learning Robotics using Python
book

Learning Robotics using Python

by Lentin Joseph
May 2015
Intermediate to advanced
330 pages
7h 18m
English
Packt Publishing
Content preview from Learning Robotics using Python

Calibrating the MPU 6050

MPU 6050 calibration can be done using the Energia code, which is used to display the raw values of the sensor mentioned in Chapter 6, Working with Robotic Sensors. This example is already available in Energia examples. You will get this code by navigating to File/Examples/MPU 6050/Examples/MPU 6050_raw. Load this sketch into Energia and follow the procedure given here:

  1. Place the MPU 6050 breakout board on a flat surface. We can use an inclinometer to check the inclination of the surface.
  2. Modify the current program by setting the offset to zero. We can set the offset of three axes values of gyroscope to 0 using the following function:
    ("setXGyroOffset , setYGyroOffset , setZGyroOffset"  =0)
  3. Upload the raw code to Launchpad ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Robotics using Python - Second Edition

Learning Robotics using Python - Second Edition

Lentin Joseph
Python Robotics Projects

Python Robotics Projects

Prof. Diwakar Vaish

Publisher Resources

ISBN: 9781783287536Supplemental Content