IMU Failing begin

I just purchased a Nano 33 BLE. I installed the board for it and the LSM6DS3 library from Arduino.

I opened the example for the accelerometer. When I run it it fails the IMU.begin.

I know this because I commented out everything except that and added a Serial.println("loop"); inside the loop function.

When I leave the while(1) inside the !IMU.begin block it never starts printing loop. When I comment out that while(1) loop starts printing out.

So how can I fix this? I was hoping this would just work.

Thank you for moving this to the correct forum.

Hi @tpitman, the Nano 33 BLE has a different IMU, the correct library to use is: GitHub - arduino-libraries/Arduino_LSM9DS1: LSM9DS1 Library for Arduino

That was it. Thanks!

I guess I was confused when I was looking up the library to install both of them say they support the Nano 33. I should have paid more attention too the fact that one is then nano 33 iot and the other is the ble.

Thanks again for the quick answer.