Arduino clock with NOKIA 5110 LCD and DS1307 RTC

This Arduino tutorial shows how to make a DIY real time clock using DS1307 chip where time and date are displayed on Nokia 5110 (Nokia 3310) LCD. This LCD has a maximum resolution of 84 x 48 pixel.
In the circuit there will be two push buttons for adjusting the time and the date of our real time clock.

To see how to interface Arduino with Nokia 5110 LCD, visit the following post:
Interfacing Arduino with Nokia 5110 LCD

And to see how to interface Arduino with DS1307 for the first time, take a look at the post below:
Arduino real time clock with DS1307

Arduino with Nokia 5110 LCD and DS1307 RTC hardware

Hardware Required:

  • Arduino board
  • Nokia 5110 LCD screen
  • DS1307 RTC              —->    datasheet
  • 32.768 kHz crystal oscillator
  • 2 x 10k ohm resistor
  • 5 x 3.3k ohm resistor
  • 5 x 2.2k ohm resistor
  • 2 x push button
  • 3V coin cell battery
  • Breadboard
  • Jumper wires

Arduino clock with NOKIA 5110 LCD and DS1307 circuit:
The following image shows project circuit schematic diagram.

Arduino NOKIA 5110 LCD DS1307 RTC circuit

The two push buttons B1 and B2 are for setting time and date. The two buttons are connected to Arduino pin 9 and pin 8 respectively for B1 and B2.

Arduino clock with NOKIA 5110 LCD and DS1307 code:
The Arduino code below doesn’t use any library for the DS1307 RTC chip.

The following Arduino code requires 2 libraries from Adafruit Industries:
The first library is a driver for the Nokia 5110 LCD (PCD8544 controller) which can be installed from Arduino IDE library manager (Sketch —> Include Library —> Manage Libraries …, in the search box write “nokia” and install the one from Adafruit).

The second library is Adafruit graphics library which can be installed also from Arduino IDE library manager.

The previous 2 libraries can also be installed manually, download links are below:
Adafruit Nokia 5110 LCD library   —->  direct link
Adafruit graphics library             —->  direct link

After the download, go to Arduino IDE —> Sketch —> Include Library —> Add .ZIP Library … and browse for the .zip file (previously downloaded).
The same thing for the other library file.

In the code there are total of 4 libraries, they’re included in the code as follows:

And the two push buttons are defined in the code as shown below:

Full Arduino code:

The following video shows Proteus simulation of the project (note that simulation circuit is not the same as real hardware circuit, hardware circuit diagram is shown above):

Proteus simulation file download link is below, use version 8.6 or later to open it:
Arduino with Nokia 5110 LCD and DS1307 RTC


Discover more from Simple Circuit

Subscribe to get the latest posts sent to your email.

1 thought on “Arduino clock with NOKIA 5110 LCD and DS1307 RTC”

  1. Very nice project with all the information and demonstration schematic, thank you for all your hard work

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top