Replacement of logic of a whartin clock with an arduino with rtc module