Secure-RFID
In this repo, I implement a security system with RFID cards and python.
in txt folder, the python "backend" has a tags.txt
file that has all the Card IDs that are allowed into the system.
in db folder, I want to integrate mysql
instead of a text file.
Structure
src
├── arduino
│ └── index.ino
└── python
├── audio # --- uses audio to indicate access granted or denied
│ ├── denied.mp3
│ └── granted.mp3
|── txt # will use txt file as database
│ ├── index.py
│ └── tags.txt
├── db # --- uses mysql as database
│ ├── index.py
How to run
Arduino
- Open
index.ino
in Arduino IDE - Upload to Arduino
Python
- Open terminal
cd
intopython
folder- Run
pip install -r requirements.txt
- Open
index.py
and change theport
variable to the port that the Arduino is connected to - Run
python index.py
How it works
- Arduino reads the RFID card
- Arduino sends the card ID to the python script
- Python script checks if the card ID is in the database
- If the card ID is in the database, the python script sends a signal to the Arduino and the user is granted access
- If the card ID is not in the database, the python script sends a signal to the Arduino and the buser is denied access
- Sound is played on the Arduino to indicate if the access is granted or denied
TODO
- Add
sqlite
database - Add
mongodb
database - Add
qdrant
vector database
License
Author
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.