sensitivity of servo that is controlled via android phone

good day everyone! just like to ask for an assistance on how to make the motion of the servo motor more sensitive with the tilt of the android phone... our program was to control the tilt of the ball maze board via android phone... our code was also given... we are just wondering if this is just the limitation of the Bluetooth connection... we are using amarino application also for the connection between android phone and bluesmirf... here's the code...

void setup() { Serial.begin(115200); //begin serial link @ 9600bps // register callback functions, which will be called when an associated event occurs. // - the first parameter is the name of your function (see below) // - match the second parameter ('A', 'B', 'a', etc...) with the flag on your Android application meetAndroid.registerFunction(floatValues, 'A'); myservo.attach(9); //Attach the servo to pin eleven myservo2.attach(10); }

void StopCar() { myservo.write(90); myservo2.write(90); }

void loop() { myservo.write(90); myservo2.write(90); meetAndroid.receive(); // you need to keep this in your loop() to receive events } void floatValues(byte flag, byte numOfValues) { // create an array where all event values should be stored // the number of values attached to this event is given by // a parameter(numOfValues)

// call the library function to fill the array with values (floats) meetAndroid.getFloatValues(data);

Taking the tilt position of the phone and multiplying it by 9 might be the reason for the servo making large swings when there is only slight movement from the phone. I don't know what kind of numbers are coming out of the phone but maybe the range that data[1] and data[0] are looking for need to be played around with as well. Just play with those numbers and see what happens.

I take it this code is from some other project and your adapting it to your project right?

Take a look at the raw numbers coming over the link. See if there are filter properties of the signal you are reading from the phone - put there to make the signal quieter, but affecting your frequency response.