SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By Caljens
#195287
Hello,

First time poster - please be nice if I seem out of my depth.

I am trying to read from two LSM9DS1 boards via I2C with my Arduino Mega 2560.

I have one LSM9DS1 working fine, no change to the jumpers, wired to 3.3V, GND, SDA & SCL.
Address for this is 0x1E for Mag, and 0x6B for Accel and Gyro. (Everything, out of the box).

I have the second LSM9DS1 with both SDO AG & M jumpers "sliced", understanding that this would change the address to 0x1C for the Mag, and 0x6A for the Accel and Gyro. This board is wired up to share the same 3.3V, GND, SDA & SCL as the first board.

When I run the LSM9DS1_Basic_I2C sketch from the LSM9DS1 library (updating the addresses to the new addresses written above), I fail to communicate with the LSM9DS1.

I have tried connecting all four CS and SDO pins to 3.3V as suggested at in the Hookup guide, still no joy.

Can anyone spot a fault with what I'm trying to achieve?

I can post the sketch if it helps, but its just the example from the LSM9DS1 library with the addresses changed.

Any help would be greatly appreciated!

Cheers,
Cal