It does sound like you have a load problem. Can you reduce the load through any mechanical means? "Turning off" the motor is probably not a good solution- it'll lose all its holding power at that point and you'll likely be worse than you were. Mike H. On Tue, May 22, 2012 at 9:11 PM, yamanoor sairam wro= te: > Hello All, > > I had written to the list long time back regarding the drive of servo > motor using a potentiometer and a PIC12F675. I was successful in doing > driving the same. I got back to working on this project and I am happen t= o > face a new problem. > > When there is no load on the motor, it works perfect. When I load the > motor, it keeps wobbling. I think the motor is not able to drive the load > or there is a small slippage that is causing the problem. All I wanted to > do was that the motor should rotate between 90 and 180 degrees when a > switch is toggled. > > Should I just switch off the motor when it is near the desired position? > It looks like the motor has reached 3 degrees and trying to correct the > angle and slipping off to -3 degrees. It keeps repeating this cycle. > > I am posting a snippet of the code: > > if(GPIO & (1<<3)) > { > if(servoVal>=3D(1499)) > { > servoVal =3D servoVal-(quotient*10); > } > // do_servo(); > } > else if(!(GPIO & (1<<3))) > { > if(servoVal<=3D(2300)) > { > servoVal =3D servoVal+(quotient*10); > } > //do_servo(); > } > > Sai > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .