2

I'm very new to the Arduino world so bare with me. I would like to plot live data that I receive from my arduino. I use the Serial Monitor to read user input, show text, etc.

The only way I found to plot data from the arduino is by printing the data out in the serial monitor I would rather prefer the data not to be shown in the serial monitor at all (just from a visual standpoint) but I guess there is no way around it.

Anyways, I would like to read and plot the data only when the user makes a specific input into the Serial Monitor.

Let's say the user types in: "start" now the arduino prints out the values that needs to be plotted.

But every plotting tutorial on plotting with the arduino that I could find always prints out the data right from the start. I want to start the plotting with the specific user input.

I hope I could explain my question well enough. Thank you in advance for your help.

Luca

DataFiddler
1,0456 silver badges14 bronze badges
asked Nov 26, 2020 at 10:30
3
  • 1
    What plotting tutorials have you looked at? Have you tried programming a plotting application in processing? Then you should be able to write code, that will implement the mentioned interaction Commented Nov 26, 2020 at 10:41
  • the title does not match the question ... please correct it Commented Nov 26, 2020 at 11:11
  • You're right: Unfortunately, you cannot combine the SerialPlotter part of the Arduino IDE with the SerialMonitor tool in parallel. (COM port blocked). Check @chrisl's hint writing a PC application... Commented Nov 26, 2020 at 12:20

2 Answers 2

1

You can also use the Serial Plotter in the Arduino IDE. If you use Serial.println(<some number>) and then open the Serial Plotter(Tools-Serial Plotter), you will see a live graph. Based on your baud rate, the update speed will change. It is very powerful.

answered Nov 26, 2020 at 18:46
0

Is using the Serial Monitor a requirement, or are you just looking for a good way to get and plot the data? If the latter, you may be interested in the open-source DaqPort sketch. https://www.daqarta.com/dw_rraa.htm This was created to use the Arduino as a peripheral for data acquisition, as opposed to the more typical case of the Arduino being the central device. With DaqPort you can program in any language you like on the host computer, and use it to plot data from the Arduino. The Daqarta software package that includes DaqPort has several examples that use Daqarta's macro language to implement a multi-channel chart recorder, high-speed multi-function oscilloscope, timers, signal generator, etc. You can use these for free, forever, even after Daqarta's 30-day trial ends. Since Daqarta already has plotting, you may find it simpler to use than rolling your own, perhaps by modifying one of the examples.

answered Nov 26, 2020 at 14:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.