Pages: [1]   Go Down
Author Topic: Latency  (Read 373 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey all,

I'm sending a signal to my Arduino Uno board via a Win32 C++ program. Would anyone know how I can check the time from when the signal is sent to the time the board receives it?

Thank You.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12430
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Let the Arduino echo the signal and let the C++ program measure the time, and divide it by two That should give you a fair approximation of the time needed.

This works in theory for any protocol you are using. It is the basis of the NTP protocol to synchronize computers time.

Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: