How to compare strings/array? RFID Project


Closed Thread
Results 1 to 40 of 101

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Location
    Fort Collins, Colorado
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    I'm trying to find out the RFID tag ID by reading the tag and displaying it on an LCD and I can't seem to figure it out. Has anyone else been able to display the tag ID on an LCD?

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default RFID reader for cheap

    I was at Radio Shack yesterday, trying to buy a breadboard. (No of course they didn't have it, why would my store have it in stock?)

    Anyway, I was searching their bins and I saw a Parallax RFID READER WITH TAGS part number 276-0032, or this part: http://www.parallax.com/Store/Sensor...%2cProductName

    It didn't have a price marked, so I had the lady scan it, and she told me it was $19.97. It's on my receipt as the correct part number, and correct product description. That's half off of Parallax's price, so if you are interested in RFID, you might want to check it out at Radio Shack.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    At their site they do not list it though...

    Ioannis

  4. #4
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62


    Did you find this post helpful? Yes | No

    Thumbs up Video of working RFID Project + uOLED

    i thought id post it here.. since this thread helped in the trick math operation.

    My Board runs a PIC16F877A @ 20Mhz

    Video Here

    Code:
    define OSC 20
    ADCON1=7
    CMCON=7
    
    
    LastTag         CON     3
    X               VAR     byte
    tagNum          VAR     byte                     ' from EEPROM table
    idx             VAR     Byte                    ' tag byte index
    char            VAR     Byte                    ' character from table
    buf             var     byte(10)
    
    '*****************************************************************
    
    SYMBOL PWRLED = PORTB.2 'Software controlled power LED
    SYMBOL RFID   = PORTC.5  'RFID /ENABLE
    
    
    '*****************************************************************
    
    
    Tag1 DATA  "0415146D53"  ' 2 cards registered...
    Tag3 DATA  "30700D48A5" 
    
    
    '*****************************************************************
    
    
    HIGH PWRLED
    HIGH RFID
    PAUSE 1000
    
    serout2 PORTC.0,84,[$55]      ' uOLED Initialize
    
    '*****************************************************************
    
    Reset:
    gosub cls
    PAUSE 1000
    
    '*****************************************************************
    
    Main:
    
      LOW rfid                                    ' activate the reader
        SERIN2 PORTC.4,396,[WAIT(10),str BUF\10]  ' wait for hdr + ID
      HIGH rfid                                   ' deactivate reader
     
    Check_List:
    FOR tagNum = 1 TO lasttag
    FOR idx = 0 TO 9
    READ (((tagNum - 1) * 10) + idx), char        'The Tricky Order of Operation
    IF (char <> buf(idx)) THEN Bad_Char
    NEXT
    GOTO Tag_found
    Bad_Char:
    NEXT
    
    Bad_tag:
    FOR x = 1 TO 2
    serout2 PORTC.0,84,[$73,$6,$4,$0,$F0," ACCESS",$00]  'cmd,column,row,font,Color(msb:lsb),“string”,$00
    serout2 PORTC.0,84,[$73,$6,$8,$0,$F0," DENIED",$00]   
    NEXT
    PAUSE 4000
    GOTO reset
    
    Tag_Found:
    for x = 0 to 2
    serout2 PORTC.0,84,[$73,$6,$4,$0,$1F," ACCESS",$00]  'cmd,column,row,font,Color(msb:lsb),“string”,$00
    serout2 PORTC.0,84,[$73,$6,$8,$0,$1F," GRANTED",$00]
    next
    pause 4000
    GOTO reset
    
    
    CLS:
    FOR X = 0 TO 2
    serout2 PORTC.0,84,[$45]
    next
    return

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    I wonder why you send the uOLED data 2 or 3 times in a loop.

    Ioannis

  6. #6
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62


    Did you find this post helpful? Yes | No

    Lightbulb Ahh yess the LCD refresh

    In another post someone stated about lag issues with this particular uOLED from 4Dsystems They introduced Pauses, but i found out (through trial and error) that just sending the data a couple times in a loop (refreshing) rather than putting pauses in the the display code resolved any Lag issues. As you can see in the video it displays what im sending
    to the display quite nicely and even before the RFID LED can change color.. I also dont read any ACK from the display, as it is not necessary and just slows down the process.

    Cheers!

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    I see. OK, thanks.

    What is you opinion about the display? (colors, brightness, sharpness).

    Ioannis

Similar Threads

  1. Parallax RFID Reader code example
    By dan-tron in forum Code Examples
    Replies: 4
    Last Post: - 19th April 2013, 22:16
  2. A Temperature & Humidity Data Recorder Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 9th July 2008, 18:47
  3. Replies: 3
    Last Post: - 12th March 2008, 05:33
  4. Free Web based RFID Online Courses
    By Thirumoorthy in forum General
    Replies: 0
    Last Post: - 19th November 2007, 13:38
  5. Free web based RFID online Course
    By Lesikar in forum GPS
    Replies: 0
    Last Post: - 19th October 2007, 22:28

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts