You are on page 1of 16

USING RFID

(RADIO-FREQUENCY
IDENTIFICATION)
OBJECTIVE:
to have a mini security
system that will notify
the user which card or
tag is worthy to have
access
USING RFID
(RADIO-FREQUENCY IDENTIFICATION)

Radio-Frequency Identification (RFID)


uses electromagnetic fields to
automatically identify and track tags
attached to objects. These tags
contain electronically stored
information. Different tags are
usually attached to objects and when
we place that object in front of the
reader, the reader reads the tags.
MATERIALS

ARDUINO UNO BOARD MALE TO MALE BREADBOARD RFID MODULE


AND CABLE DUPONT WIRES

LED
SCHEMATIC DIAGRAM
In this activity, I selected to
have a Green LED to indicate an
“Access Granted” for a correct
card scanned and a Red LED for an
“Access Denies”.
PROCEDURES:
• Using a Male to Male Dupont wire, connect the “SDA“
pin of the RFID Reader and “pin10” of the Arduino.

• Using a Male to Male Dupont wire, connect the “SCK“


pin of the RFID Reader and “pin13” of the Arduino.

• Using a Male to Male Dupont wire, connect the “MOSI“


pin of the RFID Reader and “pin11” of the Arduino.

• Using a Male to Male Dupont wire, connect the “MISO“


pin of the RFID Reader and “pin12” of the Arduino.

• Using a Male to Male Dupont wire, connect the “GND“


pin of the RFID Reader and “GND” of the Arduino.

• Using a Male to Male Dupont wire, connect the “RST“


pin of the RFID Reader and “pin8” of the Arduino.
PROCEDURES:
• Using a Male to Male Dupont wire, connect the “3.3V“
pin of the RFID Reader and “3.3V” of the Arduino.

• Using a Male to Male Dupont wire, connect the “+“ or


the longer leg of the green LED and “pin4” of the
Arduino.

• Using a Male to Male Dupont wire, connect the resistor


which in series with the “-“or the shorter leg of the
green LED and “GND” of the Arduino.

• Using a Male to Male Dupont wire, connect the “+“or


the longer leg of the red LED and “pin5” of the
Arduino.

• Using a Male to Male Dupont wire, connect the resistor


which in series with the ““or the shorter leg of the
red LED and “GND” of the Arduino.
PROCEDURES:
You may also follow this below for your connections between the reader and
Arduino.:

Now that you are ready with your


connections, copy this sketch into
your Arduino IDE.

But first you should download the


MFRC522 library. In order to do that,
click on Sketch>Include
Library>Manage Libraries> Search for
“MFRC522” and click install.
CODING:
CODING:
CODING:
CODING:
Now that you are done copying the program, verify and upload it to your Arduino
Uno Board. To fully enjoy this activity, we first need to identify the “tap card
key” of your available card or keychain. In order to do this, open the Serial
Monitor of your Arduino IDE (located at the upper right corner, looks like a
magnifying glass) and tap your own card.

Once you have tapped your card, you must be seeing an output like this but with a
different “Tap card key”:
CODING:
Don’t worry if it says “Access Denied” for now, because as of the moment, my own
tap cad key is copied in your code. Now to correct this, copy the number and
letter combination after the label “Tap card key” and replace the number and
letter combination of your code in this part:

after the label “Tap card key” and replace the number and letter combination of
your code in this part:
CODING:
Replace that “D1:7E:2B:2D” with your own tap card key but don’t forget the
quotation marks. Now that you have replaced my code, you should now be able to
see an output like this:
CODING:
Of course, you will still be having a different card key. But now you should be
able to read that “Authorized Access” and a blue LED should be notifying you that
you have tapped the right card. Now try, tapping a wrong card, to see if the red
LED will notify you that you have tapped the wrong card.
Prepared by:
KRIS CRISTHOPHER C. DELA CRUZ
kriscristhopher.delacruz@deped.gov.ph

You might also like