Challenge

Project - Position control of mass spring damper system

% parameters given
m = 3.6;% mass
k = 400; % stiffness
c = 100; % damper
% A & B matrices
A = [0 1;111.11 27.79];
B = [0;0.27];
fn = 1.0; % 1 hz freaquency
wn = 2*pi*fn; % natural freaquency in rad/sec
% design parameter
zeta = 0.5; % damping co efficient
% poles
p1 = -zeta*wn+wn*sqrt(zeta^2-1);
p2 = -zeta*wn-wn*sqrt(zeta^2-1);
P = [p1;p2];
% pole placementdesign
K = place(A,B,P);
Kp = k(1);
Kd = k(2);
Ki = 1500;
  1. Clock: The Clock block generates a periodic signal that can be used as a time reference for your model.

  2. Workspace: The Workspace block allows you to import data from the MATLAB workspace into your Simulink model.

  3. Pulse Generator: The Pulse Generator block generates a periodic rectangular pulse signal.

  4. Sum: The Sum block allows you to add or subtract signals. It is often used in control systems to combine the output of multiple controllers.

  5. Integrator: The Integrator block performs numerical integration of a signal. It is commonly used to model systems that involve calculus.

  6. Gain: The Gain block multiplies its input signal by a constant value.

  7. Transfer Function: The Transfer Function block models a linear time-invariant system using a transfer function. It takes the Laplace transform of the input signal, multiplies it by the transfer function, and then takes the inverse Laplace transform to obtain the output signal.

  8. Scope: The Scope block displays the output of a signal in a graph. It is commonly used to visualize simulation results.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.