Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Pages: [1]   Go Down
Author Topic: RFID as light access device  (Read 534 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I'm new here and to using arduino, this is my first time to use it. I would like to ask about a project I'm planning. I'm planning to use an rfid reader as an access device for turning on and off a light in the room. My question is that is it possible to input the rfid tag numbers in the arduino without requiring an external memory like the PC. I'm planning to use multiple users and provide exclusion from one room to another (users can only use a particular room). If someone can provide links(tutorials) too please do as it would be very helpful. I hope someone can help, thanks a lot.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 671
Posts: 51669
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
My question is that is it possible to input the rfid tag numbers in the arduino without requiring an external memory like the PC.
Yes, if the number of tags is small.

Code:
char tag1[] = "ValidTagNumberHere";
char tag2[] = "AnotherValidTagNumberHere";

Code:
if(strcmp(thisTag, tag1) == 0)
{
   // tag1 was scanned
}
else if(strcmp(thisTag, tag2) == 0)
{
   // tag2 was scanned
}

Providing a tutorial as to how to use a specific RFID reader is not possible without knowing which RFID reader you have. Besides, what's wrong with you googling?
Logged

Pages: [1]   Go Up
Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Jump to: