3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Make A Digital Clock From Scratch

Step 5The program

The program
«
  • Atmega168.jpg
  • PICT0005.JPG
Now it's time to program you ATmega chip.
But first install all 3 libraries that I have given like so.
Take your chip and put it in the arduino board and put the program I have added with this step.
The program is a bit messy but I did as best as I could to make it clean.
You ca set time and date in this clock so no time setting is needed when you program.

Time setting mode:
Press the "start/end setting mode" button, use the up and down buttons to set the time and the "next" button to move to the next part( it goes like this : hours, minutes,days, mouths ,years).
when you are done press the "start/end setting mode" button again.

Date:
Just press the "date/next" button.

Note:
There is no comments in the code, I will add them latter on.
« Previous StepDownload PDFView All StepsNext Step »
5 comments
Mar 29, 2012. 8:21 PMacao says:
I don't know what libraries to install to the Arduino... Are all the library included in the attachment above?

Thanks
Mar 20, 2011. 10:17 PMneutron_robot says:
how to make this clock run 12h mode?
Jun 9, 2010. 9:48 PMgary8738 says:
When I run the program in the arduino IDE it says "DS1307.h no such file or directory"

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
99
Followers
4
Author:Syst3mX(Vadim)
Electronics and LEDs what can be better ?! :D