How to connect a fifth Servo and Potentiometer to arduino Uno

Hello,

I'm putting together a five degree robot arm with five servos and five potentiometers.
presently have 4pots and 4servos connected, having trouble with the fifth.

4pots and servos are connected to Analog IN( A0,A1,A2,A3,)pins on a( Arduino Uno).
also using a (PCA9685) driver for the servos.

PCA9685 is connected to the Arduino via (SCL), (SDA),pins.
Analog IN pins (A4,A5,) cannot be used as they are the same as (SCL,SDA,)pins.

So!.. How would, or could I connect the fifth Servo, and Pot,?..

I've attached a copy of the code im using.

New to Arduino, so any help with this would be greatly appreciated.

Thanks.

PCA9685_PWM_Servo_Driver_Example.ino (1.55 KB)

Probably the easiest way is to switch from the Uno to a Nano which has 2 extra analog pins.

Otherwise you can add a multiplexer to extend the number of analog inputs available. E.g. something like SparkFun Analog/Digital MUX Breakout - CD74HC4067 - BOB-09056 - SparkFun Electronics

Steve

Thanks for the help!!..

Ill order one Today!!..

You could easily drive 5 servos with an Uno without needing the PCA9685. That would free up A4 and A5.

...R