7.6 Signals, control and motors
Digital filters, frequency analysis with the FFT, PID control loops done properly, driving DC, stepper and brushless motors, and integrating and fusing sensors.
Lessons
- Digital filters: FIR and IIR · Moving averages, FIR and IIR filters, biquads and notch filters.
- The FFT and frequency analysis · Bins, resolution, windows and spectral leakage, and Goertzel.
- PID control · Feedback loops, the three terms, anti-windup and tuning.
- Motors and motor control · DC motors and H-bridges, steppers, BLDC commutation and FOC.
- Sensors and sensor fusion · Integrating sensors, calibration, IMUs and complementary and Kalman filters.
Project: Handheld camera gimbal
Three brushless motors that hold a camera level while its owner walks and runs: a notch filter against motor vibration, an FFT that finds each camera's resonance, integer PID loops, Hall-sensor commutation, and a complementary filter that knows which way the camera points.