0

RGB LEDs and Adafruit 16-Channel 12-bit PWM/Servo Driver(PCA9685)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

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

by adafruit_support_bill on Tue Nov 20, 2012 11:05 am

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 support@adafruit.com with a link to this thread for a replacement.

adafruit_support_bill
 
Posts: 51153
Joined: Sat Feb 07, 2009 10:11 am

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

by adafruit_support_rick on Tue Nov 20, 2012 4:00 pm

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.

adafruit_support_rick
 
Posts: 28185
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

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

by sam51279 on Sun Sep 20, 2015 2:38 am

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.

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

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

by adafruit_support_bill on Sun Sep 20, 2015 6:51 am

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.

adafruit_support_bill
 
Posts: 51153
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.