Challenge

Project - Position control of mass spring damper system

Obtain the transfer function of a mass spring damper system and use it in the model

Mass Spring Damper System

Transfer function and state space model are developed for system shown below.

(input) f(t) = external force applied on mass
(output) z(t) = position unknown
m = mass
k = spring constant
b = damping coefficient

Differential Equation

1 unknown so 1 equation is needed.

Newton's 2nd law:

(eq. 1)

Transfer Function

Laplace transform (eq. 1):

Solve for Z(s)/F(s):

(solution)

Block Diagram

This is model we build with PID controller

This is our script

This is output scope we obtained

we obtain signal same as refernce signal by giving Ki=900, stepe size=0.001 used that auto solver

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.