03-22-2017 12:35 PM
Actually i'm using arduino blocks, so this is my scheme.
03-22-2017 01:35 PM
Just another suggestion, maybe you should work with 1D array waveform instead of scalar values. As you can see, I integrated sin(x) and got the correct response.
03-22-2017 02:36 PM
Oh! The Z axis is the easiest to calibrate. Place Accelerometer Face Up, not moving, take V(up). Now turn it face down, not moving, take V(down).
Turn back to Face Up. Now, when testing, you must keep the orientation fixed to exactly Face Up (do you see why? Think about tilting it 90° and moving it up and down -- no Z acceleration will be measured!).
A(in g's) = (V - (Vup + Vdown)/2) / (Vup - Vdown)/2)
You should be able to derive this formula yourself from the following Equation for a linear accelerometer (which yours is, to a good approximation):
A(in g's) = V - Voffset / (VoltsPerG)
Bob Schor
03-23-2017 06:04 AM
I want to thank you for your suggestions, but no one of them work for me. for the procedure that you give me Bob_Schor, there is a problem that V offset becomes small and then the acceleration grows up , unfortunately that worse things more.because the integration will drift through infinite...![]()
What i did earlier is to remove the mean of the acceleration signal when the accelerometer not moving, to get signal around zero, but it doesn't work neither.
I hope other suggestions will help.
Thank you