RFID Smart Door Lock With OLED

by Aced Inventor in Circuits > Arduino

2054 Views, 12 Favorites, 0 Comments

RFID Smart Door Lock With OLED

RFID Smart Door Lock with OLED | Arduino

In this project, we will be building an RFID Smart Door Lock with an OLED screen. After you plug your Arduino into a power source, the OLED screen will display a message asking you to scan a tag to set it as a master tag. Once you have scanned the tag, it will be saved in the Arduino memory as a master user. You can add up to 8 RFID tags, and you can also remove them. There are 4 buttons used in this project. 2 of the buttons are for toggling the settings on the OLED screen, and the other two buttons are for unlocking and locking the door, which would be placed inside the house. You can not unlock the door unless you have an RFID tag that has been added to the system.

This project can still be improved.

Supplies

Commponents.png

RFID Wiring

RFID Wiring.png

Connect the RFID as following:

Arduino >> RFID

3.3v >> 3.3v

D9 >> RST

GND >> GND

D12 >> MISO

D11 >> MOSI

D13 >> SCK

D10 >> SDA

OLED Wiring

OLED Wiring.png

Connect the OLED as following:

Arduino >> OLED

GND >> GND

5V >> VCC

A4 >> SDA

A5 >> SCL

Servo Wiring

Servo Wiring.png

Connect the Servo as following:

Arduino >> Servo

GND >> GND

5V >> VCC

D2 >>Signal

Button Wiring

Button Wiring.png

Connect the Buttons as following:

First, pin from all the Buttons >> GND

Second pin from all the Buttons >> A0, A1, D3, D4

Door Open >> A0

Door Close >> A1

Toggle >> D3

Select >> D4

Uploading the Program

image_2021-04-22_153957.png

Open the program on Arduino IDE. Once it is open, compile the sketch to see if it is clear of error and upload it. Make sure you have all the libraries download before you upload the program. After uploading the program, the OLED screen should turn on and display "RFID Smart Door Lock." After that, the screen should display a message asking for you to scan a tag to set it as a master user. You will also have to download the .zip OLED_I2c library.

For more information about this, please visit my Patreon:
https://www.patreon.com/acedinventor

Testing the Project

Testing the Project.png

To test if the project is working properly, plug the Arduino Nano into a power source. The OLED screen should turn on and display "RFID Smart Door Lock" After that, the screen will display a message asking you to scan a tag to set it as a master tag. Once you have scanned your tag it will be saved into the Arduinos memory and the OLED display will turn off. You can not use the master tag to unlock the door, you can only use it to add or remove other RFID tags. If you scan the master tag again the OLED screen will turn on and you will have two options. You can either add a tag or remove up to 8 RFID tags. You can use the buttons to toggle the settings. You can also use the buttons to lock or unlock the door. To remove an RFID tag you do not need to scan the tag. You can scan the master tag and then in the setting choose, "Remove Tag" and then choose the ID you want to remove. The Arduino will automatically remove that ID.

If there is still something you don't understand, you can comment down below.