Coder Social home page Coder Social logo

Comments (1)

WA4OSH avatar WA4OSH commented on May 12, 2024

NinjaJake86,
I decided to help out a little with this project. Sorry that it took so long for someone to get back to you.

Take a look at the simplest example -- cardRead.ino It reads the card and determines if the checksum is valid. Then it prints the card number on the console. For as long as the same card is being read, the console will continue to print commas.

Now if I understand you right, you would like to have a "database" in your sketch that has in it columns of cards that are "registered" on your card reader. And each row of that data base is one card. It has a list of 5 integers as its unique ID and say a list of characters you want to print out.

Since you probably won't have a huge database of RFID card users for the first cut of this project, use the sketch above and detect a card being swiped. Next, use a sequential search (a while loop) to look down the rows of your "database" and look to match all five of the card's integers to the "database"'s list of integers. I would write a method that compares two lists for this. If you found a match, break out of the loop and print to the console the string that matches the card's numbers. Note that the string could be just a member or employee number, or their name.

Once you get it to work, you can also print that string to an LCD display with a welcome message, and/or record a time and date code into another list in the database. Once your search takes "too long", you can refactor by sorting your "database" and doing a binary search of some sort.

I hope this gives you a hint on how to proceed with your project if you haven't figured it out yet.

Konrad

from rfid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.