Using gyro GY521 and MPU6050_6Axis_MotionApps20.h for dslr panoramic head

hi everyone !

i'm new on this forum and additionally i'm french so please be nice !!! :wink:

I'm trying to use a gy521 to get rotation and inclination of a DIY panoramic head.

I want to split horizontal rotation in 15 slices, stop at each slice , take a picture and go on .

What i can do :
to command my dslr with arduino
to command servo rotation
get inclination of gy 521

WHAT I CAN'T DO :

to get rotation from an initial position

I'm using :

Arduino uno nano V3
GY521
IDE 1.0.6
Lib:"Wire.h" "MPU6050_6Axis_MotionApps20.h" and try with MPU6050.h

Thanks !!

I'm not sure if I understand your question.

Do you use servo motors ? then you don't need the MPU-6050, since you can set the servo motors to a certain angle.

At startup, the MPU-6050 knows what 'up' and 'down' is, because it measures the earth gravity. But it doesn't know what north, south, east, west is. You need a magnetometer (compass) for that.

Do you get 3 axis with the right information ? Can you explain what you have for output of the sketch and what you would like to have.