I want 3 Axis Acceleration and Gyro data Via I2C bus, I have tried several ways and used some external libraries but nothing worked for me. And I am New to this so Please help me with this.
I want 3 Axis Acceleration and Gyro data Via I2C bus, I have tried several ways and used some external libraries but nothing worked for me. And I am New to this so Please help me with this.
Hi,
There is not much to go on here. Please explain more about:
Hello Einar,
Thank You Einar.
Hello Einar,
Thank You Einar.
Hi,
I suggest you obtain a logic analyzer as that will make it much easier to understand issues when working with I2C/TWI, or any other serial interface for that matter.
Generally most if not all accelerometers you find that you talk to using I2C or SPI is compatible with the nRF51. But you may have to do some work to port the driver to SDK 12.3 if you cannot find something that allready exists. Regarding that, there is a thread here with code for using MPU6050. Not sure if that can be of use or not.
For alternative accelerometers, you have for instance the LIS3DH which is used in the Thingy:52. For that you can refer to the Thingy52 firmware to see how it can be used.