Making Digital clock using “TM1637 4-digit display”

About This Tutorial
In this tutorial we will be making digital clock using “TM1637 4-digit display” and “RTC PCF8563” , we will also use slid switch and two potentiometer to set timing and we will display hours and minutes obtained from “RTC PCF8563” on “TM1637” 4 digit display
Tutorial Info

Components Required

ImageComponentQuantityAvailable in Kit
evive1
USB A-B Cable1
Male to Female Jumper Cable 20cm1
7 Segment LED Display (4-Digit)1
  • None

Introduction

In this tutorial we will be making digital clock using “TM1637” 4-digit display and “RTC PCF8563” real time clock module , First we will get “Hour” and “Minute” from  real time clock module and then we will use this Hour and minute to display timing on TM1637 4-digital display.

 

TM1637 4-digit display

TM1637  is used to drive seven segments display , there are many modules available which countain TM1637 chip to form a 4-digit numerical display module.

Features

  • Use either the raw segment value or decimal number
  • Set either the whole display  or any  digit independently
  • Control the brightness
  • Pure software impelementation

 

Pin description

TM1637 4-digit display have 4 pins

  • VCC
  • GND
  • CLK  (clock pin for I2C communication )
  • DIO  ( Data Input output pin )

 

Circuit diagram

  • Connect ‘VCC’ of ‘TM1637’ module to ‘VCC’ of evive
  • Connect ‘GND’ of ‘TM1637’ module to ‘GND’ of evive
  • Connect ‘CLK’ of ‘TM1637’ module to pin number 2 of evive( Yellow wire in circuit diagram given below)
  • Connect ‘DIO’ of ‘TM1637’ modue to pin number 3 of evive(White wire in circuit diagram gien below)

 

Steps for setting time 

 

 

  • First connect evive with computer ( using USB A -B cable ) , then upload the code which is given below
  • Then move slid switch-1 in “UP” position and use Potentiometer-1 and Potentiometer-2  to set Hour and minute as show above
  • Potentiometer-1 and Potentiometer-2 are connected internally to analog pin A9 and A10 of evive respectivly , they will give digital reading (from 0 to 1023) ,we will use map function to convert them (form 0 to 59 and 0 to 12 ) for minutes and hour 
  • After setting time using potentiometer-1 and potentiometer-2  , move slid switch-1 in “Down” position , this will start to display timing on TM1637 4 digit display module

Arduino code

Libraries used in the code

  • rtc_pcf8563 library  ( click here to download)
  • TM1637 library         ( click here to download)

Expected Result

 

 

This helped
This didn't help
Share this Tutorial
Share on facebook
Facebook
Share on twitter
Twitter
Share on google
Google+
Share on pinterest
Pinterest
Share on reddit
Reddit
Share on print
Print
Related Projects & Tutorials
How to use evive’s Real-time Clock
This tutorial discusses what is a real-time clock, and how to use evive's real-time clock to show time, date, and day with the help of an Arduino IDE sketch.
All articles loaded
No more articles to load
Featured Projects
Robotic-Arm-Bartender
DIY Robotic Arm Bartender

This project will show you how to make your own robotic arm bartender that will make you a star host!

All articles loaded
No more articles to load
Close Menu
×

Cart

No mo #FOMO on the coolest project-making app out there!

Check it out RIGHT NOW on Product Hunt!
Launch-Pop-Up
Dabble is trending on Product Hunt!
Check it out and let us know what your favorite feature is. 😉
x