UAT 463 Smart Robotics and Automation

Worksheet 3 Tune and test an MM-1 joint

Lab 12 hAssesses CLO2

Objective

Identify the joint model, tune the PI, choose the sampling period, test anti-windup and compare controllers on the two-joint arm

Equipment and materials

  • A test joint with motor, driver and encoder, or a simulator
  • Power supply with current limiting
  • A mechanical stop for the blocked-joint test
  • Computer with Python and the example code at /downloads/uat-463/

Safety

  • Limit the supply current and voltage before every test and keep a cut-off switch within reach
  • Keep loose clothing and cables away from the rotating shaft and use a guard
  • Test blocking at low voltage and low speed first; never block a turning shaft by hand

Steps

  1. Apply an open-loop voltage step of 30 to 50% of maximum, fit an FOPDT curve, and report K, tau and theta
  2. Compute theta_eff and tune the PI by SIMC at tau_c equal to 1 and 3 times theta_eff; command a speed and record rise time, overshoot and command ripple
  3. Try at least three sampling periods, make a table like Example 2, and choose a period citing the speed step Q/Ts
  4. Add the cascaded position loop, block the joint with the mechanical stop, compare with and without anti-windup, and report peak speed and overshoot
  5. Build the dynamic model of the two-joint arm, check it with a free swing, then compare PD, PD with gravity and computed torque when the parcel mass is known and unknown

Record of results

Table 1 Joint model and PI tuning
QuantityGroup valueExample 1 valueUnit
Table 2 Effect of the sampling period
Ts (ms)Q/Ts (rad/s)θ_eff (ms)Rise 90% (ms)Overshoot (%)Command ripple (V)
Table 3 Blocked-joint test and two-joint arm controllers
CasePeak speed (rad/s)Overshoot (%)Max error joint 1 / 2 (deg)Final error joint 1 / 2 (deg)

Questions

  1. How far are your fitted K and τ from Example 1 and from the physics formula? Why is the fitted τ usually a little below JR/(RB + k_t k_e)?

  2. Tuned at τc equal to θ_eff and 3θ_eff, what is the first voltage command for a speed step? Does it exceed the driver limit, and which setting did the group choose and why?

  3. From Table 2, which sampling period did the group choose? Explain with the speed step Q/Ts and the command ripple. What should change if you need a faster loop?

  4. When the joint is blocked without anti-windup, how can the peak speed after release exceed the speed limit set in the outer loop, and what does this say about monitoring speed for safety?

  5. How can computed torque that does not know the parcel mass make the elbow error worse than plain PD? Estimate the error with M̃22 ω² and the parcel's gravity torque.

Check before you hand in

What to hand in

  • K, tau and theta compared with Example 1
  • Sampling-period table and the reason for the choice
  • Anti-windup comparison result
  • Error table of the three controllers

CLO2 Develop and test a robot prototype that perceives, decides and controls its motion through ROS 2 and sensor and actuator interfaces. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack