Skip to content

A handy replacement for the Arduino's Serial Plotter

Notifications You must be signed in to change notification settings

yowidin/serial-plotter

Repository files navigation

Serial Plotter build

A bit more feature-rich replacement for the Arduino's Serial Plotter.

About

After being annoyed by the Arduino Serial Plotters lack of functionality, and suffering from the critical NIH issue, I decided to write my own, as an exercise for the rusting C++ skills.
showcase

Usage

The recommended way is to download the pre-built binaries, alternatively you can build it from sources.

The later path will allow you to add some custom logic:

  • You can add a custom data generator by providing a data_change_cb to the data object via the set_data_change_callback and accessing the plot data via the datas get_plot_data method.
  • You can add custom graphs to the main plot by setting the draw_plot_cb callback (e.g.: ImPlot::Annotate).

Building

This project havily relies on conan for dependency management.

After installing conan, you will have to create a CMake cache, install dependencies and build the project:

$ git clone https://github.com/yowidin/serial-plotter.git
$ cd serial-plotter
$ mkdir cmake-build-debug
$ cd cmake-build-debug
$ conan install .. -b missing
$ conan build ..

Tech used

  • conan for dependency management.
  • CMake for generating a build system.
  • boost for async I/O and command line arguments parsing.
  • SDL2 for window and event management.
  • glad for an OpenGL loader generation.
  • imgui and implot for actual UI and plot rendering.