Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Assume I connect a microcontroller board (like an Arduino) to a Win 7 PC via USB. Is there anything in the USB communication protocol that contains host clock data? In other words, can I sync the microcontroller to the PC clock just by hooking up to USB?

If that's not possible, could you suggest some clever minimal-effort way to get the clock info from PC to Arduino?

I guess I could always write some software to run on the PC in the background and provide that info to the Arduino, and I'll do that if I must, but I'd like to avoid that.

I could also use a network shield and have the Arduino query the PC over the network, but I'd like to keep cost and complexity down by not using any extra shields.

I could also have the Arduino run its own clock base, but that's not an option - it must be synced to this particular PC down to the second, even if the PC itself is out of sync with NTP.

share|improve this question
NTP Time Server Update Code Example – STTR Jul 27 '13 at 15:08

You must log in to answer this question.

Browse other questions tagged .