0

I am plotting the graph of some sensor values on my Arduino serial plotter which looks something like this -enter image description here

But what I want to do is hover over any point on the graph and display the time at that point. Is there any way to do that, if not with Arduino serial plotter, with Processing? Or any other tool is fine too. Thanks.

1 Answer 1

0

The Arduino Serial Plotter is not meant for this. It just directly draws, what you send. You can solve this in processing, by calculating the time from the number of the current sample (which is what you see on the x axis in your plot) via the used sampling rate.

5
  • Can I use the system time for this? I just want to find the difference between the time period of each crest or trough of the blue and red waveforms respectively. I have done it using my code but I want to verify it graphically. Apr 29, 2020 at 12:28
  • What do you mean by "the system"? You want to plot the data on your PC. Processing is a tool, that is made for such situations. The difference between the plot above and what you want is just a simple factor multiplied to the x axis value: the sampling rate
    – chrisl
    Apr 29, 2020 at 12:31
  • why do you need system time? ... you said that you want to determine a time interval between two points
    – jsotola
    Apr 29, 2020 at 15:51
  • >I just want to find the difference between the time period of each crest Arduino can do that for you as well Jan 17 at 12:02
  • @DataFiddler >I have done it using my code but I want to verify it graphically.. I think his goal is to have a graphical useable plotter. Sep 14 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.