RGB LEDs and Ada PCA9685 servo driver breakout issuse

Breakout boards, sensors, Drawdio, Game of Life, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

RGB LEDs and Ada PCA9685 servo driver breakout issuse

Postby Cannon Fodder » Sat Nov 17, 2012 8:33 pm

Hi,

I need some help with a Adafruit 16-Channel 12-bit PWM/Servo Driver - I2C interface - PCA9685, I am using it to drive some RGB LEDs with a common anode. The issue, I have is when I turn off any of the 3 PWM pins or all of them at the same time, I have about 2-3 volts bleeding through and the LEDs remains dimly lit. My setup is a Raspberry Pi, coppler board and the Adafruit 16-Channel 12-bit PWM/Servo Driver - I2C interface - PCA9685. The LEDs have been placed on prototype broad with its current limiting resistors, and headers so it can plug into breadboard. I am using a wall wart to provide 5v dc to supply the LEDs, the RasPi has its own wall wart. The code below should turn off/on channel 0 very 2 seconds

Code: Select all
from Adafruit_PWM_Servo_Driver import PWM
import time

pwm = PWM(0x40, debug=True)
pwm.setPWMFreq(50)
while True:

pwm.setPWM(0,0,4094)
time.sleep(2)
pwm.setPWM(0,4094,0)
time.sleep(2)
Cannon Fodder
 
Posts: 3
Joined: Fri Nov 16, 2012 6:13 pm

Re: RGB LEDs and Ada PCA9685 servo driver breakout issuse

Postby Cannon Fodder » Sat Nov 17, 2012 9:45 pm

Hi,

OK, I stripped out the common anode RGB LED, and used single LEDs instead, and it works! I will have to try a common cathode RGB LED, I will report back with my findings.
Cannon Fodder
 
Posts: 3
Joined: Fri Nov 16, 2012 6:13 pm

Re: RGB LEDs and Ada PCA9685 servo driver breakout issuse

Postby Cannon Fodder » Sun Dec 02, 2012 5:51 pm

Hi, an update. It works fine with a common cathode RGB LED, no issuses now :D
Cannon Fodder
 
Posts: 3
Joined: Fri Nov 16, 2012 6:13 pm


Return to Other Adafruit products

Who is online

Users browsing this forum: Whiteheat and 8 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]