RGB LEDs and Adafruit 16-Channel 12-bit PWM/Servo Driver(PCA9685)

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: RGB LEDs and Adafruit 16-Channel 12-bit PWM/Servo Driver(PCA9685)

Post by adafruit_support_bill »

Looks right. Just to be sure there are no other wiring problems interfering with the i2c, connect only VCC, Gnd, SCL and SDA.

If it still won't scan, contact [email protected] with a link to this thread for a replacement.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: RGB LEDs and Adafruit 16-Channel 12-bit PWM/Servo Driver(PCA9685)

Post by adafruit_support_rick »

What is the extra IC on your breadboard?

I see that your 5V source is connected to the left side of the breadboard rail, and you are powering the servo driver from the right side of the breadboard rail. Some breadboards have a split between the left and right sides of the power rails - make sure you actually have power on the leads going to the breakout.

User avatar
sam51279
 
Posts: 2
Joined: Sat Sep 19, 2015 12:57 pm

Re: RGB LEDs and Adafruit 16-Channel 12-bit PWM/Servo Driver

Post by sam51279 »

Ok, i see now how it is posible to control color on led.
pwm.setPWM (0, 255, 0) for red example.
but my question is i suppose that it's need to use Adafruit_PWMServoDriver.h to work?

Is the command pwm.setPWMFreq (60) is need for led control? What is exactly the function of this command.

User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: RGB LEDs and Adafruit 16-Channel 12-bit PWM/Servo Driver

Post by adafruit_support_bill »

but my question is i suppose that it's need to use Adafruit_PWMServoDriver.h to work?
Yes, the library is needed to send commands to the board.
Is the command pwm.setPWMFreq (60) is need for led control? What is exactly the function of this command.
setPWMFreq controls the PWM frequency. 60Hz is a good frequency for controlling Servos. It will work for LEDs too, but you might see a bit of flicker at that rate. Setting it to a higher speed like 1000Hz would be better for LEDs.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”