Adafruit 16-channel PWM/Servo Shield - Using Analoge Pins 4

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
Gamaxy
 
Posts: 2
Joined: Sun Sep 23, 2018 12:43 pm

Adafruit 16-channel PWM/Servo Shield - Using Analoge Pins 4

Post by Gamaxy »

Hey,

I have the Adafruit 16-channel PWM/Servo Shield and stacked it on a Arduino UNO. I want to run 6 servos in total each controlled with a Potentiometer. The servos are normally attached to the servo pins on positions 0 to 5. And are powered through a external 5V power supply with 6A. The program I am using you can find also in the uploaded files. I soldered one of the adress spots A0 to run the shield at the adress of 0X41, which you would find as well in the code.

The problem would I have right know is, that every servo and every potentiometer works fine, if I use them on the servo pins 0 to 3. But if I want to use 4 and 5 they do not work with the attached potentiometers on analaog pins 4 and 5. It seems to be a problem with the connections A4 and A5.

Is there some communication problem because of pins A4 and A5? Or is it something different?

Thank you in advance for you help!
Attachments

[The extension ino has been deactivated and can no longer be displayed.]

WIN_20180923_19_39_27_Pro (2).jpg
WIN_20180923_19_39_27_Pro (2).jpg (713.21 KiB) Viewed 209 times
WIN_20180923_19_39_00_Pro (2).jpg
WIN_20180923_19_39_00_Pro (2).jpg (36.66 KiB) Viewed 209 times

User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 16-channel PWM/Servo Shield - Using Analoge Pin

Post by adafruit_support_bill »

On the Arduino UNO, pins A4 and A5 are also SDA and SCL for the i2c bus. Since the shield is controlled via i2c, these pins are not available for analog readings when using the shield.

User avatar
Gamaxy
 
Posts: 2
Joined: Sun Sep 23, 2018 12:43 pm

Re: Adafruit 16-channel PWM/Servo Shield - Using Analoge Pin

Post by Gamaxy »

Hey,

is there really no workaround? I dont want to stack up another shield for this. I thought it is just a matter of communication. Setting the adress or frequency or something like this.


Thank you anyway! It is already a good hint.

User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 16-channel PWM/Servo Shield - Using Analoge Pin

Post by adafruit_support_bill »

You can use a different processor that does not share pins A4 and A5 with i2c.
For example, there is the Metro M0: https://www.adafruit.com/product/3505

User avatar
cclclrk
 
Posts: 1
Joined: Thu Jan 10, 2019 4:12 pm

Re: Adafruit 16-channel PWM/Servo Shield - Using Analoge Pin

Post by cclclrk »

The Metro M0 is still compatible with the PWM shield, right?

User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 16-channel PWM/Servo Shield - Using Analoge Pin

Post by adafruit_support_bill »

Yes. The shield is compatible with the Metro M0.

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

Return to “Arduino Shields from Adafruit”