I'm looking to build the same interaction that a normal user has with a vending machine through a chip card (smartcard) with an Arduino project of mine. I want to limit the users the time they can play with the toy (my project) for that, they will be required to insert the card and the code should:
- Read the card.
- Ask for a 4-digit password.
- Authenticate password on chip.
- Read time balance.
- Display on LCD the time balance.
- Save time of usage (via millis()).
- Subtract usage from time balance and display new balance.
- Log the usage time and date.
I have one of this SMART CARD readers and datasheet is very straight forward on how to connect, but I'm not as fluent as I would like on writing my own functions. Is there a good library that I can use? perhaps an example .ino or .pde file? thanks in advance!
[UPDATE #1]
I have found a good looking project by Angus71 in SourceForge but I must admit that I don't know how to implement the library into the arduino code itself. The author wrote SCTest (example) that is not enough for me, So I wanted to check if you can help me?
You may download the library and examples from the link above and would appreciate very much if you can point me in a better direction!