Skip to content

abdullahaziz12/Smart-Library-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

📚 RFID-Based Library Management System (C++)

🚀 Overview

This project is a Library Management System developed in C++ with RFID (Arduino integration). It allows efficient management of books and student records using RFID technology.

The system supports:

  • Book issuing and returning
  • Student record management
  • Fine calculation system
  • Admin and employee role handling

⚙️ Features

👨‍💼 Admin Panel

  • Add new books using RFID
  • Add student UID (RFID)
  • Delete books and student records
  • View book allotment details
  • View fine records
  • Create admin and employee accounts

👨‍🔧 Employee Panel

  • Issue books via RFID scanning
  • Return books with automatic fine calculation
  • Accept and update fine payments

🧠 Concepts Used

  • Object-Oriented Programming (OOP)
  • File Handling (Persistent Storage)
  • String Parsing (stringstream)
  • Serial Communication (Arduino RFID)
  • Time Handling (Fine Calculation)
  • Windows API (COM Port Communication)

🔌 Hardware Requirements

  • Arduino Board
  • RFID Module (e.g., RC522)
  • RFID Cards/Tags

💻 Software Requirements

  • C++ Compiler (CodeBlocks, Dev C++, Visual Studio)
  • Windows OS (Required for windows.h)
  • Arduino IDE

📂 File Structure

book.txt              → Stores book records
uid.txt               → Stores student data
fine.txt              → Stores fine records
*_admin.txt           → Admin credentials
*_employee.txt        → Employee credentials
<UID>uid.txt          → Individual user records
<BOOKID>.txt          → Book issue tracking

🔄 System Workflow

📌 Book Issue

  1. Scan student RFID
  2. Validate UID
  3. Scan book RFID
  4. Check availability
  5. Assign book and update records

📌 Book Return

  1. Scan student RFID
  2. Scan book RFID
  3. Calculate number of days
  4. Apply fine if needed
  5. Update records

💰 Fine Policy

  • First 3 days → No fine
  • After 3 days → Rs. 50 per day

🛠️ Setup Instructions

  1. Connect Arduino with RFID module
  2. Upload RFID reading code to Arduino
  3. Connect Arduino to PC
  4. Run the C++ program
  5. Enter COM port (e.g., COM3)

⚠️ Limitations

  • Works only on Windows (windows.h)
  • Uses file-based storage (no database)
  • No password encryption

🔥 Future Improvements

  • Add GUI (Qt / Web / C#)
  • Replace file system with SQL database
  • Implement password hashing
  • Add real-time dashboard
  • Cloud integration

👤 Author

Abdullah Aziz

About

An RFID-based Library Management System in C++ integrated with Arduino — automates book issuing/returning via RFID scans, tracks student records, calculates fines, and supports Admin/Employee role-based access with persistent file storage.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages