Datasheet

Pi 3V3 to sensor VIN
Pi GND to sensor GND
Pi SCL to sensor SCL
Pi SDA to sensor SDA
Here's the Raspberry Pi wired with SPI:
Pi 3V3 to sensor VIN
Pi GND to sensor GND
Pi SCLK to sensor SCL
Pi MOSI to sensor SDA
Pi MISO to sensor SDOAG AND sensor
SDOM
Pi GPIO5 to sensor CSAG
Pi GPIO6 to sensor CSM
CircuitPython Installation of LSM9DS1 Library
You'll need to install the Adafruit CircuitPython LSM9DS1 (https://adafru.it/C5b) library on your CircuitPython board.
First make sure you are running the latest version of Adafruit CircuitPython (https://adafru.it/Amd) for your board.
Next you'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these
libraries from Adafruit's CircuitPython library bundle (https://adafru.it/zdx). Our introduction guide has a great page on
how to install the library bundle (https://adafru.it/ABU) for both express and non-express boards.
Remember for non-express boards like the, you'll need to manually install the necessary libraries from the bundle:
adafruit_lsm9ds1.mpy
adafruit_bus_device
Before continuing make sure your board's lib folder or root filesystem has
the adafruit_lsm9ds1.mpy, and adafruit_bus_device files and folders copied over.
Next connect to the board's serial REPL (https://adafru.it/Awz) so you are at the CircuitPython >>> prompt.
CircuitPython & Python Usage
To demonstrate the usage of the sensor we'll initialize it and read the accelerometer, magnetometer, and more from
the board's Python REPL.
© Adafruit Industries
https://learn.adafruit.com/adafruit-lsm9ds1-accelerometer-plus-gyro-plus-
magnetometer-9-dof-breakout
Page 17 of 23