2020-07-08 01:29 PM
Hi,
I am using STM32F407 DİSCOVERY. I am trying to internal accelerometer(LIS3DSH) reading with I2C communication because my teacher asked for this but everyone ACC reading with SPI communication. I wonder if it is not read with ACC (LIS3DSH) I2C or am I dealing with something wrong? Why everyone is using SPI communication While reading ACC ?
2020-07-08 06:06 PM
If you look at the LIS3DSH datasheet, you'll see it supports both SPI and I2C communication. This is common on many different sensors.
2020-07-09 01:26 AM
Thak you TDK,
so Why is everyone using SPI communication to read ACC?
Regards
2020-07-09 06:28 AM
> Why is everyone using SPI communication to read ACC?
They aren't.
The very first hit in google for "LIS3DSH i2c library" is this:
https://github.com/electricimp/LIS3DH
Which proves a nonzero number of people are using I2C.
This took me 10 seconds to find.