Digital clock using Arduino UNO , TM1637 4-digit 7 segment display and DS1307 RTC module. Here I show you how to make a simple digital clock using Arduino UNO very easily. TM1637 4-digit 7 segment display :- https://amzn.to/3R3KC3p DS1307 RTC module:- https://amzn.to/3dPDfyc Arduino UNO:- https://amzn.to/3KcNfxR Jumper Wire:- https://amzn.to/3KcBIyH Project Code :- const int clock = 11; const int data = 10; uint8_t digits[] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f }; void setup() { setupInterrupt(); pinMode(clock, OUTPUT); pinMode(data, OUTPUT); start(); writeValue(0x8c); stop(); write(0x00, 0x00, 0x00, 0x00); } byte tcnt2; // set current time by editing the values at line 16 and 17 unsigned long int setMinutes = 9; // set minutes unsigned long int setHours = 9; // set hours unsigned long time = (setMinutes * 60 * 1000) + (setHours * 3600 *10...
Great article, I hope that you will going to post another one.
ReplyDeleteBest Vacuum hair clipper