loading
On this instructable I will try to show how to interface a RFID sensor with the Arduino. I am using the RFID sensor from seeedstudio the serial version of it. There are a few parts you will gonna need. I also bought some RFID keys.

UPDATE: Now it works with IDE 021

Step 1: What you gonna need?

- Arduino Board
- RFID Sensor from seeedstudios
- Wires
- Protoboard
- RFID tags (125kHz) from seeedstudios
Thanks for the instructable man, really appreciate it.&nbsp; I've been wanting to do something with rfid and this is going to help me out big time.<br />
Nice, thank you for the positive feedback. xD<br />
Don't know why I'm having a multiple read for each card I swap
<p>plz send me rfid code at this shoaibhassan031439@gmail.com <br>i need it urrgent...plz</p>
<p>Hi, This is really nice. Can we calculate distance also? if in case we would like to calculate distance as how much far or close the tag is with reader , is that possible?</p><p>Regard's</p><p>Hari</p>
I don&acute;t think it is possible to do that with this particular module.
<p>Hi, Thanks for the kind response, </p><p>Can we measure distance via signal strength? Or can you please suggest me any other module? I have MLX 90109 with DVK 90109 and EVB 90109<br></p>
<p>I had the readers and they dont seem to be reading i have them hooked up the way you have it set up but how does your code work? there arent any comments throughout the code and i have been looking to use them for a school project. can you help?</p>
send me your code and a pic of your schematic
Just figured it out now how can i get the id part out of whats being read? I also noticed that sometimes im reading double of the same part of the code?
Hi I have arduino Mega ADK, Here is a preview of it, http://arduino.cc/en/uploads/Main/ArduinoADK_R3_Front.jpg can you tell me where to connect the TX of RFID in the arduino board? I,m an extreme beginner so if my question is stupid please bear with me. Just tell me the exact pin number on which to attach from the arduino board's picture! Thanks in advance.
<p>i have the same problem. please tell if someone have sorted out.</p>
Send me your code and a pic or schematic of your conection
<p>Have your been able to figure it out pl, I have the same question</p>
<p>i am able to work with arduino uno but unable to get it working on arduino mega.<br>i used the code above and connected the rfid pin to arduino mega's digital pin 2.<br>help...!!</p>
<p>Hello,</p><p>Using your code to decode a keychain fob ID tag. The fob has the number &quot;0001383297&quot; inscribed. The code outputs &quot;3100151B81BE&quot;. </p><p>Boards are hooked up per your directions, using the same RFID receiver card and the Sparkfun UNO board. </p><p>Any ideas on how to decode the output that matched the inscription? </p><p>I have used a commercial USB RFID reader (it looks like a thumb drive) and it outputs the number inscribed on the fob.</p><p>Thanks!</p>
Hi,<br><br>Ss you can see in the image below the number 000138297 inscribed is in DEC. Cinverting it to HEX give us this 00151B81. Probably the beginning &quot;31&quot; and the final &quot;BE&quot; should be a verification code.<br><br>So the reading is OK, the problem is on the conversion from DEC to HEX.
<p>Do you know if using this approach you can connect more than one RFID reader to a single arduino?</p>
If you use the same port, it could have some interference. But worth the shot. Anyway, you can use different pin for each rfid module.
<p>Hello, how can i add more tags ? </p><p>what i need to change in the code?</p><p>thanks</p>
<p>Just a few quick questions: Which arduino board did you use for this project? Also, I see that pin one TX of the RFID sensor is being connected to digital pin two of the arduino board, is this digital pin two a special pin such as RX or is it a normal digital pin? Thank you for a great instructable! </p>
<p>The board is a old Arduino Duemilanove.</p><p>I use the digital pin with a serial software to connect with the RFID board so the original serial port can communicate with the computer for debug purpose and interacation.</p>
<p>Hi, thanks for this great tutorial. I have this same RFID module from seeedstudio but want to make it work with 134 kHz RFID tags used for animal tagging with ISO 11784 &amp; 11785. Is that possible or not? I've searched the web but couldn't find anything specific to this and SeeedStudio just referred me to their Wiki page. What I was able to find out is that the frequency fot this specific antenna is not a problem. </p><p>Thanks in advance.</p><p>Regards</p><p>Tinus</p>
Hello Tinus,<br><br>With this especific sensor I dont think that it will work with this animal tag because of the diference between the two frequency.<br><br>Regards
<p>Thanks for a really good tutorial it really helped me out, i was wondering if you could help me, my project require reading a static rfid, i.e. when the arduino is turned on it reads the rfid card that currently on the reader. Is that possible or does the card need to move be able to read it</p>
That is a good question, never tried this way.<br>I really don&acute;t have this answer right now.
<p>please help i dont understand how to program the tags, what does the line in the code mean '&quot; //change this ID with your own card TAG' please help fast!</p>
<p>I have the same problem. The card has a long number but when I put the number in the program, nothing happens. The serial monitor just shows &quot;Serial Ready&quot; and &quot;RFID Ready&quot;. But nothing else. Please tell me in detail, how you solved the problem</p>
Can you send me your code and your card ID
<p>You need replace the code by your own ID form your card</p>
I tried that but the number is very long, it has a space and a comma in it so what do i do with that?
<p>send me a print of the serial reading when you read a tag</p>
<p>It doesn't read anything, where do you get the tag ID number? on the cards there is a number printed on them, one is '0000946210 014,28706' and the other is '0001361049 020,50329' so are these supposed to be the id number?</p>
<p>Have you find what is the ID number of the card? I have the exact same problem here! </p><p>I have : '0006527268 099,39204'</p><p>and : '0006512977 099,24913'</p>
<p>After uploaded the code, there is any message on the serial monitor?</p><p>When you approach the tag to the sensor, appears anything on the serial monitor?</p>
<p>This may have been the obvious answer from the beginning but does this work with arduino uno?</p>
<p>Have you tried to upload the code without any errors?</p>
<p>Okay i solved it, with arduino you have to switch the wiring round between the RFID module and the Arduino, you have to wire the RX on the RFID module to the TX on the Arduino and the TX to the RX. </p>
<p>Hi, just a noob question:<br><br>You're using the RFID Cards and Keys here, right? Is it possible to use the RFID stickers(the ones that can be placed on equipments or someting) as a substitute? as long as it's 125Khz?<br><br>Thanks.</p>
I think it is possible, but the distance that you can read the sticker may be smaller than the read bycard.
<p>Hi, thanks for the reply. I had used a 125Khz card instead. So I tried the code of brenryan since I just need a simple program that displays the card's id(also modified 1 line of the code &quot;tag=tag.substring(1,13);&quot; replaced 13 with 19 since my card has 18 digit code. Anyway, now I'm facing a different problem, do you have any idea why the output looks like this?<br><br></p>
<p>I'm probably way too late, but the reason is because the serial monitor converts the number into a character, try <strong>Serial.println();</strong> instead</p>
<p>Super instructable man..</p>
Thank you for the feedback<br>
<p>If I have Arduino Uno, Ethernet Shield and RFID Module ID-20LA. May I know how to connect the circuit? </p>
Never tested this two shields together.<br>My sugestion is first, make de arduino and the RFID modulo works together.<br>After this, try the same thing but now with the arduino and the Ethernet Shield together.<br><br>After both works, try to make it works together.
<p>do you have some tutorials about rfid with magnetic lock? Thanks ?</p>
I do not have any. But on Google YouTube can find some example

About This Instructable

351,043views

375favorites

License:

More by otaviousp:CNC G-Code Interpreter using Processing How to connect Arduino and RFID Angle measurement using gyro, accelerometer and Arduino 
Add instructable to: