Impossible Graduation Project MPU6050

Hello, as the title says i got a task for a project to use the MPU6050 for mapping using it to track motion and draw a map as the GPS but for the indoor places so i was trying but nothing is working with me is it really possible to use the MPU6050 or the MPU9250 for mapping and how ?

Your first topic got nowhere, ending with you asking why you can't use the wrong voltage.

Now, you want a GPS/MPU sytem built and programmed for you so you can graduate?

I think it could be done. Corners and entrances exits etc are easy, distance will require some math as in an accurate source of time and keeping track of acceleration so you know speed. Grab a library or two and look at examples until you find one or more that are close then start modifying.

The MPU6050 is often used to estimate 3D orientation, but it has long been obsolete. Much better 6DOF sensors are now available, like the ISM330DLHC.

Good choice of post title! Ask your instructors about a suitable graduation project.

1 Like

Try a search for Inertial Navigation

1 Like

it is just a task from the hexapod that I am building, and I am stuck on it for more than a week

The MPU6050 detects turning and tilting (3-axis gyroscope), and acceleration (3-axis accelerometer). That means (after zeroizing) it can tell if you begin to move, the direction, and begin to stop. That is not enough information to make a GPS, but maybe these rules can be an outline of making the final project by creating some rules...

Rules...

  • only turn in two dimensions (left/right)
  • no tilting forward/backward/left/right
  • no raising up/down.
  • only move at one speed (measured steps per measured time "one step per second")
  • only move in one cardinal direction (NSEW)
  • only make turns by stopping first (stop, turn left/right, start)
  • no "round" turns (they look like acceleration toward the center of the turn arc)

Collecting raw data to "map" an area...

  • "home" the system on a flat surface at a known location
  • time hack every change in direction (NSEW) and acceleration (start/stop)
  • duration between the changes will tell distance.

Processing raw data...

  • remove (extreme) values above thresholds
  • acceleration and deceleration cover shorter distance and need distance adjustment

Mapping the data

  • start from home
  • start in a known direction
  • positive acceleration (starting)
  • duration while zero acceleration (distance)
  • negative acceleration (stopping)
  • direction changes (by the rules, 90 degrees)
  • repeat steps from first "positive acceleration"

Dronebotworkshop shows how to use the MPU6050 in two dimensions...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.