sarmadm 0 Posted October 4, 2016 Share Posted October 4, 2016 I have LIS2DH12 connected to MSP430FR5739 through SPI , I couldn't find any code example on how can I read data from it , is there are anyuseful resource for this ? This is my first time working with accelerometers and I am trying hard to learn as much as I can. Quote Link to post Share on other sites
NurseBob 111 Posted October 5, 2016 Share Posted October 5, 2016 the LIS2DH12 supports both I2C and SPI communication interfaces. You've noted your board is using the SPI interface, so examples for basic SPI communication with a sensor would be the place to start. The LIS2DH12 docs will inform on the messages from the device, which your FR device will need to decode. You may find some hints in the ST Microelectronics GUI documentation for their demo board that works with the LIS2DH12www.st.com/resource/en/user_manual/dm00024991.pdf Additional docs are here: http://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mems-motion-sensor-eval-boards/steval-mki109v2.html zeke 1 Quote Link to post Share on other sites
NurseBob 111 Posted October 5, 2016 Share Posted October 5, 2016 I ran across this youtube video which may provide a resource: zeke 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.