This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF51822 accelerometer

I'm working on nFR51822 Soc and I wanna use the accelerometer data . Does any one have an idea how to communicate with nRF51822 accelerometer ? LIS3DSH

Parents Reply
  • You need to be more specific than that:) What is not working? Are you able to use the SPI master on the nRF51 at all? Are you able to compile and flash the code to the chip? Do you have a logic analyzer so you can see the traffic on the SPI bus? Do you know the principle behind SPI communication? How to read and write to registers? Did you look at the accelerometer datasheet and determine which registers you need to write to in order to initialize the chip (if needed)? Did you find the address of the output registers in the datasheet? Did you try to read out information from these output registers?

Children
No Data
Related