External interrupt combined with timer Interrupt

Hi everyone! :slight_smile:
I've been working with my Arduino UNO for some months now and now has started with a smaller project which I will fiddel on during my spare time.
My thought is that by external interrupt I increment an volatile int which leads to different things happening depending on the value of the int.

For example : 1 - Show temperature outside, 2 : Get the current date, and so on.
My thought is that I also want to include a timer interrupt in a way that if the integer as e.g becomes 5 I want to cycle through all the possible actions.

Do you think my idea is doable? ::slight_smile:
I have very little knowledge about timer-interrupt as an all so please give me your thoughts about it. :slight_smile:

Have a nice day,
Scozia

EDIT: As of now everything works with the exception of that there is no timer-interrupt at all.

Scozia:
EDIT: As of now everything works with the exception of that there is no timer-interrupt at all.

You have not posted the code that works so it is difficult to help.

I think it is unlikely that any interrupt is required. Generally you only need interrupts for things that happen very quickly or to detect an event of very short (microsecond) duration.

If you want something to happen at regular intervals you can use millis() to manage the timing. See the demo several things at a time

...R

Roger that and sorry for the inconvenience.
I tried the millis() out and it works great, thanks sir. :slight_smile:

Scozia:
Roger that and sorry for the inconvenience.
I tried the millis() out and it works great, thanks sir. :slight_smile:

No inconvenience.
Glad you have a solution.

...R