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.
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.
- adafruit_support_bill
- Posts: 88155
- Joined: Sat Feb 07, 2009 10:11 am
- 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)
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.
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.
- sam51279
- Posts: 2
- Joined: Sat Sep 19, 2015 12:57 pm
Re: RGB LEDs and Adafruit 16-Channel 12-bit PWM/Servo Driver
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.
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.
- adafruit_support_bill
- Posts: 88155
- Joined: Sat Feb 07, 2009 10:11 am
Re: RGB LEDs and Adafruit 16-Channel 12-bit PWM/Servo Driver
Yes, the library is needed to send commands to the board.but my question is i suppose that it's need to use Adafruit_PWMServoDriver.h to work?
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.Is the command pwm.setPWMFreq (60) is need for led control? What is exactly the function of this command.
Please be positive and constructive with your questions and comments.