I am trying to create an RFID Playing Card Reader.
I have an Arduino Uno with the RC522 RFID reader board.
So far, I have written a sketch that looks for new PICC's and reads their UID.
Currently I only have two cards/tags, I am calling these two, Ace of Diamonds and Ace of Hearts
There is then a simple If/Else statement that checks to see if the UID matches the UID's (hardcoded for now) for either of these two cards. If it does, it prints a serial string to identify its card name. If it doesn't match either, it prints a string to say that the card is not registered. This is all outputed to the Serial Monitor at present.
What I want to be able to do is receive the UID, determine the card name based on the UID (hardcoded at present), record once two cards have been read, log that as a "hand" and assign a hand number to it.
The next step is then based on a button click on a GUI for the application I will write, to check again, determine card name, record the two cards, incriment the hand number and then store it.
So for example, two cards are placed on the reader, they are noted as Ace of Diamonds and Ace of Hearts and recorded as Hand number 1.
A button is pressed.
Two new cards are placed on the reader, they are noted as King of Spades and King of Clubs and recorded as Hand Number 2.
I guess for now, I could use a time delay to pause the program and then check again, until the GUI is ready?!
I think ideally I want to log this data into a database (via the USB connection to the PC), so that I can then write said GUI to display the cards.
I am just looking for some general advice on how to go from where I am to where I want to be, as well some advice on how feasable this all is?