Loading...
Welcome,
Guest
. Please
login
or
register
.
May 21, 2013, 03:00:14 pm
|
Arduino Forum
::
Using Arduino
::
Interfacing w/ Software on the Computer
:: Latency
« previous topic
next topic »
Pages: [
1
]
Go Down
Print
Author
Topic: Latency (Read 230 times)
0 Members and 1 Guest are viewing this topic.
jb3330333
0
Offline
Newbie
Karma: 0
Posts: 3
Arduino rocks
Latency
«
on:
April 06, 2011, 12:39:35 pm »
Bigger
Smaller
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
robtillaart
Netherlands
Offline
Tesla Member
Karma: 89
Posts: 9392
In theory there is no difference between theory and practice, however in practice there are many...
Re: Latency
«
Reply #1 on:
April 06, 2011, 01:13:11 pm »
Bigger
Smaller
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
-
Pages: [
1
]
Go Up
Print
« previous topic
next topic »
|
Arduino Forum
::
Using Arduino
::
Interfacing w/ Software on the Computer
:: Latency
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
Using Arduino
-----------------------------
=> Installation & Troubleshooting
=> Project Guidance
=> Programming Questions
=> General Electronics
=> LEDs and Multiplexing
=> Displays
=> Audio
=> Motors, Mechanics, and Power
=> Sensors
=> Networking, Protocols, and Devices
=> Interfacing w/ Software on the Computer
-----------------------------
Topics
-----------------------------
=> E-Textiles and Craft
=> Robotics
=> Science and Measurement
=> Home Automation and Networked Objects
=> Device Hacking
=> Education and Teaching
=> Interactive Art
=> Product Design
-----------------------------
Development
-----------------------------
=> Suggestions for the Arduino Project
=> Other Hardware Development
=> Other Software Development
-----------------------------
Community
-----------------------------
=> Website and Forum
=> Products and Services
=> Gigs and Collaborations
=> Workshops and Events
=> Local Groups
=> Exhibition / Gallery
=> Bar Sport
-----------------------------
International
-----------------------------
=> Deutsch
=> Español
=> Français
=> Italiano
=> Portugues
=> Scandinavia
-----------------------------
Forum 2005-2010 (read only)
-----------------------------
===> Uno Punto Zero
===> Bar Sport
===> Frequently-Asked Questions
===> News
===> Exhibition
===> Workshops
===> Interfacing
===> Bugs & Suggestions
===> Development
===> Troubleshooting
===> Portugues
===> Deutsch
===> Español
===> Français
===> Italiano
===> Scandinavia
===> Development
===> Interfacing
===> Syntax & Programs
===> Bugs & Suggestions
===> Troubleshooting
===> Report Spam at Arduino.cc
===> Forum
===> Playground Wiki
=> General
=> Hardware
=> Software
=> International
=> Web/Forum/Email/Spam
-----------------------------
Using Arduino
-----------------------------
=> Storage
=> Microcontrollers
-----------------------------
International
-----------------------------
===> Humor y Debate
===> Talleres, Encuentros, ...
===> Tutoriels et cours
===> Réalisations et Projets Finis
===> Le bar
=> Nederlands
===> Software
===> Hardware
===> Proyectos
===> Documentación
=> India
===> Hardware
===> Software
===> Megatopic
-----------------------------
Products
-----------------------------
=> The Arduino Starter Kit
=> Arduino Due
-----------------------------
International
-----------------------------
===> Generale
-----------------------------
Products
-----------------------------
=> Arduino Esplora
=> Arduino GSM Shield
-----------------------------
Maker Faire Rome - The European Edition
-----------------------------
=> Makers
=> Events and Tour
Loading...