AE4610
  • Welcome
  • Experiments
  • Lab 0: MATLAB & SIMULINK
  • Lab 1: Rotary Servo Base
    • A. Integration (Week 1)
    • B. Modeling (Week 1)
    • C. Control Design (Week 2)
    • D. Controller Implementation & Evaluation (Week 3)
  • Lab 2: 3 DOF Gyroscope
    • A & B. Modeling and Control Design (Week 1)
    • C. Controller Implementation (Week 2)
  • Lab 3: Rotary Flexible Link
    • A. System Identification (Week 1)
    • B & C. Control Design and Controller Implementation (Week 2)
  • Lab 4: Rotary Inverted Pendulum
    • A & B. Modeling and Balance Control
    • C. Swing-up Control (Demo)
  • Final Project
  • Archive
    • Old Lab 1 Model Validation
    • Problem Set
    • DC Motor
    • Lab 1: Rotary Servo Base (Older Version)
      • A. Integration (Week 1)
      • B. Modelling (Week 1)
      • C. Position Control (Week 2)
    • Quadcopter
    • Gyroscope
    • Inverted Pendulum
    • 3DOF Helicopter
    • Torsional Pendulum
    • Aero LQR
      • A. System Identification
      • A. System Identification (Week 1) last check
      • B. Control Design & Implementation (Week 2)
    • Rotary Gyro
      • Rotary Gyro
    • 2 DOF AERO
      • A. System Identification
      • B. Control Design
      • C. Controller Implementation
    • Copy of Lab 4: Rotary Inverted Pendulum
      • Week 1
      • Week 2
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Archive

Old Lab 1 Model Validation

PreviousFinal ProjectNextProblem Set

Last updated 4 months ago

Was this helpful?

Model Validation Experiment

In this experiment, you will adjust the model parameters you found in the previous experiments to tune the transfer function. Our goal is to match the simulated system response with the parameters you found as closely as possible to the response of the actual system. To create a step input:

  1. Double-click on the Signal Generator block and ensure the following parameters are set: • Wave form: square • Amplitude: 1.0 • Frequency: 0.4 • Units: Hertz

  2. Set the Amplitude (V) slider gain to 1.0 V.

  3. Set the Offset (V) block to 1.5 V.

  4. Set the Simulation stop time to 5 seconds.

  5. Open the load shaft speed scope, Speed (rad/s), and the motor input voltage scope, V_m (V).

  6. To build the model, click the down arrow on Monitor & Tune under the Hardware tab and then click Build for monitoring . This generates the controller code.

  7. Click Connect button under Monitor & Tune and then run SIMULINK by clicking Start .

  8. The gears on the Rotary Servo Base Unit should be rotating in the same direction and alternating between low and high speeds and the scopes should be as shown in Figure 15 a) and b). Recall that the yellow trace is the measured load shaft rate and the purple trace is the simulated trace. By default, the steady-state gain and the time constant of the transfer function used in simulation are set to: K = 1 rad/s/V and τ\tauτ = 0.1s. These model parameters do not accurately represent the system.

  9. Save wl data and name it as modeling_section#_Group#_K1tau01.

  10. Enter the command K = 1.25 in the MATLAB Command Window.

  11. Update the parameters used by the Transfer Function block in the simulation by updating diagram in the q_servo_modeling SIMULINK diagram. To update the diagram, from the Modeling tab, click Update Model. Alternatively, press Ctrl+D. Connect and run the SIMULINK model and observe how the simulation response changes. Remember we have increased K from 1 to 1.25.

  12. Save wl data and name it as modeling_section#_Group#_K125tau01.

  13. Enter the command tau = 0.2 in the MATLAB Command Window.

  14. Update the simulation again by updating diagram. Connect and run the SIMULINK model and observe how the simulation response changes. Remember we have increased τ\tauτ from 0.1 to 0.2.

  15. Save wl data and name it as modeling_section#_Group#_K125tau02.

  16. Calculate the nominal values, KKK and τ\tauτ , using Eqs. 2.1, 2.26, 2.27, 2.28 and the specifications provided in and for the high-gear configuration. Note: Eq. 2.26 must be converted to the Laplace domain to obtain the transfer function, which should be simplified to resemble Eq. 2.1. This would yield the formulae to determine KKK and τ\tauτ. You may also refer to the lecture slides.

  17. Enter the nominal values, KKK and τ\tauτ , that were found in Step 16 in the MATALB Command Window. Update the parameters and examine how well the simulated response matches the measured one.

  18. Save wl data and name it as modeling_section#_Group#_K#tau#. If the calculations of the nominal values were done properly, then the model should represent the actual system quite well. However, there are always some differences between each servo unit and, as a result, the model can always be tuned to match the system better. Try varying the model parameters (different KKK and τ\tauτ values) until the simulated trace matches the measured response better. Enter these tuned values under the Model Validation section of . If the model parameters are changed, save the data for the final set of tuned parameters. Note: Tuning the model parameters can be done by manually changing the Servo Model Transfer Function block parameters OR by changing the K and tau parameters in the MATLAB Command Window and going to Simulation | Update Diagram in the SIMULINK model.

Table A.1
Table A.2
Table B.2
Figure 15 Simulation done with default model parameters: K = 1 and τ\tauτ = 0.1Save wl data and name it something like modeling_section#_Group#_K1tau01.