0

members

Easy Basics Project 002a RFID RC522 module with LED

of Acoptex.com in UNO

Basics: Project 002a

Project name: RFID RC522 module with LED

Tags: Arduino, Arduino Uno, RFID RC522 module, LED, MFRC522 RFID reader

Attachments: RFID library, sketch

In this project, you needed these parts :

1.Aruduino Uno R3 (you can also use the other version of Arduino)

2.MFRC522 13.56Mhz IC or RFID RC522 module

3.Arduino IDE ( you can download it from here  )

4.Jumper cables M-M, F-M

5. LED 1 pc

6. Resistor 1 pc (220 Ohm)

7. Breadboard 1 pc

Understanding RFID
RFID, or Radio Frequency Identification, is a system for transferring data over short distances (typically less than 6
inches). Often only one of the two devices needs to be powered, while the other is a passive device. This allows for easy
use in such things as credit cards, key fobs, and pet collars as there is no need to worry about battery life. The downside
is that the reader and the information holder (ie credit card) must be very close, and can only hold small amounts of data.

Understanding the RFID

RFID, or Radio Frequency Identification, is a system for transferring data over short distances (typically less than 6inches). Often only one of the two devices needs to be powered, while the other is a passive device. This allows for easyuse in such things as credit cards, key fobs, and pet collars as there is no need to worry about battery life. The downsideis that the reader and the information holder (ie credit card) must be very close, and can only hold small amounts of data.

There are cheap RFID modules that can read and write Mifare's tags and being sold at several web stores, like eBay and included with many "starter kits" nowadays. Simply search RFID-RC522 (MF-RC522). The microcontroller and card reader uses SPI for communication (chip supports I2C and UART protocols but not implemented on library) (Maybe someone implements?). The card reader and the tags communicate using a 13.56MHz electromagnetic field. (ISO 14443A standart tags).

Datasheet for the chip that used in modules can be found here.

More information about RFID here.

Signals and contacts of RFID RC522


Wiring

The following table and picture shows the needed connections between the RFID and the Arduino Uno.

The following table and picture shows the needed connections between the RFID and the Chinese Uno.

Cautions:

*On the Arduino many of the pins are not swappable. Because this device uses the SPI bus, who’s pins cannot be moved around, pins 11, 12, 13 must remain as shown. RST and IRQ are user specified.

*This device is NOT a 5 volt powered device. You MUST power it with 3.3 volts. If you do not, you risk overheating the RFID. Most Arduino boards include a 3.3V supply pin which can be used to power the RFID module. 

Step by Step instruction

  1. Plug your Adruino Uno board into your PC and select the correct board and com port, then verify and upload your sketch and library (see attachments on the begining of the project)
  2. Open up serial monitor and set your baud to 9600 baud 
  3. Scan your card, you will see a bunch of numbers pop out
  4. Copy only the number and paste it to the column after "int cards[][5] = { " - replace with your card number or numbers, space them with ',' for example my cards were: 0 64 134 25 223 and 213 229 89 190 215}. You can add many cards here.


Other projects of Acoptex.com
Easy Merry Xmas to everyone of Acoptex.com, Not selected 24-12-2019

Published at 28-04-2017
Viewed: 2264 times