Rancang Ulang Portal Otomatis Berbasis Mikrokontroler ESP32 Menggunakan Sensor Ultrasonik HC-SR04

Authors

  • Indra Koto Universitas Negeri Medan
  • Muhammad Edy Sahabuddin Nasution Universitas Negeri Medan
  • Yanuardi Gulo Universitas Negeri Medan
  • Aken Derisman Universitas Negeri Medan

DOI:

https://doi.org/10.37859/jst.v13i1.11841
Keywords: ESP32, HC-SR04, Motor Servo, Power Supply, Portal Otomatis

Abstract

An automatic barrier gate system is a crucial component for efficient and secure vehicle access management. A device previously developed by other researchers had become inoperable due to a faulty ultrasonic sensor and relied on only a single sensor for vehicle detection. This study aimed to redesign the automatic gate system by replacing the defective component and increasing the sensor count to two HC-SR04 ultrasonic sensors: one at the front to trigger the barrier to open and one at the rear to trigger it to close. An ESP32 microcontroller serves as the main controller, reading distance data from both sensors and sending commands to a servo motor that actuates the barrier arm. The study employed the Research and Development (R&D) method, comprising the stages of requirements analysis, design, implementation, and testing. Test results demonstrated that the system functions normally, with sensor response times ranging from 0.20 to 0.27 seconds within a detection range of 0.05–0.3 meters, and achieved a 90% success rate. The system operates correctly: the automatic barrier opens when a vehicle is detected by the opening sensor at a specific distance and closes after the vehicle is detected passing the closing sensor. This redesign successfully resolved the issues with the previous device and enhanced the reliability of the vehicle detection system through the use of dual ultrasonic sensors.

Downloads

Download data is not yet available.

References

T. S. R. Richardo, “Rancang Bangun Pengendali Motor Palang Pintu Parkir Otomatis,” vol. 2, no. 1, pp. 2807–2809, 2022.

F. Priyulida et al., “Palang Pintu Parkir Otomatis Berbasis Arduino Uno,” vol. 30, no. 1, 2024, doi: 10.36309/goi.v30i1.263.

M. G. Augusthiko and H. Pratiwi, “Pengembangan Sistem Kendali Palang Pintu Kereta Berbasis Mikrokontroler,” pp. 1–4, 2019.

A. Syahlan, I. P. Sary, M. A. Fathin, and R. F. Rezyan, “Kalibrasi Sensor Ultrasonik HC-SR04 Pada Prototipe Water Tank Level Control System,” vol. 10, no. 1, pp. 122–133, 2024.

H. Purwanto, M. Riyadi, D. W. W. Astuti, and I. W. A. W. K. Kusuma, “KOMPARASI SENSOR ULTRASONIK HC-SR04 DAN JSN-SR04T UNTUK,” vol. 10, no. 2, pp. 717–724, 2019.

A. I. Pulungan, I. Gunawan, H. S. Tambunan, and A. Rahim, “Rancang Bangun Sistem Parkir dan Ketersediaan Slot Parkir Otomatis Menggunakan Arduino,” vol. 2, no. 2, pp. 127–136, 2022.

Y. El Anwar, N. Soedjarwanto, and A. S. Repelianto, “Prototype Penggerak Pintu Pagar Otomatis Berbasis Arduino Uno ATMEGA 328P dengan Sensor Sidik Jari,” 2000.

A. F. Silvia, E. Haritman, and Y. Muladi, “RANCANG BANGUN AKSES KONTROL PINTU GERBANG BERBASIS ARDUINO DAN ANDROID,” vol. 13, no. 1, pp. 1–10, 2014.

I. R. Muttaqin and D. B. Santoso, “JE-UNISLA,” vol. 6, no. 2, pp. 41–45, 2021.

M. Aminuddin, Irfan, and M. Faridha, “Perancangan Pintu Otomatis Menggunakan Sensor Temperatur Berbasis Arduino Untuk Melaksanakan Protokol Kesehatan,” vol. 4, no. 2, pp. 1–4, 2021.

A. Mulyahani and Y. Saragih, “Sistem Buka Tutup Pintu Otomatis dengan Sensor Ultrasonik Alvina Mulyahani, Ibrahim, Yuliarman Saragih 1,2,3 Teknik Elektro, Universitas Singaperbangsa Karawang, Indonesia,” vol. 9, no. 22, pp. 126–134, 2023.

W. Eka, F. Anggara, H. Yuana, and W. D. Puspitasari, “RANCANG BANGUN ALAT MONITOR KETINGGIAN AIR BERBASIS INTERNET OF THINGS ( IoT ) MENGGUNAKAN ESP32 DAN FRAMEWORK BLYNK,” vol. 7, no. 5, pp. 3837–3845, 2023.

Z. N. Fauzan, I. Sulistiyowati, and S. Syahrorini, “Prototipe Jembatan dengan Sistem Buka Tutup Otomatis Menggunakan Sensor Inframerah Berbasis IoT,” pp. 13–28.

G. Priadi, A. I. Martinus, and D. Novianti, “BERBASIS RFID DAN SENSOR SLOT PARKIR DENGAN,” vol. 18, no. 2.

Published

2026-06-30

How to Cite

[1]
I. . Koto, M. E. Sahabuddin Nasution, Y. . Gulo, and A. . Derisman, “Rancang Ulang Portal Otomatis Berbasis Mikrokontroler ESP32 Menggunakan Sensor Ultrasonik HC-SR04”, JST, vol. 13, no. 1, Jun. 2026.

Issue

Section

Research Article