Micromouse Robot System Using the Flood-Fill and Backtracking Algorithm

Authors

  • Muhammad Jaka Wimbang Wicaksono Politeknik Negeri Batam
  • Agung Kusyairi Abdillah Politeknik Negeri Batam
  • Muhammad Bayu Artha Politeknik Negeri Batam
  • Ibra Wendi S Politeknik Negeri Batam

DOI:

https://doi.org/10.30871/ji.v18i1.12944

Keywords:

Micromouse, robot, flood fill algorithm, state machine, PD control, maze navigation, velocity profiling

Abstract

A micromouse robot is an autonomous robot designed to navigate mazes and find the shortest path to a destination point. This research aims to design a micromouse robot software system using a flood-fill algorithm that can move without touching the walls and determine the direction and angle of rotation when encountering a dead end. The system uses an Arduino Nano as a microcontroller, infrared sensors for wall detection, DC motors with rotary encoders, and a 2-channel motor driver, with a maximum robot dimension of 16.8 cm × 16.8 cm. The software implementation uses a Breadth-First Search (BFS)-based flood-fill algorithm for optimal path mapping, a 6-state state machine to regulate execution flow, Proportional-Derivative (PD) control with parameters Kp = 2.0 and Kd = 0.05 for movement stability, and trapezoidal velocity profiling for smooth movement. Test results show that the robot can complete a 4×4 maze in an average of 45 seconds, with position accuracy of ±5 mm and an angle deviation of less than 2 degrees. The PD control system provides a responsiveness of 32 ms, and velocity profiling reduces wheel slip by up to 90% and increases energy efficiency by 25%. This research contributes to the development of mobile robot technology and robotics learning media.

Downloads

Download data is not yet available.

References

[1] R. L. Putra, A. Hidayat, and W. Kasoep, "Rancang Bangun Mobile Robot Micromouse untuk Pencarian Rute Terpendek Menggunakan Algoritma Flood Fill," *Journal of Information Technology and Computer Engineering*, vol. 1, no. 1.

[2] H. R. Al'Amin, "Robot Micromouse dengan Menggunakan Algoritma Flood Fill," *Jurnal Teknik Elektro*, vol. 9, no. 2, pp. 1-2, 2011

[3] R. Rusmini, Setiawardhana, and M. I. Nugraha, "Pencarian Rute Terpendek untuk Robot Micromouse dengan Menggunakan Algoritma Backtracking,"

*Prosiding Seminar Nasional Teknologi Informasi*,

pp. 41, 2011

[4] Razor, A. 2020. Arduino Nano: Definition, functions, pinout, and price. https://www.aldyrazor.com/2020/08/arduino- nano.html. Accessed on January 9, 2025.

[5] Pitriyanti, L., Saragih, Y., and Latifa, U. Implementation of infrared modules in the design of IoT-based smart detection for automatic queuing. Journal of Power Electronics. 11(2):189, 2022.

[6] Juniarto, M., Akbar, M.A., and Nurkholis, H. Remote-controlled robotic vehicles via the internet with WebSocket implementation implemented through Heroku. Accessed on January 9, 2025. pp. 3, 2022

[7] Handsontec. n.d. G12-N20 Geared miniDC motor datasheet.

https://www.handsontec.com/dataspecs/GA12- N20.pdf. Accessed January 9, 2025.

[8] Kurriawan, B.K., Sulistyanto, M.P.T., Ghufron, M., and Yusmawanto, M. The effect of charging and discharging current variations on lead-acid battery models and changes in energy efficiency.

Jurnal Fisika Flux. 16(1):42, 2019

[9] Mukti, S.A.W., Astuti, I.F., and Kridaksana,

A.H. Application of the flood fill algorithm in color games: color me. Proceedings of the FMIPA UNMUL Final Project Seminar. March 2016, Samarinda,

Indonesia. pp. 477, 2016

[10] Rifqo, M.H., and Apridiansyah, Y. Implementation of the backtracking algorithm in library information systems for book title searches (Case study of the integrated service unit of the Muhammadiyah University of Bengkulu Library). Pseudocode Journal. 4(1):91-92, 2017

Downloads

Published

2026-04-30

Most read articles by the same author(s)