Ds1302 displaying 20165 / 165 / 165 for date and 165 : 165 : 1 for the time

So im making a school project that uses a mh real time clock module 2 that adjust the time with 3 push buttons , a 0.91 inch oled display and max30105 heart rate sensor and a coin vibrating motor the project worked fine on the bread board when i soldered it to a proto board last night it suddenly started displaying 20165 / 165 /165 the indication led thats build it is blinking every seccond and the serial monitor also runs the push buttons rest of the project works fine i get and display the heart rate can go to the menu where i adjust the time but it keeps ons saying 165 ...swapped batterys it didn't work so i got a new rtc and had the same problem i resoldered the whole board i checked for short circuits and lose connections can someone help please ?


My arduino boars is the pro mini 5v

Check all your wiring but specifically the power. Also check the voltage.

You can search the forum for 165, it has come along more often.

Will check again thank you very much :pray:

Here are a number of search results: Search results for 'rtc 165' - Arduino Forum

You will have to dig yourself :wink:

1 Like

Im searching as we speak thank you so much for the help sir will get back if i find something or not

Power issue. Remove other devices.

1 Like

Can you post a wiring diagram? How is the DS1302 connected? Hopefully you are not connecting it to the I2C bus, probably not since it would never have worked properly on the breadboard.

Were you using the pro mini when testing on the bread board, or another type of arduino?

I dont have my computer with we will send a schematic asap , i used the same pro mini on the bread board the rtc uses a 3 wire conection
RST TO DIGITAL PIN 2
DAT TO DIGITAL PIN 4
CLK TO DIGITAL PIN 5
GRN TO GRN
VCC TO VCC

THE OLED IS
GND TO GRN
VCC to VCC
SDA to A4
SCL to A5

The only thing else connected to the i2c bus is the max30105 its connect the same as the oled
GND to GND
VCC to VCC
SDA to A4
SCL to A5

but this sensor works and displays the avarage bpm as it should on the oled and the small vibrating coin motor also comes on when its detects a low avarage Bpm

I'll try removing power from all other devices and leave only the oled and rtc as @xfpd suggested and send a schematic of the project

So you guys can check it for any faults once again thank you all for the support its appreciated hope im using the forum correctly trying to give as much help as possible

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