-
Notifications
You must be signed in to change notification settings - Fork 91
Unable to get consistent euler angles #69
Comments
@prabodhprakash Hi, thank you for reporting. Please
|
hey @hideakitai while I check for authenticity of the sensor, I tried the program with I just rotated the sensor from flat surface to perpendicular:
The EulerX changes by almost 180 degrees |
How about NOT perpendicular angles? In the perpendicular angles, you may encounter a gimbal lock https://stackoverflow.com/questions/41933779/madgwick-imu-90-degrees-angles?utm_source=pocket_mylist |
other angles are also not working fine - like when I rotate by 45-degrees -
the rotation is either very high or very low. It is consistent across axis
(like always very high or low) - but never correct.
On Thu, 21 Oct 2021 at 1:28 PM, Hideaki Tai ***@***.***> wrote:
How about NOT perpendicular angles? In the perpendicular angles, you may
encounter a gimbal lock
https://stackoverflow.com/questions/41933779/madgwick-imu-90-degrees-angles?utm_source=pocket_mylist
https://electronics.stackexchange.com/questions/532805/imu-madgwick-filter-pitch-effect-on-roll-and-yaw?utm_source=pocket_mylist
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#69 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3WRT5BWIJHACGAAFS3PPDUH7B3DANCNFSM5GNMB7NQ>
.
--
Prabodh Prakash
|
Hmm, I think there are two possibilities.
|
The sensor has this written:
9250/9255/6500/6555 and if you open this link:
https://www.xcluma.com/mpu-9250-gy-9250-mpu9250-nine-axis-sensor-module-i2c-spi-communication?search=9250
- it has something 92.65 written on one side (can you please check)
Prabodh Prakash
…On Thu, Oct 21, 2021 at 2:51 PM Hideaki Tai ***@***.***> wrote:
Hmm, I think there are two possibilities.
- Calibration is not enough (see #68
<#68> #62
<#62> )
- Your device is not MPU9250 but MPU9265(?) (maybe the magnetometer
inside is not the same as MPU9250)
https://www.tenettech.com/product/gy-87-mpu-9265-3-axis-9-dof-attitude-gyro-magnetometer-accelerator-sensor-module
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#69 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3WRTZETCVAVLAOZ2NOVJLUH7LQFANCNFSM5GNMB7NQ>
.
|
I don't know if this is truly MPU-9250, but I can't support it if it isn't (not compatible with MPU-9250). If you are confident about your calibration, how about trying another MPU9250 library? It may work fine with yours. |
I tried other libraries as well - but couldn't get it work :-( |
I'm sorry to hear that... I don't think it's a problem with this library, so I'm closing this issue. But I wish you good luck with your project! You can fuse raw sensor values manually with an external library like this : MadgwickAHRS |
Hardware:
MPU9250:
https://www.xcluma.com/mpu-9250-gy-9250-mpu9250-nine-axis-sensor-module-i2c-spi-communication?search=9250
ESP8266MOD:
https://handsontec.com/index.php/product/esp8266-remote-serial-wifi-module/
Connection:
To setup biases: I calibrated my sensor 5 times using
calibration.ino
and averaged out the values.Code:
Problem:
Unable to get consistent euler angles in any direction.
If I rotate the sensor perpendicular - the expectation is that one of the (x, y, z) should change by 90 - however, on some axis it changes by 180 and on other axis it changes less than 90.
Kindly help
The text was updated successfully, but these errors were encountered: