Encoder-Based PD Controller Design for Micromouse Robots

Added:

System Basics
Model Validation
Feedforward Limits
Feedback Need
System Theory
Poor Tuning
Direct Formulas
Theory Works
Final Method

System Basics

0:00
Playing Section
  • 1

    Identifies the objective: tune a robot's motor controller effectively.

  • 2

    Explains the unicycle model and first-order motor dynamics.

  • 3

    Defines key constants: system gain (Km) and time constant (Tm).

Fundamental understanding of closed-loop feedback systems and PID (Proportional-Integral-Derivative) control concepts.
Basic knowledge of rotary encoders, including how they measure wheel position, speed, and direction.
Familiarity with the mechanical and electrical dynamics of differential-drive robots, such as DC motor characteristics and inertia.
Introductory engineering mathematics, specifically transfer functions, natural frequency, and damping ratios in second-order systems.
Implementation of discrete-time PD control algorithms on a microcontroller (e.g., STM32 or Arduino) using timer interrupts.
Motion profiling and trajectory generation techniques (such as trapezoidal or S-curve velocity profiles) for smooth acceleration and deceleration.
Introduction of feedforward control to compensate for friction and physical system latency, working alongside the PD controller.
Integration of the low-level motor controller with high-level maze-solving algorithms (e.g., Flood Fill) for autonomous navigation.
6.7K views174likes1:13:33@MicroMouseOriginal Release: 2022-12-06

This video demonstrates how to design a PD controller for micromouse robots by first characterizing the DC motor drive system as a first-order system with gain (km) and time constant (τm), then deriving appropriate PD controller parameters (KP and KD) from desired performance specifications such as damping ratio (ζ) and settling time (TD), rather than relying on trial-and-error tuning. The method involves measuring the motor's step response to determine km and τm, then using these values in mathematical expressions to calculate KP and KD that achieve specific control characteristics like minimal overshoot and fast settling time, which can then be further refined with feed-forward control for improved performance.