cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DH not responding with any data

Ambient Power
Associate

I'm having a nightmare trying to get my LIS2DH to respond. SA0 is high, CS is high.

It kind of responds to the right address (others get nothing), but data is all zeros.

All I want to do is get XYZ data out, these are all zeros too!

The I2C timing chart in the data sheet is wrong, they just duplicated the SPI one, so that's not a lot of help.

Any ideas?

0690X000006CEldQAG.png

1 REPLY 1
Ambient Power
Associate

Ah, finally! Worked out I need to enable the device in the control registers, writing $08 to $23, and $9f to $20. Now, I'm getting data!