Components / Motors and drivers / PCA9685 16-channel servo driver

PCA9685 16-channel servo driver

Drives 16 servos or LEDs over I2C.

Function16-channel 12-bit PWM
Supply voltageLogic 2.3 to 5.5 V, servo power on a separate terminal
InterfaceI2C
RatingServo current comes from your supply
Motor DriversReviewedMPN PCA9685Used in 18 projects
66°
In short

What is the PCA9685 16-channel servo driver and what is it used for?

Drives 16 servos or LEDs over I2C. Makers use it for robot arms, hexapods.

How it works

A PCA9685 makes 16 PWM outputs in hardware, so the board only sends I2C updates.

Key specifications

Interface module specValue
Function16-channel 12-bit PWM
Supply voltageLogic 2.3 to 5.5 V, servo power on a separate terminal
InterfaceI2C
RatingServo current comes from your supply
Logic level3.3 or 5 V

Pinout

GNDGround
OELow to enable outputs
SCL SDAI2C
VCC3.3 to 5 V logic
V+Servo power (also on the terminal block)
0to 15Servo headers (PWM V+ GND)
A0 to A5Address jumpers (default 0x40)

How to use it

Use Adafruit_PWMServoDriver with setPWMFreq(50); servo pulses are roughly 110 to 500 counts of 4096. Feed servos from a separate 5 to 6 V supply on the terminal, never from VCC, and add a large capacitor.

Applications

Alternatives

Buy at

Common questions

What is the PCA9685 16-channel servo driver used for?

In maker projects: robot arms, hexapods.

How does the PCA9685 16-channel servo driver work?

A PCA9685 makes 16 PWM outputs in hardware, so the board only sends I2C updates.

What voltage does the PCA9685 16-channel servo driver need?

Logic 2.3 to 5.5 V, servo power on a separate terminal.

How do I connect the PCA9685 16-channel servo driver to an Arduino or ESP32?

I2C. Pins: GND (Ground), OE (Low to enable outputs), SCL SDA (I2C), VCC (3.3 to 5 V logic), V+ (Servo power (also on the terminal block)), 0 to 15 (Servo headers (PWM V+ GND)).

What can I use instead of the PCA9685 16-channel servo driver?

SG90 Micro Servo and MCP23017 I/O expander module.