tobozo / esp32-DCF77_Analyzer_Clock

⏰ An ESP32 TFT interpretation of the @deruiter's DCF77-Analyzer-Clock-V2.0
MIT License
24 stars 9 forks source link

Clock is working well on an ODROID GO... #7

Open dl9sec opened 2 years ago

dl9sec commented 2 years ago

Hi, thank you very much for this great project. I can confirm that it is running well on an ODROID GO with the Chimera Core.

I was absolutely amazed how flawless the code builds (with no errors or warnings) and runs on the ODROID GO (including buttons and speaker). I used the IO4 for the DFC input and IO15 for SDA and IO12 for SCL (no clock stretching possible!) at the extension port.

I wondered why a 5V DS1307 is used an not a 3V3 DS3231. Will try to use the DS3231 library to have an overall 3V3 system...

Regards, Thorsten

tobozo commented 2 years ago

hi and thanks for your warm feedback :+1:

I'm surprised it sill compiles after being unmaintained for more than a year :)

I picked a DS1307 driver because I could get a dozen of those from aliexpress for a very cheap price a couple of years ago, been living on them since.

The RTC driver is very standard an can easily be replaced, you'll probably want to return true in your own implementation of RTC::isrunning() though.

dl9sec commented 2 years ago

Hi,

so I cross checked the registers of the DS1307 and the DS3231: There are two bitwise differences, but they don't care. All other used registers for time and date are comparable. The "CH" bit of the DS3231 is always 0, so RTC::isrunning() will always return true by default. I don't care the "Century" bit, if I am still alive in 2100, I will take a deeper look at the firmware :-D

The DS3231 as a 3V3 replacement for the DS1307 works like a charm without code modification.

Great stuff!! This code is really "magic" 👍

Regards, Thorsten