Comments (1)
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)
- Message spam if the approximate card is not registered (how to solve it?)
- PICC type: Unknown type HOT 1
- How to extend this library for spresense board HOT 1
- Firmware version
- RST not works HOT 1
- Rfid
- Compile error with Arduino ESP32 release 2.0.8 HOT 5
- WARNING: Communication failure, is the MFRC522 properly connected? what is the problem?
- RC522 Mini Not Work vs RC522 Normal HOT 5
- How to get 5 bytes UID ? HOT 3
- Help i can't get the RC522 module for RFID to work. HOT 4
- Card Avaliable Function
- RFID tag shows lines "-----" instead of actual values
- Example "Minimal-SPI" does not compile HOT 1
- "the ordered comparison of pointer with integer zero" Fix for RP2040 (earlephilhower core > 3.3x)
- Help! How does the uid data is return to the buffer array in PICC_Select
- Help me? ARDUINO RC522
- Missing L1 on Hardware - please help what typ to insert...
- CardReader do not detect new cards
- Unable to read a known version from the rc522. Getting 0x89 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rfid.