Skip to main content
December 3, 2021
Solved

Is there any demo or example code for interfacing LSM6DS3H(as a slave) with PIC microcontroller(PIC18F series) for reading accleration data ?

  • December 3, 2021
  • 1 reply
  • 879 views

..

This topic has been closed for replies.
Best answer by DSull.3

Hi, you can find the C drivers for the LSM6DS3 (that is the same as the LSM6DS3H at register level) on Github --> https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lsm6ds3_STdC

You will just have to configure the I2C or SPI peripherals on the PIC18F --> details here https://www.vincenzov.net/tutorial/PIC18/SPI-MSSP.htm

1 reply

DSull.3
DSull.3Best answer
Visitor II
December 3, 2021

Hi, you can find the C drivers for the LSM6DS3 (that is the same as the LSM6DS3H at register level) on Github --> https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lsm6ds3_STdC

You will just have to configure the I2C or SPI peripherals on the PIC18F --> details here https://www.vincenzov.net/tutorial/PIC18/SPI-MSSP.htm