Just wanted to add that this simple config also worked for me. However, I do have another form of this module, which is not meant to be used with an RPi, and is meant to be used with a rechargeable CR2032 battery.
Talking about this thing:
So I wanted to share how to modify it to safely use it with an RPi:
You need to do two things:
- Remove some resistors to not damage the RPi
- Kill the charging circuit, if you gonna use non-rechargeable batteries
1. Remove some resistors to not damage the RPi
tl;dr: Remove R2 & R3. Don’t bridge, just remove.
If you look at the schematic I gonna link below, you will see that SCL & SDA are pulled high against whatever you supply as VCC. So if you power it with 5V, these pins will be pulled to 5V and will likely damage your RPi, as it only likes 3V3 on its GPIOs.
I initially found that note on this guide, but he didn’t explain why I need to do it, until I found the schematic and that then made sense: https://tutorials-raspberrypi.com/controlling-the-raspberry-pi-rtc-module-i2c-real-time-clock/
You could think: Why not supply the RTC board with 3V3 then? I tried it, but I didn’t get any life sign from it when on 3V3. So it seems to need 5V.
So you need to unsolder (and not bridge) R2 and R3 to stop the board from pulling them high. It’s actually not even necessary to pull them high.
2. Kill the charging circuit, if you gonna use non-rechargeable batteries
tl;dr: Remove D1, R4, R5, R6, make a bridge between pads of R6.
While I was searching for the “Why do I need to remove these R2 & R3 resistors?”, I stumbled over a very critical thing I would not have realized until connecting the board: It has a charging circuit to charge the CR2032 battery: Tiny RTC Charging Circuit Schematic - General Electronics - Arduino Forum
But who on earth owns rechargeable CR2032 batteries!? I didn’t even know those exist xD
So you need to kill the charging circuit. You can either kill two traces, but I liked it more to remove some components and kill the circuit by that, instead of scratching over a PCB with a knive… uuurrggghhhh… Here’s the schematic of the board:
So remove D1, R4, R5, R6 and make a bridge between the pads of R6.
And now the board works with an RPi and my HA can boot without any internet connection!
Hope this helps somebody having the same RTC boards I ordered