Project Title: Transponder anti-collision in a software RFID receiver
Initialisation:
- Build the setup: Connect the oscilloscope and Arduino board to the PC.
- Connection: Connect the cables based on the setup diagram.
- Check the oscilloscope setup: Adjust the impedance for the channel and close the auto trigger.
- Setup of the function generator: Amplitude: 5 V, Frequency: 13.56 MHz
- Upload the code to the R3 board: Run the Arduino code "modify_test_version.ino" in Arduino IDE, the delay function "delay_x.h" should be placed in the same folder.
- Check the code file path: All the Matlab functions should be placed in the same folder with the main code.
Test:
- Check the serial port: The serial port for the Arduino shall be "COM3" normally. It might be different for Windows and MAC.
- Find the address of the oscilloscope: Copy the address to the "InitialiseScope.m" function in the folder "oscilloscope".
- Run the command code: Run "talk_to_arduino.m" in MATLAB. (There may be a warning if the serial port connection fails)
- Check the waveform: If the waveform is not observed on the oscilloscope, check the device connections and whether the function generator is outputting.
- Run the main code: Run "Tag_decode.m" in MATLAB without placing the card on the transmitter antenna.
- Test one card: Put one card on the transmitter antenna and observe the waveform.
- Check the UID in the command window: If the operation is correct, all responses and UIDs should be decoded to be displayed.
- Reset: After completing the reading, the oscilloscope does not need to be reset under normal operation. However, if an error is detected during operation, the oscilloscope needs to be reset, i.e. by pressing the RUN button. The name of the serial port with the oscilloscope in the workspace in Matlab needs to be checked before resetting. If there is one, it needs to be cleared first.
Decode Card:
- Put the cards on the transmitter antenna.
- Run the main code.
- Modify the oscilloscope settings in the "captureDataFromScope.m" function according to the waveform to be captured.