Digital Clock Using Arduino and Led Dot Matrix Display

Nowadays, Makers, Developers are preferring Arduino for the rapid development of the prototyping of projects. Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino has a very good user community.

In this project, we will see how to build a digital clock using Arduino. This project is easy to build and change it as per the requirement.

Required Components:

  1. Max7219 Led Dot Module
  2. DS1307 RTC Module
  3. Arduino uno

MAX7219 Led Matrix Display:

The MAX7219/MAX7221 are compact, serial input/output common-cathode display drivers that interface microprocessors (μPs) to 7-segment numeric LED displays of up to 8 digits, bar-graph displays, or 64 individual LEDs.

Included on-chip are a BCD code-B decoder, multiplex scan circuitry, segment and digit drivers, and an 8×8 static RAM that stores each digit.

Only one external resistor is required to set the segment current for all LEDs. The MAX7221 is compatible with SPI™, QSPI™, and MICROWIRE™, and has slewrate- limited segment drivers to reduce EMI.

A convenient 4-wire serial interface connects to all common μPs. Individual digits may be addressed and updated without rewriting the entire display.

The MAX7219/MAX7221 also allow the user to select code- B decoding or no-decode for each digit.

DS1307 RTC Module:

The DS1307 serial real-time clock (RTC) is a lowpower, full binary-coded decimal (BCD) clock/calendar

plus 56 bytes of NV SRAM.

Address and data are transferred serially through an I2C, bidirectional bus.

The clock/calendar provides seconds, minutes, hours, day, date, month, and year information.

The end of the month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year.

The clock operates in either the 24-hour or 12-hour format with AM/PM indicator. The DS1307 has a built-in power-sense circuit that detects power failures and automatically switches to the backup supply. Timekeeping operation continues while the part operates from the backup supply.

Connection Diagram

Code

https://github.com/stechiez/Arduino/tree/master/digitalClock

https://github.com/stechiez/Arduino/tree/master/lib

Tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *