RTC + UNO + PCA9685 Wiring Problem

Hi,
I'm following a tutorial to make a "Clock-Clock" with 48 servos hooked to 3 PCA9685. These use my SDA and SCL pins on the Uno. So, I'm wondering how to hook up the RTC ? Which pins should I use.
The tutorial indicates these connections for the RTC:RST to D4, DAT to D3, CLK to D2 of a Nano. But I'm using an UNO and my RTC has different labeled pins: GND,VCC,SDA,SCL,SQW,32K.

Appreciate your help, thanks.

You should mention what RTC you have.

I think it's DS1302 here it is

I2C is a bus. So you can add multiple I2C devices to the same SCL/SDA pins.

That is not a DS1302.
So exactly what do you have?

If your module does actually have I2C then it will not work with the code from the tutorial.

@jim-p The photo shows what I have. Bought from Ebay whic says DS1302. But I guess it's wrong, cheked other sites it seems to be DS3231. here's the one from the tutorial:

multiple I2C ? but the have to be addressable ?

OK if it is DS3231 do you know how to modify the code to make it worK?

I rather just buy one same as the one in the tutorial. Can I use the same pins with UNO which he uses with Nano ?

Yes, they are. Each device basically has its own address. For the RTC module that you show in post #3 it will have two; one for the RTC (fixed) and one for the EEPROM (which can be modified using the A0/A1/A2 pads on the board).

The PCA96856's address can also be modified.

1 Like

Yes same pins

1 Like

Thank you for your help

No problem
Have a nice day!

You too

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