Skip to main content
Visitor II
May 7, 2020
Question

interfacing lis3dsh with stm controller

  • May 7, 2020
  • 2 replies
  • 1022 views

Hi ,

is there any sample code for interfacing lis3dsh accelermeter sensor to stm32f103rb evaluation Board.

Regards,

manjunath

    This topic has been closed for replies.

    2 replies

    ST Employee
    May 7, 2020

    Hi @MKS​, you can find the drivers for the LIS3DSH device in the STM32CubeF4 package (folder \Drivers\BSP\Components\lis3dsh). This driver can be included in your .ioc project (and the specific configuration will depend on the MCU pins you choose for the communication with the LIS3DSH device). For the direct integration you can refer also to this guide. Which is your target application? Would you need specific algorithms above the standard drivers? Regards

    MKSAuthor
    Visitor II
    May 7, 2020

    Hi ,

    thanks for your reply, i am specifically asking for i2c interface.

    Is there a exaple code for LIS2DS12 also, trying step counter application if available it will be very useful.

    regards,

    manjunath