+ Reply to Thread
Results 1 to 3 of 3

Thread: arduino to Parallax rfid read/write module interfaciing....???

  1. #1

    Post arduino to Parallax rfid read/write module interfaciing....???

    hello everyone.. i'm newbie in this forum... and i just wanna ask how to interface the arduino 328 to parallax rfid read/write module..??? i tried several codes from the net but nothings happen.. i want to write in my tags but sad to say the codes didn't work....help please.....! thanks

  2. #2

    Default Re: arduino to Parallax rfid read/write module interfaciing....???


  3. #3

    Default Re: arduino to Parallax rfid read/write module interfaciing....???

    thanks for your reply .. but seem no luck.. i tried the codes in this site http://arduino.cc/playground/Learning/PRFID..... the light turns to read.. but no response to the serial monitor....what should i do.. help please here is the code for reading and newer EM4x50 tags....

    #include <SoftwareSerial.h>
    #define RFID_READ 0x01
    #define txPin 6
    #define rxPin 8
    SoftwareSerial mySerial(rxPin, txPin);
    int val;int runs = 0;
    void setup(){
    Serial.begin(9600);
    Serial.println("RFID Read/Write Test");
    mySerial.begin(9600);
    pinMode(txPin, OUTPUT);
    pinMode(rxPin, INPUT);
    }
    void suppressAll() //suppresses the "null result" from being printed if no RFID tag is present
    { if(mySerial.available() > 0)
    { mySerial.read(); suppressAll();
    }
    }
    void loop(){
    int val;
    mySerial.print("!RW");
    mySerial.write(byte(RFID_READ));
    mySerial.write(byte(32));
    if(mySerial.available() > 0)
    { val = mySerial.read(); //The mySerial.read() procedure is called, but the result is not printed because I don't want the "error message: 1" cluttering up the serial monitor
    if (val != 1) //If the error code is anything other than 1, then the RFID tag was not read correctly and any data collected is meaningless. In this case since we don't care about the resultant values they can be suppressed
    {suppressAll();
    }
    }
    if(mySerial.available() > 0)

    {
    val = mySerial.read();
    Serial.print("1st:");
    Serial.println(val, HEX);
    }
    if(mySerial.available() > 0)
    { val = mySerial.read();
    Serial.print("2nd:");
    Serial.println(val, HEX);
    }
    if(mySerial.available() > 0)
    {
    val = mySerial.read();
    Serial.print("3rd:");
    Serial.println(val, HEX);
    }
    if(mySerial.available() > 0)
    { val = mySerial.read();
    Serial.print("4th:");
    Serial.println(val, HEX);
    Serial.println("-----------------");
    }
    delay(750);
    }



    ....does anyone works with this codes .....the compilation is correct but still no response,,,,,

+ Reply to Thread

Similar Threads

  1. RFID Read/Write Module - I'll send you hardware; you'll post a Propeller object
    By Ken Gracey in forum Propeller 1 Multicore Microcontroller
    Replies: 24
    Last Post: 01-19-2014, 06:07 PM
  2. Replies: 5
    Last Post: 02-26-2012, 11:50 AM
  3. [unsolved] Interface Arduino to RFID Read/Write
    By bhclowers in forum Sensors
    Replies: 13
    Last Post: 12-07-2011, 01:19 AM
  4. [solved] UPDATED: Having issues with getting Spinneret talking to RFID Read Write module.
    By lazer luke in forum Spinneret Web Server
    Replies: 22
    Last Post: 06-17-2011, 03:55 PM
  5. New Products! RFID Read/Write Module
    By Bump in forum Announcements
    Replies: 0
    Last Post: 07-14-2010, 11:52 PM

Bookmarks

Posting Permissions

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