Skip to content
If this is your first visit, please click here to learn about shipping and delivery.
If this is your first visit, please touch here to learn about shipping and delivery.
Surface-mount IC product photograph for the PCA9685 LED controller

Designing a 16-LED Indicator Board with the PCA9685

A panel with several status LEDs can quickly consume a microcontroller’s available pins. An I2C PWM controller offers a useful alternative: the microcontroller sends brightness settings, while the controller maintains the output timing. That is attractive for teaching panels, equipment indicators and compact control interfaces.

The LED driver IC collection includes the PCA9685 in a TSSOP28 package. This is a bare IC for your own circuit, not a finished board with connectors and supporting components. The following design approach concentrates on low-current indicator LEDs rather than servo control.

Separate brightness control from current control

NXP describes the PCA9685 as a 16-channel controller with 12-bit PWM. Each channel has independent timing settings, while all channels share the same PWM frequency. Its outputs can be configured as open-drain or totem-pole drivers.

PWM changes the fraction of time an LED is energised. It does not, by itself, establish a safe current during each pulse. This device should not be treated as a constant-current LED driver. Provide an appropriate current-limiting arrangement for every LED branch and check both per-output and whole-package limits.

That distinction matters during faults as well as normal dimming. A channel accidentally left fully on should still have a safe current. Firmware brightness limits are useful operating controls, but they are not replacements for the electrical design.

Sketch one channel before multiplying it by sixteen

One possible indicator arrangement is a supply feeding a resistor and LED, with the output sinking current at the LED’s cathode. Check the chosen output mode and polarity against that circuit. A low output turns this branch on, which can be the opposite of the intuitive “high means lit” assumption.

ROHM’s LED circuit configuration guidance explains series current control and recommends a separate resistor for each parallel LED branch. Sharing one resistor between independently switched indicators can make their currents depend on which other LEDs are illuminated.

For an illustrative red LED with a 2 V forward drop, a 5 V supply and a target near 2 mA, ignoring the small output-low drop initially gives:

R = (5 V − 2 V) / 0.002 A = 1500 Ω

This is an example calculation, not a universal resistor recommendation. Use the actual LED’s forward-voltage range, maximum supply, resistor tolerance and driver output characteristics to check the highest current. Verify the resistor’s power rating as well. Different colours and LED types may need different values to achieve useful brightness.

Budget the complete panel

If sixteen example channels each draw 2 mA when fully on, their combined LED current is approximately 32 mA, before adding controller and other circuit consumption. Repeat that calculation using your actual channel currents and maximum simultaneous illumination.

Check the supply, connector, traces and package dissipation against the complete operating case. The output current headline on a data sheet is not permission to multiply that number by every channel without considering the remaining limits. For higher-power LEDs or larger loads, design a suitable external driver stage and reassess its polarity and default state.

Make the I2C interface explicit

Include SDA, SCL, ground and the selected supply connections on the schematic. Set the address inputs deliberately and record the resulting address in the firmware configuration. Do not leave address selection to accidental solder bridges or floating inputs.

The NXP I2C specification explains the open-drain bus and pull-up requirements. Choose the pull-up voltage to suit every connected device, and calculate resistance with bus capacitance and sink-current limits in mind. Several boards may already contain pull-ups; connecting them in parallel changes the effective resistance.

A bus scanner can help confirm communication, but it does not verify the LED wiring or prove that the output configuration is correct. Keep an address map for the complete system, including any group-address behaviour you enable.

Treat reset behaviour as a design requirement

The PCA9685 data sheet documents output-enable behaviour, output mode and reset values. Its outputs default low after power-on reset. For a circuit that lights an LED by sinking current, that can mean illumination during startup.

Do not assume pulling OE high guarantees all LEDs are dark: the resulting output state depends on the programmed disable-state configuration, whose default is also relevant. Work through the state table for your exact circuit. If darkness before configuration is essential, provide suitable hardware blanking or controlled LED power rather than relying only on firmware arriving quickly.

Write the intended sequence in plain language: establish valid supplies, configure the controller, load safe channel values and then enable visible operation. Test that sequence during controller resets as well as full power cycles, because the two events may leave different devices running.

Lay out for assembly and diagnosis

Confirm the TSSOP footprint and pin-one orientation against the package drawing before ordering a PCB. Allow room to inspect solder joints and place local decoupling close to the supply pins. Keep the logic and LED current paths understandable rather than routing every return through a narrow shared neck.

Add accessible test points for the supply, ground, SDA, SCL and output enable. Label channel numbers on both the schematic and PCB. Those small choices save time when an indicator is wired to the wrong physical position or a single channel fails.

Bring up one LED, then the complete panel

  1. Inspect the unpowered assembly for bridges, polarity errors and incorrect resistor values.
  2. Apply a current-limited supply and check the voltage at the IC.
  3. Confirm communication and read back configuration where supported.
  4. Test one channel at fully off, low brightness and fully on.
  5. Measure that branch’s current before enabling every channel.
  6. Run a walking-light pattern to confirm the physical channel mapping.
  7. Test the maximum intended simultaneous brightness and monitor supply stability and heating.

Use the actual enclosure and viewing distance when choosing brightness. Equal numerical settings do not necessarily look equally bright across different LED colours. A small per-channel calibration table can produce a more consistent panel without changing the hardware.

Check the situations a demonstration misses

Test reset, communication failure, power interruption and reconnecting the controller. Check whether a fault leaves stale indicators displayed; a panel that looks healthy after its controller stops updating may mislead its user.

Finally, photograph the finished channel layout and save the configuration alongside the schematic. A successful indicator board should be easy to assemble, predictable at startup and clear to diagnose months after the first prototype worked.

Previous article Battery Power for Arduino Projects: Voltage Range, Runtime and Regulator Heat