Shop OBEX P1 Docs P2 Docs Learn Events
So i have completely no idea on how to use the RFID reader module. — Parallax Forums

So i have completely no idea on how to use the RFID reader module.

FreezepopFreezepop Posts: 23
edited 2007-09-17 11:06 in General Discussion
I'm new at this kind of things so I'm not really sure to do with the RFID reader, for example to place what pin to where etc;
Keep in mind right now I'm so new to this this module just seems like a card to me.

Any help would be appreciated, thanks.

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-09-11 23:25
    This should help www.parallax.com/dl/docs/prod/audiovis/RFID-Reader-v1.2.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • FreezepopFreezepop Posts: 23
    edited 2007-09-12 05:09
    I seriously have no idea where Pin 2 and 3 go even after reading that, bah I really suck at this
  • MorrolanMorrolan Posts: 98
    edited 2007-09-12 11:20
    OK, so you've bought the RFID reader card but don't know what to do with it, right?

    Are you connecting it to a BASIC Stamp? If so, which model?



    On the basic stamp, each pin has a pin number and an ID, ok?

    The easiest way to experiment with this is to use a breadboard, or the Board of Education or the BS2 demo board.

    OK, so pin 1 has to be wired to a power supply - take care, do not wire the thing to the mains, it must be wired to either a 5v DC supply, or if using a basic stamp connect it to VDD (pin 21).

    Pin 2 has to be wired to an I/O pin on a basic stamp in order to turn it on/off and cha nge it's modes.

    Pin 3 is the serial in - this is the pin that will transmit data about the RFID tag to the stamp.

    Pin 4 is GND, so wire that to VSS.



    It would help if you told us exactly what you are trying to do with it, and we can then help you more [noparse]:)[/noparse]


    Kind Regards,
    Morrolan
  • FreezepopFreezepop Posts: 23
    edited 2007-09-12 11:25
    Yup I'm using the BS2p24 Stamp, i need to connect it so that I can read these World tags I have
  • MorrolanMorrolan Posts: 98
    edited 2007-09-12 15:02
    OK that's fine.

    Look at this:

    www.parallax.com/dl/docs/prod/schem/BS2p24SchematicRevD.pdf

    That's the schematic and pin-out for your Stamp. When Stamp pins are referred to, this is what we mean.

    Do you have a piece of breadboard or other prototyping board?

    The more information you give us, the more we'll be able to help you smilewinkgrin.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Flying is simple. You just throw yourself at the ground and miss.
  • FreezepopFreezepop Posts: 23
    edited 2007-09-12 15:56
    Oh ok, I'm understanding this quite bit more now, currently I also have a 24pin carrier board along with an RF transceiver. Along with a normal piece of bread board and solder.

    Post Edited (Freezepop) : 9/12/2007 4:11:49 PM GMT
  • walice_drelwalice_drel Posts: 81
    edited 2007-09-12 19:51
    . I have to go to work but when I get back I will post a pic of how you connect it to the board and the code you will need

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.myspace.com/droidworks

    Post Edited (walice_drel) : 9/12/2007 7:58:37 PM GMT
  • FreezepopFreezepop Posts: 23
    edited 2007-09-13 10:52
    That would be amazing if you could do that for me!
  • walice_drelwalice_drel Posts: 81
    edited 2007-09-13 16:08
    Here is the a video, pic and code.


    Here is a video


    http://mlab.uiah.fi/paja/wp-content/uploads/2007/02/rfid.mov









    ' -----[noparse][[/noparse] Program Description ]---------------------------------------------
    '
    ' Reads tags from a Parallax RFID reader and displays ID to debug screen
    
    
    ' -----[noparse][[/noparse] Revision History ]------------------------------------------------
    
    
    ' -----[noparse][[/noparse] I/O Definitions ]-------------------------------------------------
    
    Enable          PIN     0                       ' low = reader on
    RX              PIN     1                       ' serial from reader
    
    
    
    ' -----[noparse][[/noparse] Constants ]-------------------------------------------------------
    
    #SELECT $STAMP
      #CASE BS2, BS2E, BS2PE
        T2400       CON     396
      #CASE BS2SX, BS2P
        T2400       CON     1021
    
    #ENDSELECT
    
    Baud            CON     T2400
    
    LastTag         CON     3
    
    
    #DEFINE __No_SPRAM = ($STAMP < BS2P)            ' does module have SPRAM?
    
    
    ' -----[noparse][[/noparse] Variables ]-------------------------------------------------------
    
    #IF __No_SPRAM #THEN
      buf           VAR     Byte(10)                ' RFID bytes buffer
    #ELSE
      Char       VAR     Byte                    ' character to test
    #ENDIF
    
    tagNum          VAR     Nib                     ' from EEPROM table
    idx             VAR     Byte                    ' tag byte index
    
    
    
    ' -----[noparse][[/noparse] Initialization ]--------------------------------------------------
    
    Reset:
      HIGH Enable                                   ' turn of RFID reader
    
    
    
    ' -----[noparse][[/noparse] Program Code ]----------------------------------------------------
    
    Main:
      LOW Enable                                    ' activate the reader
      #IF __No_SPRAM #THEN
        SERIN RX, T2400, [noparse][[/noparse]WAIT($0A), STR buf\10]    ' wait for hdr + ID
      #ELSE
        SERIN RX, T2400, [noparse][[/noparse]WAIT($0A), SPSTR 10]
      #ENDIF
      HIGH Enable                                   ' deactivate reader
    
    Display_Tag:
      DEBUG "Tag Identification number is: "
        FOR idx = 0 TO 9                            ' scan bytes in tag
    
          #IF __No_SPRAM #THEN
            DEBUG DEC buf(idx)," "
          #ELSE
            GET idx, Char                        ' read char from SPRAM
            DEBUG DEC Char," "
          #ENDIF
        NEXT
      DEBUG CR
      PAUSE 500
      GOTO main                              ' repeats code
    
    


    rfid.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.myspace.com/droidworks

    Post Edited (walice_drel) : 9/13/2007 4:32:34 PM GMT
  • walice_drelwalice_drel Posts: 81
    edited 2007-09-13 16:40
    I would also recommend buying this

    http://www.parallax.com/detail.asp?product_id=90005

    It will show you everything you need to know.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.myspace.com/droidworks
  • FreezepopFreezepop Posts: 23
    edited 2007-09-15 05:50
    All right I'll try it as soon as I get my serial cable
  • FreezepopFreezepop Posts: 23
    edited 2007-09-15 21:23
    OK every thing seems to work fine, now is there a way for the reader to add or count?

    For example 5 tags are going around and as soon as tag 1 goes the 5th round(every multiple of 5?), X happens to tag 1 then goes back to whatever it does.

    I also have an RF transmitter and receiver if I need to use them
  • FreezepopFreezepop Posts: 23
    edited 2007-09-17 11:06
    Hmm I can make the Stamp count but is there a way for it to assign a different variable to each tag?

    For the multiples of 5 part I could put

    #if var//5=0 right?

    Post Edited (Freezepop) : 9/17/2007 11:13:00 AM GMT
Sign In or Register to comment.