กลับไปหน้ารวมไฟล์
shortest-path-of-line-maze-curved-and-zig-zag-track-896756-en.md

Final Project of Bachelor's Degree in Informatics Engineering

This project is about a line follower mobile robot that is used to find the shortest path from the starting point to the end of maze. The track is made of black tape on a white surface. In this project we used a white backdrop. The difference between the maze of this project and the previous one is that we have to make this mobile robot works on a track with curved and zig-zag track. It was for the final project of my bachelor's degree that finished in July of 2014.

Project Overview

The "Maze-Runner Elite" is a sophisticated mobile robotics platform designed for the competitive field of Micromouse and Line-Maze Solving. Unlike basic line followers, this robot operates in two distinct phases: Exploration (discovering the maze layout) and Optimization (racing the shortest path). It is engineered to handle non-linear track geometries, including smooth curves and sharp zig-zags, which challenge traditional binary-logic line followers.

Technical Deep-Dive

  • The Path Reduction Algorithm:
    • String Manipulation Logic: During the exploration phase, the robot records every turn in a data string (e.g., L = Left, R = Right, S = Straight, B = Back/U-Turn).
    • Optimization Forensics: The firmware analyzes the string for "Dead Ends" (B). Any sequence ending in a U-turn can be simplified. For example, a Left + Back + Left sequence is logically identical to a Straight move. The solver continuously reduces the string (e.g., LBL = S, LBS = R) until only the primary route remains.
  • PID Control for Curve Smoothing:
    • Analog Error Tracking: To maintain high velocity on Curved and Zig-zag tracks, the robot utilizes a Proportional-Integral-Derivative (PID) control loop.
    • The Control Loop: The 8-channel sensor array returns a weighted value representing the line's position relative to the robot's center. The PID algorithm calculates the precise differential speed required for the motors to "hug" the line, minimizing overshoot and preventing the robot from "derailing" during high-speed zig-zags.
  • Sensor Fusion & Intersection Logic:
    • State Machine Management: The robot must distinguish between a simple curve and a T-Junction or Crossroad. By monitoring all 8 sensors simultaneously, the firmware identifies "All-Black" or "All-White" states to trigger intersection-handling routines, such as the Left-Hand-on-Wall priority rule.

Engineering & Implementation

  • Differential Dynamics:
    • Power-to-Weight Ratio: Utilizing high-torque micro-gearmotors and a lightweight Li-Po battery allows for rapid acceleration and braking, which is critical when approaching sharp 90-degree corners after a long straightaway.
  • Hardware Efficiency:
    • TB6612FNG Driver: This MOSFET-based driver is chosen over the older L298N for its higher efficiency and smaller footprint, providing cool operation even during extended maze-solving sessions.
  • Calibration & Thresholding:
    • Dynamic Surface Adaptation: The robot includes an auto-calibration routine that sweeps the sensors across the black tape and white background at startup. This ensures the PID loop receives raw data that is normalized against the specific ambient lighting conditions of the room.

These are the videos that I have uploaded to YouTube:

Line Maze Solving - Curved and Zig-zag Track (Jalur Lengkung dan Zig-zag)
Line Maze Solving - Standard Line Maze (Belokan Persegi)

A paper about this project has been published in 2018 Seventh ICT International Student Project Conference (ICT-ISPC).

Date of Conference: 11-13 July 2018

Date Added to IEEE Xplore: 08 November 2018

DOI: 10.1109/ICT-ISPC.2018.8523975

Publisher: IEEE

Conference Location: Nakhonpathom, Thailand, Thailand

Link: https://ieeexplore.ieee.org/abstract/document/8523975

Conclusion

As a peer-reviewed project presented at the IEEE ICT-ISPC, the Maze-Runner Elite serves as a benchmark for student-led innovation in autonomous pathfinding and high-speed motion control.

The Robot

Finding the edge: Autonomous optimization through algorithmic intelligence.

ข้อมูล Frontmatter ดั้งเดิม

apps:
  - "1x Arduino IDE"
  - "PID Auto-Tune Library"
author: "rajajack21"
category: "Motors & Robotics"
components:
  - "1x Arduino UNO R3 (Main Intelligence)"
  - "1x 8-Channel QTR-8RC Reflectance Sensor Array"
  - "2x 6V Micro Metal Gearmotors (Extended Shaft)"
  - "1x TB6612FNG Dual Motor Driver Carrier"
  - "1x 7.4V Li-Po Battery (Lightweight Power)"
  - "1x Ball Caster (Omni-directional Pivot)"
description: "A high-performance autonomous mobile robot that solves complex mazes with curved and zig-zag tracks, utilizing PID control and advanced path-reduction algorithms to find the absolute shortest route."
difficulty: "Intermediate"
documentationLinks: []
downloadableFiles: []
encryptedPayload: "U2FsdGVkX1/q1xD7OoVvA3EFe31at7Na+mN6sLJj8nS/baQrBxlcJKUXyy2UDM5unNWv9zqFIvzMYHQUo/8x48PHr3APiivaNmCFxYB2af0="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/shortest-path-of-line-maze-curved-and-zig-zag-track-896756_cover.JPG"
lang: "en"
likes: 16
passwordHash: "9ffd4884a39bb463bec192dfe40d3e85b9f40a9bfa58ecd7a4cb282b9e401d91"
price: 699
seoDescription: "Find the Shortest Path in a Line Maze with Curved and Zig-zag Tracks using Arduino algorithms."
tags:
  - "maze-solving"
  - "shortest-path-algorithm"
  - "pid-control"
  - "line-follower"
  - "mobile-robotics"
  - "artificial-intelligence"
title: "Maze-Runner Elite: Path Optimization & PID Line Solver"
tools: []
videoLinks:
  - "https://www.youtube.com/embed/aFv5V6nwO2I"
  - "https://www.youtube.com/embed/gZ3zvf2PUA0"
views: 18534