กลับไปหน้ารวมไฟล์
smart-car-parking-system-b2eb06-en.md

This is a homemade high school project of a fully-functional architectural model of a smart parking system/lot.

Contains fully automatic barriers, LED indication of parking lot occupance (RED-occupied, GREEN-free), LCD display at the entrance. Parking lot sensors are pointing straight down from the roof.

Smart Parking System

Smart Parking System

Smart Parking System

Smart Parking System

Stuff painted dark-gray is steel, everything else is wooden.

Project contains approx. 30 metres of wire.

Total current draw is 220mA (a lot less than theoretical expectation), without servos - those are supplied by 4x1, 5V batteries.

Infrastructure Telemetry: Smart Car Parking

A tiny robot avoiding a wall is simple. Managing multiple physical parking spaces, identifying the user's secure RFID card, printing dynamic availability strings across an LCD array, and lifting a heavy mechanical gate all at the exact same moment requires mastering State Machines and Non-Blocking C++ loops! The Smart Car Parking System is a miniature replica of absolute commercial garage architecture.

The Entry Gate Authorization (MFRC522)

The user rolls their car up to the gate. They do not press a button.

  1. The incredibly sensitive MFRC522 13.56MHz RFID Reader is constantly scanning its local 3-inch radius via the SPI interface (MISO, MOSI, SCK, SDA, RST).
  2. The user taps their plastic White Card.
  3. The C++ code (mfrc522.PICC_ReadCardSerial()) extracts the exact mathematical 4-byte Hexadecimal UID string (e.g., F3 B2 1A 85).
  4. The Security Trap: if (content == "F3 B2 1A 85"). Only the Administrator card matches! The massive MG996R Servo violently lifts the boom gate physically into the air!

The Parking Slot Matrix (IR Obstacle Avoidance)

Once inside the garage, the central Arduino must track exactly where the car parked.

  • The project utilizes cheap, digital Infrared Obstacle Avoidance Modules embedded directly into the "floor" of Slot 1 and Slot 2. As shown in the project images, these sensors are mounted pointing straight down from the roof to detect a vehicle's presence.
  • The sensors fire an invisible beam of IR light continuously.
  • When the car parks directly over the sensor, the beam physically bounces off the underside of the car chassis and strikes the receiver! The sensor digitalRead(Slot_1) drops to LOW.
  • The Dashboard Update: The central processor constantly recalculates the Available_Slots variable.
int totalSlots = 2;
if (digitalRead(Slot_1) == LOW) { totalSlots--; }
if (digitalRead(Slot_2) == LOW) { totalSlots--; }
  • The huge 16x2 I2C Character Display acting as the billboard outside the garage dynamically updates from SPACES: 2 down to GARAGE FULL!, and the RFID reader loop() algorithm immediately locks out anyone else from entering!

Garage System Hardware Infrastructure

  • Arduino Uno/Mega (Mega is wildly preferred if attempting to build a 6-Slot garage, as IR modules consume massive digital pin counts!).
  • MFRC522 RFID Reader Module (Must be on the 3.3V logic line! Do NOT power it via the 5V line!).
  • MG996R Metal Servo Motor (Operating the heavy boom gate lever).
  • Multiple IR Obstacle Avoidance Sensor Modules (The type with two tiny LEDs: one clear, one black).
  • A 16x2 I2C LCD Display Module.

ข้อมูล Frontmatter ดั้งเดิม

apps:
  - "1x fritzing"
  - "1x Arduino IDE"
author: "PMichal"
category: "Home & Automation"
components:
  - "8x 5 mm LED: Red"
  - "1x Arduino Mega 2560"
  - "2x SG90 Micro-servo motor"
  - "1x 4xAA battery holder"
  - "1x Rotary potentiometer (generic)"
  - "1x 5mm LED blue"
  - "1x Toggle Switch, Toggle"
  - "1x DS3231MPMB1 Peripheral Module"
  - "7x 5 mm LED: Green"
  - "10x IR distance-sensor"
  - "3x High Brightness LED, White"
description: "Garage automation arrays! Orchestrate massive multiplexed infrastructure by daisy-chaining multiple heavy LCD i2c arrays, RFID gate verifications, and physical multi-slot IR obstacle detection matrices."
difficulty: "Intermediate"
documentationLinks: []
downloadableFiles:
  - "https://projects.arduinocontent.cc/8e371b19-3e2d-47bc-92ca-d022fc552afd.ino"
  - "https://projects.arduinocontent.cc/8e371b19-3e2d-47bc-92ca-d022fc552afd.ino"
encryptedPayload: "U2FsdGVkX19rzOueqnHPfJwXrvybKm8mBwkrubgduMGMhhXoThKh3+Bl0jeanR4tjg5ih0T3mMb7RjExC/haCSgOmd9V7AVNoKtOoK803NaLNjW2wef/5F8a5KeB5FBX"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/smart-car-parking-system-b2eb06_cover.jpg"
lang: "en"
likes: 17
passwordHash: "f380a300eefcb9b62cebb2d5c7f1ec1126286679ed05cabbdebef90bfad4372b"
price: 1499
seoDescription: "Homemade 63x53cm Smart Car Parking System. DIY project using Arduino and Sensor modules for smart parking automation."
tags:
  - "parking"
  - "lot"
  - "smart"
  - "cars"
title: "Smart Car Parking System"
tools: []
videoLinks:
  - "https://www.youtube.com/embed/6uT9-1X50Zw"
views: 21184