Tutorial 12 for Arduino: RFID Card Reading

You can download the parts list, code, and schematics from this episode on my website: http://jeremyblum.com/2011/07/tutorial-12-for-arduino-rfid-card-reading

Watch all of the videos in this series here: http://www.youtube.com/playlist?p=A567CE235D39FA84

This tutorial series is sponsored by element14. Check out their arduino group!
http://www.element-14.com/community/groups/arduino

Thanks to http://www.cooking-hacks.com for supplying the RFID Materials!

Follow me on twitter: http://www.twitter.com/sciguy14

Duration : 0:33:35


Comments

25 responses to “Tutorial 12 for Arduino: RFID Card Reading”

  1. rodrigoolguinc Avatar
    rodrigoolguinc

    How can you use …
    How can you use more RFID? antennas (with Softwareseral?). Thanks

  2. whilmer27 Avatar
    whilmer27

    where can i find …
    where can i find the COM4 to see if my program is correct., or it is automatically pop out??? ?

  3. whilmer27 Avatar
    whilmer27

    HI SIR!!!
    Can you …

    HI SIR!!!
    Can you make a tutorials about FINGER? PRINT SCANNER with adruino.., thanks in advance

  4. Sacmanis Avatar
    Sacmanis

    You do a byte by …
    You do a byte by byte comparison of the Tag ID. I need to use an SD card to store and? RFID tag ID along with a corresponding Xbee ‘MY’ number in a lookup table so that I can transmit data back to a given remote based on that combo. I assume it’s possible to concatenate the bytes into a string and do a string compare?

  5. fede142857 Avatar
    fede142857

    I’m? the 100th like!
    I’m? the 100th like!

  6. TT1TTOne Avatar
    TT1TTOne

    Great tutorial, …
    Great tutorial, thanks? for your effort!

  7. sciguy14 Avatar
    sciguy14

    @MyOverflow That …
    @MyOverflow That explains why I’ve been feeling uneasy ever? since releasing this tutorial…

  8. MyOverflow Avatar
    MyOverflow

    I have to do it.


    I have to do it.

    Obligatory XKCD for the comment for the line 21 in the read_rfid.pde file.
    xkcd [dot]? com/859/

    In case you don’t have that line numbered, it’s this line:
    Serial.print(0x87,BYTE); //Command (0x87 sets auto mode behavior

  9. sciguy14 Avatar
    sciguy14

    @jaysenstudios Yes, …
    @jaysenstudios Yes, but I wouldn’t use it as a means to control current flow directly. Hook it up to the Arduino as an analog input, measure the value is software, and then use a wire to connect a digital out from? the arduino into the enable pin of the RFID chip.

  10. jaysenstudios Avatar
    jaysenstudios

    Could I use an …
    Could I use an ultrasonic sensor instead? of a button to activate the rfid sensor?

  11. sciguy14 Avatar
    sciguy14

    @l0rtto I can’t …
    @l0rtto I can’t tell if you’re being sarcastic or not. I apologize if it was a poor explanation. To put it in other words, j_card=true appears only once in the code, before the for loop. Hence, once in the for loop, the j_card=false statement can set j_card to false, but there is no scenario that could set it back to true once it has already? been made false, because j_card=true never appears in the for loop.

  12. l0rtto Avatar
    l0rtto

    @sciguy14 “So once …
    @sciguy14 “So once the one of the if statements in the for loops evaluates to false, it cannot be made true again on another run through the for? loop.” That’s pretty unambiguous. Thanks.

  13. sciguy14 Avatar
    sciguy14

    @l0rtto No it’s …
    @l0rtto No it’s correct. The j_card value is initially set to true, but the if statement can only possibly make it false. So once the one of the if statements? in the for loops evaluates to false, it cannot be made true again on another run through the for loop.

  14. l0rtto Avatar
    l0rtto

    This might be a …
    This might be a stupid question so hello and sorry!
    When you’re checking the byte in for loop, for example in this case something like this:

    j_card=true;
    for (i=0; i<5; i++) {
    if (data[i] !=jeremy[i]) j_card = false;
    }
    if (j_card==true) serial.println(“All array elements are the same in? data[i] and jeremy[i]”)

    Doesn’t the j_card boolean always forget the previous value when executing the for loop again? So you’re going to get “everything’s correct” every time the last value is correct.

  15. HPHQ10 Avatar
    HPHQ10

    @sciguy14 Alright …
    @sciguy14 Alright then thank you? for the advise 🙂

  16. sciguy14 Avatar
    sciguy14

    @HPHQ10 Apply to …
    @HPHQ10 Apply to one that does? research you find interesting.

  17. HPHQ10 Avatar
    HPHQ10

    @sciguy14 Thank you …
    @sciguy14 Thank you for the start since I have already built my computer and just wanted to know from your experience so one more thing as far a colleges how should choose one because are there like scams or? anything I should watch out for?

  18. sciguy14 Avatar
    sciguy14

    @punkdane I’m …
    @punkdane I’m working on an LCD tutorial? now – it will be easy to combine the two.

  19. punkdane Avatar
    punkdane

    hey, jeremy, how …
    hey, jeremy, how about making it a stand-alone project? add some LCD for the display,, will you help me? doing it?

  20. sciguy14 Avatar
    sciguy14

    @lebeyes Sorry for …
    @lebeyes Sorry for not clarifying that. ? The jumpers on the Xbee only change where the Arduino RECEIVES data from. So, the arduino receives data from just the RFID card reader. But, when it sends data, it sends it to anything that happens to be connected to it’s serial port’s TX line. So, the computer, and the RFID card chip receive everything it sends. Conveniently, the RFID chip will just ignore any commands that it does not understand.

  21. sciguy14 Avatar
    sciguy14

    @HPHQ10 You are …
    @HPHQ10 You are welcome to have your own beliefs. All I ask is that you let me have mine as well. They are unrelated to engineering anyways. Prepare to be an engineer by making? things. Experiment, and make projects with your hands. Watching videos is good, but it’s more important that you apply that knowledge to real projects.

  22. HPHQ10 Avatar
    HPHQ10

    @sciguy14 Well I …
    @sciguy14 Well I believe God is anywhere and I am sorry to here you dont think have a relationship with God is relevant. Like I said? you still can be saved if you accept Jesus Christ as your one and only Savior. Sorry if I was a disturbance to you and all of you subscribers. Though I do want to be a computer hardware engineer so thats why i watch your videos because I am interested in technology. Well on another note I would like to know how should I prepare to be an engineer?

  23. lebeyes Avatar
    lebeyes

    You are using …
    You are using Serial to talk to both the RFID reader and the computer. What I don’t understand in the code is? how you specify which you are talking to.

  24. raghunitin Avatar
    raghunitin

    @sciguy14? With …
    @sciguy14? With pleasure

  25. sciguy14 Avatar
    sciguy14

    @HPHQ10 I don’t? …
    @HPHQ10 I don’t? think youtube is the ideal place for you to be preaching religion. Please don’t waste the time of people watching this video with things that are irrelevant, and frankly, ridiculous.

Leave a Reply