SVSEmbedded will do new innovative thoughts. Any latest idea will comes we will take that idea & implement that idea in a few days. We always encourage the students to take good ideas/projects. SVSEmbedded providing latest innovative electronics projects to B.E/B.Tech/M.E/M.Tech students. We developed thousands of projects for engineering student to develop their skills in electrical and electronics
Thursday, 28 May 2026
SmartSecure Vault : Hybrid Authentication and Surveillance Locker System
SmartSecure Vault: Hybrid Authentication & Surveillance Locker System
AI-Powered ESP32 + Agentic IoT + n8n Automation + Telegram Voice Alerts + Cloud Dashboard
SmartSecure Vault: Hybrid Authentication & Surveillance Locker System
AI-Powered ESP32 + Agentic IoT + n8n Automation + Telegram Voice Alerts + Cloud Dashboard
1. Project Overview
Project Title
SmartSecure Vault – Hybrid Authentication and Surveillance Locker System
Abstract
SmartSecure Vault is an advanced AI-powered smart locker system using an ESP32 integrated with:
Hybrid authentication
Intrusion surveillance
IoT cloud monitoring
AI-based analytics
Telegram voice alert notifications
Automated workflows using n8n
Cloud storage using Google Sheets
Real-time dashboard using ThingSpeak
The system provides:
RFID/PIN/Biometric authentication
Motion-based intrusion detection
AI power consumption prediction
Smart alerts with voice notifications
Remote monitoring dashboard
Automated incident logging
2. Key Features
Security Features
RFID authentication
PIN-based access
Face/Fingerprint support (optional)
Servo-controlled locker
Buzzer alarm system
Intrusion detection
Surveillance Features
PIR motion sensor
ESP32-CAM live image capture
Telegram image alerts
Voice alert generation
IoT & Cloud Features
Cloud dashboard monitoring
Google Sheets data logging
Real-time analytics
Remote notifications
AI & Automation Features
AI-based anomaly detection
Power consumption prediction
Smart automation using n8n workflows
Agentic IoT behavior
3. Components List
Component Quantity Purpose
ESP32 Dev Board 1 Main controller
ESP32-CAM 1 Surveillance camera
RFID RC522 Module 1 Card authentication
Servo Motor SG90 1 Locker lock mechanism
4x4 Keypad 1 PIN entry
PIR Motion Sensor 1 Intrusion detection
OLED/LCD Display 1 Status display
Buzzer 1 Alarm
Relay Module 1 External control
Fingerprint Sensor (optional) 1 Biometric access
LEDs 2 Status indication
Power Supply 5V 1 System power
Jumper Wires — Connections
Breadboard/PCB 1 Assembly
4. System Architecture
+----------------------+
| User Access |
| RFID / PIN / Finger |
+----------+-----------+
|
v
+----------------+
| ESP32 |
+-------+--------+
|
+--------------+--------------+
| |
v v
+-----------+ +-------------+
| Servo Lock| | ESP32-CAM |
+-----------+ +-------------+
|
v
Telegram Alerts
ESP32 → WiFi → n8n
|
+--------------------------+----------------------+
| | |
v v v
Google Sheets ThingSpeak Dashboard AI Agent
5. Circuit Schematic Diagram
ESP32 Pin Connections
Module ESP32 Pin
RC522 SDA GPIO 5
RC522 SCK GPIO 18
RC522 MOSI GPIO 23
RC522 MISO GPIO 19
RC522 RST GPIO 22
Servo Signal GPIO 13
PIR OUT GPIO 27
Buzzer GPIO 14
Relay IN GPIO 26
OLED SDA GPIO 21
OLED SCL GPIO 22
Keypad Rows GPIO 32–35
Keypad Columns GPIO 25,33,4,15
6. Working Principle
Authentication Flow
User scans RFID card or enters PIN.
ESP32 validates credentials.
If authenticated:
Servo unlocks locker.
Event logged to cloud.
If invalid:
Alarm activates.
Telegram alert sent.
Intrusion Detection
PIR sensor detects movement.
ESP32-CAM captures image.
n8n workflow triggers:
Telegram notification
Voice alert
Google Sheets logging
ThingSpeak update
7. Flowchart
START
|
v
Initialize ESP32
|
v
Connect to WiFi
|
v
Wait for Authentication
/ \
Valid Invalid
| |
v v
Unlock Locker Trigger Alarm
| |
v v
Log Data Send Alert
| |
+--------+---------+
|
v
Monitor Sensors
|
v
Intrusion?
/ \
Yes No
| |
v |
Capture Image|
| |
Send Telegram|
Alert & Log |
| |
+------+
|
END
8. ESP32 Source Code (Arduino IDE)
#include
#include
#include
const char* ssid = "YOUR_WIFI";
const char* password = "YOUR_PASSWORD";
Servo lockerServo;
#define PIR_PIN 27
#define BUZZER 14
String webhookURL = "YOUR_N8N_WEBHOOK";
void setup() {
Serial.begin(115200);
pinMode(PIR_PIN, INPUT);
pinMode(BUZZER, OUTPUT);
lockerServo.attach(13);
WiFi.begin(ssid, password);
while(WiFi.status() != WL_CONNECTED){
delay(500);
Serial.print(".");
}
Serial.println("WiFi Connected");
}
void sendAlert(String type){
if(WiFi.status()== WL_CONNECTED){
HTTPClient http;
http.begin(webhookURL);
http.addHeader("Content-Type", "application/json");
String payload = "{\"event\":\"" + type + "\"}";
int httpResponseCode = http.POST(payload);
Serial.println(httpResponseCode);
http.end();
}
}
void loop() {
int motion = digitalRead(PIR_PIN);
if(motion == HIGH){
digitalWrite(BUZZER, HIGH);
sendAlert("INTRUSION");
delay(5000);
digitalWrite(BUZZER, LOW);
}
delay(1000);
}
9. n8n Workflow Automation
Workflow Features
Receive ESP32 webhook
Analyze event
Send Telegram text
Convert text-to-speech
Send voice alert
Store logs in Google Sheets
Push data to ThingSpeak
n8n Workflow Steps
Nodes
Webhook Node
IF Condition Node
Telegram Node
HTTP Request Node (TTS API)
Google Sheets Node
ThingSpeak HTTP Node
AI Agent Node
Sample Workflow Logic
{
"event": "INTRUSION",
"timestamp": "2026-05-28",
"status": "ALERT"
}
10. n8n Workflow JSON (Basic)
{
"nodes": [
{
"name": "Webhook",
"type": "n8n-nodes-base.webhook"
},
{
"name": "Telegram",
"type": "n8n-nodes-base.telegram"
},
{
"name": "Google Sheets",
"type": "n8n-nodes-base.googleSheets"
}
]
}
11. Telegram Bot Setup
Step 1: Create Bot
Open Telegram and search:
Telegram
Use:
BotFather
Commands:
/start
/newbot
Save:
Bot Token
Chat ID
Step 2: Add Telegram Node in n8n
Use:
Bot token
Chat ID
Enable:
Send Message
Send Voice
Send Image
12. Google Sheets Integration
Create Sheet Columns
Timestamp Event Status User
n8n Google Sheets Setup
Connect Google account
Select spreadsheet
Use Append Row operation
Logged data:
Intrusion alerts
Access attempts
Power usage
AI predictions
13. ThingSpeak Cloud Dashboard Setup
Create Channels
Fields:
Temperature
Motion Status
Locker State
Power Usage
Security Score
ESP32 API Format
https://api.thingspeak.com/update?api_key=YOUR_KEY&field1=1
14. AI Power Consumption Prediction Logic
Objective
Predict abnormal power usage indicating:
Tampering
Forced entry
Hardware faults
AI Logic
Inputs
Servo activity
Camera runtime
Motion events
WiFi transmission count
Prediction Formula
P=VI
Estimated Consumption
E=P×t
Simple AI Rule Engine
if power_usage > threshold:
alert = "Abnormal Usage"
15. Voice Notification Automation
Process
ESP32 triggers webhook
n8n receives event
AI generates message
TTS converts text to voice
Telegram sends audio alert
Example Alert
Warning! Unauthorized access detected in SmartSecure Vault.
16. Security Enhancements
Recommended Improvements
AES encryption
MQTT secure communication
JWT authentication
Edge AI anomaly detection
Face recognition
Cloud backup
17. Future Enhancements
AI Features
Behavioral analytics
AI facial recognition
Voice authentication
Predictive maintenance
IoT Features
Mobile app
Remote unlock
GPS tracking
Battery backup monitoring
Cloud Features
AWS IoT integration
Firebase sync
Real-time analytics
18. Deployment Guide
Hardware Deployment
Use PCB instead of breadboard
Install backup battery
Use metal enclosure
Add cooling vents
Software Deployment
Host n8n on VPS/Raspberry Pi
Enable HTTPS
Secure APIs
Configure OTA updates
19. Applications
Bank lockers
Office cabinets
Smart homes
Industrial storage
Pharmacy vaults
Data center racks
20. Advantages
Low cost
Real-time monitoring
AI-powered automation
Cloud analytics
Remote security alerts
Scalable architecture
21. Conclusion
SmartSecure Vault combines:
Embedded systems
IoT automation
AI analytics
Cloud computing
Smart surveillance
to create a next-generation intelligent locker system capable of autonomous monitoring, security enforcement, and predictive analysis.
Useful Platforms
ESP32 Documentation
n8n Official Website
ThingSpeak IoT Cloud
Telegram Bot API
Google Sheets API
Subscribe to:
Post Comments (Atom)
SmartSecure Vault : Hybrid Authentication and Surveillance Locker System
SmartSecure Vault: Hybrid Authentication & Surveillance Locker System AI-Powered ESP32 + Agentic IoT + n8n Automation + Telegram Voice A...




No comments:
Post a Comment