Skip to content Skip to navigation

Connexions

You are here: Home » Content » Rigid Body PD and PID Control

Navigation

Content Actions

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • National Instruments

    This module is included in aLens by: National InstrumentsAs a part of collection:"Control Systems Laboratory"

    Comments:

    "This course, ASE 170P at the Univ. of Texas at Austin, introduces students to fundamental control systems theory with emphasis on design and implementation. These labs focus on technical […]"

    Click the "National Instruments" link to see all content affiliated with them.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Rigid Body PD and PID Control

Module by: Robert Bishop

Summary: The objective of this lab is to understand the individual effects of proportional, derivative, and integral action. Students will design and implement both PD and PID controllers for the 1DOF rigid-body system, the ECP Rectilinear Plant. The controller will be designed and implemented in LabVIEW using the Simulation Module and Control Design Toolkit.

Rigid Body PD and PID Control

Objectives

  1. Understand the individual effects of proportional, derivative, and integral action.
  2. Design PD and PID controllers for the 1DOF rigid-body system.
  3. Implement your first controller in LabVIEW!

Pre-Lab

  1. Derive the equations of motion for the 1DOF (mass carriage loaded with four 0.5 k g 0.5 k g brass weights) rigid-body system that you will control in this lab. The plant configuration is shown below.
    Figure 1: Rigid Body Plant Configuration
    Figure 1 (rigidconfig.jpg)
  2. Starting with the EOM from the previous question, rewrite it so that the control effort into the system is u t u t (in units of DAC counts) and the position, velocity, and acceleration are x e , x . e , x .. e x e , x . e , x .. e where the subscript "e" denotes the encoder.
  3. Find the plant's transfer function G s G s .
  4. Consider a PID controller G c s = k p + k i s + k d s G c s = k p + k i s + k d s Find the closed-loop transfer function of the system below where G s G s is the transfer function you found previously.
    Figure 2: Transfer Function
    Figure 2 (trnsfrfunc.jpg)
  5. With k i = 0 k i =0= 0 find k p k p and k d k d such that the closed-loop system is critically damped and has a natural frequency of ω n = 2 H z ω n = 2 H z .
  6. Now with k i = 0 k i =0 find k p k p and k d k d such that the closed-loop system has a natural frequency of ω n = 4 H z ω n =4 H z and the following damping ratios: ζ = 0.2 ζ=0.2 ζ = 0.5 ζ=0.5 ζ = 1.0 ζ=1.0 ζ = 2.0 ζ=2.0
  7. Compute k i k i such that k h w k i = 7500 N / m - sec k h w k i =7500N/ m - sec
  8. Using the Control Design Toolkit, write a LabVIEW VI that simulates the step response of the closed-loop system. The controller gains k p k p , k i k i , and k d k d should be controls on the front panel so you can change each one individually and see how it affects the system's response.

Lab Procedure

  1. Configure the plant as shown above in Fig. 1 with the first mass carriage free and the other two clamped. Load four 0.5 k g 0.5 k g brass weights onto the carriage. No springs should be attached to the carriage.
  2. Inset a PID controller structure into the control loop VI. You should implement the control algorithm in two ways: one with the differentiator in the forward loop and the other with the differentiator in an inner feedback loop. A good way to do this is with a case structure. Place the controller gains and case selector as controls on the front panel.
  3. Set k i = k d = 0 k i = k d =0 and enter the value of k p k p you found in step 5. After carefully checking for stability, acquire and plot the natural response of the system. Find the frequency of the oscillation. Is it what you expected?
  4. Now set k p = k i = 0 k p = k i =0 and enter the value of k d k d you found in step 5. Manually displace the mass carriage; what do you feel? Do not excessively coerce the carriage as this may cause the motor drive protection to open the control loop. Now enter a value of kd five times as large, and manually displace the carriage again. What do you notice now?
  5. Now implement the values of k p k p and k d k d you found for the four cases in step 6. Perform a 3000 count step for each case; choose a dwell time long enough for the system to reach steady-state. Does the system's response agree with your simulations? Save these plots and turn them in when you complete the lab.
  6. With your critically damped k p k p and k d k d parameters from above, add integral action by entering the value of k i k i you found in step 7. Perform a 3000 count step and save the response plot.
  7. Change the control algorithm to the second case (with the differentiator in an inner feedback loop), and plot and save the step response. What differences do you notice between this response and the case with the differentiator in the forward loop?
  8. Stop and exit the VI, power off the amplifier and PXI, and return all plant materials to the instructor.

Post-Lab

  1. What was the effect of k p k p in step 3 above? If you doubled your value of k p k p in this step what would you expect the natural frequency of the system to be? (You should show this mathematically)
  2. What was the effect of k d k d in step 4 above?
  3. What differences did you notice between the PD controller and the PID controller?
  4. What differences did you notice when the differentiator was in an inner feedback loop as opposed to the forward loop?

Comments, questions, feedback, criticisms?

Send feedback