arduino: how to use the serial plotter of the Arduino IDE

labeling the series#

If you have to print some debug messages in the beginning, the Serial Plotter will interpret these as Series Labels. To clear unneacessary labels, just restart the serial plotter (not the mc). In order to catch up the labels, you have to print them to Serial everytime you print values. So it is garanted that the series labels are recognized.

As seperators you can use a tabulator, a space or a comma.

Example:

// in each loop
Serial.println("Series1\tSeries2\tSeries3");
Serial.print(value1);
Serial.print("\t");
Serial.print(value2);
Serial.print("\t");
Serial.println(value3);

update arduino IDE V2#

With the new Arduino IDE there is a slightly better version of the serial plotter. You also can now find details on how to seperate the values and a second approach for labeling the dataseries.

Offical Arduino IDE Docs - Serial Plotter