problem with RTC and Arduino pro mini

hello,
this is a test program to remind pill with arduino pro mini and RTC module. at first it was working but now it isn't. i have to mention that i haven't reprogrammed the arduino pro mini. the led is just blinking randomly and doesn't change by pushing the buttons.both arduino and module are working. sorry for having a messy program. default time is 2 sec and with another button you can adjust it to 10 sec.

Pill.ino (2.08 KB)

Need to post correctly ... :frowning:

The microcontroller isn't going to do that* so I suspect the wiring (which you didn't post) did not liked the cold night alone... (or being yanked when you put it away)

  • Which is backed up by al the same posts here indicating PEBKAC

well yes it will not. i reprogrammed it it did work but after 10 minute it stopped working and then reprogramming it didn't help. i waited about 10 minute just to see if its gonna work and it did work. i didn't touched anything. it worked by it self. can it be that the arduino that I'm using is a clone?

Can be, but the odds are very very very small. I think winning the super ball is more likely. The odds of a wire came lose is wayyyyyy bigger. And everybody always sa they didn't touch a thing... Check check, double check. For example, just make simple sketches to test basic functionality like are button touches registered etc.

ok i managed to get it working by an original uno but the problem is that when i press 10 sec button it wait 10 sec and blink then it goes to its default timing which is 2 sec. int r is the timing

If you code like you post here I'm not surprised the compiler isn't doing what you want... Start by making nice sentences starting with a capital letter and ending in a period...

What do you want?
What is the complete hardware setup? (aka circuit diagram, NO Fritzing breadboard mess)
What code are you using? (post ALL, in code tags)
What is working?
What is unexpected?
What did you try to fix it?