Snack Vending Machine Using QR Code as Payment Method

  • Arya Jaka Maulana Department of Electrical Engineering, Politeknik Negeri Cilacap
  • Erna Alimudin Department of Electrical Engineering, Politeknik Negeri Cilacap
  • Vicky Prasetia Department of Electrical Engineering, Politeknik Negeri Cilacap
  • Muhammad Reza Hidayat Department of Electrical Engineering, Universitas Jenderal Achmad Yani


Vending machines can be used as a solution to overcome losses for selling and make the payment system easier. This study aims to design a snack vending machine with payment system using an Android-based QR Code scan application in which there is a balance as electronic money. In the payment application there is also an admin account to top up balances and view sales history, making it easier for sellers to monitor sales results. This snack vending machine uses ESP32 to store data as well as transmit data from every activity that occurs. There are 4 types of snacks in this vending machine. Selection of the type of snack using the Keypad and to regulate the release of the snack using a servo motor connected to a spiral wire. 16x2 LCD to display data and an Infrared Avoid Obstacle sensor to stop the servo from rotating when it detects food falling in front of it. Testing on a snack vending machine using a QR Code was carried out by trying to purchase 4 types of snacks, with each trial 10 times. The whole test is successful, the tool can issue snacks and transactions on the payment application run properly.

Keywords: Infrared, Obstacle Sensor, QR Code, Vending Machine


Download data is not yet available.


K. Segrave, Vending Machine: American Social History. North Carolina: McFarland & Company, Inc, 2002.

E. Wu and D. Maslov, “Vending Machine,” in Raspberry Pi Retail Applications: Transform Your Business with a Low-Cost Single-Board Computer, Berkeley, CA: Apress, 2022, pp. 41–70. doi: 10.1007/978-1-4842-7951-9_3.

A. P. Bodhale and P. J. S. Kulkarni, “Case Study on Different Vending Machines,” Int. Res. J. Eng. Technol., vol. 4, no. 4, pp. 3531–3535, 2017, [Online]. Available:

R. Dijaya, E. A. Suprayitno, and A. Wicaksono, “Integrated Point of Sales and Snack Vending Machine based on Internet of Things for Self Service Scale Micro Enterprises,” J. Phys. Conf. Ser., vol. 1179, no. 1, 2019, doi: 10.1088/1742-6596/1179/1/012098.

G. Camera, “A Perspective on Electronic Alternatives to Traditional Currencies ,” Sveriges Riksbank Econ. Rev. 1, no. 2008, pp. 126–148, 2017, [Online]. Available:

A. Zainal, T. Sriwedari, K. Harahap, and J. Suhariyanto, “Developing a Model of Smart School Canteen: an Introduction of Self-Purchasing Technology,” J. Community Res. Serv., vol. 2, no. 2, p. 236, 2019, doi: 10.24114/jcrs.v2i2.13156.

M. L. Caruso, E. G. Klein, and G. Kaye, “Campus-Based Snack Food Vending Consumption,” J. Nutr. Educ. Behav., vol. 46, no. 5, pp. 401–405, 2014, doi:

“Quick Response Mechanism Payment System Using Waterfall,” vol. 9, no. 4, pp. 16–27, 2021.

Transformers Committee of the IEEE Power Engineering Society, “IEEE Std C57.104TM-2008, IEEE Guide for the Interpretation of Gases Generated in Oil-Immersed Transformer,” 2008, doi: 10.1109/IEEESTD.2009.4776518.

N. Cisse-Egbuonye, S. Liles, K. E. Schmitz, N. Kassem, V. L. Irvin, and M. F. Hovell, “Availability of Vending Machines and School Stores in California Schools,” J. Sch. Health, vol. 86, no. 1, pp. 48–53, 2016, doi:

A. Asgaonkar and B. Krishnamachari, “Solving the Buyer and Seller’s Dilemma: A Dual-Deposit Escrow Smart Contract for Provably Cheat-Proof Delivery and Payment for a Digital Good without a Trusted Mediator,” in 2019 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), 2019, pp. 262–267. doi: 10.1109/BLOC.2019.8751482.

