Hello everyone,
I am a beginner in Programming and Arduino so please excuse me for my questions.
I am trying to make a digital clock (later on use a LM35 for temperature measurement as well) using Arduino Uno (clone) , LED Matrix display and DS1307 I2C module and use some animations in between the display of time and date.( In future temperature as well if the basic program works properly.)
LED Matrix model : https://www.aliexpress.com/item/MAX7219-Dot-Matrix-Module-For-Arduino-Microcontroller-4-In-One-Display-with-5P-Line/32633910582.html?spm=a2g0s.9042311.0.0.6xgZW8
I am able to get the time displayed in the matrix display and on the serial output. But the clock runs for a few minutes or around an hour sometimes and the whole program stops(even the Serial monitor) Maybe the code pauses and display is turned off and there is no blinking light from the Arduino.
But the RTC is keeping the time in the background and if I press the reset button on the Arduino board it shows the correct time and again turns off after some time.
I feel that the program is causing the Arduino to freeze and LED Matrix to turn off but RTC runs in the background. As from the screen capture the time froze at 16:4:38 26/12 and after I pressed Reset button it ran again at 16:7:7 26/12
Please guide me in understanding and fix the issues which I am facing. I am stuck at the starting stage itself and hence I am unable to modify my program further because whatever functions I try to add further the clock turns off so I am stuck.
Please find the code attached. Its not my code because I am a newbie !!!
LEDCLOCK.txt (1.19 KB)