Questions tagged [timing]

This tag is for questions about timing code execution, or external events.

Filter by
Sorted by
Tagged with
9
votes
4answers
1k views

delay(time); vs if(millis()-previous>time); and drift

Going through an old project, I had code on two Arduino Due that looked like this void loop() { foo(); delay(time); } taking to heart the majority of literature on using delay(); I recoded this ...
8
votes
2answers
10k views

How precise is the timing of pulseIn()?

I've been using the pulseIn() function for processing PWM-based binary data encoding. It works well for distinguishing pulses which are significantly different lengths, e.g. 500us vs. 1500us. That ...
1
vote
4answers
527 views

Altering code to run a timer while checking for a data input

I am rather new to the Arduino world and am looking for a way to create my own tipping rain gauge with only one Arduino(micro). I have had some help from a friend to get a loop that checks for when a ...
0
votes
4answers
123 views

When GPS can't see satellites, how can I continue to tick off a smooth-ish time?

I'm getting 10 updates/sec from my GPS unit (The MTK3339 used in the Adafruit breakout board), and using it to update a clock display. This works well enough, though there's one minor problem that I'd ...
-1
votes
1answer
185 views

Does DmxSerial stops interrupts?

I am trying to build a setup with an Arduino Mega, having a DMX output (using DMXSimple library), and a MIDI library (to be done). I was wondering, if I get into problems. According to This question, ...