janelia-arduino / PCA9685

PCA9685 16-channel 12-bit PWM controller.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple frequency generation

simeon9696 opened this issue · comments

Hi!

Is it possible to assign a different PWM frequency to each channel using the PCA9685 and this library?

Sorry no, not if you only use a single chip. According to the datasheet:

Each LED output has its own 12-bit resolution (4096 steps) fixed frequency individual PWM controller that operates at a programmable frequency from a typical of 24 Hz to 1526 Hz with a duty cycle that is adjustable from 0 % to 100 % to allow the LED to be set to a specific brightness value. All outputs are set to the same PWM frequency.

@peterpolidoro thanks! Really good work on the library btw :D