Fermion: I2C LIS331HH Triple Axis Accelerometer Sensor

SKU: SEN0407

The LIS331HH Triple Axis Accelerometer Sensor is a high-performance, low-power device designed to measure acceleration with selectable scales and programmable interrupts, offering advanced capabilities for various applications.

Front of LIS331HH triple axis accelerometer breakout with labeled pins and chip-DFRobot product sku:SEN0407 image.
  • Docs
  • Tech Specs
  • 1. Example Code for Arduino-M0-Wakeup function

    This example demonstrates the wake-up function. The module enters low-power mode with a reduced sampling rate, and switches to normal mode when an interrupt is triggered. Connect INT1/INT2 to the board’s interrupt pin. SPI CS can be modified via LIS331HH_CS.

    2. Example Code for Arduino-M0-External interrupt function

    This example demonstrates interrupt detection. When acceleration on a selected axis exceeds or falls below the set threshold, the interrupt signal can be detected on the INT1/INT2 pin.

    3. Example Code for Arduino-M0-Read acceleration of x, y and z

    Get the acceleration in the three directions of xyz, the range can be ±6g, ±12g or ±24g. When using SPI, chip select pin can be modified by changing the value of LIS331HH_CS.

    4. Example Code for Raspberry Pi-Wakeup function

    Wakeup function (Only available for Breakout Version).

    5. Example Code for Raspberry Pi-External interrupt function

    External Interrupt Function.

    6. Example Code for Raspberry Pi-Read acceleration of x, y and z

    Read acceleration of x, y and z.

    Reference

    Specification


    Parameter Specification
    Operating Voltage 3.3 V
    Operating Current 10 μA-140 μA (Low-power mode)/0.3 mA-0.4 mA (Normal mode)
    Interface I2C/SPI
    I2C Address 0×19 (Default)/ 0×18 (Optional)
    Selectable Scale ±6 g/±12 g/±24 g
    Frequency 0.5Hz ~ 1kHz
    Data Output 16-bit
    Special Function Sleep to wake-up function
    Compliance ECOPACK®RoHS and “Green” compliant
    Operating Temperature -40 °C ~ ﹢85 °C
    Dimension 15×20 (mm) / 0.59×0.79"
    Mounting Hole Size Inner diameter 2mm (0.08") /Outer diameter 4mm (0.16")

    Pinout


    Num Label Description
    1 VCC 3V3
    2 GND GND
    3 SCL I2C/SPI Clock Line
    4 SDA I2C/SPI Data Line
    5 INT2 Interrupt Pin 2
    6 INT1 Interrupt Pin 1
    7 CS SPI Chip-select Line
    8 SDO I2C Address Select Pin/SPI Data Line

    Was this article helpful?

    TOP