cancel
Showing results for 
Search instead for 
Did you mean: 

LIS302DHL MEMS accelerometer

oz
Associate II
Posted on January 03, 2010 at 11:29

LIS302DHL MEMS accelerometer

2 REPLIES 2
oz
Associate II
Posted on May 17, 2011 at 13:36

how i use LIS302DHL MEMS accelerometer for get the acceleration value.

raptorhal
Associate II
Posted on May 17, 2011 at 13:36

Do it the same way the rest of us did it:

1. Thoroughly read and understand the accelerometer data sheet.

2. Select your interface method (I2C or SPI, or you can bit bang it).

3. Assemble a test PCB.

4. Read the STM32 examples code for your selected interface method.

5. Customize a code example to communicate with your accelerometer.

6. Test it by stepping through the code with a debugger and make sure it does what is expected.

7. If you have problems, get a second person to review the design and code.

8. If you are still unsuccessful, then post your PCB design and code here and we will see if we can help.

Cheers, Hal