Académique Documents
Professionnel Documents
Culture Documents
workshop
living
food
play
outside
Table of Contents
How to connect Arduino and RFID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 4: Results! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/
Image Notes
1. Arduino Board
2. RFID sensor board
3. RFID antenna
4. Wires
Image Notes
1. Card that I used to add another tag.
2. The card I used to deny others TAGs
3. Sample TAGs
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/
Image Notes
1. Some tape to hold the wires.
Image Notes
1. Tx PIN
2. GND
3. Vcc
Image Notes
1. Arduino PIN2 (Rx) SoftSerial
2. NC
3. Tx
4. Vcc
5. GND
6. Antenna
File Downloads
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/
RFID_2_eng.pde (1 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'RFID_2_eng.pde']
RFID_arduino_version_1.0.1.txt (2 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'RFID_arduino_version_1.0.1.txt']
Step 4: Results!
There is no LED, sound or LCD for debug or visualization, just through the serial line.
The video demonstrate how to use the software. I didn't post any kind of explanation as text on the video. I hope that the images spokes more then words, xD
Any doubt or suggestion, feel free to ask, or correct me.
Please, if you like it, rate it,
thank you
Related Instructables
Arduino
Tutorials RFID
by tronixstuff
Closable Food
Dish with
Twitter
Notification by
JessieV93
Reading RFID
Tags with an
Arduino by
MrkTrussell
Music Notes
using Low-Tech
Capacitive
Sensor and
RFID by
krismawil
Switch On and
Shutdown the
PC by RFID & IR
by Rifath
Advertisements
Comments
50 comments Add Comment
epidemicz says:
otaviousp says:
FaiquahL says:
sir kindly again post the vedio in which mention software type and how to add /delete users of tags.
which code is best one between the two of them.please help me sir...........
FaiquahL says:
edugr says:
Hi, thanks for the tutorial, it worked perfectly on my Arduino Mega 2560 (just changed the RX to digital 50).
Do you know if I can read the Sticker version of RFID with this componente or do I need some other type? can you recommend me one? Thank you very much!
jess.delamerced says:
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/
otaviousp says:
I think it is possible, but the distance that you can read the sticker may be smaller than the read bycard.
jess.delamerced says:
vincent.cayanong says:
LeoA5 says:
can you help im having issues compiling code on the link it one. Not sure if I have the right library.
sketch_jan28a.ino: In function 'void loop()':
sketch_jan28a.ino:30:40: error: 'add' was not declared in this scope
sketch_jan28a.ino:31:45: error: 'del' was not declared in this scope
sketch_jan28a.ino:32:37: error: 'verifica' was not declared in this scope
Error compiling.
RiaanBod says:
What happens if your arduino restarts or lost power. Do you have to re-program the TAGs again?
otaviousp says:
SimonT2 says:
Thanks!!
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/
VishalG1 says:
abramo.lieo says:
kamra says:
Hi,
I have one ES 125 R, please tell me how to connect it to arduino.
RFID pins of ES 125R as such
A0 , A1 , O/P , GND , +5V , R , TX
MandeepS1 says:
I have the same ES125R, have you been able to figure out as to how to use it, if so would your share it, thanks
otaviousp says:
otaviousp says:
Forget to upload the image of the schematic
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/
AroojZ says:
MandeepS1 says:
Have your been able to figure it out pl, I have the same question
Congratulations otaviousp! Do you know how far could we connect the rfid module to the arduino board?
otaviousp says:
Hi Ivar,
The communication between the arduino and the RFID module is done by a serial cable. So the max distance depends on the velocity of transmission
(baud rate), and the quality of the cable.
Usually the module stay near the Arduino(slave), then the arduino send the information to another arduino(master) for long distance.
Lower the baud rate, bigger the cable you can use.
factory909 says:
Very nice brotha! Have you did any other interfacing with this since your project? I'm thinking door locks...
otaviousp says:
Hey,
I did not interface it with other devices, but it is quite simple to do.
With you need any help, please tell me.
brenryan says:
Nice ible. Well done, I learnt much more about this RFID module here than on it's wiki...
I'm just trying to make a simple reader that just spits out the read tags ID number then moves onto a new line. I've taken bits of your code to get started, I
don't see why it's not working the same way as it does in yours :/
Maybe you can help? I would really appreciate any assistance...
#include <SoftwareSerial.h>
SoftwareSerial RFID(10, 11);
String msg;
void setup()
{
Serial.begin(9600);
Serial.println("Serial Ready");
RFID.begin(9600);
Serial.println("RFID Ready");
}
char c;
void loop(){
while(RFID.available()>0){
c=RFID.read();
msg += c;
Serial.print("Tag ID: ");
Serial.println(msg); //Uncomment to view your tag ID
//Serial.println(msg.length());
}
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/
msg=msg.substring(1,13);
msg="";
}
otaviousp says:
brenryan says:
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/
Msg Length: 7
E
Tag ID: 003C34E
Msg Length: 8
B
Tag ID: 003C34EB
Msg Length: 9
1
Tag ID: 003C34EB1
Msg Length: 10
5
Tag ID: 003C34EB15
Msg Length: 11
F
Tag ID: 003C34EB15F
Msg Length: 12
6
Tag ID: 003C34EB15F6
Msg Length: 13
Tag ID: 003C34EB15F6
Msg Length: 14
Tag ID: 003C34EB15F6
Msg Length: 15
0
Tag ID: 003C34EB15F60
Msg Length: 16
0
Tag ID: 003C34EB15F600
Msg Length: 17
3
Tag ID: 003C34EB15F6003
Msg Length: 18
C
Tag ID: 003C34EB15F6003C
Msg Length: 19
3
Tag ID: 003C34EB15F6003C3
Msg Length: 20
4
Tag ID: 003C34EB15F6003C34
Msg Length: 21
E
Tag ID: 003C34EB15F6003C34E
It goes on, and on but you get the picture.
With some strategically placed delays I found a (sloppy, I'm a newb, so whatever works right?) code that works for me.
Sometimes it double reads, but that's not so bad. Still mostly taken from your code;
#include <SoftwareSerial.h>
SoftwareSerial RFID(10, 11);
String tag;
void setup()
{
//pinMode(8, OUTPUT);
//pinMode(9, OUTPUT);
//digitalWrite(8, LOW);
//digitalWrite(9, HIGH);
Serial.begin(9600);
Serial.println("Serial Ready");
RFID.begin(9600);
Serial.println("125khz RFID Ready");
Serial.println("Waiting for a Tag...");
}
char c;
void loop(){
while(RFID.available()>0){
c=RFID.read();
tag += c;
}
tag=tag.substring(1,13);
while(tag.length()>0){
Serial.println("Tag Detected"); Serial.print("ID: "); Serial.println(tag);
tag="";
delay(2000);
Serial.println("Waiting for a Tag...");
tag="";
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/
}
delay(1000);
tag="";
}
Works fine for my needs. Sorry I didn't update the comment after I found a solution, I posted and then saw it was over 2 years and though "Oh
Crap".
Thanks again for getting back to me and for the help and inspiration!
Take care, Bren
aaafred says:
Hi Otavio,
I was wondering, you didn't build in an option to deactivate a 'tag' when the tag has been compromised. So when the 'tag'is lost there's no way do deactivate
it.
Maybe it's an option to make a 'deactivate all tags' option with a third 'card'?
otaviousp says:
aaafred says:
otaviousp says:
A sent you the code by private message but I did not test it.
If it does not work tell me.
aaafred says:
jacyquint says:
otaviousp says:
zat_90s says:
cmalivoire says:
otaviousp says:
Hey,
Can you send me pics of your circuit and your code?
I did not try this conde with UNO. With any one here make it works with this arduino please help us.
Cya
KSidiya says:
I have the same problem did you manage to solve it??
I thought it was the connection then the tags but apparently everything is fine. please help ASAP :'(
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/
hiteshreddy says:
dizonjoemer28 says:
any source code for vb 6.0 that has a same function with the code that you've given before?
otaviousp says:
saiganesh_panchu says:
i even changed the code and replaced your tag details with mine ..but still showing as access denied
otaviousp says:
Can you send me a video showing what are you doing and the messages that appear on the screen?
saiganesh_panchu says:
otaviousp says:
On my example you gonna need 2 cards. 1 card to authorize other cards and another card to delete the authorized cards.
For example:
On the code replace ADD_TAG_CODE "210014DFE309" to ADD_TAG_CODE "6B0037E8398D"
and replace DEL_TAG_CODE "210014E2BD6A" to DEL_TAG_CODE "6B0037E158E5"
Recompile and restart your Arduino.
Now, Take the first card number 6B0037E8398D and approach to the sensor and take it away
Then take the third card number 0800692B5D17 and approach to the sensor. A message should appear telling you that for this card authorization has
been granted,
And Now you can use it to have access.
Sorry for my bad english, hope that esxplanation can help you. Any problem please ask.
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/
mfinco says:
grocha3 says:
otaviousp says:
Hey,
Can you send me pics of your circuit and your code?
I did not try this conde with UNO. With any one here make it works with this arduino please help us.
Cya
balljoe says:
I just want to say my experience on my testing. The sketch (RFID_arduino_version_1.0.1.txt),
Tx from RFID board goes to Digital PIN 5 on Arduino Board, not PIN 2.
But the old sketch is point at PIN 2, so I think that why some people said that's not work.
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/