Hi guys,
I have a big question here, which i think, theoritical this can be achieve, but i am not sure how to do it. Can we send out PWM frequency as a mathematical function? Meaning that the frequency of PWM change constantly from 0 deg to 180 deg, following a predefine function.
Basically, my project is to control a 3-dofs robotic arms, where three servos is responsible for the shoulder (2 servos) and elbow (1 servo). When i specify the path of the end effector (gripper), all three servo will work simultaneously to follow the path, at predefine speed. In short, the servos will rotate with a mathematical expression, can this be done with PIC? how would i do it? say a simple function, y = asin (x), where y is the rate of change for the servo (deg) which correspond to the frequency of servo, while x is the speed of the path is x-direction.