1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Parallax/Radio Shack Serial RFID Reader Demo Code

Discussion in 'Code Repository' started by 3v0, Feb 10, 2012.

  1. 3v0

    3v0 Coop Build Coordinator Forum Supporter

    Joined:
    Jul 14, 2006
    Messages:
    9,404
    Likes:
    227
    Location:
    OKLAHOMA USA
    A short program to demonstrate the use of interrupts and the serial port to receive RFID card numbers's. Each number is transmitted as a 12 character sequence with a fixed start and stop char.

    The ISR disables the RFID unit when the first character is detected to prevent it from reading the card multiple times.

    This is nearly identical to the code I am using with my RFID controlled lock. Not included is comparison of id's, the addition and removal of valid ID's from NV memory (EEPROM or FLASH).

    Code is attached.

    Note: To be a bit more robust the ISR should be modified to detect the stop character as the last character prior to declaring the packet ready.
     
  2. ghostman11

    ghostman11 Well-Known Member

    Joined:
    Nov 22, 2009
    Messages:
    1,192
    Likes:
    99
    Location:
    Scotland
    thanks for this 3v0, a very handy program easy to follow.
     

Share This Page