Micromouse PID Control: Lecture 3 Tutorial for Maze Navigation

Added:

Fuzzy Logic and Model Predictive Control (MPC)

While PID control is the traditional standard for Micromouse navigation due to its simplicity, it struggles with the highly non-linear dynamics, wheel slippage, and sudden velocity changes inherent in high-speed robot runs. Critics and advanced roboticists often advocate for alternative paradigms like Fuzzy Logic Control (FLC) and Model Predictive Control (MPC). Fuzzy Logic Control replaces precise mathematical formulas with heuristic, rule-based reasoning, allowing the robot to handle imprecise sensor data and dynamic wall alignments more robustly. Model Predictive Control (MPC) goes a step further by using a physical model of the robot to predict future states and optimize control inputs in real-time. This allows the system to actively account for physical constraints like motor torque limits and wheel traction, preventing the overshooting and oscillations common to poorly tuned PID controllers. Furthermore, modern Reinforcement Learning (RL) is emerging as a way for robots to self-optimize navigation policies directly from experience, bypassing the tedious manual tuning required by classical PID systems.

Basic Differential Drive Kinematics: Understanding how wheels, motors, and encoders work together to move and track a robot's position.
Concept of Feedback Loops: Familiarity with closed-loop control systems, including inputs, setpoints, error signals, and outputs.
Introductory Calculus Concepts: A conceptual understanding of rates of change (derivatives) and accumulation of values over time (integrals).
Robot Sensor Fundamentals: Knowing how infrared distance sensors and wheel encoders measure distance to walls and motor rotation.
PID Tuning Techniques: Learning systematic methods like Ziegler-Nichols or trial-and-error to optimize proportional, integral, and derivative gains.
Maze Solving Algorithms: Integrating the physical PID navigation with pathfinding logic like the Flood Fill algorithm or A* search.
Cascaded Control Loops: Implementing dual-loop PID controllers where an outer loop controls position and an inner loop controls velocity.
Sensor Fusion and Filtering: Applying Kalman filters or complementary filters to combine IMU and encoder data for highly accurate state estimation.
1.3K views22likes37:58@UCLAIEEEOriginal Release: 2023-11-12

PID (Proportional-Integral-Derivative) control is a feedback loop mechanism that uses three components—proportional (error × Kp), integral (accumulated error over time), and derivative (rate of error change)—to calculate motor outputs for achieving precise distance and angular movements in micromouse robots. In micromouse applications, only proportional and derivative terms are typically used because the maze walls are stationary targets; the proportional term provides the driving force toward the goal while the derivative term acts as damping to prevent overshooting and oscillations. The system achieves optimal performance when critically damped, reaching the target in the shortest time without oscillation. For distance control, the error is the difference between desired and current encoder counts, while for rotation, the error is derived from the difference in encoder counts between left and right wheels.