The aim is to create a self stabilizing platform which takes the instantenous change in angle of the platform as an input and produces an opposing torque to cancel its effect and hence stabilizing the platform on two axes using a PID controller feedback system. The current system only uses the accelerometer and not the gyro. EKF is a possibility in your implementation.
- Raspberry Pi (https://pypi.org/project/simple-pid/ for pid controller library )
- SG90 Servos (x2)
- MPU6050(i2c gyroscope, please refer to the datasheet for confiuration according to your requirement)
- Wires, breadboard and support structures