Hey everyone. I'm trying to design a heavy duty gimbal. I will use MPU6050 sensor to give me the angles and movements of the camera so i can use arduino and stepper motors to stabilize. I've found the code below to read gyro and acc values but i dont know which type of output they will provide ? How can i calculate the steps required -imagine 1.8 step angle stepper motors- for stabilization using the data that this code gives out. Thank you.
I will use ULN2003 just for prototpye. Firstly, im just trying to understand the units of the output i will get. Like if the sensor / camera is tilted 36 degrees then my motor will have to rotate 20 steps. I just want to know how can i get this 36 degrees from the output data.
where newangle means the new angular position of the cencor after it moved in an axis. while offset is the starting angular value. Does this code would make my stepper motor to move required steps to stabilize ?