Radio-frequency identification uses electromagnetic fields to automatically identify and track tags attached to objects. An RFID system consists of a tiny radio transponder; a radio receiver and transmitter.
- RFID reader.
- RFID antenna.
- RFID transponder (or tag) electronically programmed with unique data.
- EM18 MODULE: EM18 RFID Reader is a module which reads the ID information stored in RFID TAGS. This ID information is unique for every TAG which cannot be copied.
- MRC522 MODULE: The RC522 is a 13.56MHz RFID module that is based on the MFRC522 controller from NXP semiconductors. The module can supports I2C, SPI and UART and normally is shipped with a RFID card and key fob.
- Open terminal and perform the command stated below
sudo raspi-config
- Click interface options.
- Click Serial Port.
- Click no when it is asked that WOULD YOU LIKE A LOGIN SHELL TO BE ACCESSIBLE OVER SERIAL?.
- Click yes when it is asked that WOULD YOU LIKE THE SERIAL PORT HARDWARE TO BE ENABLED?
- Perform reboot using the command stated below
sudo reboot
1.TX of EM18 to RX of Raspberry pi
2.vcc to 5v
3.GND of EM18 to GND of raspberry pi
- Execute the command stated below on the terminal:
sudo raspi-config
2. Click interface options.
3. Click SPI
4. Press Yes, When asked WOULD YOU LIKE TO ENABLE SPI INTERFACE
5. Perform the reboot using the command stated below:
sudo reboot
1. Open the terminal and execute the command stated below:
sudo pip3 install spidev
## Open the terminal and execute the command stated below:
sudo pip3 install mfrc522
Run the codes stored in rc522 folder.
Note unlike EM18 module, in RC522 module, we can store the unique rfid id by running the code stored in rc522 read.py file .