How can one control a servo motor using PWM and the RoboRIO?

I have 3 micro servo motors I’d like to use on my robot. Each servo has a PWM cable I can use. Do I need to hook each motor to its own motor controller in order to control it? Can I simply plug each servo into a PWM port on the RoboRio directly?

Below is an image of the type of servo I’m referring to:

Yes, you can plug those servos directly into the PWM ports on the RIO, the middle pin will provide the 6V needed. You can then use the Servo class to control them.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.