AN IOT-BASED INTELLIGENT SYSTEM FOR REAL-TIME PARKING MONITORING AND AUTOMATIC BILLING

, ,

 

AN IOT-BASED INTELLIGENT SYSTEM FOR REAL-TIME PARKING MONITORING AND AUTOMATIC BILLING

 

 

ABSTRACT:

This paper describes about an internet of things (IoT)-primarily based totally parking sensing gadget that deploys a strong outdoor automobile localization and reputation methodologies. Although, parking occupancy tracking structures have made a sizable progress, clever parking fee is not often studied in clever parking research. This paper proposes a brand new low-cost sensor gadget which the permitting real-time parking occupancy tracking at the side of parking fee withmout requiring any user/driver interaction. The proposed on-board automobile transceiver device (VTD) sensor, might be deployed while not having to put in new additives on every parking lot. It has blessings in phrases of detection and fee reliability, and decreased price by decreasing the gadget complexity, infrastructure investment, and battery alternative price. A strong automobile reputation and parking occupancy tracking is finished the use of two-fold sensing approach.

OBJECTIVE:

“To design and develop an IoT-based intelligent parking system that provides real-time parking monitoring, automatic vehicle detection, and automated billing, aiming to enhance parking efficiency, reduce congestion, and improve user experience.”

BLOCK DIAGRAM:

WORKING:

  • The proposed project aims to create an IoT-based parking monitoring system utilizing a combination of diverse components including IR sensors, NodeMCU, servo motor, RFID reader and tags. The system consists of the following key elements:
  • 1. IR sensors: Detect vehicle presence within parking spaces
  • 2. NodeMCU: Serve as the central processing unit to analyze sensor data 3. Servo motor: Controls gate access based on information received from sensors
  • 4. RFID technology: Enhances security measures and streamlines the parking process.
  • The integration of RFID technology plays a crucial role in efficient vehicle identification and enhances security measures. Real-time monitoring and data transmission through the ThingSpeak platform enable users to remotely access parking status and availability. The proposed system aims to optimize parking space utilization, improve traffic flow, and enhance overall management efficiency in diverse parking environments.

COMPONENTS LIST:

  • IR SENSOR.
  • IOT MODULE CONTROLLER.
  • SERVO MOTOR.
  • PARKING SLOTS.
  • THINGSPEAK CLOUD.
  • POWER SUPPLY.
  • REGULATOR

 

πŸ“ SAMPLE CODE:

Β ARDUINO CODE:

#include <Servo.h>

#define IR_SENSOR_PIN 2 // IR sensor input pin
#define SERVO_PIN 9 // Servo control pin

Servo gateServo;

bool carDetected = false;
unsigned long parkingStartTime = 0;
unsigned long parkingEndTime = 0;
bool billingStarted = false;

void setup() {
Serial.begin(9600);
pinMode(IR_SENSOR_PIN, INPUT);

gateServo.attach(SERVO_PIN);
gateServo.write(0); // Close gate initially
}

void loop() {
int sensorValue = digitalRead(IR_SENSOR_PIN);

if (sensorValue == HIGH && !carDetected) {
// Car just detected entering
carDetected = true;
billingStarted = true;
parkingStartTime = millis();

openGate();
delay(3000); // keep gate open for 3 seconds
closeGate();

Serial.println(“CAR ENTERED”);
}
else if (sensorValue == LOW && carDetected) {
// Car just left the parking slot
carDetected = false;
parkingEndTime = millis();

unsigned long parkingDuration = (parkingEndTime – parkingStartTime) / 1000; // seconds
int billingAmount = calculateBilling(parkingDuration);

openGate();
delay(3000); // keep gate open for 3 seconds
closeGate();

Serial.print(“CAR LEFT, Duration: “);
Serial.print(parkingDuration);
Serial.print(” seconds, Bill: $”);
Serial.println(billingAmount);

billingStarted = false;
}

delay(200);
}

void openGate() {
gateServo.write(90); // Open position
}

void closeGate() {
gateServo.write(0); // Closed position
}

int calculateBilling(unsigned long durationSeconds) {
// Simple billing: $1 for every 10 seconds parked
int bill = durationSeconds / 10;
if (bill == 0) bill = 1; // minimum bill $1
return bill;
}

ESP8266 CODE:

#include <ESP8266WiFi.h>
#include <WiFiClient.h>

const char* ssid = “YOUR_WIFI_SSID”;
const char* password = “YOUR_WIFI_PASSWORD”;
const char* thingSpeakApiKey = “YOUR_THINGSPEAK_WRITE_APIKEY”;

WiFiClient client;

