Saving the reading in format ".txt"

Hello;

I'm doing a project to read the data of a load cell and would like to save the reading of arduino in the file ".txt".

Does somebody know how to do it?

Thanks for attention!

There's a number of ways you can do it:

  • Copying the text from the Serial monitor and pasting it in a text editor like notepad or gedit. (CTRL+A, CTRL+C, CTRL+V)
  • Connecting an SD card to your Arduino, and saving your readings directly to the SD card
  • Using serial data logging software (never used it myself, so I'll leave recommendations to others, but I think Coolterm supports it.)
  • If you want to, you could write your own data logging program using Processing. (The Arduino IDE was based on Processing, so it will be very familiar.)

The most obvious way of doing it is to send the data to a proper terminal programme instead of the serial monitor. That way, not only do you get to record the file to .txt or, more commonly, to .csv, but you also get to timestamp the data as well - and all for no extra effort in the Arduino department.
I use RealTerm but there is a swag of others, all free.