prunkdump / arduino-variometer

Arduino based variometer with accelerometer, screen, gps and sdcard code
GNU General Public License v3.0
84 stars 40 forks source link

Suggestion: extra Define to set MPU I2C address to 0x69 #9

Closed sbishop61 closed 5 years ago

sbishop61 commented 7 years ago

Baptiste, in order to try and get a prototype into a box to calibrate I have used a cjmcu-117 as I think you have. Unfortunately there seems to be some short on the board as the I2c address keeps changing from 0x68 to 0x69 and back again. The solution is to set ADO to 1 which holds the address at 0x69.

I can get it to work by editing inv_mpu.cpp where #define GYRO_HW_ADDR (0x68) is set both for MPU6050 and separately for MPU6500.

A suggestion would be to have a define in VarioSettings.h rather than in the C++ file.

regards Stephen

prunkdump commented 5 years ago

You can now set the MPU address in VarioSetting.h

Thanks for the report.

Baptiste.