To run servo sg90 from PIC16F1938 through PCA9685 controller
I need to turn the 3 Servos (sg90) in desired angles independently to one another. I am using PIC16F1938 and PCA9685 controller. I can able to move the servo in one direction. But, I am not fully clear on how to move to the desired angles for example, how to center the servo (0 degree), or move to 45 degree, 90 degree, etc.
In the PCA data sheet, it says 0 to 4096 steps available for On & Off LEDS. In sg90 data sheet, 1.5 ms for 0 degree(center the Servo), 2ms for 90 degree and 1 ms for -90 degree. I am little bit confused.
Can you please provide any sample code in C or any other valuable information to achieve my task.
Thank you all.