Search code examples
arduinotagsnfcrfidspi

how to output a tring from an nfc tag to a text file using arduino uno and pn532?


iam in a deep trouble , I have an Arduino uno and a pn532 connected to it in SPI mode , I want to read a string from an nfc tag and output it to a text file , I have already managed to read from nfc tag and write on it easily , but what Iam facing now is how to output the string contained in the nfc tag to a text file instead of outputting it to the serial monitor of the Arduino studio , any help would be greatly appreciated , thanks a lot in advance .


Solution

  • If you want to write the file from the Arduino itself, you have a few options, depending on the available extra hardware and where you want to save the file.

    The easier is to use a SD card and the standard SD Library. On the official reference page there are lots of examples.

    If you want to save it on the PC, there are several virtual terminal applications that enables you to save the sent and received data. Coolterm is one of them, Putty is another one.

    You can also make your own application that receives the data from the arduino through serial communication, and handle the file saving on this application.