Hardware

The examples in this guide are no longer supported. Check out the LIS3DH sensor guide for CircuitPython and Python usage: https://learn.adafruit.com/adafruit-lis3dh-triple-axis-accelerometer-breakout

Parts

You'll need the following hardware to follow this guide:

Start by following the LIS3DH breakout guide to assemble and test the board.  Then continue on below to learn how to wire it to a Feather for use with CircuitPython.

Wiring

There are two ways to connect the LIS3DH accelerometer to a board, either with an I2C or SPI connection.  The I2C connection requires just a couple data lines and is the recommended way to use the accelerometer.  However if for some reason you can't use I2C the board also supports a SPI interface which uses a few more data lines.  See below for details on wiring up either interface to your board.

I2C Wiring

  • LIS3DH Vin to board 3V (or 5V) output - red wire.
  • LIS3DH GND to board GND/ground - black wire.
  • LIS3DH SCL to board SCL (I2C clock) - orange wire.
  • LIS3DH SDA to board SDA (I2C data) - yellow wire.

SPI Wiring

  • LIS3DH Vin to board 3V (or 5V) output - red wire.
  • LIS3DH GND to board GND/ground - black wire.
  • LIS3DH SCL to board SCK (SPI clock) - orange wire.
  • LIS3DH SDA to board MOSI (SPI microcontroller out/sensor in) - yellow wire.
  • LIS3DH SDO to board MISO (SPI microcontroller in/sensor out) - green wire.
  • LIS3DH CS to board pin #6 (or any free digital I/O pin) - blue wire.

Once the LIS3DH is wired to your board continue on to learn how to install the CircuitPython modules necessary to control it from your Python code.

This guide was first published on Feb 26, 2017. It was last updated on Feb 26, 2017.
This page (Hardware) was last updated on Jul 03, 2020.