Arduino IDE : serial data export by PuTTy

Ekkachai
3 min readDec 1, 2023

--

One effective approach for preserving serial data from the Arduino IDE’s Serial Monitor involves saving the received information for later use. By capturing and storing this data, you gain the ability to analyze, process, or visualize it according to your specific needs. This method enables you to leverage the recorded serial output for tasks such as debugging, performance analysis, or creating visualizations. The process involves running your Arduino sketch, opening the Serial Monitor to view real-time data, and subsequently extracting and saving this information. Once saved, you can access and manipulate the stored data in various ways, offering versatility in how you utilize the information obtained from the Serial Monitor

serial monitor console

PuTTy — setup

PuTTY [download] is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform. PuTTY is open source software that is available with source code and is developed and supported by a group of volunteers.

Connect with PuTTy

To establish a connection with PuTTY, it is necessary to close the Serial Monitor tab in the Arduino IDE. Doing so helps prevent errors that may occur when simultaneously using PuTTY and the Serial Monitor.

Next, configure the connection settings as follows:

  • Connection Type: Serial
  • Serial Line: COM Port [1..n]
  • Speed: Set according to your configuration in Arduino.

Next, in logging menu , configure the connection settings as follows:

  1. session logging: Printable output
  2. Select the location to store the log file
  3. Click “Open Connection” to initiate the connection.

Result

from PuTTy
from Text file

Log Formatting

You can format the output in preparation for a CSV file. In this example, each column is delimited by “||,” and each row is separated by the marker “#eol#.”

Ultimately, open the formatted data with either MS Excel or Google Sheets for further analysis and visualization.

--

--

No responses yet