Reply to topic  [ 6 posts ] 
RFID Module Kit (Mifare) (HCMODU0016) 
Author Message
Site Admin

Joined: Sun Aug 05, 2012 4:02 pm
Posts: 633
Post RFID Module Kit (Mifare) (HCMODU0016)
Image

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

Attachment:
rfid_master.zip



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:
/* 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();
  }
}


You do not have the required permissions to view the files attached to this post.


Fri Jul 26, 2013 9:45 am
Profile
Post Re: RFID Module Kit (Mifare) (HCMODU0016)
Hi,

Is it possible to write with this Module or is it read only?

Pog49


Tue Sep 03, 2013 9:55 pm
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 628
Post Re: RFID Module Kit (Mifare) (HCMODU0016)
Yes it supports writing to cards so long as the card type used supports this and is compatible with the MFRC522. Unfortunately we do not have any example code to do this. There maybe some example code out there but failing that you would need to write code to do this yourself.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Wed Sep 04, 2013 9:53 am
Profile

Joined: Fri Nov 01, 2013 12:33 pm
Posts: 2
Post Re: RFID Module Kit (Mifare) (HCMODU0016)
In what language is this example code written? Because I want to hook it up to a Raspberry Pi, and it looks fairly similar to a Python version for the Pi I saw a while ago, but that one wasn't completed yet...


Fri Nov 01, 2013 12:38 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 628
Post Re: RFID Module Kit (Mifare) (HCMODU0016)
It is written in C++ for the Arduino (AVR) platform. As is, it will not work with a RaspberryPi but C++ is a very portable language so if somebody had a little time/knowledge of C++ and the Pi, it should't be too difficult to port to it.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Fri Nov 01, 2013 3:03 pm
Profile

Joined: Fri Nov 01, 2013 12:33 pm
Posts: 2
Post Re: RFID Module Kit (Mifare) (HCMODU0016)
andrew wrote:
It is written in C++ for the Arduino (AVR) platform. As is, it will not work with a RaspberryPi but C++ is a very portable language so if somebody had a little time/knowledge of C++ and the Pi, it should't be too difficult to port to it.

Okay, thanks. I just checked again, and it seems that the reading is finished for the Pi. That's what I only need for the moment (for a school project), so I think I'll be fine. Maybe I can even extend it a little myself. :)


Fri Nov 01, 2013 3:22 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD