🚀 AI-Based Smart ATM Security System
ESP32 + Face Recognition + IoT + n8n Automation + Telegram Alerts
📌 Project Overview
This system uses ESP32-CAM with AI-based face recognition to secure ATM access. It integrates IoT cloud platforms, Telegram alerts, Google Sheets logging, and n8n automation workflows.
🧰 Components List
- ESP32-CAM module
- FTDI Programmer
- PIR Motion Sensor
- Buzzer
- Relay Module
- Power Supply
🔌 Circuit Connections
PIR Sensor → GPIO 13
Buzzer → GPIO 12
Relay → GPIO 14
FTDI TX → U0R
FTDI RX → U0T
VCC → 5V
GND → GND
🔄 System Flow
Motion Detected → Capture Face → AI Verification
↓
Authorized → Grant Access
Unauthorized → Trigger Alarm + Send Alerts
↓
Log to Google Sheets + ThingSpeak
↓
n8n Automation → Telegram Notification
💻 ESP32 Sample Code
#include "esp_camera.h" #includeconst char* ssid = "YOUR_WIFI"; const char* password = "YOUR_PASS"; void setup() { Serial.begin(115200); WiFi.begin(ssid, password); } void loop() { Serial.println("Monitoring ATM..."); delay(2000); }
⚙️ n8n Automation Flow
Webhook Trigger → Telegram Alert → Google Sheets → ThingSpeak Update
📲 Telegram Bot Setup
Create Bot via BotFather: /newbot API Format: https://api.telegram.org/bot/sendMessage
☁️ ThingSpeak Setup
https://api.thingspeak.com/update?api_key=API_KEY&field1=1
🧠 AI Power Prediction
if motion_events > 50:
power = "HIGH"
elif motion_events > 20:
power = "MEDIUM"
else:
power = "LOW"
🚀 Future Enhancements
- DeepFace AI recognition
- Anti-spoofing detection
- Mobile app dashboard
- Blockchain security logs

No comments:
Post a Comment