About Timer Usage on Arduino

Hello Everybody,

I have a question and I need your helps. In summarize;

In my project, I will use a power supply.

It need to work as off mode 47 hours and after that need to work as on mode 1 hours. (47h -> 0V ; 1h 5.5V)

And this cycle will be repeated 34 times.

I can't control this power supply with internal device programming. Because test duration is very long (1593 hours)

Due to this situation I decided to continue with an Arduino device and relay.

If I succeed to programming the Arduino, It will work.

What is the maximum delay time on Arduino ?

I need your help and mentions. Could you help me ?

Hello regama19

Use a Time switch simply.

e.g.

grafik

Hi,

It can be difficult I think. Because the cycle (47h+1h) will be repeated 34 times. How can I manage it ?

And also with arduino and relay, it's very cheap. Just I need to learn how much time I can add delay time ?

For example;

11111

Is it possible ?

You should have to make a market analysis, reading manuals to get answers to these questions.

I'd use millis() for timing.

You want when power is applied to the MCU for the MCU to sit there for 47 hours, then enable for 1 hour. then wait another 47 hours and repeat 34 times and then what? Stop, or repeat.

Your thing is very possible.

Look at File|Examples|02.Digital|BlinkWithoutDelay to use millis() for timing instead of delay().

https://majenko.co.uk/blog/our-blog-1/the-finite-state-machine-26

Help us help you.

For the delay() function:
4294967296 milliseconds
4294967.296 seconds
71582.7882666... minutes
1193.04647111... hours
49.71026962962962... days

How accurate does the 47 hours need to be? Odd are that you will end up with so much drift from the arduino clock over a 2-day period that you're better off using an RTC module for timing.

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