Arduino UNO simulation built with Wokwi
A smart parking system that detects slot occupancy, displays real-time status on an LCD, and controls entry/exit gates automatically using servo motors.
- 4 parking slot detection using push buttons (simulating IR sensors)
- Green LED = slot free, Red LED = slot occupied
- 16x2 I2C LCD showing free slot count and individual slot status
- Entry gate servo — opens only when slots are available
- Exit gate servo — opens on demand
- Parking full detection — entry gate locked when all slots occupied
- Toggle mode — one click to park, one click to leave
Open directly on Wokwi: https://wokwi.com/projects/464188519205963777
Or simulate locally:
- Open wokwi.com
- Create new Arduino UNO project
- Replace
diagram.jsonwith the one in this repo - Replace
sketch.inowith the one in this repo - Click Play
| Component | Arduino Pin |
|---|---|
| Slot 1 button | D2 |
| Slot 2 button | D3 |
| Slot 3 button | D4 |
| Slot 4 button | D5 |
| Entry gate button | D6 |
| Exit gate button | D7 |
| Green LED 1-4 | D8-D11 |
| Entry servo | D12 |
| Exit servo | D13 |
| Red LED 1-4 | A0-A3 |
| LCD SDA | A4 |
| LCD SCL | A5 |
| Component | Quantity |
|---|---|
| Arduino UNO | 1 |
| LCD 16x2 I2C | 1 |
| Servo motor | 2 |
| Push button | 6 |
| Green LED | 4 |
| Red LED | 4 |
| Resistor 220Ω | 8 |
LiquidCrystal_I2Cby Frank de BrabanderServo(built-in)Wire(built-in)
| Key | Action |
|---|---|
| 1 | Toggle Slot 1 |
| 2 | Toggle Slot 2 |
| 3 | Toggle Slot 3 |
| 4 | Toggle Slot 4 |
| 5 | Open exit gate |
| 7 | Open entry gate |
intelligent-parking-system/
├── sketch.ino # Arduino source code
├── diagram.json # Wokwi circuit diagram
├── libraries.txt # Required libraries
└── README.md # This file
Muniem Amjad
MIT License — free to use and modify