Programming Help

I am looking for a way to build a random interval timer. The intervals will be set anywhere between 1-30 mins and will trigger other external components such as LEDs and an alarm!

Any suggestions would be very helpful!

TIA

Have a look at how millis() is used to manage timing without blocking in Several Things at a Time.

And see Using millis() for timing. A beginners guide if you need more explanation.

It would be straightforward to use the random() function to set the time interval for one or more of the actions.

...R

I am looking for a way to build a random interval timer. The intervals will be set anywhere between 1-30 mins and will trigger other external components such as LEDs and an alarm!

Any suggestions would be very helpful!

A proper description of what you need would be a start, e.g what is the granularity of thus 'random interval', also, what part(s) do you require help with?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.