Go Down

Topic: LIS2DH12 accelerometer (Read 215 times) previous topic - next topic



I want to start with LIS2DH12 accelerometer programming ,It is not clear for me from where should I

start .  could anyone please tell me what I should do ?



Not necessarily in this order
1. get an LIS2DH12 and an Arduino
2. google "LIS2DH12 Arduino" and follow all those examples.
3. Read more detailed info on both sensor and arduino usage.


I agree with blimpyway. But in the third step I would like to be more specific: Get the accelerometer datasheet and read it.

As you want to program it (and read some data, I suppose), it is mandatory to know:
1) The communication protocol (SPI? I2C?). In case you don't know how they work, make a research.
2) The Register map: which registers you have to write (and which options can be programmed), which registers have the acceleration data.
3) How to implement the communication: physical layer (which pins do you need? Need pullups?): design the schematic of the shield. How to implement the protocol with the arduino?

Good luck!


If the LIS2DH12 route does not pan out, you could have better luck with the ADXL335. 

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131