A. Ramzan, S. Rehman, and A. Perwaiz, “RFID technology: Beyond cash-based methods in vending machine,” 2017 2nd Int. Conf. Control Robot. Eng. ICCRE 2017, pp. 189–193, 2017, doi: 10.1109/ICCRE.2017.7935068.

W. Alam, D. Sarma, R. J. Chakma, M. J. Alam, and S. Hossain, “Internet of things based smart vending machine using digital payment system,” Indones. J. Electr. Eng. Informatics, vol. 9, no. 3, pp. 719–731, 2021, doi: 10.52549/.V9I3.3133.

K. H. Pandya and H. J. Galiyawala, “A Survey on QR Codes: in context of Research and Application,” Int. J. Emerg. Technol. Adv. Eng. Website ISO Certif. J., vol. 4, no. 3, pp. 258–262, 2014.

A. S. Rafika, Y. N. Hidayat, and I. Airport, “Mesin Penjual Makanan Otomatis Berbasis Mikrokontroler Atmega8 Pada Koperasi Karyawan Gmf Aeroasia Sejahtera,” vol. 4, no. 2, 2016.

V. M. Alkautsar and I. Husnaini, “Perancangan Vending Machine Menggunakan Uang Kertas Berbasis Arduino,” vol. 2, no. 2, 2021.

E. M. Firdaus, Muhammad Irmansyah, Dikky Chandra, “Rancang Bangun Vending Machine Penukar Uang Koin Berbasis Mikrokontroller,” no. September, pp. 4–5, 2018.

D. A. Sembiring, “Perancangan Dan Pembuatan Mesin Penjual Minuman Kaleng Otomatis Berbasis Arduino Dengan Pembayaran Menggunakan RFID Laporan,” 2018.

A. D. Septiadi and L. S. Alfarizi, “Pemanfaatan E-KTP Sebagai Alat Bantu Sistem Kehadiran Pegawai dalam Penanggulangan Penyebaran Covid-19,” MATRIK J. Manajemen, Tek. Inform. dan Rekayasa Komput., vol. 20, no. 1, pp. 159–168, 2020, doi: 10.30812/matrik.v20i1.875.

S. M. Muh Luay Bagus Pamungkas, Ade Rachmawan, “Rancang Bangun Vending Machine dengan RFID Sebagai Pembayaran Elektronik Berbasis Arduino,” pp. 73–78, 2021.

L. Lou, Z. Tian, and J. Koh, “Tourist satisfaction enhancement using mobile QR code payment: An empirical investigation,” Sustain., vol. 9, no. 7, pp. 1–14, 2017, doi: 10.3390/su9071186.

H. Kusumah, R. A. Pradana, P. Studi, S. Komputer, and U. Raharja, “Penerapan Trainer Interfacing Mikrokontroler dan Internet Of Things Berbasis ESP32 Pada Mata Kuliah,” vol. 5, no. 2, pp. 120–134, 2019.

N. D. Audji, F. Teknik, and U. N. Jakarta, “Pembuatan Vending Machine Dengan Kartu Bersaldo Untuk Transaksi Pembelian Berbasis Mikrokontroler Atmega 16 Sebagai Pengendali Pada Toko Dirgan Corner,” 2018.

S. Hafizhuddin, “Rancang Bangun Mesin Penjual Roti Otomatis,” 2019.

H. Dianty, “Mendeteksi Suhu Tubuh Menggunakan Infrared,” J. Ilmu Komput., vol. 3, no. 3, pp. 5–9, 2020.

How to Cite
A. J. Maulana, E. Alimudin, V. Prasetia, and M. R. Hidayat, “Snack Vending Machine Using QR Code as Payment Method”, JurnalEcotipe, vol. 10, no. 1, pp. 1-11, Apr. 2023.
Abstract viewed = 582 times
PDF downloaded = 535 times