JeremyBlum.com

v3.0

Tutorial 12 for Arduino: RFID Card Reading

| 27 Comments

Finally! It’s been about 3 months since my last arduino tutorial – I’ve been keeping busy as usual. I’ve been working on this one for some time. I got the parts months ago, made an outline a few weeks ago, prototyped the circuits and wrote the code last week, and did the filming over the last few days. I’ve upped the ante for my production capabilities on this video. I’m using two cameras (A Canon Vixia HF11 and a Canon EOS Rebel T3i Digital SLR), a fancy new Rode Shotgun microphone, and more tripods! I’ve also implemented some improved audio processing on my voice-overs, so let me know what you think!

RFID technology is really really fun in my opinion, and I’ve been wanting to implement it in a project for some time now. However, doing that can be challenging. But, thanks to the tutorial below, you should have no problems putting together a simple RFID-based security system! I explain the physics of how RFID works in the video, but if you’re a physics nerd like me, and you’re hungry for more, be sure to read up on RFID on wikipedia. In this video, I’ll explain how to setup an RFID reader (like this one) with your arduino, read some serial numbers, and use that data to make a secure entrance database.

 

You can download the files associated with this episode here:

GNU GPL License Distributed under the GNU General Public (Open-Source) License.
Please Attribute and Share-Alike.

27 Comments

  1. Finally!

  2. Where you get com4 javascript?

  3. You can tell me the code?

  4. Hey i was wondering for the cooking hacks.com site, the prices for the components are in pounds right? so does that mean when we order the parts from that site that it will be higher in cost due to currency exchange rates?

  5. Hey, thanks for you tutorial. It help me a lot: my rfid system works!!!
    Thanks!

    I’ve got a question, I need to change the baud rate to 38400. In the documentation, it says you can change it using a command CMD_SET_BAUD, but I have no idea of how to do it from Arduino. Is it possible?

    Thanks a lot

    Frank

    • Refer to how I issued the auto_read command. In that case, I had to send a 0×87 and the accompanying data. To change the baud rate, you’ll need to send a 0×52. Look at section 3.1.1 in the datasheet for how to structure the command.

      • hi i am from Nepal
        i am trying to control serrvo motor through Xbee-pro with arduino i am able to control only one servo motor will you help me to write audrino code how can i control more than one servo motor through Xbee-pro using arduino uno

  6. Hi Jeremy,

    cool vids! I did not really understand you said about the jumpers at 30:41. Can it cause any damage if the jumper is not setup properly?

    thx,

    laszlo

  7. great tutorials. just my 2 cents: in the code where you check if it’s your or your brother’s card, instead of if statement, how about:

    j_card = j_card && (data[i] == jeremy[i])

    should work, since it’s standard C syntax, but i understand you went with the “if” lines for simplicity’s sake… i just wonder if this’ll compile into smaller code…
    and keep up the good work

  8. Hey! Very nice tutorial!
    I just got a Mifare 1k RFID reader but I cant send a command from my arduino mega :(
    I cant send a byte array (like those Serial.print’s) from my tx pin
    What i’m doing wrong? 0o

  9. Just wondering what is the read randge on the tags you have used?

  10. I’m a newby to the world of arduino but i get a long with it pretty well and your videos help a lot. Thanks for that.

    I guess the datasheet your showing is from the rfid module of the reader you are using, right? If I am now using an other Reader can I still use the values you used for the header etc. ?
    Better: Are the UART frames default?

  11. Hi, Its really wonderful tutorial,,, I have just one question, wheither is there way to make a configuration file / txt file that can be used for a user to enter tag IDs for maching,,,,I mean user dont have to enter IDs in arduino environment and compile every time if he/she would like to enter new card……

    Thanks,,,great work

  12. Hi Jeremy, the videos are very helpful, thanx for uploading. I have one querry, After detecting the correct RFID tag, I want to add some more security i.e., I want to add 4 pin password facility in this application, can u help me out in this regards. Thanks

  13. Thanks Jeremy, brilliant work!!
    I would like to inquire about your experience with NFC or Felica. Instead of a RFID i would like to do something similar with a NFC or Felica Card, can you kindly guide me to any of your videos or blogs with regards this?
    Thanks!!

  14. How to make a basic RFID reader…cz i wanna make a RFID based attendance system…so hw to make the circuit of reader..??? plz reply..its urgent…

  15. Hi Jeremy,

    I’ve downloaded this episode 12 program file. But i only see .ino file not the .pde. I still using the R2 Arduino. Can I have the code for R2 Arduino.

  16. Thanks,

    I’ve already found how to opened the .ino file. I opened it using Notepad++ and i can see your programming.

    Thank you for the great tutorial ^_^

Leave a Reply

Required fields are marked *.

*