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

    Thanks, I tried SERIN2 and SEROUT 2, the LCD is still displaying weird symbols. It displays eveything else ok. Here's the code:


    Code:
    'RFID and LCD test
    
    'Author Joshua Reynolds
    'November 20th, 2008
    'Rev. 1	
    
    'Configuring the 16F88 chip
    
    DEFINE OSC 8			'Internal Oscillator set to 8mhz
    OSCCON.4=1
    OSCCON.5=1
    OSCCON.6=1
    
    ANSEL=0				'Turns off A/D converter
    
    '------Define I/O pin names
    rx		VAR PORTB.1	'Serial input from RFID reader
    rfid	VAR PORTB.2	'Enable rfid  low= on
    led		Var PORTB.3	
    lcd		Var	PORTB.5
    
    buf		VAR BYTE(10)	'Tag code stored as word
    
    '------Declare Variables
    
    key_value 	Var BYTE	'code byte from the keypad
    
    
    High led
    Pause 1000
    Low led
    
    '------Wait .5 sec for everything to power up
    Pause 500
    
    loop:
    
    SEROUT lcd,0,[$FE,1]
    SEROUT lcd,0,[$FE,1,"Read tag"]
    
    low rfid
    serin2 rx,396,[str buf\10]
    high rfid
    
    High led
    Pause 500
    low led
    Pause 500
    High led
    Pause 500
    low led
    
    SEROUT lcd,0,[$FE,1,"One"]
    Pause 4000
    	
    SEROUT lcd,0,[$FE,1,"Tag Number"]
    
    Pause 2000
    
    SEROUT2 lcd,396,[$FE,$C0,STR buf\10]
    
    Pause 5000
    
    Goto loop
    
    End					'End of main program

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Try something, start a new code, fill the buf Array with some data (ASCII character), then send it to your LCD.

    Any link for your RFID reader?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Maybe not a bad idea to connect the RFID to your PC to see what happen... you'll need a MAX232 or any other level converter to do that.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Just curious to know if the following line work with your LCD
    Code:
    SEROUT2 lcd,396,[$FE,$C0,"2nd Line???"]
    Last edited by mister_e; - 20th November 2008 at 19:57.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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


    Did you find this post helpful? Yes | No

    Default

    Thanks for the replies, I'll try it out in lab tomorrow. Here's a link to the RFID Parallax RFID
    I'll have to look up the stuff on attaching it to a computer, I've never done anything like that.

  6. #6
    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?

  7. #7
    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.

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