Hey guys,
I'm currently building an RC plane and am going to use an on board FPV (First Person Video) camera. The camera will be controlled using three servos that rotate the camera in the up, down, and side tilt directions (x, y and z) based on the movement of the pilot's head.
The pilot will be wearing goggles with a MPU 6050 3 axis accelerometer and gyroscope that will collect rotational data, send it to the plane's Arduino, and the on board Arduino will change the position of the camera.
The code is currently working fine, but it's not optimized and I know it could work a little better.
I would really appreciate any tips or suggestions! (the code and schematic is attached below)
Thanks in advance!
HeadTracking_Gyro_TEST.ino (6.75 KB)