Git Product home page Git Product logo

controls_playground's Introduction

Controls Playground

This is a MATLAB app that can be used to simulate a spring mass damper system under open loop, PID, and Full State Feedback Control. A simple user interface allow for adjusting the inputs to the system on the fly. Several plots can be used to see the response of the system. An animation of the response can allow be played.

Useful Links

Much of this course and the comments in the code used to create this app are drawn from the textbook The Control Book, by Randy Beard, Tim McLain, and Cammy Peterson. A fee copy can be found here:

https://controlbook.byu.edu

The Github repository for this application is here:

https://github.com/ccackam/controls_playground

The latest release of this application can be found here:

https://github.com/ccackam/controls_playground/releases

Instalation

Almost no installation is required. As long as you have the MATLAB, just download the .mlappinstall file from the latest release and double click to install the file.

Requirments

MATALB - https://www.mathworks.com/products/matlab.html

If you are a student, check with your school to see if they offer MATLAB to their students for free.

Download

Download the latest .mlappinstall file from here: https://github.com/ccackam/controls_playground/releases

Install

Double click the installation file.

Usage

Using this application is relatively intuitive.

Opening

To open the application open MATLAB and open the App menu at the top.

From the drop down select the Controls Playground application.

Operation

To change the simulation simply move the sliders. Pressing a 0 button will move that slider back to 0. Pressing the R button will reset the slider to some default value. If a number is typed in the reset box then pressing the R button will set the slider to that value. Make sure the value in the reset box is within the range of the slider. There are several different categories of sliders. Including:

  • Intial Conditions
  • System Parameters
  • Mass
  • Spring Constant
  • Damping Constant
  • Saturation Limits
  • Control Gains/Tuning Parameters
  • Integrator Anti-windup Limits

The plots in the center of the page plot various system variables. The diagram at the top of the page can be used to animate the system.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.