Making a GoPro Gimble using an Gyroscope

So I came across this awesome Camera Gimbal which can be used to stabilize the camera for better video quality. You can Check out the video here : https://www.youtube.com/watch?v=s_P69RGeLrM

Now I understand that the Gimbal uses a gyroscope to calculate the shakes and rotates the motors in the reverse direction to stabilize it.

But what is the actual algorithm behind it? Does it use PID? If so, How can it be implemented using a microcontroller?

I apologize if it sounds like a stupid question but I’m a noob. :slight_smile:

Any help is much appreciated.

My guess is that the system also used a 3 axis accelerometer in the handle and had some micro run a selectable algorithm to get the differing modes. PID ? Probably.

Google ‘space stabilization’ if you want to learn more on the theory behind the device.