How to use +/- 16g on Arduino Nano 33 BLE LSM9DS1

I have an Arduino Nano 33 BLE and I want to use the built in LSM9DS1 IMU at +/- 16g mode. While the sensor supports this, the provided library (Arduino_LSM9DS1) does not as far as I can tell.

I tried using Adafruit LSM9DS1 but it doesn't support using internal pins, so that won't work since this is not connected to the external I2C bus but rather some internal pins in the schematic.

Is there a way to use it in +/- 16 g mode? A library? A way to use the original library but configure it differently?

Maybe you could change the 'private:'s in your installation's copy of LSM9DS1.h to public: and access the registers directly within the library:

But you might also need the defines in the .cpp file.

The internal pins are SDA1 and SCA1, so you should be able to access it directly on Wire1.*

image

This bit of the Ardafruit library might let you use Wire1:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.