cancel
Showing results for 
Search instead for 
Did you mean: 

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

PDas.3
Associate
 
1 ACCEPTED SOLUTION

Accepted Solutions
DSull.3
Associate III

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

View solution in original post

1 REPLY 1
DSull.3
Associate III

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