hey guys .. I'm new here .. but I need a little help from experts! :D
I need to balance a servo motor with the ADXL345 Accelerometer where it needs to take the value of the Accelerometer and always point up .. just like this pic: http://www.machinegrid.com/machinepress/wp-content/uploads/2009/02/accelerometer_memsic1.jpg
at the same time .. I want to control the same servo with RC transmitter/Receiver .. so .. when the arm of the potentiometer is left in the middle the servo should read the Accelerometer value and balance itself .. and as soon as I move the stick the servo should read the potentiometer value and move according to that value.
I hope the idea is clear. please any suggestions on how to do that ?? I already know how to pull data from the Accelerometer and from the Transmitter .. I just can't figure a way on how to control the servo with 2 values.
thanks!