void setup() {
Serial.begin(9600); // Serial to Arduino
Serial1.begin(9600); // Serial Monitor

WiFi.begin(ssid, password);
Serial1.println(“Connecting to WiFi…”);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial1.print(“.”);
}
Serial1.println(“Connected!”);
}

void loop() {
if (Serial.available()) {
String arduinoData = Serial.readStringUntil(‘\n’);
Serial1.println(“Received: ” + arduinoData);

// Send to ThingSpeak
sendToThingSpeak(arduinoData);
}
}

void sendToThingSpeak(String data) {
if (WiFi.status() == WL_CONNECTED) {
// Parse billing amount from data string if possible
int billIndex = data.indexOf(“Bill: $”);
String billStr = “0”;
if (billIndex != -1) {
billStr = data.substring(billIndex + 7);
billStr.trim();
}

String url = “/update?api_key=” + String(thingSpeakApiKey) + “&field1=” + billStr;

if (client.connect(“api.thingspeak.com”, 80)) {
client.print(String(“GET “) + url + ” HTTP/1.1\r\n” +
“Host: api.thingspeak.com\r\n” +
“Connection: close\r\n\r\n”);
Serial1.println(“Data sent to ThingSpeak: ” + billStr);
client.stop();
} else {
Serial1.println(“Connection to ThingSpeak failed”);
}
}
}

 

βœ… KEY FIXES

  • Clarity on Sensor Types: The diagram shows “SENSOR 1” and “SENSOR 2”. To make it more informative, it would be helpful to label these with the type of sensor they are (e.g., “Temperature Sensor”, “pH Sensor”, etc.), especially if this is related to a water quality monitoring system as the initial context suggested.

  • Direction of Signal Flow: While some arrows indicate flow, it would be clearer to consistently show the direction of signal or data flow between all the blocks using arrows. For instance, show how data from the sensors goes to the Arduino mega, how the Arduino controls the servos, and how data flows to and from the ESP8266.

  • Power Supply Connection: The power supply has an arrow pointing to the Arduino mega, which is good. However, it’s likely that other components (like the sensors, servos, and ESP8266) also require power. These connections to the power supply should be indicated.

  • Communication Paths: Show the communication link between the Arduino mega and the ESP8266 more explicitly. Is it serial communication, I2C, SPI, or something else?

  • “Cloud” Interaction: The “cloud” is shown with a thought bubble pointing to the ESP8266. A more standard way to represent this would be a directed arrow indicating data transmission from the ESP8266 to the cloud (and potentially back, if there’s feedback).

  • Exit IR: The purpose and connection of the “Exit IR” sensor to the Arduino mega could be clearer. What does it sense, and what does the Arduino do with this information?

  • Entrance/Exit Servos: Similarly, clarify what triggers the “Entrance servo” and “Exit servo” from the Arduino mega.

MERITS:

  1. Increased Efficiency: Automated parking guidance and optimization.
  2. Reduced Congestion: Real-time parking availability updates.
  3. Time-Saving: Quick parking spot location and navigation.
  4. Cost-Effective: Reduced labor costs, energy consumption, and maintenance.
  5. Enhanced Security: Integrated surveillance and access control.
  6. Improved User Experience: Guided parking, mobile payments, and notifications.
  7. Data Analytics: Insights on parking patterns, occupancy, and revenue.
  8. Environmentally Friendly: Reduced fuel consumption and emissions.
  9. Scalability: Easy integration with existing infrastructure.
  10. Increased Revenue: Optimized parking space utilization.

 

βœ… APPLICATIONS:

  1. Smart Cities: Integrated urban parking management.
  2. Shopping Malls: Efficient parking for customers.
  3. Airports: Streamlined parking for travelers.
  4. Public Transportation Hubs: Convenient parking for commuters.
  5. Hospitals: Priority parking for patients and staff.
  6. Office Buildings: Secure and efficient employee parking.
  7. Residential Areas: Controlled access and parking management.
  8. Event Venues: Temporary parking management solutions.
  9. Logistics and Delivery: Optimized parking for freight and cargo.
  10. Autonomous Vehicles: Dedicated parking and charging infrastructure.

 

πŸ“ž For More Details & Project Support:

 

Power Integrated Solutions
Networks | Electronics | Home Automation | Water Automation | IoT | PLC | Embedded | DBMS

πŸ“ Location:
10A/3, Radhakrishnan Colony,
Sasthri Road, Tennur,
Tiruchirappalli, Tamil Nadu – 620017


πŸ“ View on Google Maps

πŸ“§ Email:

πŸ“± Phone / WhatsApp:
+91 76393 85448
+91 82488 85959

🌐 Let’s Build the Future with Innovation in Education & Technology!

Skills

Posted on

03/06/2025