Extracting location data from acceleration values acquired from LSM6DSL
Hi everyone.,
We are working on a medical device that will work for rehabilitation of patients who has upper extremity diseases. We have to know the exact location of the device in real time and send it to PC via bluetooth. We will not have a chance to do 6 point calibration because device will move only in x-y plane (on a flat table). So far, first i calibrate the accelerometer as taking 4000 samples, getting median of these samples and subtracting these medians for all measured data samples. I can get around +-1 g for all axes when i do orientation of STEVAL-MKI178V2 accordingly. First of my questions is that, would you suggest any other calibration method for this application which requires precision as much as can be done?
(At that point, I want to mention here non-calibrated, steady accelerometer data values are (-0,441 g), (-0,380 g), (0,582 g) for x,y and z axis respectively. Does these steady state offset values make sense? I could not understand why this values are much far from the expected values such that 0, 0 and 1 g for x,y and z axis respectively.)
My second problem is that when i push STEVAL-MKI178V2 for example 4 cm, i can get position results around 4 cm well but when i pull the device back to the starting point i get lower than 4 cm. If my computations and numerical integrals were wrong, i wouldn't get right result for pushing, right? Why can i not get the right displacement result for pulling device back to the stating point?
I'm working on to improve my algorithms but looking forward to get help and suggestions from experts around here as well.
Thank you.
