Hi, I am a Noob so sorry beforehand.
Now, I have a Project at hand where I have to get the walking distance and pattern of the steps of a person accurately (within few inches). I am using Arduino Uno and MPU9250. The library I am using https://github.com/hideakitai/MPU9250 (https://github.com/hideakitai/MPU9250) is the updated version of the kriswiner's library https://github.com/kriswiner/MPU9250 (https://github.com/kriswiner/MPU9250)
After tweaking and modifying the example code, I am able to get the Roll, Yaw, Pitch and able to visualize it. But after that I don't know how to use the sensor to get the distance measured for each step.
I have tried looking for different solutions and tried to understand how to get the accelerometer data to measure the distance, but I am yet to get a solution. Please help.
The basic code:
static uint32_t prev_ms = millis();
if ((millis() - prev_ms) > 16)
Serial.print("roll (x-forward (north)) : ");
Serial.print("pitch (y-right (east)) : ");
Serial.print("yaw (z-down (down)) : ");
prev_ms = millis();
If you had a measured velocity for some amount of time would you be able to determine distance travelled?
the walking distance and pattern of the steps of a person accurately (within few inches)
Very difficult to do accurately
. See this brief overview from research of a few years back: https://x-io.co.uk/gait-tracking-with-x-imu/ (https://x-io.co.uk/gait-tracking-with-x-imu/)
Did you have any progress? I'm working on gait with multiple mpu 9250
X-io code help a lot, but i have problems with filter cutoff and calculation