1300 Henley Court Pullman, WA 99163 509.334.6306 www.digilentinc.com PmodCON3 Reference Manual Revised April 15, 2016 This manual applies to the PmodCON3 rev. C Overview The Digilent PmodCON3 (Revision C) can be used to easily interface with up to four small servo motors that deliver anywhere from 50 to 300 ounce/inches of torque, such as those used in radio controlled airplanes or cars, as well as some mechatronics projects. Features include: Four standard 3-wire servo motor connectors Easily interface with Digilent system boards Flexible power delivery to servos Small PCB size for flexible designs 1.0 in 0.8 in (2.5 cm 2.0 cm) 6-pin Pmod port with GPIO interface Follows Digilent Pmod Interface Specification Type 1 Example code available in resource center The PmodCON3. 1 Functional Description The PmodCON3 allows any Digilent system board to easily interface with a standard 3-wire servo motor consisting of a signal, positive power supply, and ground power supply wires. The power supply can be sourced either from the system board or an external power source via screw terminals by selecting the appropriate setting on the jumper block. 2 Interfacing with the Pmod The PmodCON3 communicates with the host board via one of the four GPIO pins (the first four pins on the 16 header). As mentioned in the Functional Description, it is also possible to select how to power an attached servo motor by setting the shorting block in the appropriate jumper configuration. Copyright Digilent, Inc. All rights reserved. DOC : 502-082 Page 1 of 2 Other product and company names mentioned may be trademarks of their respective owners. PmodCON3 Reference Manual Header J1 Jumper JP1 Pin Jumper Description Description Number Setting 1 Servo P1 VCC The voltage source for the servos comes from VCC and Ground The voltage source for the servos come from the + and - screw 2 Servo P2 VE terminals 3 Servo P3 4 Servo P4 5 Ground 6 VCC Table 1. Connector J1- Pin Descriptions as labeled on the Pmod. Standard servo motors use a potentiometer to adjust the angle at which their central shaft rotates to. In order to adjust the rotation angle, the motor generally needs to receive a high voltage pulse that ranges from 1 millisecond to 2 milliseconds, with 1.5 milliseconds as the neutral value. These values typically correspond to 0 degrees, 180 degrees, and 90 degrees, respectively, although depending on the manufacturer of the servo motor, these angles may vary. A signal that is either too narrow or too wide for a servo will cause the servo to try to go beyond its rotational range and can damage the servo. Always check the manufacturers instructions for a servos rotational range. Servo Position 1.5 ms Set by Pulse Pulse Width Width 2.0 ms Pulse Width 1.0 ms Pulse Width Pulse Period Figure 1. Servo control diagram. Because the pulse length is relatively long, any of the IO pins on a Digilent system board are capable of driving a servo motor. However, in order to have the servo motor maintain its given angle, a refresh pulse of the same (or new) angle will need to be provided to the servo motor periodically (20 milliseconds is a safe value). When using the Servo library available from Digilent, the refresh pulse and the pulse width are automatically taken care of, allowing the user to simply give the desired angle for the servo motor to rotate to. 3 Physical Dimensions The pins on the pin header are spaced 100 mil apart. The PCB is 1.0 inches long on the sides parallel to the pins on the pin header and 0.8 inches long on the sides perpendicular to the pin header. Copyright Digilent, Inc. All rights reserved. Page 2 of 2 Other product and company names mentioned may be trademarks of their respective owners.