PID code for one axis balance
Unzip the file. Inside of the unzipped folder you will find the Arduino code that we should upload to the flight controller board (in my case arduino UNO). Connect everything like here and adjust the PID constants.