Using the RTC (Real-Time-Clock) in the Arduino NANO BLE 33 to get the current time
9 views (last 30 days)
Show older comments
Hallo everyone,
I am trying to get the Real-Time-Clock from the Arduino Nano BLE 33 in order to use it as referernce time to calculate how much is the Delay-Time until the collected Data (Values) from the Sensors is displayed after I run my Code. From my understanding and what I have found online, its possible to do it using the Build-In Microcontroller nRF52840, but I am honestly not surem, if its correct and if so how the code should look like.
I am also looking forward, if anyone have suggestion of how to get and calculate the Delay-Time Between the real time and the time of the Sensors values, that are represented after I run the Code.
I would really appreciate if anyone could help me with this Topic.
0 Comments
Answers (1)
Walter Roberson
on 9 May 2023
This becomes a classic clock synchronization problem, and such problems are difficult to solve at high resolution. The sort of solutions used tend to NTP (network time protocol) or the ISO time protocol.
But it would be easier to get in the right vacinity if you were getting timestamps from a stratum time signal to both devices and including the timestamps with the readings.
But you are not asking about the latency to collect the data and get it through the connection. You are asking about latency until data is displayed, which occurs after the data (and any synchronized time) is collected by the host. You would need to know more than just the time your program sent the graphics commands; you would need to know how long the graphics system took to process the commands and render, and how long it takes your display to update after the graphics system has the rendered data.
0 Comments
See Also
Categories
Find more on Modeling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!