The block activates the RFID sensor to read any nearby RFID tags for the specified time. Once identified, the value of the reading is stored in the local system which can be used from the other blocks. The block also reports whether the operation is completed or not. If any RFID tag is scanned the block returns 1, else it returns 0.
This project demonstrates how to interface an RFID sensor with a Quarky to control the door of an IoT-enabled house using an authorized RFID tag.
This project demonstrates how to interface an RFID sensor with a Quarky to control the door of an IoT-enabled house using an authorized RFID tag.
RFID to Quarky Circuit
Note: We are connecting the RFID sensor directly to Quakry Board.
RFID is short for “radio-frequency identification” and points to a technology whereby a reader catches digital information encoded in RFID tags. RFID sensors have a lot of pins. You have to connect it according to the following:
- The GND of the RFID sensor is connected to the GND of Quakry.
- The 3.3V of the RFID sensor is connected to the V of Quakry.
- The SDA Pin of the RFID sensor is connected to the A2 Pin of Quakry.
- The SCK Pin of the RFID sensor is connected to the D1 Pin of Quakry.
- The MOSI Pin of the RFID sensor is connected to the D2 Pin of Quakry.
- The MISO Pin of the RFID sensor is connected to the D3 Pin of Quakry.
The servo motor is connected to the S1 of Quarky.
Making RFID Master Tag
The following code makes any RFID Tag a master card that can be authorized for security.
This is how it looks:
Code
The following code checks the RFID tag and opens the door.
Output
Read More