Inverted Pendulum — A project in miniature: question, test, evidence

App Exercises

Model and Control Exercise 30 of 40. BYU class 32 · PDC class 34. 15 minutes.

Inverted Pendulum lecture cover
Open the Inverted Pendulum App

Learning Outcomes

  • State an engineering question a test can answer.
  • Record a baseline and one changed case with a number for each.
  • Explain a result from the model.

Book Chapter

Nonlinear Dynamics, Oscillations, and Stabilization (Volume 7), Chapter 7, Inverted Pendulum Simulator for Balancing a Pole Without Losing the Cart. Read online · Chapter PDF · Lecture slides

Theory in Brief

Near upright, theta is a small deviation, x is cart position and l is the effective pole length. The positive pole sets the fall time scale.

$$\ddot\theta=(g/l)\theta-\ddot x/l$$

$$p=\sqrt{g/l}$$

$$\theta(t)\propto e^{pt}\quad\text{along the unstable mode}$$

Model to Controller

The linearized balance explains why pole length changes the task. The rail limit constrains how the controller can recover.

Exercise

Read (2 min). Review the model and identify which signals you will compare.

Predict (1 min). Will a longer pole be easier or harder to balance? Explain your prediction.

Run (8 min).

  1. Open the app and select the following cases in order.
  2. 2 · Balance it yourself.
  3. 1 · Tuned balance.
  4. 5 · A longer pole.
  5. Follow the case instructions, using the same measurement window for comparable trials.
  6. Record seconds balanced by hand, the cart travel under control for each length, and p for each.

Explain (2 min). Which observation supports or changes your prediction? Which assumption or limit explains the gap between calculation and observation?

Generative AI Learning (2 min)

"I predicted {prediction} and measured {results} for seconds balanced by hand, the cart travel under control for each length, and p for each. Ask me to explain the model first. Check my method and units, then suggest one claim I can test on my trend."

Verify the suggested claim using a second point on your trend or an independent calculation from the equations. Cite the signal, units and case that support your conclusion.

What to Turn In

Submit a screenshot of the relevant trend or scorecard and three sentences covering your prediction, the measured result with units, and the model's explanation. Course guidelines for AI use.

Greater length reduces the positive pole and slows divergence. Use the same initial disturbance and run length when comparing cart travel between cases.

Which part of the model connects the measured signal to the exercise?

The linearized balance explains why pole length changes the task. The rail limit constrains how the controller can recover.

How should the observations be interpreted?

Greater length reduces the positive pole and slows divergence. Use the same initial disturbance and run length when comparing cart travel between cases.

How could you check that a result is comparable across cases?

Use the same signal, units and reference point. When comparing integrated quantities, use the same interval.

Related

Control Project · EE 4: Motors and Drives

29 · Servo Axis · 31 · Distillation

Course Information

Assignments

Projects

Exams

Dynamic Modeling

Equipment Design

Control Design

Optimal Control

Exercises

Related Courses

Admin