IOT-BASED SMART PARKING SYSTEM: DESIGN AND IMPLEMENTATION USING ESP32, FASTAPI, AND ANDROID APPLICATION

Authors

  • Baxrom R. Reyimberganov ¹ Department of Software Engineering, Urgench State University, Urgench, 220100, Uzbekistan ² Department of Economics, Urgench State University, Urgench, 220100, Uzbekistan Author
  • Guli M. Salayeva² ¹ Department of Software Engineering, Urgench State University, Urgench, 220100, Uzbekistan ² Department of Economics, Urgench State University, Urgench, 220100, Uzbekistan Author

Keywords:

Keywords: Internet of Things (IoT), Smart Parking, ESP32, Ultrasonic Sensor, FastAPI, Real-time Monitoring, Server-Sent Events, Android, Jetpack Compose

Abstract

Urban parking management remains a critical challenge in rapidly growing cities, contributing to traffic congestion, fuel waste, and environmental pollution. This paper presents the design and implementation of an IoT-based smart parking system that leverages ESP32 microcontrollers equipped with HC-SR04 ultrasonic sensors for real-time parking slot occupancy detection. The system employs a three-tier architecture comprising an embedded sensing layer, a cloud-based backend built with FastAPI and PostgreSQL, and a mobile client application developed using Jetpack Compose for Android. Real-time communication is achieved through Server-Sent Events (SSE), enabling instantaneous slot status updates on user devices. The occupancy classification algorithm utilizes a distance threshold of 20 cm with a measurement accuracy of ±0.3 cm. Experimental results demonstrate a detection accuracy of 97.5%, an average system response latency of 1.8 seconds from physical occupancy change to mobile notification, and the capability to handle concurrent monitoring of multiple parking lots through a multi-tenant architecture. The proposed system reduces average parking search time by approximately 43% compared to traditional methods, validated through controlled testing scenarios.

References

1.D. Shoup, “Cruising for parking,” Transport Policy, vol. 13, no. 6, pp. 479–486, 2006.

2.International Parking Institute, “Emerging Trends in Parking Technology,” IPI Report, 2023.

3.Espressif Systems, “ESP32 Technical Reference Manual,” Version 5.1, 2023.

4.G. Amato, F. Carrara, F. Falchi, C. Gennaro, and C. Vairo, “Car parking occupancy detection using smart camera networks and deep learning,” in Proc. IEEE Symposium on Computers and Communication, pp. 1212–1217, 2019.

5.T. Lin, H. Rivano, and F. Le Mouel, “A survey of smart parking solutions,” IEEE Transactions on Intelligent Transportation Systems, vol. 18, no. 12, pp. 3229–3253, 2017.

6.P. Ramaswamy, “IoT smart parking system for reducing green house gas emission,” in Proc. 5th International Conference on Recent Trends in Information Technology, pp. 1–5, 2016.

7.A. Khanna and R. Anand, “IoT based smart parking system,” in Proc. International Conference on Internet of Things and Applications, pp. 266–270, 2016.

8.M. Y. I. Idris, Y. Y. Leng, E. M. Tamil, N. M. Noor, and Z. Razak, “Car park system: A review of smart parking system and its technology,” Information Technology Journal, vol. 8, no. 2, pp. 101–113, 2009.

9.N. Naik, “Choice of effective messaging protocols for IoT systems: MQTT, CoAP, AMQP and HTTP,” in Proc. IEEE International Systems Engineering Symposium, pp. 1–7, 2017.

10.V. Patel and R. Shah, “A comparative study of real-time communication protocols for IoT dashboards,” Journal of Network and Computer Applications, vol. 147, p. 102432, 2019.

11.V. Parkhi, R. Puranik, and S. Gadge, “IoT based smart parking system,” International Journal of Advanced Research in Computer Science, vol. 8, no. 5, pp. 2158–2163, 2017.

12.S. Kianpisheh, N. Mustaffa, P. Limtrairut, and J. M. Keeratiwintakorn, “Smart parking system (SPS) architecture using ultrasonic detector,” International Journal of Software Engineering and Its Applications, vol. 6, no. 3, pp. 51–58, 2012.

13.R. Grodi, D. B. Rawat, and F. Rios-Gutierrez, “Smart parking: Parking occupancy monitoring and visualization system for smart cities,” in Proc. SoutheastCon, pp. 1–5, 2016.

14.M. Caliskan, D. Graupner, and M. Mauve, “Decentralized discovery of free parking places,” in Proc. 3rd International Workshop on Vehicular Ad Hoc Networks, pp. 30–39, 2006.

15.FastAPI Documentation, “Server-Sent Events with sse-starlette,” Available: https://fastapi.tiangolo.com, 2024.

Downloads

Published

2026-06-18