pls help...how to controll servo motor using PIC 16f877
i am newbie in programming... anyone can give any idea on how to control(program) servo motor using pic16f877.... the servo is dependent on the sensor(speed) output, if the speed is going faster the servo should rotate step by step with a certain position 1->8steps. then if the speed is going slower the servo should rotate reverse 8->1... plsss response asap... thnx
Comments
Servos require a pulse (0->1->0) that repeats about 50 times a second and has a pulse width typically of 1ms to 2ms (sometimes wider ... up to about 0.5ms to 2.5ms). The pulse width controls the servo position with 1ms as one end of the mechanical range and 2ms the other end.
Keep in mind that the tutorial is mostly talking about "continuous motion servos" that have been modified for use for propulsion and the pulse width specifies the servo speed and direction with widths less than 1.5ms specifying rotation in one direction and greater than 1.5ms specifying rotation in the other direction. 1.5ms is the stop setting and the difference between the stop setting and the pulse width supplied specifies the speed.