USE UPS NEXT DAY AIR FOR ANY USA ORDER BEFORE 11AM ET *TODAY* 12/19/2014 TO GET YOUR PACKAGE IN TIME FOR XMAS - PLEASE SEE OUR SHIPPING DEADLINE NOTICE FOR MORE DETAILS!

Adifruit 16 channel PWM with Arduino
Moderators: adafruit_support_bill, adafruit

Adifruit 16 channel PWM with Arduino

by deleot on Tue Oct 16, 2012 9:19 pm

i have bought the Adafruit 16-Channel 12-bit PWM/Servo Driver - I2C interface - PCA9685

i am using a rev 3 arduino uno board i have downloaded the sample coding that was on your website here and it is not working

I can see the i2c clock and it seems to be sending the slave address repeatedly

i have attempted to change the address on the board as well as in the program to match each other but this has had no avail

I am getting no movement or even a pwm output from the adafruit board

any help on this would be great if there is a way to get someone on the phone to talk it would be greatly appreciated
deleot
 
Posts: 6
Joined: Tue Oct 16, 2012 9:14 pm

Re: Adifruit 16 channel PWM with Arduino

by adafruit_support_bill on Wed Oct 17, 2012 5:54 am

The sample code should work with no address changes. Post some photos showing your soldering and connections to the UNO.
User avatar
adafruit_support_bill
 
Posts: 32625
Joined: Sat Feb 07, 2009 10:11 am

Re: Adifruit 16 channel PWM with Arduino

by deleot on Wed Oct 17, 2012 10:00 am

It was not working even with out the address change and at the moment i removed the jumpers and have cleaned all the contacts.
deleot
 
Posts: 6
Joined: Tue Oct 16, 2012 9:14 pm

Re: Adifruit 16 channel PWM with Arduino

by deleot on Wed Oct 17, 2012 11:20 am

I have also had several people check the wiring I have the 5v from the ardiuno running to both the VCC and V+ i have a ground connected as well by the V+ from the ardiuno

I then have a wire from Sda and SCL to thier proper analog 4 and 5

I know this is not a issue with the way i have it hooked up i am transmitting the clock and address but it goes no further than that
deleot
 
Posts: 6
Joined: Tue Oct 16, 2012 9:14 pm

Re: Adifruit 16 channel PWM with Arduino

by adafruit_support_bill on Wed Oct 17, 2012 12:01 pm

Please post photos showing your soldering and connections.
User avatar
adafruit_support_bill
 
Posts: 32625
Joined: Sat Feb 07, 2009 10:11 am

Re: Adifruit 16 channel PWM with Arduino

by deleot on Thu Oct 18, 2012 3:55 pm

Image
Image
Image


now that you can see my wiring is correct and the soldering is done right

can you please answer my question and yes i know right now my address should be 0xB4

this is based on the 1+_ _ _ _ _ _ r/w format

which shown i have 1100100X
deleot
 
Posts: 6
Joined: Tue Oct 16, 2012 9:14 pm

Re: Adifruit 16 channel PWM with Arduino

by tldr on Thu Oct 18, 2012 4:41 pm

looks like you've ignored the advise against using the arduino's 5v line to power your servos. can't tell how many or what size servos you're using, but you may just be resetting the arduino every time you try to move one.

and you haven't connected the ground pin on the logic header. that's probably not a problem, though, since you're using the 5v supply for the servos, but i can't find a schematic so, who knows?
"If I had known it was harmless, I would have killed it myself." - Phillip K. Dick, A Scanner Darkly
User avatar
tldr
 
Posts: 466
Joined: Thu Aug 30, 2012 1:34 am

Re: Adifruit 16 channel PWM with Arduino

by adafruit_support_bill on Thu Oct 18, 2012 5:32 pm

now that you can see my wiring is correct and the soldering is done right

It's a bit blurry but I see a lot of pad showing on those header joints.
can you please answer my question

You have said that it doesn't work and I am attempting to help diagnose the cause.
and yes i know right now my address should be 0xB4

No. The base address is 0x40 and what you have programmed there is 0x64. Addressing is explained in the tutorial: http://learn.adafruit.com/16-channel-pwm-servo-driver/chaining-drivers
And the data sheet is here:
http://www.adafruit.com/datasheets/PCA9685.pdf
User avatar
adafruit_support_bill
 
Posts: 32625
Joined: Sat Feb 07, 2009 10:11 am

Re: Adifruit 16 channel PWM with Arduino

by Arctic_Eddie on Thu Oct 18, 2012 7:08 pm

In the photo, it appears that the OE pin is unconnected. This needs to be pulled down to enable the outputs. Also, the photo suggests that the A5 and A2 address pads are closed. This would give the board an address of 100.
Arctic_Eddie
 
Posts: 208
Joined: Tue Feb 28, 2012 6:01 pm
Location: St. Petersburg, FL

Re: Adifruit 16 channel PWM with Arduino

by deleot on Thu Oct 18, 2012 8:26 pm

Arctic_Eddie wrote:In the photo, it appears that the OE pin is unconnected. This needs to be pulled down to enable the outputs. Also, the photo suggests that the A5 and A2 address pads are closed. This would give the board an address of 100.


\

thanks for the help you should be moderator I was curious about that OE pin and couldn't find anything on it in the tech specs to much

I'll give that a shot in the morning
deleot
 
Posts: 6
Joined: Tue Oct 16, 2012 9:14 pm

Re: Adifruit 16 channel PWM with Arduino

by adafruit_support_bill on Thu Oct 18, 2012 9:05 pm

OE has a 10K pulldown on-board. There is no need to connect to it unless you want to pull it high to disable the outputs.
User avatar
adafruit_support_bill
 
Posts: 32625
Joined: Sat Feb 07, 2009 10:11 am

Re: Adifruit 16 channel PWM with Arduino

by deleot on Thu Oct 18, 2012 10:52 pm

adafruit_support wrote:OE has a 10K pulldown on-board. There is no need to connect to it unless you want to pull it high to disable the outputs.



well ok

the problem still is that i am not getting the verify bit from the adafruit board

I didn't have the jumpers on for the address to start i added them after i had a oscope hooked up i could see it sending the address but it get no verify and then continues to repeat sending the address this has been the case with or with out the address jumpers added.

either the chip is not working or i am missing something is there a way to verify this chip is even good???

oh and thats not the edges of the pads your seeing in my solder job thats resin i used a old 60/40 with a resin core the dwells are quite nice on them but i haven't cleaned the resin off yet
deleot
 
Posts: 6
Joined: Tue Oct 16, 2012 9:14 pm

Re: Adifruit 16 channel PWM with Arduino

by adafruit_support_bill on Fri Oct 19, 2012 5:57 am

Contact support@adafruit.com with a link to this thread and ask for a replacement.
User avatar
adafruit_support_bill
 
Posts: 32625
Joined: Sat Feb 07, 2009 10:11 am