It's just a simple digital clock controlled by Arduino without using any RTC module (Real Time Clock). Every time you switch on this clock you've to set it to the present time, just like the analog clocks found in homes.
I would not suggest using this clock for your daily life, those that use the RTC module suits our present lifestyle perfectly.
1. You don't have to adjust the time each time it's switched on
2. I don't think this thing can keep the accurate time without variations for a longer time.
My aim is to give beginners some understanding on how to work with Arduino using only simple materials and without lots of Incomprehensible codes. So let's start.
Anyone with little experience in using a breadboard, connecting wires can make this circuit easily. There is nothing to worry just follow the diagram and connect using male jumper wires or you could use the perfboard and solder everything.
Follow the circuit diagram:
First connect the LCD display, tactile switches, resistors, and potentiometer. Follow the step-by-step diagram given below if you are having trouble connecting the circuit:
Then upload the code given below to your Arduino using Arduino IDE:
Digital Winding Clock - Arduino Clock for beginners
Just set it to exact time using the push buttons each time you switch on the clock
Made by Techno (sǝɹoɟ ǝǝןuuɐ)
Feel free to modify
const int hs=8;
const int ms=9;
lcd.print("HAVE A NICE DAY");
Finish the connections with Arduino. And that's it you've built your Arduino digital clock.
Now power up the Arduino either by connecting the USB cable or by using a 12V adapter. Arduino should start and the LCD backlight should glow. Don't worry if you see nothing on the LCD. Try turning the potentiometer, you can see the text becoming clearer. Stop turning when you've achieved your desired contrast. The button on the right is for changing the hour and the one on left is for changing the minute according to the circuit diagram.
One last thing
You can change the message displayed below the time by changing:
lcd.print("HAVE A NICE DAY");
Text in the code. Change HAVE A NICE DAY to something like GOOD MORNING , GOOD EVENING or anything else. Save it and then re-upload it to the Arduino.
Autodesk circuit provides the ability to build and simulate simple circuits, so if you want to build and simulate circuits visit this link.
- Can we use this just like normal clocks?
That depends on you. In my opinion, it not as accurate as those digital clocks with RTC.
- Can we modify this project?
With Arduino there is no ending, there are many endless ways by which you can modify this project.
For example try to find a way to add an alarm to this clock.
- Why didn't I use an RTC module ?
For the sake of simplicity I have avoided using RTC module. Most people suggested me to add a RTC module, but for beginners I think this would be enough. If you want to build one there are many projects and tutorials available online.
P.S. For building standalone Arduino so that you can use this clock without the need to include the Arduino permanently, visit these links:
If you have anymore queries, post them below in the comment section. I will try to upload a video on construction in future updates. So see you all with another project.
And thank you for your time.