Jump to content
I2Cdevlib Forums


  • Posts

  • Joined

  • Last visited

strayVoltage's Achievements


Newbie (1/14)



  1. The address is not incorrect, the mpu6050 has an address select pin 'AD0' that selects address between 0x68 and 0x69. Your electrical connections must match your code. This is important in case you run into another i2c device which uses the same address, or more likely you wish to use 2 mpu6050 modules at once in order to get better data, which may be useful for solving gyro drift problems in applications which require low gyro drift.
  2. Cerin, i actually didn't go back and look at the code again so take this with a grain of salt, but im pretty sure it will not correctly calculate acceleration (gyro will probably be ok) offsets if the orientation is changed. The program is expecting to see the force of gravity on one axis, and accounts for this when calculating the offsets. If you do not edit the code to change what axis is expecting to see gravity, the offsets probably wont converge, and if they do will be very wrong. It might be possible to re-write the program to intelligently detect which axis is detecting gravity (reads ~16000 at level rest) and run a smarter calibration routine. When i needed to reorient my sensors i just fooled the code into switching my axis for me, something like: axisX = -readAxis(y); if you go this route you will need to think carefully about how to switch up your axes to maintain a valid coordinate system. Happy coding!
  3. Hello everyone, Just wanted to share some help for those of you who are having problems with the auto-calibration not working, such as in posts #11 and #29 and others. I had the same problem, and it turned out to be caused by an outdated version of the i2cdev library. go here https://github.com/jrowberg/i2cdevlib and download the latest version of the i2cdev library. Replace your old version of the i2cdev library in your Arduino libraries folder with the new one. Voila!
  • Create New...