Adafruit LIS3DH Shield
Overview
The Adafruit LIS3DH Triple-Axis Accelerometer Sensor Shield features a ST LIS3DH 3-axis accelerometer and two STEMMA QT connectors.
Requirements
This shield can be used with boards which provide an I2C connector, for
example STEMMA QT or Qwiic connectors.
The target board must define a zephyr_i2c node label.
See Shields for more details.
Pin Assignments
Shield Pin |
Function |
|---|---|
SDA |
LIS3DH I2C SDA |
SCL |
LIS3DH I2C SCL |
INT |
LIS3DH Interrupt out |
SDO |
LIS3DH I2C address selection. Pull down by default. |
CS |
LIS3DH Force I2C mode by setting it to high level. |
I2 |
LIS3DH Second interrupt out |
A1-A3 |
LIS3DH Analog-to-digital converter inputs. Not used. |
In order to use interrupts you need to connect a separate wire from the
shield to a GPIO pin on your microcontroller board. See
st,lis3dh for documentation on how to adjust the
devicetree file.
Programming
Set --shield adafruit_lis3dh when you invoke west build. For example
when running the Generic 3-Axis accelerometer polling sample:
# From the root of the zephyr repository
west build -b adafruit_qt_py_rp2040 --shield adafruit_lis3dh samples/sensor/accel_polling