RFID-RC522 With Arduino

by sophia_yang in Circuits > Arduino

6179 Views, 1 Favorites, 0 Comments

RFID-RC522 With Arduino

Using RFID-RC522 and a card to log in your account!
截圖 2020-05-20 下午7.53.16.png

Do you ever forget your password?

RFID-RC522 can help you to solve this problem!

By using RFID-RC522, can help you to log in your account using a card. Isn't that awesome?

This project will teach you how to read the card UID and use that card to log in to your account.

For this project, there are 4 main steps:

1. Setting up

2. Upload Code#1 - for this step, you will find out the UID for your Mifare cards.

3. Upload Code#1 again - as you find out the UID of the Mifare cards, copy and paste into your Code#1 and enter the account password you want.

4. Decorate your project

*Don't be afraid when you are writing the code. In each line, I will explain what you should do or what is this writing about.

Supplies

Prepare All the Materials You Need!

arduino-leonardo-w-headars-1038915-01.jpg
0J10450.1200.jpg
b30d084826a75ef9734eef59b3abce85.jpg
61iKClEm0tL._AC_SL1400_.jpg
1200px-A_few_Jumper_Wires.jpg

Please reference the "Supplies" section above.

Setting Up

circuit_bb_ebvHRpS8RO.png
截圖 2020-05-21 上午12.13.21.png
截圖 2020-05-20 下午7.53.30.png
截圖 2020-05-20 下午7.53.48.png

You need to have 7 solid-core hookup wire to connect RFID-RC522 to Arduino (I use Arduino Leonardo, but you can choose others).

1. SDA - connect to Pin 10

2. SCK - ICSP-3 (ICSP is on the right side of the board)

3. MOSI - ICSP-4

4. MISO - ICSP-1

5. IQR - we don't need for this project

6. GND - GND

7. RST - Reset

8. Vcc - 3.3v

*If you are not using Arduino Leonardo, please check the second picture to connect in the right place.

Download Library

Download MFRC522 Library

Please watch the video above and download the library.

Upload Your Code

[Code] https://create.arduino.cc/editor/sophiay0622/de89c...

Once you upload your code, open Serial Monitor which is on the upper right corner of your code.

Later, put your card close to the RFID-RC522, it will show the UID of your card.

Finally, copy the UID and paste on to your code (I will mark the place).

Upload the Code Again!

After pasting the UID of the cards on the code, you can start thinking which account password you are going to use. In this project, I use the password of my computer and Line (so I have 2 Mifare cards). Once you figure out, you can fill on to the code (I will also mark the place you should fill). When you finish, you can upload the same code (the code that has your passwords).

Decoration!

Using RFID-RC522 and a card to log in your account (with decoration)!

After finishing all the steps, you can try to decorate your project!

I prefer to use a paper board when you do this.