I tried to use wheel encoder to calculate robot car displacement ,but it is four times price of mpu6050. So I decide to study the mpu6050 for displacement and turn ninety degrees pricelyly.
I am not really sure which one is better and mpu6050 seems not major on calculate displacement ,people use it on quadcopter & self balance robot.
Can anyone tell me which one is a better choice ? thanks
An MPU6050 measure acceleration. Acceleration is change of velocity. Velocity is a vector with a speed and direction component. When a robot is turning, the speed may not be constant, and the direction is certainly changing.
Without knowing the speed, and how it changes, you haven't a hope of integrating the acceleration data to determine direction. Without knowing the direction at the start, and at any given time during the turn, how will you know when to stop turning?
My car has the same form of it in the film :two wheels
I think the car can rotation 90 degrees by wheel encoder ,if the command is rotation ,record an enough value which the circumference times x rounds of a wheel turns ,until the value makes the car rotate 90 degree.