Covers: Lesson 04 Difficulty: Intermediate
A DC motor’s mechanical bandwidth is 50 Hz (speed loop). The encoder provides position data.
a) What is the minimum sampling frequency? (Nyquist criterion)
b) What sampling frequency would you actually use? Why?
c) At your chosen sample rate, how many encoder counts does a 2048 CPR encoder produce per sample at 10 rad/s?
The continuous PI controller is $C(s) = 2 + \frac{10}{s}$.
Discretize using: a) Forward Euler with $T_s = 1$ ms b) Backward Euler with $T_s = 1$ ms c) Tustin (bilinear) with $T_s = 1$ ms
For each, write the difference equation: $u[n] = f(u[n-1], e[n], e[n-1])$.
Convert the standard PID:
$$u[n] = K_p e[n] + K_i T_s \sum e[k] + K_d \frac{e[n] - e[n-1]}{T_s}$$
to velocity (incremental) form: $\Delta u[n] = u[n] - u[n-1]$.
Show all derivation steps.
An encoder at 2048 CPR is sampled at 100 Hz. The motor shaft rotates at 60 rad/s.
a) How many encoder edges occur per sample period?
b) Is the speed measurement aliased? (Apply Nyquist to the encoder signal frequency.)
c) What is the actual speed resolution at this sample rate?
You’re designing a cascaded control system:
- Current loop bandwidth: 2 kHz
- Speed loop bandwidth: 200 Hz
- Position loop bandwidth: 20 Hz
What sample rates would you choose for each loop? Justify with the 10× rule.