Gy-521

Hi, I know that very basis in arduino programming. But the gyro sensor gy-521 was a bit to complicated for me could anyone help me wirte a program to tell in which direction my rc car is heading? Like when I start the program it says that angle is 0° and if I turn 90° it says 90° and so?

  • Robert

GY-521 is a module which incorporates the MPU6050 gyroscope.
You'll probably have more luck googling for "Arduino MPU6050" then finding a library with a simple example.

Ok, thanks!

Found some examples now that works great, however it only works for the axis that tells how steep a hill is (litte har to describe. If i tilt the car so that the front wheels are higer from the ground than the back wheels, than it shows that that angle is changing. Also if i tilt is so that the two right wheels are higher than the two left wheels, it shows that that angle changes (and wise versa ofcourse). But now examples that I have found are able to indicate the angle that I am interested in, the turning angle... I have tried to rotate the mpu6050 module as well, but it doesn't matter, that turn angle it can't measure.
Any help?