Hello All, I am controlling a servo motor using the PIC12F675. The servo rotates in op= posite directions. I am=A0controlling the servo as follows: if(GPIO & (1<<3))=A0 {=A0 GPIO |=3D(1<<2); =A0__delay_ms(1); =A0GPIO &=3D~(1<<2);=A0 } =A0else=A0 { =A0GPIO |=3D(1<<2); =A0__delay_ms(2); =A0GPIO &=3D~(1<<2); =A0} =A0__delay_ms(18);=20 I would like to control the rate at which the servo reaches the opposite en= ds. I tried looking for articles related to speed control, I found it to be= too complicated to control the rate of sweep. I am looking for suggestions= for the same. Increasing the delay =A0did not help me control the speeds. = I am planning to control the speed using a potentiometer. Any suggestions w= ould be helpful. Sai --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .