กลับไปหน้ารวมไฟล์
pseudo-two-factor-authentication-using-hc-05-rfid-relay-dc3dda-en.md

So, about a year ago, I have posted a project called "MFRC522 RFID + Relay Module To Turn My PC On & Off. Using RFID Door Lock Code." It was my second Arduino project. On that one, as the title says, I used an MFRC522 RFID Module and a Relay Module as a switch to turn my desktop computer ON or OFF.

And almost a year later, this project was born out of curiosity. On this one, we will use a couple of things. An Arduino UNO board, an MFRC522 RFID Module, an HC-05 Bluetooth Module, and a 5V 10A Relay Module.

I also built a custom app just for this one using MIT App Inventor. Download it or make your own if you want.

The main purpose of this project is to add another level of security to the RFID module by using the Bluetooth module and a transistor as a switch for the RFID module.

So that, the user can decide when to activate or deactivate the RFID reader's RFID reading function.

By deactivating the module, the RFID's RFID reading function will also be deactivated and no one can be granted access, unless the person who has the "key" or password to the Bluetooth aka. switch chose to do so.

For example, if some baddies cloned your RFID card and tried to access or gain entry to somewhere where your RFID reader is deployed, they can't do anything because the modules' RFID reading capability is disabled.

In contrast, if the RFID module is just constantly active, and your RFID card has been duplicated, anyone can have access to anything that is protected by the RFID module.

Now, I'm not saying that this is the most secured setup, I mean, anything and anyone can be hacked these days.

But, if you're just going to use this at home or on an office, I think it would be enough.

******************************************************************************

Links

HC05-Heathen APK DL LINK

What is an APK?

Make Your Own App Using MIT App Inventor

HC-05 AT Commands List

What is an AT Command?

MFRC522 RFID Library by Miguel Balboa

How RFID Works

HC-05 Datasheet

HC-05 Datasheet Highlights

Voltage Dividers Definition

Logic Levels

******************************************************************************

Social Media Links To Follow (I mean, if you want to):

Facebook

Twitter

Instagram

******************************************************************************

This tutorial also contains some projects for beginners.

Things used.

HC-05Heathen App Homescreen

About Screen

Video Is Up!

https://youtube.com/@HeathenHacks

EXPANDED TECHNICAL DETAILS

Multi-Layered Access Security

This project replicates a professional 2FA (Two-Factor Authentication) system for physical security, requiring both a physical tag AND a digital confirmation.

  • Factor 1: RFID Proximity: The user must first scan an authorized 13.56MHz RFID tag using an RC522 reader.
  • Factor 2: Bluetooth Confirmation: After a successful RFID scan, the Arduino sends a request to the user's smartphone via an HC-05 Bluetooth module. The user must then press "Confirm" on a custom Android app (built with MIT App Inventor 2).

Fail-Safe Design

  • Double-Lock Logic: The Relay for the door lock only activates when BOTH factors match within a 10-second window. If either fails, the system resets and logs an "Access Denied" event to the local console.

ข้อมูล Frontmatter ดั้งเดิม

title: "Pseudo Two-Factor Authentication Using HC-05, RFID + Relay!"
description: "Add another level of security to your RFID reader (aka Arduino Project #2 Revamp) + custom app."
author: "Heathen_Hacks-v2"
category: "Home & Automation"
tags:
  - "security"
views: 8546
likes: 5
price: 1499
difficulty: "Intermediate"
components:
  - "1x Relay (generic)"
  - "1x Arduino UNO"
  - "1x Resistor 221 ohm"
  - "1x Resistor 2.21k ohm"
  - "1x Breadboard (generic)"
  - "1x Male/Female Jumper Wires"
  - "1x Jumper wires (generic)"
  - "1x General Purpose Transistor NPN"
  - "1x Resistor 10k ohm"
  - "1x Resistor 1k ohm"
  - "1x RFID Module (Generic)"
  - "1x HC-05 Bluetooth Module"
tools: []
apps:
  - "1x Arduino IDE"
  - "1x MIT App Inventor 2"
downloadableFiles:
  - "https://projects.arduinocontent.cc/68c99b48-728e-4bbb-a8b4-4aa6502288a9.ino"
  - "https://projects.arduinocontent.cc/d698b45e-fcb4-46a1-ad46-a25f7445dc5f.ino"
  - "https://projects.arduinocontent.cc/288a61f7-6fb0-4221-94dc-a3eb1a24eca4.ino"
  - "https://projects.arduinocontent.cc/288a61f7-6fb0-4221-94dc-a3eb1a24eca4.ino"
  - "https://projects.arduinocontent.cc/68c99b48-728e-4bbb-a8b4-4aa6502288a9.ino"
  - "https://projects.arduinocontent.cc/d698b45e-fcb4-46a1-ad46-a25f7445dc5f.ino"
documentationLinks: []
passwordHash: "2850df906e94949e51cf2f86aa8c99a64c18be1d2486c3b10a113cd9fb3a08a0"
encryptedPayload: "U2FsdGVkX1/qz4hHBXjiJG0EOCHGxIb26y7+S5xoDcddiOak/8WG+hbAgDJGARaQA1yahQFaQktowbQO6GDQIqmBbDxPe4cOSgcEo2Gp4pjs2OfVrXx4wEazmnDYcZBq"
seoDescription: "Secure your RFID reader with Pseudo Two-Factor Authentication using HC-05, RFID, Relay, and a custom app for Arduino projects."
videoLinks:
  - "https://www.youtube.com/embed/q9GwpWxlAIo"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/pseudo-two-factor-authentication-using-hc-05-rfid-relay-dc3dda_cover.jpg"
lang: "en"