Rfid Reader


Closed Thread
Results 1 to 6 of 6

Thread: Rfid Reader

  1. #1
    Join Date
    Mar 2006
    Posts
    2

    Default Rfid Reader

    Hi,
    I bought Parallax RFID reader and having problem to convert BS1 codes to Picbasic. I am using 16F84A/ 4Mhz . the codes is in this site:
    http://info.hobbyengineering.com/spe...FIDReader1.pdf
    I think the main problem is how to convert SERIN from BS1 to Picbasic.
    The BS1 code:
    SERIN Rx, T2400,($0A)
    SERIN Rx, T2400, tag0, tag1, tag2, tag3, tag4
    SERIN RX, T2400, tag5, tag6, tag7, tag8, tag9
    My Picbasic code:
    SERIN Rx, N2400,($0A)
    SERIN Rx, N2400, tag0, tag1, tag2, tag3, tag4
    SERIN RX, N2400, tag5, tag6, tag7, tag8, tag9
    My picbasic code failed to find the header ($0A).
    I would appreciate your help. Thank you

  2. #2
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382

    Thumbs up

    The BS1 code:
    SERIN Rx, T2400,($0A)
    SERIN Rx, T2400, tag0, tag1, tag2, tag3, tag4
    SERIN RX, T2400, tag5, tag6, tag7, tag8, tag9

    I read through the datasheet and here is how I would do it in PICBasic:

    tag var BYTE[10] ' Creates a byte array of 10 bytes

    SERIN Rx, N2400,[WAIT ($0A),STR tag\10\$0D]

    The above will wait for $0A then recieve either 10 bytes of data or stop once it recieves $0D, which ever comes first.

    This should work great and same you tons of code space. Enjoy.
    Last edited by DynamoBen; - 9th March 2006 at 00:50.

  3. #3
    Join Date
    Jul 2003
    Location
    USA - Arizona
    Posts
    156

    Default

    Why don't you try changing the N2400 baud to T2400. BS1 does not have level shifter so these should match (plus the RFID says it will output to any TTL-compatible UART).

    So the PB code would be:
    Code:
    SERIN Rx, T2400,($0A)
    SERIN Rx, T2400, tag0, tag1, tag2, tag3, tag4
    SERIN RX, T2400, tag5, tag6, tag7, tag8, tag9

  4. #4
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382

    Default

    Opps sorry missed that part of it. If you use both suggestions you should be all set.

  5. #5
    Join Date
    Mar 2006
    Posts
    2

    Default rfid reader

    Dear DynamoBen and Languer,
    I am so happy to hear from you, I am out of town now and will try it and let you know. I have been thinking about building some rfid door locks for my apartement complex . It will save me a lot time and $ if this project turn out to be good.
    Thank you very much.
    Thai Vu

  6. #6
    Join Date
    Oct 2006
    Posts
    11

    Default rfid power source

    hi,
    i m doing project in rfid.i need the details abt the power source for that rfid reader,i m using 125khz reader.if any one knows plz help and provide some details abt the power supply circiut.
    sakthi

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. how synchronize with rfid reader
    By karellen in forum Serial
    Replies: 9
    Last Post: - 6th December 2009, 15:13
  3. Replies: 3
    Last Post: - 12th March 2008, 05:33
  4. Parallx rfid reader module interface with PC
    By jonil22 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st January 2008, 08:50
  5. Serial interface with RFID reader
    By brid0030 in forum Serial
    Replies: 8
    Last Post: - 23rd January 2007, 06:23

Members who have read this thread : 1

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