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

RFID Reader


  • Please log in to reply
7 replies to this topic

#1 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 01 May 2011 - 01:31 PM

Just made a RFID tag reader after I got a starter set with 5 tags and the RDM630 break-out.

This is the set, connected to the netduino:
Posted Image

Code to read is simple:
public class Program
{
    // Reference to the Rdm630 board
    public static Rdm630 RFID;

    public static void Main()
    {
        // Initializes the Rdm630 board, connected to COM1
        RFID = new Rdm630(SerialPorts.COM1);
        // Defines the event which should be triggered when there is new data
        RFID.DataReceived += new NativeEventHandler(RFID_DataReceived);
        // Waits infinitely for new data
        Thread.Sleep(Timeout.Infinite);
    }

    /// <summary>
    /// Triggered when there is new data
    /// </summary>
    /// <param name="data1">Unused</param>
    /// <param name="data2">Unused</param>
    /// <param name="time">Date and time when the event occured</param>
    static void RFID_DataReceived(uint data1, uint data2, DateTime time)
    {
        // Prints the read RFID tag
        Debug.Print(RFID.Tag);
    }
}

Code can be downloaded here: RDM630_Driver.zip
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#2 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 01 May 2011 - 03:30 PM

In the '80 there was a voluptuous girl named Samantha Fox: her biggest pop-hit was "Nothing gonna stop me now"... At this point we should change the song to "Nothing gonna stop Stefan now"!... Stefan: I see that you are learning very fast! Congrats! Ciao
Biggest fault of Netduino? It runs by electricity.

#3 mpearson

mpearson

    Member

  • Members
  • PipPip
  • 17 posts

Posted 01 May 2011 - 03:41 PM

Nice job. Where is the best place to obtain the starter set? I seen itead carries the reader.

#4 Michel Trahan

Michel Trahan

    Advanced Member

  • Members
  • PipPipPip
  • 155 posts

Posted 01 May 2011 - 03:44 PM

At this point we should change the song to "Nothing gonna stop Stefan now"!...

He's the best :)
Started with C in 1985, moved to Vb3 ... to vb6 and stopped. Now started with .Net and learning C# and VB.net and wishing VB.net was on MF !

#5 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 01 May 2011 - 03:51 PM

He's the best

Yes, maybe...but miss Fox had something "more"... ;)
Biggest fault of Netduino? It runs by electricity.

#6 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 01 May 2011 - 03:51 PM

Nice job. Where is the best place to obtain the starter set? I seen itead carries the reader.

I got it at this store:
http://www.pieterflo...p?id_product=87
No idea if he ships outside the Netherlands though, but his site is in English ;)

At this point we should change the song to "Nothing gonna stop Stefan now"!...

Stefan: I see that you are learning very fast!

I know the song :D

Just learning my way, by actually doing stuff. :)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#7 nrc

nrc

    Member

  • Members
  • PipPip
  • 11 posts

Posted 01 May 2011 - 05:05 PM

Very good job. Congratulations! NRC

#8 OppaErich

OppaErich

    Member

  • Members
  • PipPip
  • 22 posts
  • LocationEssen, Germany

Posted 02 May 2011 - 05:33 PM

In the '80 there was a voluptuous girl named Samantha Fox: her biggest pop-hit was "Nothing gonna stop me now"...

You remember her songs ? :lol:

Good job ! Thank you, one less to worry about :D




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.