Linked Questions

0
votes
3answers
281 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
votes
1answer
262 views

Handling overflow in micros() [duplicate]

The documentation for micros() says: Returns the number of microseconds since the Arduino board began running the current program. This number will overflow (go back to zero), after approximately ...
1
vote
0answers
62 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 ...
3
votes
3answers
21k 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)....
5
votes
3answers
12k 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 ...
3
votes
3answers
3k 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
3answers
12k 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
4answers
2k 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
2answers
2k 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 ...
3
votes
3answers
825 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 ...
1
vote
3answers
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 ...
2
votes
2answers
437 views

Use interrupts with analog pins in arduino or another possible solution?

I have a very simple circuit, but my program is some what complicated. Here is the circuit diagram: Here is the code: /* 01 - GND -------- GND 02 - +5V -------- 5V 03 - V0 -------- ...
0
votes
2answers
2k views

Arduino: Sending SD CSV file online at specific time of the day

I intend to perform data logging from sensors and store it on SD card as CSV format. The data is related to weather and I would like to send it at the end of the day/ Any available codes how to deploy ...
0
votes
2answers
598 views

Getting FFT arduino code to run over 9+ hours, utilizing micros()

I am a beginner in Arduino, coding, and electrical engineering (learning on my own time) and am working on creating an EEG. I've got the hardware down and have managed to get numerical data output ...
1
vote
3answers
476 views

How do I call functions sequentially without using the Delay function?

I've been messing with the Adafruit Neopixel lib, and I'm trying to replace some of the delay functions with mills ( so that I don't block the serial port ). So far I have the following code; void ...

15 30 50 per page