The demand in security made the engineers to develop more intelligent electronic equipments which could be used in the day to day life process. RFID(Radio Frequency Identification) is a high end secured device which can be applied in any area where security is inevitable. RFID is the wireless use of electromagnetic fields to transfer data, for the purposes of automatically identifying and tracking tags attached to objects. The tags contain electronically stored information which is transferred to the reader in wireless manner. The rhydoLABZ RFID reader reads EM4100 family transponder tags that are brought in proximity to the reader and output the unique tag identification number through serial port @9600 bps. The reader output is 12 byte including one start, stop byte and 10 unique data byte. The normal detection range is 10-15CM for Card Type TAGs. The RFID Reader (as well as the RFID tags sold by rhydoLABZ) uses the EM4102 protocol. Any other tags that also use the EM4102 protocol can be used with the rhydoLABZ RFID reader.
Based on the unique Id of each card, it can be discriminated after receiving the suitable data serially. To develop a highly advanced security system RFID module is interfaced with Raspberry Pi2. As the Raspberry pi can perform face recognition, both the process can be clubbed ie the authentication must be only given by obtaining the satisfied outputs from RFID and image processing.
- Raspberry Pi 2
- RFID Reader (125Khz) – Serial TTL
- RFID Clamshell Card
- Connecting Wires
Connect the 5V pin(pin No 2) and ground(pin No 6) of the Raspberry Pi to the 5V and ground pin of the RFID module. As the data transmission is taking place in the RFID connect the Tx pin of the RFID to the Rx pin(pin No 10) of the Raspberry Pi. The power led will become on after the connections. Using Pyrhon script read the serial data and display the output on the Python shell.
A sample code is provided for reading the RFID using Python.
import os, time
#Enable Serial Communication
port = serial.Serial("/dev/ttyAMA0", baudrate=9600, timeout=0.01)
# Find a character in a string
def find(str, ch):
for i, ltr in enumerate(str):
if ltr == ch:
# Read the port
rcv = port.read(10)
if len(rcv) > 1:
if ps >= 0:
After running this code place the tag near to the reader and get the data on the Python shell.
After checking the corresponding ID each cards could be discriminated and then applied for any secured purposes.
Shop With Us
- Click here to buy Raspberry Pi 2 from RhydoLabz.
- Click here to buy RFID reader (125Khz) -Serial TTL from RhydoLabz
- Click here to buy RFID Clamshell Card from RhydoLabz.