Why 2 addresses are shown in driver of pca9685 in I2C scanner?


Why 2 addresses are shown in the driver of pca9685 in the I2C scanner?
Serial monitor output:
i2c device found at address 0x40!
i2c device found at address 0x70!

Why does this type of output occur? All I see online is this output (i2c device found at address 0x40!).
I also can't turn on my servo motors with the pca9685 driver and don't know what the problem is.
Here is the code:

#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
Adafruit_PWMServoDriver srituhobby = Adafruit_PWMServoDriver();

#define servoMIN  150 
#define servoMAX  600

void setup() {
  Serial.begin(9600);
  srituhobby.begin();
  srituhobby.setPWMFreq(60);
}

void loop() {
      for(int servo=0; servo<4; servo++)
        {      
            srituhobby.setPWM(servo, 0, servoMIN);
            Serial.println(servo);
            delay(300);
        }
  for(int servo=3; servo>=0; servo--)
        {      
            srituhobby.setPWM(servo, 0, servoMAX);
            Serial.println(servo);
            delay(300);
        }
}

What type of arduino is this?

What do you see with i2c scan with the pcf module disconnected?

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project.

How have you connected the lines A0 to A6? They all need to go to either ground or the positive supply rail.

In fact how is the whole thing wired up?

Have you looked up the data sheet of this chip and seen the two addresses that are assigned by default for reset and broadcast messages?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.