Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

13.56Mhz RFID module - IOS/IEC 14443 type a

rfid 13.56Mhz

  • Please log in to reply
3 replies to this topic

#1 TheMo

TheMo

    New Member

  • Members
  • Pip
  • 2 posts

Posted 17 April 2014 - 05:20 PM

Hi all,

 

I have a 13.56Mhz rfid module which I want to use with my netduino plus2.

Searched the internet and did not find anything that could get me started.

This module is a mifare reader module. www.seeedstudio.com/wiki/index.php?title=13.56mhz_rfid_module-_ios/iec_14443_type_a

I am new with this and need some help.

 

Thanks.

 



#2 jrlyman3

jrlyman3

    Advanced Member

  • Members
  • PipPipPip
  • 67 posts
  • LocationNorth St Paul. MN

Posted 18 April 2014 - 02:10 AM

The link you supplied doesn't seem to work.  If your device is: http://www.seeedstud...KHz_RFID_Reader then it looks pretty simple, ground, +5, transmit, and receive.  You would use some code like:

 

       using System.IO.Ports;

    m_SerialPort = new SerialPort(port, 9600, Parity.None, 8, StopBits.One);

 

You can find information on SerialPort here: http://netmf.codeplex.com/ or just search on the web.

 

Have fun.

 

--John



#3 TheMo

TheMo

    New Member

  • Members
  • Pip
  • 2 posts

Posted 20 April 2014 - 11:50 AM

Hi john,

Thanks for your reply.
I probably pasted it wrong. Hope this link will work.:

http://www.seeedstud...EC_14443_type_a

I already downloaded the .net micro framework.
In your example you open a serial port. Which port do I need to use? 

Here is the complete page of the rfid module.

 

13.56Mhz RFID module - IOS/IEC 14443 type a

From Wiki ??????

Jump to: navigation, search

Contents

 [hide

Introduction

Model:RFR105A1M

 

 

Specification
  • Model No. RDM880-T-A
  • R/W chip MFRC500?MFRC400?MFRC531?MFRC632
  • Standard ISO/IEC 14443 type a
  • Frequency 13.56MHz
  • Baud Rate 9600-115200bit/s?configurable, default9600?
  • Power supply DC5V(5%)
  • Current <70mA
  • Operating range 30-100mm?reading range depend on antenna and card/tag?
  • interface TTL electrical level
  • Working temperature -10 degree to 70 degree
  • Storage temperature -20 degree to 80 degree
  • Size 39*19*9 mm?DIP28?
Resource How to buy

Click here to buy: http://www.seeedstud...pe-a-p-196.html

See Also

Other related products and resources.

Licensing

This documentation is licensed under the Creative Commons Attribution-ShareAlike License 3.0 Source code and libraries are licensed under GPL/LGPL, see source code files for details.

External Links

Links to external webpages which provide more application ideas, documents/datasheet or software libraries.

Connecting to an Arduino

The SeeedStudio 13.56Mhz RFID module is an RFID reader capable support ISO14443A, Mifare series card over a serial line. It can easely be attached to an arduino to have RFID fun.

 

Schematics
       .-----------------------------.
       | [1][2]      [5][4][3][2][1] |
       |  J3              J1         |
       |           RDM880 (top view) |
       |                  J2         |
       |             [5][4][3][2][1] |
       .-----------------------------.
J1:(accessory pins)
  PIN 1 -- LEDG (Green led)
  PIN 2 -- 5V (DC)
  PIN 3 -- GND
  PIN 4 -- LEDR (Red led)
  PIN 5 -- BUZ (Buzzer)

J1 Alt: Note that some units are arranged:

  PIN 1 -- 
  PIN 2 --
  PIN 3 -- LED1 (Green led)
  PIN 4 -- LED2 (RED led)
  PIN 5 -- BUZ (Buzzer)
J2:(Communication using serial 9600 8N1 TTL level)
  PIN 1 -- RESET (pull low to reset e.g. set default baudrate)
  PIN 2 -- RX
  PIN 3 -- TX
  PIN 4 -- GND
  PIN 5 -- 5V (in)
 
J3:
  PIN 1 -- + Antenna
  PIN 2 -- - Antenna 
Connecting to an Arduino

Use the J2 pin headers to connect 5 volt and the ground as shown in the picture. Connect the TX (Pin 3) to the Arduino digital pin 2 and RX to digital pin 3 as shown bellow. It is not needed to connect the reset as long as you don't change the default connection speed.

 

Software

[PROTOCOL-821-880_2_.pdf] describes the protocol used for now we only created a small program to read the RDIF tag number when pressing enter in the Serial monitor of the Arduino IDE

Warning: when writing your sketches use only system, Type-A and Mifare commands. ISO14443-B and ISO15693 are accepted only by RDM880-T-E (not 'A') reader! And as of today (21 may, 2012) remember that this module does not support anticollision for Mifare cards -- sometimes it tells there's more than one card, but there's no way to address the non-default card. It's a firmware issue, confirmed by manufacturer.

#include <SoftwareSerial.h> 
 
SoftwareSerial mySerial(2, 3);
char txrxbuffer[255];
 
char get_readID[] = { 0xAA , 0x00, 0x03, 0x25, 0x26, 0x00, 0x00, 0xBB };
void setup()
{
Serial.begin(57600);
Serial.println("Hit Enter to read the RFID number");
mySerial.begin(9600);
}
 
void loop() // run over and over
{ 
 
int counter = 0;
if (mySerial.available())
  Serial.print(mySerial.read(),HEX);
 
if (Serial.available()){
    Serial.read();
    Serial.println(">");
    for (counter =0 ; counter < 8 ; counter++){
      mySerial.write(get_readID[counter]);
    }
}
}


#4 jrlyman3

jrlyman3

    Advanced Member

  • Members
  • PipPipPip
  • 67 posts
  • LocationNorth St Paul. MN

Posted 21 April 2014 - 01:31 AM

If you look at the spec sheet http://www.netduino....plus2/specs.htm you'll see

that there are 4 serial ports.  "COM1" ... "COM4".  Since each pin has multiple functions but

can only do one at a time, it all depends on what functions you're using.  I suggest you start

with "COM1" and hook:

 

    NP2 Pin D0 (RX)  --->  RFID  J2  Pin3 (TX)

    NP2 Pin D1 (TX)  --->  RFID  J2  Pin2 (RX)

    Hook up Gnd and +5 on J1

 

And you should be ready to go.  You will have to translate the Arduino example to C#.  Here

are couple hints, more information is at http://arduino.cc/en...erence/HomePage :

 

     Arduino uses the Serial object to talk to the host computer.  Since they only have a single

     serial port (in hardware) they use the SoftwareSerial  class (mySerial) to talk to the device.

     So convert:

         Serial.println  --> Debug.Print

         mySerial.print  -->  m_SerialPort.Write

 

Of, course they're not one-for-one but we have to leave a little fun for you :) .

 

Enjoy,

 

-- John







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.