I have problem with MPU6050 in self balancing robot (SBR).
I use like many SBR developers a ready-made supposedly proven program BalancingWii on Arduino and EZ-GUI android control aplication.
Why the horizontal position of the MPU6050 is not accepted but only vertical ? Can anyone explain this. After all, it seems, pre-calibration of the MPU6050 by EZ-GUI should solve such a problem.
BalancingWii-master.zip (2.1 MB)
Besidse on the www site Brokking.net is written:
"The orientation of the gyro is important. Make sure to mount the gyro in the exact same orientation as shown on this picture (vertically - my explanation). Otherwise the YABR software cannot calculate the correct angle and the robot will not work."
So how to explain that it works for horizontall position for many others users of BalancingWii.ino and the same electronic scheme.
Very likely, if you post the code (using code tags), along with any associated error messages. You probably swapped the sensor axes incorrectly.
For posting instructions, see the "How to get the best out of this forum" post.
I could not swapped. I have only in MPU6050 pins Vcc, GND and SCL and SDA to connect to Arduino pins - it can not be mistaken. Anyway, swapping these cables does not improve anything. Swapping Roll for Pitch or Yaw, etc. changes nothing when it comes to horizontal or vertical position of MPU6050.
To get the correct tilt angles, in different sensor mounting orientations, use the correct sensor axes. Those changes are made in the code, not the wiring.
I did exactly the same as these people in several YT films. Use the same BalancingWii Arduino code. But they use MPU6050 flat (horizontally) and it works for them and I don't - only the vertical position.
Besidse on the www site Brokking.net writes:
"The orientation of the gyro is important. Make sure to mount the gyro in the exact same orientation as shown on this picture (vertically - mein explanation). Otherwise the YABR software cannot calculate the correct angle and the robot will not work."
So how to explain that it works for horizontall position for many others.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.