EIGENROOMLAB WORKSHEET 18DC motor · Design challenges

The controller clock matters

NameSectionDate

Goal

Measure how the controller's update period changes the phase margin and the step response at fixed gains.

Setup

Open it on a phone or a computer; there is nothing to log in to or install. The link loads run A's settings:

Target speed
90 rad/s
Loop
Closed loop
Controller type
PID
Proportional Kp
0.32
Integral Ki
0.5
Derivative Kd
0.012
Anti-windup
On
Load torque
0.04 N·m
Sensor noise
0
Controller period
20 ms
Disturbance events
None
Recording
12 s
  1. APreset, exactly as the link opens it.
  2. BChange only: Controller period → 80 ms.
  3. CChange only: Controller period → 10 ms.

Pin each run before you change a setting, so you can compare runs at the same replay time.

1. Predict

Do identical PID gains behave the same at 10, 20 and 80 ms?

Write your prediction and a reason before you run anything.

2. Observe

Read each value in the lab and write it in the table.

QuantityWhere to read itABC
Phase margin (°)Frequency workbench
Rise time, 10–90% of target (s)Measured response
Overshoot vs target (%)Measured response
Settling, ±2% of target (s)Measured response

3. Explain

  1. Order the runs by phase margin. Why does a slower controller clock reduce the margin?

  2. The step responses differ much less than the margins. What does that say about judging a sampling period from one step test?

Extension (optional)

Raise Kp to 3 at 80 ms (run D) and at 10 ms (run E). Compare the phase margin and the requested voltage near the end.

Source: eigenroom.com/worksheets/motor/sampling-periodCite: EIGENROOM. (2026). The controller clock matters [Lab worksheet]. Accessed YYYY-MM-DD. https://eigenroom.com/worksheets/motor/sampling-period