I'm trying to make a self balancing robot using a three axis accelerometer and a one axis gyro.
Accelerometer:
Gyro:
I want the robot to be able to stay upright while powered on with a setpoint of 0.
My question is how to implement these two sensors together to output the (MV) manipulated variable? I've had a look at just about every website on the internet with no suffice.
ANY help is appreciated, Thanks in advance.