Raspberry Pi B+ and PCA9685 PWM Servo driver

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
dwwaddell
 
Posts: 2
Joined: Fri Aug 01, 2014 4:52 pm

Raspberry Pi B+ and PCA9685 PWM Servo driver

Post by dwwaddell »

I just received my Raspberry Pi B+ and disconnected the (working) PCA9685 PWM Servo driver board from my original Raspberry Pi B and now when I load up the IDE, Software, drivers, and modified {/etc/modules, /etc/modprobe.d/raspi-blacklist.conf}, the B+ does not see the I2c chip:
$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Vcc is connected to pin 1;GND to pin 39;SCL to pin 28; and SDA to pin 27. See page:
http://www.raspberrypi.org/product/model-b-plus/
Also, I moved everything back to my Raspberry Pi B and it still works there.
Any suggestions, thanks Dave.

User avatar
dwwaddell
 
Posts: 2
Joined: Fri Aug 01, 2014 4:52 pm

Re: Raspberry Pi B+ and PCA9685 PWM Servo driver

Post by dwwaddell »

To answer my own question :-) Even though there are two pins dedicated to SDA/SCL the first 26 GPIO pins remain the same as the RPi B and I should have put the SDA on pin 3 and SCL on pin 5 exactly as before. D'oh.
As an aside, I had to change line 30 of Adafruit_PWM_Servo_Driver.py to:
self.i2c = Adafruit_I2C(address, smbus.SMBus(1))
... and line 11 of Adafruit_I2C.py to:
def __init__(self, address, bus=smbus.SMBus(1), debug=False)
... as neither would accept just the integer 1.
Dave.

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Raspberry Pi B+ and PCA9685 PWM Servo driver

Post by adafruit_support_mike »

Glad to hear you got it working..

WRT the I2C code, check to see how old your version of the Adafruit RasPi Python code is. I think there was a recent update that handles bus selection behind the scenes and automatically.

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

Return to “Arduino Shields from Adafruit”