Micromouse PID Control: Lecture 3 Tutorial for Maze Navigation

Added:

PID Intro
PID Terms
Damping Effects
Integral Skipped
Angle Control
Distance Control
Error Signs
Motor Control
Tuning Tips

PID Intro

0:00
Playing Section
  • 1

    Defines PID as control system for robot position and speed.

  • 2

    Sensors like IR and encoders provide input for motor output.

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.