Linked Questions
38 questions linked to/from How can I handle the millis() rollover?
0
votes
3
answers
2k
views
Time.h rollover after 49.7 days [duplicate]
I'm developing a arduino based system, which includes a alarm system.
Searching on the Internet, I found these lybraries "Time.h" and "TimeAlarms.h".
In the requirements, it says: "Time does not ...
1
vote
2
answers
494
views
run a function for a certain amount of time! [duplicate]
i'm working on a project where i need to run a function for 20 minutes and the function writes to memory using EEPROM every minute. How can i make the function run for 20 minutes, i was thinking of ...
2
votes
0
answers
368
views
Arduino based hour counter [duplicate]
I would like to make a hour counter for a particular machine.I have a problem in coding.arduino internal clock can work only till 49 days.my hour counter should calculate 150+ hours.I thought of using ...
1
vote
0
answers
85
views
Millis() based timer program for 24x7 usage in Arduino [duplicate]
I have made an irrigation system using Arduino. Timer program is based on comparing the previous Millis() and current Millis(). I want to know the chance for error when the currentMillis() overflows ...
1
vote
0
answers
49
views
What happens if Millis() method variable goes out of it's capacity? [duplicate]
I am now working on a project which is expected to last at least 5 years from the time it is completed. In that project, i can not use delay() for some purposes so I am using millis() method
unsigned ...
10
votes
3
answers
85k
views
How to get current time and date in arduino without external source?
I'm working on a project using Arduino Uno and SD card shield.
I'd like to store a variable at a specific time everyday in the SD card. How can I get the current time in Arduino ?
Any help would be ...
6
votes
5
answers
3k
views
Is there any better choice other than using delay() for a 6-hours delay?
I am designing an incubator system and I need to drive a motor forward and reverse every 6 hours. Is there any better choice other than using delay()? A 6-hours delay seems a little unprofessional.
3
votes
3
answers
35k
views
Resetting millis() and micros()
I want to know how much time has elapsed since a certain event, and I do not want to use any external timers. It seems logical to reset an internal timer whenever the event occurs (using an interrupt)....
4
votes
3
answers
9k
views
The exact time for functions or CPU cycles for any function
I'm trying to read input data from the parallel port of a PC and send it to another device. For this purpose the input data is saved, when it's available and is sent if a flag is set.
The whole ...
1
vote
3
answers
19k
views
Controlling 3 stepper motors simultaneously
I have three stepper motors connected to the drv8825 drivers to an arduino uno.
I am using the example code below (from here), which works fine for moving multiple stepper motors at the same time BUT ...
5
votes
4
answers
3k
views
Running multiple tasks at once
For a school project we're working on a wearable device to track people's movement and heart rate. We use an Arduino Pro Mini with a heartbeat sensor and an accelerometer. The wearable device uses ...
1
vote
2
answers
4k
views
How can I made my Arduino follow the time exactly?
I am making an Arduino clock. You can set time to it, and then it keeps on going. The problem is that it is always within a minute off. It is not a major issue, but one that I would like to fix. I use ...
0
votes
2
answers
9k
views
Accelstepper.runToPosition() is working fine. Accelstepper.run() does nothing
I have a complex sketch with Arduino Uno, Bluetooth Serial Com using altSoftSerial, serial com using SoftwareSerial and Serial communication with PC.
I want to move one stepper motor and stop it when ...
2
votes
3
answers
2k
views
Time delay without using delay() and millis()
I am designing an industrial control panel using arduino. I have to use time delays as long as 10 seconds and since using delay() makes a halt in the controller I tried using millis(). But it is ...
3
votes
3
answers
2k
views
Running quartz clock off an arduino
I am trying to run a clock off of an arduino following this site: http://www.cibomahto.com/2008/03/controlling-a-clock-with-an-arduino/comment-page-1/ and I tried to combine it with this to get it to ...