i write a program in order to move a servo motor according to an Accelerometer ....and yes the motor moves while you are change the direction of the accelerometer but ... i face a problem that the servo sometimes moves free whithout touch the accelerometer
is there any thing wrong?how can i control the servo motor so that it moves according to the movement of the sensor only ...
my circuit : accelemeter >> microprocessor>>relays>>servo motor
Presumably your software has a bug?, apply normal de-bugging techniques - in particular make sure there isn't any movement data comiing from the accelerometer.
Presumably your software has a bug?, apply normal de-bugging techniques - in particular make sure there isn't any movement data comiing from the accelerometer.
As previously suggested, a programming bug, or, there are is some interference signal getting on to the the signal wires from the accelerometer to the micro processor.