45. User Define RTC Function For Time Reading

Interface the RTC module with the Arduino UNO using the I2C protocol.

Create a user-defined function to read time from the RTC module and print time on the Arduino’s Serial monitor.

Example

Note

  • Use Wire.h library for I2C communication.
  • Do not use pre-built libraries like <DS1307RTC.h>.
  • Refer to the datasheet of the respective RTC module for a clear understanding.
     

Submit Your Solution