Linked Questions

0 votes
3 answers
1k 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 ...
BrunoAraujo's user avatar
1 vote
2 answers
348 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 ...
rohithrathod banoth's user avatar
2 votes
0 answers
362 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 ...
Pavan Hari's user avatar
1 vote
0 answers
76 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 ...
Prakash K K's user avatar
1 vote
0 answers
47 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 ...
Subha Jeet Sikdar's user avatar
9 votes
3 answers
68k 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 ...
Mohamed Mbarki's user avatar
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.
henzup's user avatar
  • 63
3 votes
3 answers
33k 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)....
pseudoeuclidean's user avatar
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 ...
Mehran's user avatar
  • 155
1 vote
3 answers
18k 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 ...
the_plds's user avatar
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 ...
OlivierV's user avatar
1 vote
2 answers
3k 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 ...
shurup's user avatar
  • 300
0 votes
2 answers
8k 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 ...
Dimitris's user avatar
2 votes
3 answers
1k 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 ...
Vignesh's user avatar
  • 21
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 ...
Coolcrab's user avatar
  • 131

15 30 50 per page