Hello
i want to build a robot witch i need a gyroscope or compass in order to sync motor movement and accurate rotating
and accuracy is important for me
due to my research with gyroscope is not that easy to get the Rotation or Degree but its accurate enough
compass are not accurate enough due to my research
any recommendation ?
witch module is better to use ?
Gyroscope helps you to measure velocity, orientation, acceleration, displacement and other motion like features. If you're looking forward to measure tilt, displacement etc. you can go for a gyro. Specially if you're looking forward to make a self balancing robot or gesture controlled robot, you can choose MPU6050. MPU6050 is a Micro Electro-mechanical system (MEMS), it consists of three-axis accelerometer and three-axis gyroscope.
Here is also a paper on angle detection with the same component: https://www.researchgate.net/publication/319230010_Design_of_Angle_Detection_System_Based_on_MPU6050
If your wheel motors have encoders, odometery may be more accurate than gyro or compass if wheels don't slip.
Gyros drift and a compass csn be affected by iron in the area.
yea i saw that but mpu6050 doesnt give rotation
well i need the rotation also not only sync
Never trust the Compass witch.
yes its not accurate enough
Magnetometers don't work out of the box as a compass, and must be calibrated. In a robot, it must be done in place (mounted on the robot), as nearby iron, magnets and current carrying wires distort the Earth's magnetic field.
Simple calibration.
Best calibration.
okay so i should use a compass ?
I have used a magnetometer as a compass for steering a robot vehicle, and it works quite well.
It is not difficult to measure robot's rotation with odometery. The circumference is known and the angles that each wheel move can be measured with the encoders. Calculate rotation using that information.
Even if a compass is used, the odometery can be used as a sanity check or backup.