Issues changing address of Grove IMU 9DoF v2.0

hi all,



I’m using 2 Grove IMU 9DoF v2.0 sensors in a project and I’m having issues changing the address of the 2nd sensor from 0x68 to 0x69.



It says all I need to do is connect 2 pads on the sensor, I’ve tried that but when I run the example in the library above through arduino, it tells me that the connection has failed and only returns 0 values.



I’ve tried this with 2 seperate sensors and had the same issue on both.



I’m at a loss of what to do now, any help or guidance would be greatly appreciated.



Thanks,

Chris

Hi Chris,


  1. please use the i2c saner to check if arduino detect the i2c device and display the correct i2c address, such as below.

</s>I2C Scanner Scanning... I2C device found at address 0x69 ! done<e>

  1. If yes, please change MPU9250_DEFAULT_ADDRESS to MPU9250_ADDRESS_AD0_HIGH as below in C:\Program Files (x86)\Arduino\libraries\Grove_IMU_9DOF_9250\MPU9250.h. thanks.



    #define MPU9250_ADDRESS_AD0_LOW 0x68 // address pin low (GND), default for InvenSense evaluation board

    #define MPU9250_ADDRESS_AD0_HIGH 0x69 // address pin high (VCC)

    #define MPU9250_DEFAULT_ADDRESS MPU9250_ADDRESS_AD0_HIGH

[code]Testing device connections…
MPU9250 connection successful

calibration parameter:
0.00 0.00 0.00

Acceleration(g) of X,Y,Z:
0.34,0.63,-0.68
Gyro(degress/s) of X,Y,Z:
0.29,0.38,0.48
Compass Value of X,Y,Z:
14.65,12.30,-58.59
The clockwise angle between the magnetic north and X-Axis:
40.03
The clockwise angle between the magnetic north and the projection of the positive X-Axis in the horizontal plane:
51.58

[/code]