I am new to Arduino and am working on a model train project. I have a SparkFun Qwiic sensor kit 15209 and SEN-09417. I plan to place an RFID card (actually a small "disk") under the engine of each of three locomotives. I have RFID sensors at locations on each of three track lines. I simply want to read the disk and know which of the three trains Is passing over the RFID sensor.
Does anyone have code for such an operation? I am using the SparkFun_Qwiick_Rfid.h library.
If not here are my three questions.
- When the first tag is read, the interrupt goes low. It stays low thereafter. Is there a way to reset the interrupt? If so, how?
- I am using an Arduino Mega. When I use myRfid.getTag, what type of return do I get back? String? Char?
- I want to compare the RETURN (I think it is named "tag", to an already known "tag". How do I do that? Do you have code segments for such an operation?