element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum rf id help
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 4 replies
  • Subscribers 417 subscribers
  • Views 536 views
  • Users 0 members are here
  • rfid
Related

rf id help

e14 Contributor
e14 Contributor over 12 years ago

hello everyone, i have a such question: when i am connection my RFID reader to arduino, i am reading this :ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ  can anyone tell me why? thx

  • Sign in to reply
  • Cancel
Parents
  • Robert Peter Oakes
    0 Robert Peter Oakes over 12 years ago

    please post your sketch so we can review your code, it looks like it may be in there

     

    Thanks

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 12 years ago in reply to Robert Peter Oakes

    hello, i have one more problem i have two programs that i want to combine one is : an rfid reader followed by a PIN (from a matrix keypad) another is GPS receiver. These two programs are working separately. this first program is:

    #include <Keypad.h>

    #include <SoftwareSerial.h>

    SoftwareSerial RFID(12, 13);

    String tag;

    int LED=9;

    void setup()

    {

      //pinMode(8, OUTPUT);

      //pinMode(9, OUTPUT);

      //digitalWrite(8, LOW);

      //digitalWrite(9, HIGH);

      Serial.begin(9600);

     

      RFID.begin(9600);

       pinMode(LED,OUTPUT);

    }

    char c;

    void loop(){

        while(RFID.available()>0){

        c=RFID.read();

        tag += c;

      }

    tag=tag.substring(0,13);

    while(tag.length()>0){

    //Serial.print("ID: ");

    Serial.println(tag);

    tag="";

    delay(200);

     

     

    tag="";

    }

    delay(200);

    tag="";

    joseph_keypad();

     

    }

    void joseph_keypad()

    {

      const byte ROWS = 4; // Four rows

    const byte COLS = 4; // Four columns

    // Define the Keymap

    char keys[ROWS][COLS] = {

    {'1','2','3','A'},

    {'4','5','6','B'},

    {'7','8','9','C'},

    {'*','0','#','D'}

    };

     

     

    byte rowPins[ROWS] = { 5, 4, 3, 2 };

    byte colPins[COLS] = { 8, 7, 6, A0 };

     

     

    // Create the Keypad

    Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

      char key = keypad.getKey();

     

     

      if (key != NO_KEY){

        Serial.println(key);

         if(key =='#')

        {

          digitalWrite(LED,1);

        delay(500);

        digitalWrite(LED,0);

        delay(500);

        }

        else

        {

        digitalWrite(LED,1);

        delay(100);

        digitalWrite(LED,0);

        delay(100);

        }

     

      }

    }

    second program is :

     

     

    #include <SoftwareSerial.h>

    #include <TinyGPS.h>

    #define RXPIN 10

    #define TXPIN 11

     

    #define TERMBAUD  9600

     

    #define GPSBAUD  9600

     

     

    TinyGPS gps;

    SoftwareSerial uart_gps(RXPIN, TXPIN);

     

    void getgps(TinyGPS &gps);

     

    void setup()

    {

     

      // Sets baud rate of your terminal program

      Serial.begin(TERMBAUD);

      // Sets baud rate of your GPS

      uart_gps.begin(GPSBAUD);

     

      Serial.println("");

      Serial.println("GPS Shield QuickStart Example Sketch v12");

      Serial.println("       ...waiting for lock...           ");

      Serial.println("");

    }

    void loop()

    {

      while(uart_gps.available())     // While there is data on the RX pin...

      {

          int c = uart_gps.read();    // load the data into a variable...

          if(gps.encode(c))      // if there is a new valid sentence...

          {

            getgps(gps);         // then grab the data.

          }

      }

    }

     

    // The getgps function will get and print the values we want.

    void getgps(TinyGPS &gps)

    {

     

     

      float latitude, longitude;

      // Then call this function

      gps.f_get_position(&latitude, &longitude);

      Serial.print("Lat/Long: ");

      Serial.print(latitude,5);

      Serial.print(", ");

      Serial.println(longitude,5);

     

      int year;

      byte month, day, hour, minute, second, hundredths;

      gps.crack_datetime(&year,&month,&day,&hour,&minute,&second,&hundredths);

      // Print data and time

      Serial.print("Date: "); Serial.print(month, DEC); Serial.print("/");

      Serial.print(day, DEC); Serial.print("/"); Serial.print(year);

      Serial.print("  Time: "); Serial.print(hour, DEC); Serial.print(":");

      Serial.print(minute, DEC); Serial.print(":"); Serial.print(second, DEC);

      Serial.print("."); Serial.println(hundredths, DEC);

      //Since month, day, hour, minute, second, and hundr

     

      // Here you can print the altitude and course values directly since

      // there is only one value for the function

      Serial.print("Altitude (meters): "); Serial.println(gps.f_altitude()); 

      // Same goes for course

      Serial.print("Course (degrees): "); Serial.println(gps.f_course());

      // And same goes for speed

      Serial.print("Speed(kmph): "); Serial.println(gps.f_speed_kmph());

      //Serial.println();

     

      // Here you can print statistics on the sentences.

      unsigned long chars;

      unsigned short sentences, failed_checksum;

      gps.stats(&chars, &sentences, &failed_checksum);

      Serial.print("Satellites: ");

      Serial.println(gps.satellites());

    }

     

    please help me if possible..

    joseph

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • e14 Contributor
    0 e14 Contributor over 12 years ago in reply to Robert Peter Oakes

    hello, i have one more problem i have two programs that i want to combine one is : an rfid reader followed by a PIN (from a matrix keypad) another is GPS receiver. These two programs are working separately. this first program is:

    #include <Keypad.h>

    #include <SoftwareSerial.h>

    SoftwareSerial RFID(12, 13);

    String tag;

    int LED=9;

    void setup()

    {

      //pinMode(8, OUTPUT);

      //pinMode(9, OUTPUT);

      //digitalWrite(8, LOW);

      //digitalWrite(9, HIGH);

      Serial.begin(9600);

     

      RFID.begin(9600);

       pinMode(LED,OUTPUT);

    }

    char c;

    void loop(){

        while(RFID.available()>0){

        c=RFID.read();

        tag += c;

      }

    tag=tag.substring(0,13);

    while(tag.length()>0){

    //Serial.print("ID: ");

    Serial.println(tag);

    tag="";

    delay(200);

     

     

    tag="";

    }

    delay(200);

    tag="";

    joseph_keypad();

     

    }

    void joseph_keypad()

    {

      const byte ROWS = 4; // Four rows

    const byte COLS = 4; // Four columns

    // Define the Keymap

    char keys[ROWS][COLS] = {

    {'1','2','3','A'},

    {'4','5','6','B'},

    {'7','8','9','C'},

    {'*','0','#','D'}

    };

     

     

    byte rowPins[ROWS] = { 5, 4, 3, 2 };

    byte colPins[COLS] = { 8, 7, 6, A0 };

     

     

    // Create the Keypad

    Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

      char key = keypad.getKey();

     

     

      if (key != NO_KEY){

        Serial.println(key);

         if(key =='#')

        {

          digitalWrite(LED,1);

        delay(500);

        digitalWrite(LED,0);

        delay(500);

        }

        else

        {

        digitalWrite(LED,1);

        delay(100);

        digitalWrite(LED,0);

        delay(100);

        }

     

      }

    }

    second program is :

     

     

    #include <SoftwareSerial.h>

    #include <TinyGPS.h>

    #define RXPIN 10

    #define TXPIN 11

     

    #define TERMBAUD  9600

     

    #define GPSBAUD  9600

     

     

    TinyGPS gps;

    SoftwareSerial uart_gps(RXPIN, TXPIN);

     

    void getgps(TinyGPS &gps);

     

    void setup()

    {

     

      // Sets baud rate of your terminal program

      Serial.begin(TERMBAUD);

      // Sets baud rate of your GPS

      uart_gps.begin(GPSBAUD);

     

      Serial.println("");

      Serial.println("GPS Shield QuickStart Example Sketch v12");

      Serial.println("       ...waiting for lock...           ");

      Serial.println("");

    }

    void loop()

    {

      while(uart_gps.available())     // While there is data on the RX pin...

      {

          int c = uart_gps.read();    // load the data into a variable...

          if(gps.encode(c))      // if there is a new valid sentence...

          {

            getgps(gps);         // then grab the data.

          }

      }

    }

     

    // The getgps function will get and print the values we want.

    void getgps(TinyGPS &gps)

    {

     

     

      float latitude, longitude;

      // Then call this function

      gps.f_get_position(&latitude, &longitude);

      Serial.print("Lat/Long: ");

      Serial.print(latitude,5);

      Serial.print(", ");

      Serial.println(longitude,5);

     

      int year;

      byte month, day, hour, minute, second, hundredths;

      gps.crack_datetime(&year,&month,&day,&hour,&minute,&second,&hundredths);

      // Print data and time

      Serial.print("Date: "); Serial.print(month, DEC); Serial.print("/");

      Serial.print(day, DEC); Serial.print("/"); Serial.print(year);

      Serial.print("  Time: "); Serial.print(hour, DEC); Serial.print(":");

      Serial.print(minute, DEC); Serial.print(":"); Serial.print(second, DEC);

      Serial.print("."); Serial.println(hundredths, DEC);

      //Since month, day, hour, minute, second, and hundr

     

      // Here you can print the altitude and course values directly since

      // there is only one value for the function

      Serial.print("Altitude (meters): "); Serial.println(gps.f_altitude()); 

      // Same goes for course

      Serial.print("Course (degrees): "); Serial.println(gps.f_course());

      // And same goes for speed

      Serial.print("Speed(kmph): "); Serial.println(gps.f_speed_kmph());

      //Serial.println();

     

      // Here you can print statistics on the sentences.

      unsigned long chars;

      unsigned short sentences, failed_checksum;

      gps.stats(&chars, &sentences, &failed_checksum);

      Serial.print("Satellites: ");

      Serial.println(gps.satellites());

    }

     

    please help me if possible..

    joseph

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube