Design and Build an Android Based Gateway Controller using the MQTT Protocol


  • R Moch Maghrifi Dwi Candra Maghrifi State Polytechnic of Malang
  • Mochammad Taufik State Polytechnic of Malang
  • Nugroho Suharto State Polytechnic of Malang



Gate Controller, MQTT Protocol, Microcontroller, Torque, Android, Node MCU, DC Motor


The gate is the most important component of a building's security system. Although almost all homes have gates, they are still opened and closed in the traditional manner. As technology advances, a remote control may be used to automatically open and close the gate. In this study, the author attempts to develop a gate utilizing an internet-connected microcontroller and an android smartphone application to make it simpler for users to manage and monitor the motor's status and eliminate the need for a remote control. The automatic gate prototype includes a track length of 3 meters, a 12 V dc gearbox motor, and a control system. The gate load standard is 15.40 kg. The study's findings employ the Internet of Things (IoT) to regulate and observe gate opening and closing as well as gather data on gate status and maintenance. According to test results, an average torque value of 78.44 Nm at an average current value of 10.25 A was obtained utilizing a mass load variation between 1 and 15 kg. Qos performance between Node MCU and Android application shows the quality of data transfer during deceleration with an average value of 34.3 seconds. The average throughput value is 149.6719 bps.


Usman, A. A. Rahmansyah, and N. F. Apriadi, “Rancang Bangun pagar Otomatis dengan Finger Print Berbasis Mikrokontroller,” Jurnal Teknologi Terapan, vol. 3, 2017.

F. B. Setiawan and Magfirawaty, "Securing Data Communication Through MQTT Protocol with AES-256 Encryption Algorithm CBC Mode on ESP32-Based Smart Homes," 2021 International Conference on Computer System, Information Technology, and Electrical Engineering (COSITE), 2021, pp. 166-170,

A. Budiyanto, G. B. Pramudita, and S. Adinandra, “Kontrol Relay dan Kecepatan Kipas Angin Direct Current (DC) dengan Sensor Suhu LM35 Berbasis Internet og Things (IoT),” Jurnal Ilmiah Elektronika, vol. 19, pp. 43-54, 2019.

Y. E. Anwar, N. Soedjarwanto, and A. S. Repelianto, “Prototype Penggerak Pintu Pagar Otomatis Berbasis Arduino Uno ATMEGA 328P dengan Sensor Sidik Jari, ” Jurnal Rekayasa dan Teknologi Elektro, vol. 9, 2015.

A. Syofian, “Pengendalian Pintu Pagar Geser Menggunakan Aplikasi Smartphone Android dan Mikrokontroller Arduino Melalui Bluetooth,” Jurnal Teknik Elektro ITP, vol. 5, 2016.

A. Eleyan and J. Fallon, "IoT-based Home Automation Using Android Application," 2020 International Symposium on Networks, Computers and Communications (ISNCC), 2020, pp. 1-4,

S. P. Santosa, and R. M. W. Nugroho, “Rancang Bangun Alat Pintu Geser Otomatis Menggunakan Motor DC 24V,” Jurnal Ilmiah Elektro, vol. 9, no. 2, 2021.

E. I. Nwankwo, E. N. Onwuka, M. David, and Z. Suleiman, "Hybrid MQTT-COAP Protocol for Data Communication in Internet of Things," 2020 5th International Conference on Computing, Communication and Security (ICCCS), 2020, pp. 1-5.

A. Velinov, A. Mileva, S. Wendzel and W. Mazurczyk, "Covert Channels in the MQTT-Based Internet of Things," in IEEE Access, vol. 7, pp. 161899-161915, 2019,

A. Banks and R. Gupta, “MQTT Version 3.1. 1,” OASIS standard, vol. 29, 2014.

G. Y. Saputra, A. D. Afrizal, F. K. R. Mahfud, F. A. Pribadi, and F. J. Pamungkas, “Penerapan protokol MQTT pada teknologi WAN (studi kasus sistem parkir Univeristas Brawijaya),” Jurnal Informatika Mulawarman, vol. 12, no. 2, pp. 69-75, Sept. 2017.

A. W. Ibrahim, T. W. Widodo, and T. W. Supradi, “Sistem Kontrol Torsi pada Motor DC,” IJEIS, vol. 6, no. 1, pp. 93-104, 2016.

H. Firdaus. “Rancang Bangun Penggerak Pintu Pagar Geser Menggunakan 12 volt Diret Current (DC) Power Window Motor Gear,” Jurnal Media Teknologi, vol. 4, no. 2, pp. 155-164, March 2018.

“Arduino Uno data sheet,” Arduino S.r.l, Italy.

L. J. Bradley and N. G. Wright, "Optimising SD Saving Events to Maximise Battery Lifetime for Arduino™/Atmega328P Data Loggers," in IEEE Access, vol. 8, pp. 214832-214841, 2020.

Arduino ISP Programming Tutorial. Accessed: Jul. 21, 2020. [Online]. Available:




How to Cite

R. M. M. D. C. Maghrifi, M. . Taufik, and N. Suharto, “Design and Build an Android Based Gateway Controller using the MQTT Protocol ”, Jartel, vol. 13, no. 2, pp. 177-184, Jun. 2023.