nRF52840 and LSM303AGR accelerometer (SPI) #nrf52840
Arkadiusz Cichocki
Hi, I'm trying to read data from the LSM303AGR accelerometer using SPI. The microcontroller which I use is nRF52840. I want to use the LIS2DH driver which is implemented in Zephyr. I added the following device description to the board's device tree:
It corresponds to the connections of the real device. https://github.com/zephyrproject-rtos/zephyr/tree/master/samples/sensor/lsm303dlhc I have removed magnetometer related part of the code and changed config from SPI to I2C in prj.conf file too. Unfortunately, measurements fail.
Does anyone have any experience with the presented configuration? Thanks in advance for any suggestions.
Best regards, Arek
|
|