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 ?
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 ?
In the schematic it's written LIS3DSh , but i didn't find any useful information about it .
If you google LIS3DSH, the first result points to the datasheet: www.st.com/.../DM00040962.pdf
In chapter 6 in that datasheet the interfaces are described (SPI and I2C).
The nRF51 supports both SPI and I2C. If you download the SDK we have an example on how to use the SPI: developer.nordicsemi.com/.../a00046.html
The SPI driver is documented here: developer.nordicsemi.com/.../a00011.html
And the TWI driver is documented here: developer.nordicsemi.com/.../a00014.html
I tryied to includethe spi driver as shown in the mater example but it didn't work . even the master example can not be load to the ship . I didn't figure out how to include this driver !
I tryied to includethe spi driver as shown in the mater example but it didn't work . even the master example can not be load to the ship . I didn't figure out how to include this driver !