Hi Im using linux with Nvim and the Arduino CLI interface. How can I plot the serial output? (like the normal arduino ide Plotter)
There are a few possibilities listed in this discussion
- GitHub - devinaconley/arduino-plotter: An Arduino library for easy graphing on host computer via serial communication
- GitHub - hyOzd/serialplot: Small and simple software for plotting data from serial port in realtime.
- Use the Arduino IDE Serial Plotter
There are definitely several other options.
I have only ever used the Arduino IDE Serial Plotter, so I can't give any opinion about the first two.
I would start with SerialPlot just because I find it kind of off-putting that the first one requires an Arduino library for your sketch to communicate with the Processing application, but if you are already into using Processing that might be a point in its favor.
Probably pretty complex to get set up, but it is worth mentioning that the official Serial Plotter was completely rewritten for Arduino IDE 2.x and this is now a separate application from the IDE, which makes it theoretically possible to use it with other applications (but you would need to pass the data to it via the websocket:
Thanks a Lot In0 !!
I ll check what you shared : )
Have a nice day!!
Yes, SerialPlot did the job perfectly. Was looking something like this with no additional libraries or code specification.
THANKS!!!
You are welcome. I'm glad to hear you found a working solution. Thanks for taking the time to share your findings.
Something for readers of this thread to note when using external applications connected to the primary serial port of an Arduino board is that you must close that connection before attempting to upload via Arduino CLI.
Because it has control over Serial Monitor and Serial Plotter, the Arduino IDE is able to handle this juggling of the serial port automagically, so Arduino users often don't realize this is necessary, and then get confused when their uploads are failing all of a sudden.