Skip to content

Lawproto/my-training-matlab-pendulum

Repository files navigation

👨‍🔬 Modeling a Pendulum in MATLAB

This repository contains the material required to support the hands-on that walks you through the basic steps for modeling a physical system in MATLAB/Simulink.

🔢 Basic Steps

  1. Sketch out the system on the paper and derive the governing equations.
  2. Solve the ODE problem in MATLAB.
  3. Simplify modeling by using Simulink.
  4. Don't model it, just build it and show it in Simscape.
  5. Carry out a back-to-back comparison.
  6. Building a double pendulum is as easy as counting 1,2,3.
  7. Let's control the pendulum.
  8. Perpetual motion doesn't exist actually, better off damping the pendulum.

With MATLAB you can design, simulate, and implement controllers for more complicated systems such as an inverted pendulum.

🎓 Assignment

Copy out step_8.slx into step_9.slx. Then, use step_9.slx to develop a controller that will let the pendulum rotate at a constant velocity. Try to reduce the velocity ripple as much as possible.

To complete the assignment do:

  1. Generate a copy of this repository into your own account. Tick in the option "include all branches" ✔
  2. Create the branch solution off of the branch master.
  3. Commit into the branch solution the following files:
    1. the model step_9.slx;
    2. a screenshot of the graph of the angle velocity.
  4. Push/sync the changes up to GitHub.
  5. Create a pull request (PR) with master as base branch and solution as compare branch.
  6. Request to review your PR 👋 to turn in the assignment.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages