CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 19:32:32 GMT
content-type: text/html; charset=utf-8
cf-ray: 965e90362cfac19c-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=0311ed00-78b9-4543-9e59-d4c80f204dba; expires=Mon, 27 Jul 2026 19:32:32 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: dd8976f6-29cf-4e14-8bbc-c036c3000618
x-worker-origin-response-time: 484000000
x-dns-prefetch-control: off
set-cookie: prov=0311ed00-78b9-4543-9e59-d4c80f204dba; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=xCXUdSLfto4_HCACQkcV5zcwhvKDI5nBKK2vfu8C9Uo-1753644752-1.0.1.1-JH1edHgsN4q74froPxixfn5l6EEHJ6KlMx_xGGdvaEHHDIdh0TBAC4t9EwynkzqA.Phf8RrR3esbaNWfaC8SpHp1fFuYk7LB.dacQyJPbSE; path=/; expires=Sun, 27-Jul-25 20:02:32 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=NpubETmu1pw6laEpxKDUjcoHCfAvkoLQWGRBAOU7J4I-1753644752847-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'time' Questions - Arduino Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [time]
Use this tag for questions regarding how to get the time on an Arduino, how to create or use clocks with an Arduino, or anything that has time as a substantial factor in it. Also consider using [programming] or other more specific tags.
212 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
106
views
How to read my three-button inputs?
I am creating a three-person reaction time game but I would like to be able to read all three buttons' proximity to the start time - currently only the winner is displayed on the serial read.
Here is ...
-1
votes
1
answer
102
views
Use DS3231 with battery and vcc at the same time
I have ds3231 which i want to use to keep track of time even when the in my ase esp32 is without electricity. I however read some difference stuff regarding using the vcc and battery on he same time. ...
1
vote
1
answer
121
views
Fixing a pedestrian traffic light sequence pattern in a cycle using millis and without delay
I was emulating the pedestrian traffic light cyclic pattern (red, green, green flashing) in the next Arduino code. But when I run this code with my ESP8266 Wemos D1 mini controller, it appears the ...
0
votes
1
answer
159
views
Unable to get keypad key in while loop [closed]
I'm a beginner into Arduino so I have a little problem where I'm trying to do a countdown on LCD using while loop but I'm also trying to get a key input inside that same while loop. Problem is that ...
0
votes
2
answers
82
views
0
votes
1
answer
2k
views
(Why is) getLocalTime() on ESP32 taking several seconds to complete successfully
This is a cross-post from https://github.com/espressif/arduino-esp32/discussions/8653 as it didn't yield any results there.
I noticed that getLocalTime() is consistently taking 5-10+ seconds to ...
2
votes
1
answer
92
views
Functions delaying gesture sensor recognition
I am working on a simple little robot to cure my boredom and all it has is a 64 x 32 OLED for the eyes, and a PAJ7620 Gesture recognition sensor with a Seeeduino Xiao as the main board.
Basically, ...
-1
votes
1
answer
395
views
localtime - executing one after the other- different time_t, but getting same results
When I try to comapre 2 time_t values I get unexplained behavour
time_t t = 12345;
time_t T = 67890;
struct tm *tm = localtime(&t);
struct tm *Tm = localtime(&T);
char timeStamp[40];
...
2
votes
0
answers
128
views
I goofed: I used a digital output rather than an analog output
OK, I have a little hardware issue I need to fix in software for the time being. I say, "For the time being," because I already have the PC Boards printed, and I need to make do for this ...
0
votes
1
answer
1k
views
Arduino Nano 33 BLE getting the current time using RTC
I have a an arduino NANO 33 BLE and I'm trying to get the current time and date. Based on the documentation, the arduino has nRF52840 microcontroller which comes with a 24 RTC timer It is listed in ...
1
vote
4
answers
2k
views
What is the ideal way to check if time on ESP8266 via NTP is ready?
With ESP8266, I noticed that for the first 1 or 2 loops, localtime returns Unix epoch (1970 date) until it has finished getting the actual time from NTP, after which point I see the real date. ...
2
votes
1
answer
1k
views
Attiny timer interrupt does not make an interrupt every 1000ms
I'm making a stopwatch using an attiny85, the idea was to use the timer interrupts to count the seconds
my theory was: since I set the Attiny85 to run at 1Mhz, I can use a presale of 1024; 1000000 / ...
3
votes
0
answers
2k
views
1
vote
4
answers
1k
views
How to efficiently code a long duration timer
I'm working on a battery-powered project. I'm trying to write code, which checks the battery voltage every 30 minutes and changes the color of a LED accordingly. Should I still be using millis() or is ...
0
votes
1
answer
3k
views
`time.h` vs `TimeLib.h` on AVR boards
Why do I get wrong result when using time.h library when using AVR boards, such Nano/Uno/Pro Micro (while when using TimeLib.h).
OUTPUT (for given Epoch ):
TimeLib: 2022-04-02 16:11:20
time.h: 0152-03-...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
arduino-uno × 67
millis × 25
timers × 24
rtc × 23
programming × 20
esp8266 × 15
esp32 × 12
led × 11
serial × 8
arduino-ide × 8
c++ × 8
timing × 7
arduino-mega × 7
c × 5
wifi × 5
sensors × 5
arduino-leonardo × 5
datalogging × 5
button × 4
motor × 4
bluetooth × 4
analogread × 4
sd-card × 3
interrupt × 3
relay × 3
more related tags
Hot Network Questions
- rock paper scissors game with randomized system choices. NOT using rnd()
- Are classified documents subject to a subpoena in discovery?
- Alternative to tedious assert-rewrite for trivial operations?
- Why am I winning always? A coincidence perhaps?
- Translation of "mode"
- When was the last time all humans were on the ground not in the air?
- Balancing a Holy Water Bomb
- Sci-fi book where aliens make contact, ask humans to transport themselves to nearby portal
- Does SZNUD3160 really eliminate the need for diode?
- Is there any verse which says that throughout the Vedas the praise of Shiva is sung?
- Will a reinforced 1" concrete slab be durable?
- How to put commutative symbol in a commutative diagram?
- Symbols for A.P. Morse's book in Set Theory
- Not being introduced to the team – should I ask for it?
- Story that taught cryptography in the form of a manga
- Why doesn't the Windows C compiler reuse incoming shadow space in noreturn functions?
- What is the weight of holy water?
- What is the Greek word for God used in Codex Sinaiticus? John 1
- What is the best interpretation of Psalm 6:4? Does "Turn" or "Return" capture the intended meaning?
- Why does Timor-Leste call itself a "Democratic Republic" despite little apparent Marxist-Leninist ideology?
- Automatic drawing of polygon around selected polygons in QGIS
- How to make that the object sliding down along the local axis while following the rotation of the another object?
- Dynamics from iterated averaging
- Book recommendations for theistic books about God's existence