Skip to content

A modern IoT-enabled smart canteen system using NFC (ESP32 + PN532) and a web app (PHP, MySQL) to automate payments, menu scheduling, and real-time sales tracking.

Notifications You must be signed in to change notification settings

prajjwallive/scps

Repository files navigation

🥗 Smart Canteen Payment System

License Platform Tech Stack

🚀 Overview

The Smart Canteen Payment System is a modern, IoT-enabled platform that automates traditional canteen operations.
It integrates a web application with NFC-based payment using ESP32 and PN532 modules, offering a seamless, cashless, and transparent experience for students, staff, and administrators.

Designed to replace manual ordering and billing systems, it ensures:

  • Faster transactions
  • Automated billing & receipt generation
  • Email notifications for every transaction
  • Time-based menu scheduling
  • Real-time sales tracking & reporting

🎯 Key Features of SCPS

NFC-Enabled Payments
Students pay using NFC cards linked to prepaid balances, removing the need for cash handling.

Web-Based Dashboard
Separate interfaces for students, canteen staff, and administrators to view menus, track orders, and manage sales.

Time-Based Dynamic Menus
Menus automatically update based on the time of day (breakfast, lunch, dinner).

Automated Emails
Parents & students receive transaction emails, promoting transparency.

Sales Analytics & Reports
Admins can generate daily, weekly, and monthly sales summaries.

Semi-Automated Printing
Supports on-premise receipt printing, integrated with transactions.


🌐 Technology Stack

  • Frontend: HTML, CSS, JavaScript
  • Backend: PHP, MySQL
  • IoT Hardware: ESP32-WROOM DevKit V1, PN532 NFC Reader
  • Communication: SPI between ESP32 and PN532
  • Notifications: SMTP for sending automated emails

🚀 Future Enhancements

🔹 Cloud Deployment:
Migrate backend to cloud servers for multi-campus support and higher scalability.

🔹 Biometric Authentication:
Use fingerprint or facial recognition for secure payment confirmations.

🔹 AI & ML Integration:
Predict demand, optimize menu planning, and monitor health-related consumption patterns.

🔹 Expand NFC Use:
Integrate the same card for library checkouts, transportation, and attendance systems.


📸 Screenshots

Dashboard Connection

Time-Menu Transaction

Receipt Hardware

Billing Printing


⚙️ Getting Started

🚀 Prerequisites

  • ESP32-WROOM DevKit V1
  • PN532 NFC Module
  • XAMPP / LAMP stack for PHP + MySQL
  • SMTP credentials for email

🔥 Quick Setup

# Clone the repository
git clone https://github.com/prajjwallive/scps
cd smart-canteen-system

# Set up database
# Import `canteen.sql` into your MySQL server

# Configure backend
cp config.sample.php config.php
# Edit database credentials and SMTP settings
 Flash ESP32
Upload provided Arduino sketches (located in /esp32-nfc-code/) using Arduino IDE.

📝 License
This project is licensed under the MIT License.

🤝 Contributing
Pull requests are welcome! If you find any issue or have feature suggestions, please open an issue or submit a PR.

✨ Author
👤 Prajjwal Adhikari, Aman Paudel, Raj Gurung, Rozal Dahal
🚀 Developed as part of my final year engineering capstone project.

About

A modern IoT-enabled smart canteen system using NFC (ESP32 + PN532) and a web app (PHP, MySQL) to automate payments, menu scheduling, and real-time sales tracking.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published