Hi everyone, thanks so much for the community, and a particular thanks to those that worked so hard on getting this code up and running (Jeff).
I am designing a desktop experiment for a college class that looks at oscillations of a scale-model building. Basically, the math can describe any system oscillating about its equilibrium as a simple harmonic oscillator (using a simple Taylor Series expansion of a potential energy function). i.e. acceleration is proportional to displacement.
The goal of the experiment was to verify the math model with sensor data, but this is proving to be very difficult. The scale-building is fairly rigid, so displacements are small. Standard issues: acceleration data is too noisy and gyro data drifts (though it seems to be somewhat noisy as well). And integration is a nightmare.
The only shot I have at making it work is that I don't need to filter or fuse sensors in real time. I can use 1000 or so points and use some other program (even excel) to do the processing.
I've tried to implement a complimentary filter, a kalman filter, and now the DMP on the MPU all without much success. The DMP pitch and roll output shows the sinusoidal behavior I'm looking for, but it drifts, and taking 2 derivatives to obtain acceleration isn't helping.
The complimentary filter basically only works if I reject the accelerometers completely (alpha = 1), and I have no idea how to tune the Kalman filter, though I've certainly tried.
I hate to ask for help in solving my problems (rather than hang-ups) but I'm simply out of ideas, or possibly approaching the problem completely incorrectly. I could sure use some help.
Integration was brought up in another post here titled "integration" and Jeff mentioned someone by the name of Seb Madgwick, and a cursory google search hasn't provided much information.
Any thoughts would be welcome. (on sensors, filters, experiment design issues, etc).
Thanks, and seriously great work here.
-JD