PCA9685 Working Principle
Learn how PCA9685 works with an illustrated explanation and practical readings.
PCA9685 at a glance
Follow the labeled connections and functional stages
How it works
4 stages · Explore one step at a time
Address and initialize
Tie A5–A0 to defined levels. With all LOW, use 7-bit 0x40. Power-on leaves SLEEP set, so initialization must enable the clock.
Choose one frequency
Set SLEEP, write PRE_SCALE, clear SLEEP and allow at least 500 µs for the internal oscillator to stabilize. Use the documented RESTART sequence when resuming active channels.
Set each pulse window
Write the 12-bit ON and OFF counts for each channel. Separate phase offsets can stagger switching and reduce simultaneous load transients.
Match the electrical load
Select open-drain or totem-pole for all outputs together. LEDs need resistors; motors and high-power loads need separate drivers and power supplies.