Servo Control with PIC to haev continuous motion

Hi,

I am working on a robotics project and I have recently started it. I am using PIC Microconcontroller to control servo motors, I am using 3 servos for arm.

I have got it working for moving from 0 to 180 but I am unable to move the back. I want a continuous movement from 0 to 180 and then 180 to 0. I am using code from this project: https://www.theengineeringprojects.com/ … oller.html

If anyone could edit the same code, I will be really grateful as I already had it working.

Thanks.

I have never programmed a PIC but if you can get t to move in increments one way just decrement the count to move it the other way.

The servo needs pulses at a certain frequency with the pulse width determining position. So figure out what part of the code control the frequency and which the pulse width. Modify it to change the width opposite of what it is now doing.

Arduino has a library that does all that behind the curtain.

Dale the mechanic