Position calculation of small model of a car using Accelerometer + Gyroscope

…衆ロ難τιáo~ 提交于 2019-12-04 19:33:31
Ali

It won't work, these sensors are not accurate enough to calculate the position.

The reason is also explained in the video you are referring to.

The best you could do is to get the velocity based on the rpm of the wheels. If you also know the heading that belongs to the velocity, you can integrate the velocity to get position. Far from perfect but it should give you a reasonable estimate of the position.

I do not know how you could get the heading of the car, it depends on the hardware you have.

I'm afraid Ali's answer is quite true when it comes to those devices. However why don't you try searching arduino dead reckoning which will cover stories of people trying similar boards?

Here's a link that appeared after a search that I think may help you:

Converting IMU to INS

Even it seems like all of them failed you may come across workarounds which will decrease errors to acceptable amounts or calibrate your algorithm with some other sensor to put it back in track as the squared error of acceleration along with gyros white noise destroying accuracy.

Joe

One reason you have a huge error is that the equation appears to be wrong.

Example: To get updated vel,use.. Velnew=velold+((accelold+accelnew)/2)*sampletime.

Looks like you had an extra accel term in the equation. Using this alone will not correct all the error....need to as you say correct for influence of gravity and other things.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!