RFID Housing





Bill of Materials
- Silicone Wristband - $7.99
- RFID Kit - $7.99
- It is possible to buy cheaper versions if you are willing to solder it yourself. This will require a soldier kit
- Arduino Uno - $22.77
- Breadboard Kit - $13.99
Total cost - $52.74
Requires
- BOM
- Laptop with USB port
- Cardboard box
- The cardboard box can be purchased on Amazon or reused from any box big enough
- In the project files, there is a pattern that can be printed and used to cut the cardboard with the proper dimensions. There are ones with and without dashed lines and should be printed at 100% size for the most appropriate box size
Required project files
Project Files can be downloaded here
The Arduino IDE Program can be downloaded here
RFID Reader Wire Connection

- Wire the RFID reader to the Arduino [3]
- Refer to the picture to confirm the wiring of the RFID to the Arduino Uno
- PIN 13 to SCK
- PIN 12 to MISO
- PIN 11 to MOSI
- PIN 10 to SDA
- PIN 9 to RST
- 3.3 V pin goes to the 3.3 V
- Ground pin goes to the ground
-
Connect the Arduino controller to your computer with the USB power cable
- Refer to the picture to confirm the wiring of the RFID to the Arduino Uno
Breadboard Wire Connection





Background information on breadboards
- The breadboard does not need to be wired exactly like the circuit seen in the first picture.
- The top and bottom two rows on the breadboard are known as the buses
- These are all connected to every opening on the same row
- The middle two sections of the breadboard are known as terminal strips
- These are all connected to every opening on the same column
- This means the items on the breadboard could be more spread apart, moved down/up the breadboard as long as the proper connections are maintained
- The top and bottom two rows on the breadboard are known as the buses
RFID Housing Breadboard connections
- Wire the breadboard to the Arduino controller as indicated in the figures
- PIN 6 to Red LED's resistor
- PIN 5 to Green LED's resistor
- Resistor to long LED node
- Short LED node to the ground bus - the top row on the breadboard
Writing the Code







- To create an RFID housing that will inform the user when an authorized RFID is being scanned the code must look like the flowchart seen in the first photo [4]
- Coding the RFID scanner is a difficult task, especially for beginners.
- Instead, download the library found in the project file folder named "rfid-master.zip", written by miguelbalboa, which includes the test code
- Once downloaded and unzipped, move the folder into the libraries folder of the Arduino folder as seen in the second picture
- Open up Arduino IDE
- If the Arduino program was already running before the RFID library was added, the program needs to be restarted
- Go to the File tab on the top left of the program, then the MFRC522 tab at the very bottom, then click on “DumpInfo” as seen in the third picture.
- This will open the test program for the RFID scanner
- Click on the checkmark and then the arrow right next to it, this should compile and upload the code onto Arduino
- If you haven’t selected the correct COM for the Arduino, a window will pop up prompting you to select the proper COM port.
- Open the serial monitor with the magnifying glass on the top left of the program
- If the program was properly uploaded onto your Uno and the RFID scanner is being read your serial monitor should look something like the fourth picture
- Bring the RFID tag to the scanner
- The tag should be read within a distance of less than 10 cm
- The serial monitor should now look something like the fifth picture
- The RFID tag can be seen in the line first new line next to “Card UID”
- In this case, the tag was 11 4B E6 1D
- These are hex code values of the RFID tag - remember/copy yours
- Writing the new code
- You can attempt to write the code yourself by referencing the ReadNUID code in the RFID library
- The code can also be found in the project folder in the "Arduino.zip" file and seen in the second and third photo
- The code has been commented and where it has been specified the RFID tag value should be replaced with yours
- Testing the new code
- When the new code is running, the red LED should remain on while the green LED is turned off
- When the RFID tag is brought to the scanner, the result should output to the serial monitor
- If it is the right tag
- The green LED should turn on and the red LED should turn off.
- If it is the wrong tag
- The Red LED should blink
- There is a 3-second wait
- The green LED should turn off and the red LED should turn back on
- If it is the right tag
Assemble Wristband

- Assemble RFID tag to wristband by threading on the split key ring [2]
Cardboard Cutouts

- Using the printed pattern cut out the appropriate cardboard pieces
- Notice labels on the patterns
Assemble Side Panels

- Tape the panels labeled “Side” to the long edges of the “Base” panel
Assemble Back Panel

- Tape the panel labeled “Back” to a short edge of the “Base” panel
Assemble Front Panel

- Tape the panel labeled “Front” to the remaining short edge of the “Base” panel
Assembled Housing Construct

- Fold the four sides of the box inward and tape the sides at 90 degrees
-
Tape the panel labeled “Top” to one of the “Side” panels so that the top lid can fold back and forth
Integrate Electrical Components Into Housing


- Place the breadboard into the front right corner of the housing
- Place the Arduino controller in the front left corner of the housing
- The power cable feeds through the opening in the “back” panel of the housing
- Ensure that the LEDs are aligned with the holes in the side of the housing to provide adequate protrusion for working indication
- Breadboard is turned sideways for LEDs to protrude out the "Side" panel
Assemble RFID Reader

- Tape RFID reader to the “top” lid of the housing that is closest to the fold
RFID Reading

- Close the lid
- Hold RFID Tag up to RFID Reader located under housing lid
- Red light will turn off for 3 seconds
- Green light will turn on for 3 seconds
RFID Operating Video

Future Directions and Citations
Future Directions
- Use cabled to move the LEDs to the top of the box
- Add in a locking mechanism with a servo motor
- Move the code to function with the EEPROM for greater security
Citations
[1] A. Balboa, “miguelbalboa/rfid,” GitHub, May 31, 2020. https://github.com/miguelbalboa/rfid
[2] J. J. Pedicano, “Stretchable wristband with RFID chip,” 22-May-2012.
[3] E. Odunlade, “Microcontroller vs PLC: A detailed comparison,” Circuit Digest, 03-Oct-2018. [Online]. Available: https://circuitdigest.com/article/microcontroller... [Accessed: 31-Mar-2022]
[4] “Different types of RFID systems,” Different. [Online]. Available: https://www.impinj.com/products/technology/how-can-rfid-systems-be-categorized. [Accessed: 25-Feb-2022].