cancel
Showing results for 
Search instead for 
Did you mean: 

interfacing lis3dsh with stm controller

MKS
Associate II

Hi ,

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

Regards,

manjunath

2 REPLIES 2
Eleon BORLINI
ST Employee

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

MKS
Associate II

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