Running the project

To run the the project, you first need to save the code in the previous section as a text file in the same folder as where you installed the MFRC522-python library.

Notice that Python program files uses the .py extension, so let’s save the file as iota_debit_card_pin.py on the Raspberry PI.

To execute the program, simply start a new terminal window, navigate to the folder where you saved iota_debit_card_pin.py and type:

python iota_debit_card_pin.py

You should now see the Python code being executed in your terminal window asking you for the old PIN code. After providing the old PIN code you will be asked for a new four digit PIN code.

Note!

If you are using a new RFID tag you can just press enter when asked for the old PIN code as the script then uses the default authentication key that was assigned to the tag during manufacturing.

Warning!

It is very important that you remember or make a note of any new PIN code you assign to your IOTA debit card as there is now way of resetting or changing the PIN code later on without first providing the old PIN code.