Datasheet
SPI Wiring
Since this is also an SPI-capable sensor, we can use hardware or 'software' SPI. To make wiring identical on all
Arduinos, we'll begin with 'software' SPI. The following pins should be used:
Connect Vin to the power supply, 3V or 5V is fine. Use the same voltage that the microcontroller logic is based
off of. For most Arduinos, that is 5V
Connect GND to common power/data ground
Connect the SCL (SCK) pin to Digital #13 but any pin can be used later
Connect the SDO pin to Digital #12 but any pin can be used later
Connect the SDA (SDI) pin to Digital #11 but any pin can be used later
Connect the CS pin Digital #10 but any pin can be used later
Later on, once we get it working, we can adjust the library to use hardware SPI if you desire, or change the pins to
other pins.
Note: Photo below incorrectly shows GND to 3Vo. The correct connection is GND to GND as listed above!
© Adafruit Industries https://learn.adafruit.com/adafruit-lis3dh-triple-axis-accelerometer-breakout Page 13 of 22










