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
Wednesday, 27 May 2026
AI Smart Parking System with Empty Slot Detection and Mobile App
AI Smart Parking System with Empty Slot Detection and Mobile App
Agentic IoT using ESP32 + AI + n8n + Telegram Voice Alerts + Google Sheets + ThingSpeak
AI Smart Parking System with Empty Slot Detection and Mobile App
Agentic IoT using ESP32 + AI + n8n + Telegram Voice Alerts + Google Sheets + ThingSpeak
1. Project Overview
This project is an AI-powered Smart Parking Management System that detects empty parking slots using sensors connected to an ESP32. The system uploads parking data to the cloud, automates workflows using n8n, sends Telegram notifications with voice alerts, stores logs in Google Sheets, and visualizes data on ThingSpeak dashboards.
The system can:
Detect occupied/empty parking slots
Display available parking spaces on web/mobile dashboard
Send instant Telegram alerts
Generate AI-based parking predictions
Store historical parking data
Trigger voice notifications
Predict power usage and parking trends
Work as an Agentic IoT automation system
2. System Architecture
Ultrasonic/IR Sensors
↓
ESP32
↓ WiFi
ThingSpeak Cloud
↓
n8n
↙ ↓ ↘
Telegram AI Logic Google Sheets
Alerts Analysis Data Logging
3. Components List
Component Quantity Purpose
ESP32 Dev Board 1 Main controller
IR Sensors / Ultrasonic Sensors 4 Vehicle detection
OLED Display (Optional) 1 Display slot status
Buzzer 1 Local alerts
LEDs 4 Slot indication
Breadboard 1 Connections
Jumper Wires Several Wiring
5V Power Supply 1 Power source
WiFi Router 1 Internet connectivity
4. Parking Slot Logic
Sensor State Slot Status
HIGH Empty
LOW Occupied
5. Circuit Schematic Diagram
IR Sensor 1 → GPIO 13
IR Sensor 2 → GPIO 12
IR Sensor 3 → GPIO 14
IR Sensor 4 → GPIO 27
LED1 → GPIO 18
LED2 → GPIO 19
LED3 → GPIO 21
LED4 → GPIO 22
Buzzer → GPIO 23
VCC → 5V
GND → GND
6. Flowchart
START
↓
Initialize ESP32
↓
Connect WiFi
↓
Read Sensors
↓
Check Empty Slots
↓
Upload Data to ThingSpeak
↓
Trigger n8n Webhook
↓
Send Telegram Alert
↓
Store Data in Google Sheets
↓
Run AI Prediction
↓
Repeat
7. ESP32 Source Code (Arduino IDE)
#include
#include
const char* ssid = "YOUR_WIFI_NAME";
const char* password = "YOUR_WIFI_PASSWORD";
String apiKey = "THINGSPEAK_API_KEY";
#define S1 13
#define S2 12
#define S3 14
#define S4 27
void setup() {
Serial.begin(115200);
pinMode(S1, INPUT);
pinMode(S2, INPUT);
pinMode(S3, INPUT);
pinMode(S4, INPUT);
WiFi.begin(ssid, password);
while(WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting...");
}
Serial.println("WiFi Connected");
}
void loop() {
int slot1 = digitalRead(S1);
int slot2 = digitalRead(S2);
int slot3 = digitalRead(S3);
int slot4 = digitalRead(S4);
int emptySlots = 0;
if(slot1 == HIGH) emptySlots++;
if(slot2 == HIGH) emptySlots++;
if(slot3 == HIGH) emptySlots++;
if(slot4 == HIGH) emptySlots++;
if(WiFi.status() == WL_CONNECTED) {
HTTPClient http;
String url = "http://api.thingspeak.com/update?api_key=" + apiKey +
"&field1=" + String(slot1) +
"&field2=" + String(slot2) +
"&field3=" + String(slot3) +
"&field4=" + String(slot4) +
"&field5=" + String(emptySlots);
http.begin(url);
int httpCode = http.GET();
Serial.println(httpCode);
http.end();
}
delay(15000);
}
8. ThingSpeak Cloud Dashboard Setup
Create Channel
Create account in
ThingSpeak
Create new channel
Add fields:
Field Description
Field1 Slot1
Field2 Slot2
Field3 Slot3
Field4 Slot4
Field5 Empty Slots
Copy Write API Key
Paste into ESP32 code
9. n8n Automation Workflow
Features
Receives data from ThingSpeak
Sends Telegram notifications
Converts alerts into voice messages
Updates Google Sheets
Performs AI prediction logic
Install n8n
n8n Official Website
10. n8n Workflow JSON
{
"nodes": [
{
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"parameters": {
"path": "parking-data",
"httpMethod": "POST"
}
},
{
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"parameters": {
"text": "Parking Slot Updated"
}
},
{
"name": "Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"parameters": {
"operation": "append"
}
}
]
}
11. Telegram Bot Setup
Create Bot
Open Telegram
Search for
Telegram
Search:
@BotFather
Create bot using:
/newbot
Copy BOT TOKEN
Get Chat ID
Send message to your bot then open:
https://api.telegram.org/bot/getUpdates
12. Telegram Voice Notification Automation
Workflow
ESP32 → n8n → Text-to-Speech → Telegram Voice Message
Example Voice Alert
"Attention! Only two parking slots are available."
TTS Services
You can use:
Google Text-to-Speech
ElevenLabs
13. Google Sheets Integration
Setup Steps
Create sheet in
Google Sheets
Columns:
| Timestamp | Slot1 | Slot2 | Slot3 | Slot4 | Empty Slots |
Connect Google account in n8n
Use Append Row operation
14. AI Power Consumption Prediction Logic
The AI logic predicts:
Peak parking usage
Low-usage hours
ESP32 power consumption trends
Expected occupancy patterns
Prediction Formula
Using moving average:
P
avg
=
n
P
1
+P
2
+P
3
+⋯+P
n
Where:
P
avg
= average power
P
n
= sensor power readings
Occupancy Prediction
O
t
=
n
∑
i=1
n
S
i
Where:
O
t
= predicted occupancy
S
i
= slot occupancy values
15. AI Agent Features
The Agentic IoT system can:
Analyze parking availability
Automatically notify users
Predict congestion
Trigger maintenance alerts
Generate smart reports
Recommend optimal parking usage
16. Web Dashboard Features
Dashboard Displays
Total parking slots
Empty slots
Occupied slots
Real-time sensor status
Historical graphs
AI predictions
17. Mobile App Features
You can create mobile app using:
MIT App Inventor
Flutter
Blynk IoT Platform
18. Advanced Enhancements
Additions
AI Camera Detection
Use:
ESP32-CAM
YOLO Object Detection
License Plate Recognition
Use:
OCR
OpenCV
Cloud Database
Use:
Firebase
MongoDB
GPS Parking Navigation
Guide drivers to empty slots
QR Ticket System
Automatic billing system
19. Deployment Guide
Hardware Deployment
Install sensors in parking area
Use waterproof casing
Ensure stable WiFi coverage
Software Deployment
Flash ESP32 code
Configure ThingSpeak API
Deploy n8n workflow
Connect Telegram bot
Test notifications
20. Testing Procedure
Test Expected Result
Vehicle enters Slot occupied
Vehicle exits Slot empty
Empty slot count Updates live
Telegram alert Received instantly
Google Sheet Data appended
ThingSpeak graph Updated
21. Real-Time Notification Examples
Telegram Text Alert
🚗 Parking Update:
Available Slots: 2
Occupied Slots: 2
Voice Alert
"Parking area almost full. Only one slot remaining."
22. Advantages of This Project
Smart city ready
Low-cost implementation
Real-time monitoring
AI-driven automation
Scalable architecture
Cloud enabled
Mobile accessible
23. Applications
Shopping malls
Smart cities
Colleges
Hospitals
Airports
Offices
Residential parking
24. Future Scope
Edge AI deployment
Solar-powered ESP32
Machine learning analytics
Multi-floor parking management
Face recognition entry
Autonomous vehicle integration
25. Conclusion
This AI Smart Parking System combines:
ESP32 IoT hardware
AI analytics
Cloud dashboards
n8n automation
Telegram alerts
Voice notifications
Google Sheets logging
to create a complete smart parking ecosystem suitable for modern smart-city applications.
Subscribe to:
Post Comments (Atom)
AI Smart Traffic Signal Control Using Real-Time Vehicle Density Analysis
AI Smart Traffic Signal Control Using Real-Time Vehicle Density Analysis Agentic IoT System using ESP32 + AI + n8n + Telegram Voice Alerts +...
-
www.svsembedded.com SVSEMBEDDED svsembedded@gmail.com , CONTACT: 9491535690, 7842358459 ------------------------------------------...
-
Watch Video Demonstration Carefully Till End -- Temperature and Humidity Controller For Incubator Temperature and Humidity Controller For ...
-
Electronic KITS: DTDC Courier Proof Of Delivery Receipts - 2024 - 2023 - 2022 - 2021 - 2020 - 2019 - 2018 - 2017 - 2016...


No comments:
Post a Comment