https://github.com/bernoussama/arduino-rfid
arduino rfid access control system
https://github.com/bernoussama/arduino-rfid
arduino cpp iot
Last synced: 5 months ago
JSON representation
arduino rfid access control system
- Host: GitHub
- URL: https://github.com/bernoussama/arduino-rfid
- Owner: bernoussama
- License: mit
- Created: 2023-08-16T09:15:03.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-08-14T13:23:28.000Z (11 months ago)
- Last Synced: 2026-02-08T06:17:41.671Z (5 months ago)
- Topics: arduino, cpp, iot
- Language: C++
- Homepage:
- Size: 1000 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Arduino RFID Access Control System
A simple and effective RFID-based access control system built with Arduino.
## Features
- Reads RFID cards using an [MFRC522](https://www.electronicwings.com/nodemcu/mfrc522-rfid-reader-interfacing-with-nodemcu) reader
- Controls door lock/relay based on authorized cards
- Stores authorized RFID tags in code (or EEPROM)
- Serial output for logging access attempts
- Easy to modify and expand for your needs
## Hardware Requirements
- Arduino Nano (or compatible board)
- MFRC522 RFID Reader
- RFID Cards or Keyfobs
- Relay Module (for controlling a door lock)
- Jumper wires, breadboard, power supply
## Wiring
| MFRC522 Pin | Arduino Pin |
|-------------|-------------|
| SDA | D10 |
| SCK | D13 |
| MOSI | D11 |
| MISO | D12 |
| IRQ | Not used |
| GND | GND |
| RST | D9 |
| 3.3V | 3.3V |
Relay module should be connected to a digital output pin (e.g., D8).
## Software Setup
1. **Clone this repository:**
```sh
git clone https://github.com/bernoussama/arduino-rfid.git
```
2. **Install required libraries:**
- [MFRC522](https://github.com/miguelbalboa/rfid)
In Arduino IDE:
`Sketch` > `Include Library` > `Manage Libraries` > Search for `MFRC522` and install.
3. **Open the project in Arduino IDE and upload to your board.**
4. **Modify the list of authorized RFID tags in the code as needed.**
## Usage
- Power the system.
- Scan an RFID card/tag.
- If authorized, the relay activates (unlocking the door).
- Unauthorized cards trigger a rejection.
## Customization
- Change pins or add new functionality in the code (`.ino` file).
- Expand with LCD, buzzer, or WiFi for logging and notifications.
## Credits
- [MFRC522 by miguelbalboa](https://github.com/miguelbalboa/rfid)
- Inspired by open-source RFID access projects
## License
[MIT](LICENSE)