ATOM Matrix - IMU values all over the place
-
I wrote a small program to print out the IMU X, Y, and Z accel values to the serial port.
It seems the readings can be pretty erratic, jumping from near zero to 0.4 or 0.5 even when the device is completely still.
How do you all deal with this? I tried taking the average of the last 5 readings which seems to help a little but it's still kind of jumpy.
Have a look. This is sitting completely flat on the desk:
X: -0.021 Y: -0.011 Z: -0.987 X: 0.421 Y: -0.014 Z: -0.986 X: 0.421 Y: -0.014 Z: -0.987 X: -0.018 Y: -0.016 Z: -0.986 X: -0.022 Y: -0.014 Z: -0.986 X: 0.423 Y: -0.013 Z: -0.987 X: 0.42 Y: -0.015 Z: -0.987 X: 0.417 Y: -0.013 Z: -0.988 X: 0.419 Y: -0.012 Z: -0.984 X: -0.015 Y: -0.011 Z: -0.984 X: -0.02 Y: -0.013 Z: -0.987 X: -0.017 Y: -0.014 Z: -0.987 X: 0.423 Y: -0.014 Z: -0.988 X: -0.019 Y: -0.012 Z: -0.986 X: -0.027 Y: -0.013 Z: -0.988 X: 0.421 Y: -0.013 Z: -0.99 X: 0.423 Y: -0.017 Z: -0.988 X: 0.421 Y: -0.016 Z: -0.988 X: 0.423 Y: -0.011 Z: -0.987 X: 0.42 Y: -0.008 Z: -0.987 X: -0.021 Y: -0.013 Z: -0.986 X: -0.018 Y: -0.014 Z: -0.99 X: -0.022 Y: -0.011 Z: -0.99 X: 0.42 Y: -0.013 Z: -0.984 X: 0.423 Y: -0.012 Z: -0.988 X: -0.023 Y: -0.014 Z: -0.984 X: 0.421 Y: -0.016 Z: -0.985 X: 0.417 Y: -0.015 Z: -0.985 -
Hello @greenleaf
An example using a kalman filter.
https://homemadegarbage.com/reactionwheel03
https://elchika.com/article/52f804c0-e205-4185-8da4-a32f5e3700ba/
-
Wow, your balancing star is impressive!
I'm just playing around in UIFlow to see what's possible with this device.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login