13.56Mhz RFID module Kit with ID card and round key chain tag. SPI interface fo convenient interface to microcontrollers such as Arm/AVR/Pic/Arduino, etc.
The RFID Reader Module can be used in a wide variety of hobbyist and commercial applications, including access control, automatic identification, robotics, navigation, inventory tracking, payment systems, and car immobilization.
Features:
• Based on the MFRC522 Chip
• Supply Voltage : 3.3V ;
• Current :13-26mA
• Operating frequency: 13.56MHz
• Read Range: 0 ~ 60mm (mifare 1 card)
• Interface: SPI ,Data Transfer Rate: Max 10Mbit / s
• Dimensions: 40mm × 60mm
• Size of Round Tag : 0.87 × 85.5 × 54 mm
• Size of Rectangle Tag : 32 x 40.5 x 4.2 mm
• Supported card types: mifare1 S50, the mifare1 S70, Mifare UltraLight, Mifare Pro, mifare DESFire
Arduino Library:
An Arduino compatible library written by miguel balboa can be downloaded here
Arduino Pinout;
Module.......Uno.......Mega
SDA(SS).......D10.......D53
SCK.......D13.......D52
MOSI.......D11.......D51
MISO.......D12.......D50
GND.......GND.......GND
RST.......D9.......D9
3.3V.......3.3V.......3.3V
Example Arduino Sketch:
Code: Select all
/* FILE: RC522_RFID_Module_Example
DATE: 24/07/13
VERSION: 0.1
REVISIONS:
24/07/13 Created version 0.1
This is an example of how to use the RC522 RFID module. The module allows reading
and writing to various types of RFID devices and can be found in our MFRC-522
(HCMODU0016) and Ultimate RFID (HCARDU0068) kits. This example Arduino sketch uses
the RFID library written by Miguel Balboa to read the pre-programmed serial number
from RFID cards and tags supplied with our RFID kits. Snapshots and links to the
library are available on our support forum.
PINOUT:
RC522 MODULE Uno/Nano
SDA D10
SCK D13
MOSI D11
MISO D12
IRQ N/A
GND GND
RST D9
3.3V 3.3V
You may copy, alter and reuse this code in any way you like, but please leave
reference to HobbyComponents.com in your comments if you redistribute this code.
This software may not be used directly for the purpose of selling products that
directly compete with Hobby Components Ltd's own range of products.
THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
REASON WHATSOEVER.
*/
/* Include the standard Arduino SPI library */
#include <SPI.h>
/* Include the RFID library */
#include <RFID.h>
/* Define the DIO used for the SDA (SS) and RST (reset) pins. */
#define SDA_DIO 10 // Change to 53 for Mega
#define RESET_DIO 9
/* Create an instance of the RFID library */
RFID RC522(SDA_DIO, RESET_DIO);
void setup()
{
Serial.begin(9600);
/* Enable the SPI interface */
SPI.begin();
/* Initialise the RFID reader */
RC522.init();
}
void loop()
{
/* Temporary loop counter */
byte i;
/* Has a card been detected? */
if (RC522.isCard())
{
/* If so then get its serial number */
RC522.readCardSerial();
Serial.println("Card detected:");
/* Output the serial number to the UART */
for(i = 0; i <= 4; i++)
{
Serial.print(RC522.serNum[i],HEX);
Serial.print(" ");
}
Serial.println();
Serial.println();
}
}