Back to Projects

Robot Maze Solver

Overview

Robot Maze Solver Project Overview

The Robot Maze Solver project uses an HCS12 microcontroller to autonomously navigate a maze using a guiding system and photosensors. The robot follows black electrical tape placed on the floor, making real-time decisions at intersections and handling obstacles with bumper sensors. The system can also learn the maze and perform reverse traversal, making for an engaging demonstration of autonomous robotics and embedded programming.

Key Features

  • Autonomous maze navigation using photosensors and bumper sensors
  • Real-time tape following and course correction
  • Obstacle detection and automatic reversal
  • Decision-making at intersections and junctions
  • Path memory for backtracking and learning the maze
  • Reverse traversal for advanced demonstrations

Main Part of Design

Main Part of Design - State Machine Code

The robot's state machine is implemented using subroutines for each state (start, forward, turn, reverse, backtrack, standby). The dispatcher checks the current state and calls the appropriate routine, allowing the robot to respond to sensor input and navigate the maze. The use of subroutines for sensor control was a crucial design choice, enabling modular and maintainable code. The robot's behavior is determined by comparing sensor data to thresholds, allowing it to follow the tape, handle obstacles, and make decisions at junctions.

How It Works

  1. Photosensor Calibration: The robot's front photosensors are calibrated to detect black tape by measuring light intensity.
  2. Tape Following: The robot moves forward, constantly checking sensor readings. If it veers off the tape, it adjusts its course to stay on track.
  3. Obstacle Handling: Bumper sensors detect obstacles. When triggered, the robot reverses and changes direction.
  4. Decision Making at Intersections: At junctions, the robot evaluates sensor data to choose the correct path, and remembers previous paths for backtracking.
  5. Maze Learning & Reverse Traversal: The robot can learn the maze layout and perform reverse runs, demonstrating advanced path memory and navigation.

Showcase