Automatic Vending Machine Using Microcontroller


  • Chompoo Suppatoomsin Electrical Engineering, Faculty of Engineering, Vongchavalitkul University
  • Ekkarat Takkratok Engineer, Electrical Engineering, Fastwork Technology Company
  • Krisada Vilailak Electrical Engineering, Faculty of Engineering, Vongchavalitkul University
  • Sureeporn Meehom Engineering Management, Faculty of Engineering, Vongchavalitkul University


vending machine, microcontroller, automatic system



           Objective: This research presents the design and construction of an automatic vending machine using microcontroller to use with all Thai coins and banknotes, receive and get correct change money, also sending the messages of the selling goods.  

           Methods: Designed and constructed the automatic vending machine using microcontroller types Arduino Mega 2560. This machine can use all Thai coins and banknotes to buy products, get correct change money and displays the result through the line application. The machine was tested with 3 kinds of goods and 3 costs for sell as follows 143 Baht, 400 Baht, and 640 Baht.

           Results: The test results found that the machine could work properly and almost all the errors of the machine were 0%.  This machine could be developed for use in real life with more types of goods and varying cost. The automatic vending machine should develop a banknote detection part to be more accurate, preventing the external light, and using QR code for payments.


เพื่อชาติ สุขเรือน. (2555) เครื่องจ่ายข้าวสารสามหัวจ่ายแบบหยอดเหรียญ. การประชุมวิชาการแห่งชาติ มหาวิทยาลัยเกษตรศาสตร์ วิทยาเขตกำแพงแสน ครั้งที่ 9, 1796 – 1805. นครปฐม: มหาวิทยาลัยเกษตรศาสตร์

สุรัตน์ ริ้วศรี และ สุวิมล ขนอม. (2558) เครื่องจำหน่ายไอศกรีมอัตโนมัติแบบหยอดเหรียญ. (ปริญญานิพนธ์ปริญญาบัณฑิต). มหาวิทยาลัยเทคโนโลยีราชมงคลศรีวิชัย. สงขลา

Desai, S., Jadhav, S., Patil, P., and Sambhaji, G. (2017). Automatic Chocolate Vending Machine By Using Arduino Uno. International Journal of Innovative Research in Computer Science & Technology, 5 (2), 226-229.

Jadhav, S., Pawar, N., Kharade, N. and Lengare, P.S. (2018). Automatic Vending Machine. International Journal of Innovative Science and Research Technology, 3(3), 376-378.

Mahajan, G., Phale, V., Mane, S. and Patil, A. (2020). Vending Machine with Cash and Cashless Payment Support. International Research Journal of Engineering and Technology, 7(6), 341-348.

Pradeepa, P., Sudhalavanya, T., Suganthi, K., Suganthi, N., & Menagadevi, M. (2013). Design and Implementation of Vending Machine using Verilog HDL. International Journal of Advanced Engineering Technology, Vol. IV. Issue I/Jan.-March., 51-53.

Preetilatha, R., Ramkumar, R., Ramesh S.M., Kiruthika, S., & Bharani, M. (2014). Stationery Vending Machine. IJISET-International Journal of Innovative Science, Engineering & Technology, 1(9), 8-12.

Sibanda, V., Munetsi, L., Mpofu, K., Murena, E., & Trimble, J. (2020). Design of a high-tech vending machine. ScienceDirect Procedia CIRP, 91, 678-683.

Smt Usha Rani, J., Rashmi, M., Dheeksha, R., Lakshmi, H.R., & Tejashwini, M.S. (2020). Vending Machine Based on digital Payment for dispensing Stationary items. Journal of Emerging Technologies and Innovative Research, 7(5), 355-357.

Sridharan, S. & Jammalamadaka, S. (2014). Architecture of beverage vending machine leveraging the automated teller machine. International Journal of Advanced Computational Engineering and Networking, 2(8), 29-33.




How to Cite

Suppatoomsin, C., Takkratok, E., Vilailak, K., & Meehom, S. (2022). Automatic Vending Machine Using Microcontroller. Journal of Vongchavalitkul University, 35(1), 103–117. Retrieved from



Research Articles