cancel
Showing results for 
Search instead for 
Did you mean: 

How ACC reading with i2c communication?

RESEN.1
Associate II

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 ?

3 REPLIES 3
TDK
Guru

If you look at the LIS3DSH datasheet, you'll see it supports both SPI and I2C communication. This is common on many different sensors.

If you feel a post has answered your question, please click "Accept as Solution".
RESEN.1
Associate II

Thak you TDK,

so Why is everyone using SPI communication to read ACC?

Regards

TDK
Guru

> 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.

If you feel a post has answered your question, please click "Accept as Solution".