Hi Sir,
I have a NRF 51822 board & MPU 9250 sensor. I want to read YAW,PITCH,ROLL,ACC_X,ACC_Y,ACC_Z,GX,GY,GZ,MX,MY,MZ values from MPU Sensor.
Could you please share a working code which i can able to read all above values.
Thanks in advance.
Hi Sir,
I have a NRF 51822 board & MPU 9250 sensor. I want to read YAW,PITCH,ROLL,ACC_X,ACC_Y,ACC_Z,GX,GY,GZ,MX,MY,MZ values from MPU Sensor.
Could you please share a working code which i can able to read all above values.
Thanks in advance.
Hi. We don't have any official ecamples, but you might be interested in this git repo. The examples show how to get ACC_X,ACC_Y,ACC_Z,GX,GY,GZ,MX,MY,MZ, but you will have to calculate yaw, pitch and roll yourself.
thank you sir, But from this code we are getting values in HEX format. how to convert them to decimal.one more thing I think we are getting only accelerometer sensor values.how to get the remaining sensor values
Are you talking about the values printed to the terminal or the values sent over BLE? If it is the values printed to the terminal then you should look at the printf documentation and its formatting specifiers. If you want to transfer the data over BLE as a human readable string with decimal values you should look into the UART/Serial Port Emulation over BLE and merge that with the mpu example.
Hi Sir,
We could able to read all these below values.
ACC_X,ACC_Y,ACC_Z,GX,GY,GZ,MX,MY,MZ,
Could you help me how to calculate YAW,PITCH,ROLL values, so that it would be really helpfull for us.
I think you need to google that. I believe there are plenty of methods and algorithms you can use to achieve this.