Introduction: Arduino - AT24C32 / DS1307 Real Time Clock 7 SEGment Display

Picture of Arduino - AT24C32 / DS1307 Real Time Clock 7 SEGment Display

Hello world! Today i made a real time clock on a 4 digit display. The display i used is not really for clocks but it works, only the 2 dots are not in the right place, but you do not have to change anything in the code. You need a Library for this project. Follow the next step for the Schematic, Code & Parts list.

You need the following library SevSeg.h

check if you are using a common anode or cathode display

You can change this in the code at line 26

int displayType = COMMON_CATHODE; //change that to COMMON_ANODE

Other instructions on how to set time are in the code!

Step 1: Schematic, Code & Parts List.

Picture of Schematic, Code & Parts List.

Wire everything like the schematic and upload the code! Make sure the library is installed.

Parts list:

  • Arduino uno
  • AT24C32 / DS1307 real time clock ( I used the one on the picture above. There is also room for a temperature sensor like the LM35 on it)
  • 4 Digit 7 Segment Display
  • 4x 1 k Resistors. (Optional)
  • Jumper wires set MM/FM/MF

Good luck!

Check out our website! http://www.arduinosensors.nl


Comments

Manjunathrnrn (author)2017-10-17

i got error like

exit status 1

no matching function for call to 'SevSeg::begin(int&, int&, int&, int&, int&, int&, int&, int&, int&, int&, int&, int&, int&, int&)'

Got the right library?

yeah ,I have include the correct library i,e #include <SevSeg.h> but same thing happens

Samithasandaruwan (author)2017-10-10

display7seg.Begin(displayType, numberOfDigits, digit1, digit2, digit3, digit4, segA, segB, segC, segD, segE, segF, segG, segDP);
Line erro.how to fix it

Can u explain further please?

owahid96 (author)2017-05-22

What's the time format 12hrs or 24hrs

HàşibŘ (author)2017-02-01

nice brother

vandenbrande (author)2016-10-21

Follow me for more!

About This Instructable

2,410views

15favorites

License:

Bio: Hello world! I make simple & Advanced projects for people who want to learn programming and electronics. Most of my Instructables are about arduino and the ... More »
More by vandenbrande:ARDUINO - SOLID STATE RELAY FAN/ventilator Control Using the W1209 Thermistor and SSR-25 DA Arduino - SSR-25 DA Solid State Relay and DS3231 RTC Automatic Timer Lamp Arduino & C# - RGB LED / LED STRIP CONTROL C# Application
Add instructable to: