Issues changing address of Grove IMU 9DoF v2.0

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, salmanfarisvp, jeremy882, crail.lyu969

Post Reply
chrissimons96
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Tue Apr 23, 2019 6:21 pm

Issues changing address of Grove IMU 9DoF v2.0

Post by chrissimons96 » Tue Apr 23, 2019 6:29 pm

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

bill.yu
Junior-7
Junior-7
Posts: 735
Joined: Mon Apr 02, 2018 11:05 am

Re: Issues changing address of Grove IMU 9DoF v2.0

Post by bill.yu » Wed May 08, 2019 3:01 pm

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.

Code: Select all

I2C Scanner
Scanning...
I2C device found at address 0x69  !
done
2. 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: Select all

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
   

Post Reply