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.
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;
Is it possible ?
regama19:
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 ?
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().
NOTE for newcomers. The demo is entirely contained in this Post and Reply #1. There is no need to read further unless you are interested. ...added 25Sep2014
There have been a few occasions recently where newcomers seemed to have difficulty applying the "blink without delay" and "state" concepts to a sketch that is intended to manage a number of concurrent actions.
Its very time consuming to respond with suitable code examples - particularly as every case is a little different.
I have prepared…
https://majenko.co.uk/blog/our-blog-1/the-finite-state-machine-26
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.
system
Closed
August 8, 2023, 7:31pm
9
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.