Anyone using the RV3028 with the Interstate 75, or even with a vanilla RP2040? I want to build a clock that will run off a standard USB supply and maintain time through any power outages. Clock is working fine (32X64 LED) and I’ve set the RV3028 up on a Pi prior to connecting it to the Interstate 75, however I haven’t managed to find a working example of code to talk to the RV3028 in Micropython (V1.18) in this set up. Any pointers gratefully received! Thanks.
There is a Micro Python demo file here.
pimoroni-pico/micropython/examples/breakout_rtc at main · pimoroni/pimoroni-pico (github.com)
In my notes I have the following:
rtc.set_time(sec, min, hour, weekday, date, month, year)
sec = 0-59
min = 0-59
hour = 0-23
weekday = 0-6
date = 1-31
month = 1-12
year = 2022 etc
OK, thanks. A minor edit of line 5 to the same pin numbers as line 6 and it is now reading the RV3028, getting somewhere now.
i2c = PimoroniI2C(**PINS_BREAKOUT_GARDEN)
i2c = PimoroniI2C(**PINS_PICO_EXPLORER)
would have also worked.
Or just use
i2c = PimoroniI2C(sda = 20, scl = 21)
EDIT: If you don’t mind sharing, I’d like to see what code you end up with.
How did you connect the RV33028? Via the qt/stemma or directly soldering to the interstate 75?