PCA9685 Servo Controller

PCA9685 Servo Controller by Adafruit

Control PCA9685 servo breakout with Arduino Uno using Synthiam ARC and EZB firmware; servo shield support and programming tutorial.
Connection Type
USB
Number of Servos
16
Audio Support
No
Camera Support
No
UARTs
None
I2C Support
No
ADC Ports
None
Digital Ports
None

If you’re building a robot or project with lots of servos (hexapods, animatronics, kinetic art, pan/tilt arrays, etc.), the PCA9685 makes it much easier. Instead of trying to plug many servos directly into an Arduino’s limited pins, the PCA9685 provides up to 16 servo outputs using a simple two‑wire connection (I2C) to the Arduino.

This setup is commonly used with Arduino boards that accept shields such as the Uno, Leonardo, Mega, or ADK. We recommend the Arduino Uno for beginners because it’s compact, inexpensive, and works great with ARC when loaded with the correct EZB firmware.

Beginner overview: How it works
  1. You load EZB firmware onto the Arduino.
    This turns the Arduino into a controller that ARC can talk to.
  2. The Arduino talks to the PCA9685 board.
    The Arduino sends I2C commands (usually over pins SDA/SCL). The PCA9685 generates stable servo pulses for up to 16 channels.
  3. ARC controls the servos.
    In ARC you add servo controls/scripts and ARC sends commands through the Arduino (EZB firmware) to the PCA9685 outputs.
Before you start (important for beginners)
  • Servo power: Servos often need more power than USB can provide. In most builds you will use a separate 5–6V power supply for servos.
    Tip: Many servo issues (jittering, resetting, random movement) are power-related.
  • Common ground: If you use a separate servo power supply, make sure the GND (ground) of the servo power supply is connected to the GND of the Arduino/PCA9685 system.
  • Servo count: The PCA9685 provides 16 channels. You can often stack or chain boards in some setups, but start with one board until everything works.
  • Firmware choice matters: Different firmware builds exist for different Arduino + PCA9685 configurations. If one firmware does not match your hardware layout, ARC may connect but servo channels may not respond as expected.
Download EZB Firmware Source Code

Choose one of the firmware packages below. If you’re unsure which one to use, start with the newest official-looking option first, then try the others if needed.

Programming (Flashing) the Firmware

After downloading the firmware, follow the step-by-step tutorial to install it on your Arduino: https://synthiam.com/Tutorial/17526

What you will do in the tutorial:

  1. Install and open the Arduino IDE.
  2. Open the firmware project you downloaded (ZIP file).
  3. Select your Arduino board type (ex: Uno) and correct COM port.
  4. Upload the firmware to the Arduino.
  5. Connect ARC to the Arduino running EZB firmware.
Next steps in ARC
  • Add servo controls in ARC and test a single servo first (one channel) before connecting all servos.
  • If a servo moves the wrong direction or doesn’t reach the expected range, use ARC servo configuration options (such as reverse and limits) to fine-tune motion.
  • If servos jitter or ARC disconnects, re-check your power supply and ensure all grounds are connected together.

ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

#17   — Edited

DJ that was the code EzAng said was needed in Post #10 of his. That is why I said what I said in my post.  Anyway I loaded your new firmware and the above video shows you how well it works.  Note I did test that all this hardware works using the Adafruit PWM servo script and it worked great.

Also ARC is the latest version and is connected to the UNO at 57600 baud as stated above.

#19  

A4-5 are SCL and SDA on the Arduino

#20  

DJ, tried the .zip you posted earlier, still no servo control. All is wired and assigned correctly. Hardware is 100% functional outside of ARC. Inside of ARC, nothing.

Smiller29, Also tried your way with no results. I have mine connected to the dedicated pins, R3 has them closest to the reset button, and labeled on the bottom of the board, with SCL closest to switch and SDA the next one over, beside AREF. I get the same as your video regardless which boards or breakouts used.

As I've said before, used ARC for other projects that DID NOT require an expansion board and all work, so still focusing on ARC-UNO-Breakout communication failure, as my exact set up works outside of ARC... Hours looking through code, etc and can't find the smoking gun here. Good luck, and I'll be following updates.

Author Avatar
PRO
USA
#21   — Edited

comment removed.

#22  

Using the other pins has no impact on making it work.  This is a code issue.

Author Avatar
PRO
USA
#23   — Edited

Like I said:

I tried DJ's, Micky's code - it works

I modified their code, it all compiles and uploads it also works,

#24  

It maybe working for you but it is not working for Tom and I.   I know the hardware works when you take ARC and this code out of the picture.  I am using the latest 16 port board lib versions. Also the current IDE and the current ARC.  This is not a connection problem or Hardware problem.  This is a code issue somewhere.