

Under Logging select the location of the file to be saved.Here the baud rate of the serial communication is set as 9600 in the Arduino code, so set the exact baud rate at the PuTTY also. Select appropriate Serial PORT (COM1, COM2, COM3…).Download link for latest version of PuTTY – PuTTY has an inbuilt feature to save session logging, hence using a serial connection type the serial data can be displayed on the terminal console of the PuTTY and at the same time the it save the serial data logs to a text file. PUTTY is a free and open-source SSH and telnet client software which supports variety of network protocols and connection types, including connection to a serial port. This data could be a sensor reading, measurements, output values, etc consisting of numbers or characters.Īrduino Code int number = 0 void setup ( ) Save data to txt file using PuTTY


The below code can be used for testing, it just prints numbers from 0 to 10 as serial data at a baud rate of 9600. Here the serial data is provided by the Arduino. This method is useful to save and use data as logs, records, etc. Here shows the method to save the serial data displayed on a serial monitor to a text file.
