Beruflich Dokumente
Kultur Dokumente
Mechatronic System
QCF level: 4
Credit value: 15
OUTCOME 2
TUTORIAL 1 - ELECTRO-MECHANICAL MODELS
2
Introduction
Basic Elements
Similarity of Elements
Transfer Functions
Basic Models of Mechanical Systems
5.1 General Procedure
5.2 Basic Mechanical Models
5.2.1
Springs
5.2.2
Dampers and Dashpots
5.2.3
Mass
5.2.4
Mass and Spring
5.2.5
Spring and Damper
5.2.6
Mass, Spring and Damper
5.3 Rotary Mechanical Systems
5.3.1
Torsion Bar
5.3.2
Torsion Damper
5.3.3
Moment of Inertia
5.3.4
Geared Systems
1. INTRODUCTION
Mechatronics make use of Mechanical, Electrical and Computer technologies, each with various sub
divisions. Engineers find it very useful to describe mathematically how the individual elements and the
overall integrated system behave in order to predict how they will perform.
You are required to have an understanding of the basic way models of systems are derived. The following
contains descriptions for Mechanical, Thermal, Hydraulic and electrical systems of varying complexity. You
need to judge or be advised by your tutor which disciplines and which examples to study. Remember that in
order to obtain higher grades in your assessments you should study the more advanced examples.
Note: The following work covers elements of mechatronic systems and not complete mechatronic systems.
www.freestudy.co.uk
2.
BASIC ELEMENTS
Any element has an input and an output. The element processes
the input to produce the output. It is easiest to show it
diagrammatically.
Some elements have an input and output of the same basic form such as a voltage transformer or a
pair of gears.
Other elements change the form such as converting a voltage into a frequency or a force in to
movement or an analogue voltage into a digital number (and vice-versa). A thermocouple for
example, converts temperature into a voltage.
There are various mathematical symbols for representing the input and output and it is useful to show
which is which with a suffix o for the output and i for the input.
A general symbol is usually o and i (these are also used specifically for temperature and angle so
be careful). Other common ones are V for voltage and x for movement and so on.
If the relationship between the input and output can be represented by a mathematical equation then
we have our model. The equation is loosely called the transfer function (but there is a lot more to
this than you might think). We give it symbols such as G
In many cases we can define the transfer function as
The simplest G is just a number representing a ratio such as for a
voltage transformer or a gear ratio.
If you study the model in more detail you might find that other things affect it such as time lag and
distortion. This is due to things like capacitance, inductance, springiness, inertia, thermal capacity
and so on.
Transfer functions for such elements can be quite complicated and requires knowledge of advanced
mathematics such as Calculus and various transformations such as Laplace.
A complex system uses many smaller elements linked together and all this helps us to produce an
overall model. A simple example of this is an instrumentation system and here is an example.
Note you might already have studied this and should know that for the overall system G = G1 G2 G3
www.freestudy.co.uk
3.
SIMILARITY OF ELEMENTS
Engineers have found that many mechanical and electrical elements have the same model and that the maths
used is the same. There are clear analogies between electrical and mechanical (including thermal and fluid)
systems. These use the properties of Capacitance, Resistance and Inductance. Laws used in common are
conservation laws. You do not need to study all these in detail and the appropriate law will be explained as
required.
CAPACITANCE usually uses the symbol C and is found in electrical, thermal and fluid systems. A
mechanical spring is a form of capacitance where k is the spring stiffness and 1/k is analogous to C.
RESISTANCE usually uses the symbol R and is found in electrical and thermal systems.
Mechanical/hydraulic resistance is better known as the damping coefficient and has various symbols.
INDUCTANCE usually uses the symbol L for electrical systems. In mechanical systems the
analogous property is MASS or INERTIA and in fluid systems the analogous property is
INERTANCE
Here is a table showing the main analogue components and their mathematical models. It is useful to note
that capacitance is a zero order differential equation, resistance is a first order differential equation and
Inductance/inertia/inertance is a second order differential equation.
SYSTEM
PROPERTY
CAPACITANCE
MECHANICAL
ELECTRICAL
THERMAL
FLUID
Spring
x = C F = (1/k) F
Capacitor
Capacitor
Capacitor
Q=CV
Q = C T
RESISTANCE
INDUCTANCE
CONSERVATION
LAWS
Damper
Resistor
Force = kd x velocity
F = kd dx/dt
Torque = kd x Ang.vel
V=RI
V = R dQ/dt
Mass or Inertia
Inductor
V = L d2q/dt2
Force = 0
Moment = 0
Thermal Conduction
M = C x p
Fluid friction Laws
do not conform to
this law so the
equations are more
complex.
T = R
T = R dQ/dt
No equivalence
Fluid inertance
p = Ld2v/dt2
Kirchoff's Laws
Conservation
Energy
current = 0
Energy = constant
of
Conservation
Mass
of
Mass = constant
Note that Q is the symbol for electric charge and quantity of heat. This is analogous to displacement in
mechanical systems, these being distance (usually x) or angle (usually ).
V is the symbol for electric voltage (potential difference or e.m.f) and is equivalent to temperature T or for
thermal systems, Force F or Torque T for mechanical systems and pressure p for fluid systems.
v or u is the symbol for velocity in mechanical systems and this is equivalent to electric current (I or i) and
heat flow rate .
www.freestudy.co.uk
TRANSFER FUNCTIONS
The mathematical models of most systems are in the form of differential equations so you must be proficient
at differential calculus. To make these easier to use, we rewrite the differential expressions as follows.
d
d 2
dn
2
n
but n=2 is the highest you will deal with here.
becomes s
becomes
s
n becomes s
2
dt
dt
dt
This is called a Laplace transform. Laplace will not be covered in detail in this module but be aware that
advanced system modelling requires you to study this.
The purpose of this transform is to allow differential equations to be converted into a normal
algebraic equation in which the quantity s is just a normal algebraic quantity.
In this tutorial we should simply regard it as a convenient way to change differential equations into algebraic
equations. Note that this usually applies to quantities that are a function of time which is why the
expressions are written as differential coefficients with respect to time.
A simple system is usually shown diagrammatically as a single block with
something going in and something coming out as shown.
The mathematical model is written in the form of the ratio of Output/Input, if the models are turned into a
function of s it is correctly called a transfer function and this is usually denoted as G(s).
G(s)
Output
The output and input are changed from functions of time to a function of s.
Input
Note
Equations with the highest term s2 is called a second order equation
Equations with the highest term s1 or simply s is called a first order equation
Equations with the highest term so is a zero order equation. Since so = 1 this is basically any
equation that appears to contain no terms with s.
Now lets examine the derivations of some mathematical models starting with mechanical systems. You
might choose to concentrate on the field of engineering you are most familiar with and be selective about
which of the following systems you study.
5.
5.1
GENERAL PROCEDURE
The general procedure for deriving models for mechanical systems is as follows.
Adopt a suitable co-ordinate system with an appropriate sign convention. For linear motion, up is
positive and left to right is positive. For rotation anticlockwise is positive and clockwise is negative.
These may be changed when convenient so long as they are defined and used consistently.
Identify any disturbing forces acting on the system (inputs to the system).
Identify displacements and/or velocities (outputs from the system).
Draw a free body diagram for each mass showing all the forces and moments acting on it.
Apply Newton's 2nd Law to each free body diagram (F = Mass x Acceleration).
Rearrange the equations into a suitable form for solution by a convenient method.
Note that unless otherwise specified, ignore gravitational effects.
Lets now examine mechanical elements in detail.
www.freestudy.co.uk
5.2
5.2.1 SPRINGS
It is found that most springs deflect a distance x in direct proportion to the force causing it such that
F/x = constant = k
The force may cause the spring to get longer or shorter.
k is the spring stiffness (also called spring rate and spring constant) There are angular versions of this
covered later.
The next diagram shows the mechanical symbols the model as a block diagram. Note (t) indicates that the
quantity is a function of time and time is something to be considered in more advanced work.
In system analysis it is more normal to use x/F = C where the
constant C is the mechanical capacitance and is analogous to
other forms of capacitance.
x
The transfer function is G 1/k C
F
This is a zero order system.
5.2.2 DAMPER or DASHPOT
A damper uses fluid friction to provide resistance to motion and is often used to damp down vibrations. It
also occurs naturally in many mechanisms. It may be idealised as a loosely fitting piston moving in a
viscous fluid or a piston forcing gas through a small hole as shown below.
It is found for such devices that the Force required to move the piston is directly proportional to the velocity
such that:
F = constant x velocity
Velocity is the first derivative of distance with respect to time so v = dx/dt
F = c dx/dt
c is a commonly used symbol for the constant and is called the damping coefficient but in systems we often
use the symbol kd It has units of N s/m. It is analogous to electrical resistance.
The next diagram shows the mechanical circuit and transfer
function block.
dx
F(t) k d
The basic law of a dashpot is:
dt
Changed into Laplace form:
F = kd s x
x
1
Rearranged into a transfer function:
(s)
F
k ds
This is a first order system.
www.freestudy.co.uk
5.2.3 MASS
When a mass is accelerated, the inertia has to be overcome and
the inertia force is given by Newtons Second Law of Motion
Force = Mass x Acceleration. Acceleration is the second
derivative of x with time.
d2x
accelerati on 2
dt
d2x
Newtons second law of motion:
F(t) M 2
dt
2
Changed into Laplace form:
F = Ms x
x
1
(s)
Rearranged into a transfer function:
F
Ms2
This is a second order system.
5.2.4 MASS AND SPRING SYSTEM
For this spring - mass system, motion only occurs in
one direction so the system has a single degree of
freedom. The free body diagram is shown. The input is
a disturbing force F which is a function of time F(t).
This could, for example, be a sinusoidal force. The
output is a motion x which is a function of time x(t).
Let x be positive upwards.
The input force is opposed by the spring force and the inertia force (which always opposes changes in the
motion as stated in Newtons third law of motion).
Spring force = k x
Inertia force = M d2x/dt2
D'Alembert's Principle is that all the forces and moments on the body must add up to zero. In this case it
means the applied force spring force inertia force = 0 (all being a function of time t).
Hence:
F(t) - kx(t) - M d2x/dt2(t) = 0
or
F(t) = M d2x/dt2(t) + kx (t)
Changing to a function of s we have
F
Ms k
2
F1/M
s k/M
2
www.freestudy.co.uk
F(t) = k x + kd dx/dt
F(s) = k x + kd s x
x
1/k
(s)
F
k d /k s 1
The units of kd/k are seconds and this is the first order time constant for the system
x
1/k
T = kd/k
(s)
F
Ts 1
Time constants are important properties of the system and affect its behaviour in respect to time.
This is the standard first order equation which you will need to study further.
5.2.6 MASS -SPRING - DAMPER SYSTEM
When we have a Mass, spring
and dashpot in series as shown
we get the following
derivation.
The input is the force F and the output is the movement x, both being functions of time.
Spring force
Damping force
Inertia force
Fs = kx
Fd = kd dx/dt
Fi = Md2x/dt2
The three forces oppose motion so if the total force on the system is zero then
F(t) M
d2x
dx
k
kx
d dt
dt 2
F(s) Ms2 x k d sx kx
G(s)
F = Fi + Fd + Fs
x
1/k
(s) 2
F
s (M/k) s(k d /k) 1
If we examine the units of (M/k)1/2 we find it is seconds and this is the second order time constant also
with the symbol T.
The transfer function may be written as G(s)
x
1/k
(s) 2 2
F
T s 2 Ts 1
is the damping ratio defined as = kd/Cc and Cc is the critical damping ratio defined as (4Mk).
www.freestudy.co.uk
kd
Cc
2k d M/k
4Mk
2k d M
2 M k k
kd
k
This is the standard 2nd order transfer function which will be analysed in detail later.
ii.
Derive the equation for the force required when the piston is accelerating.
iii.
iv.
Use the equation to evaluate the force needed to make the mass accelerate at 4 m/s 2 at the
moment when the velocity is 0.5 m/s.
SOLUTION
i.
ii.
iii.
For a constant force and a static position there will be neither velocity nor acceleration
F
12
800 x
0.015 m or 15mm
x
800
iv.
www.freestudy.co.uk
i.
ii.
If a constant force of 22 N is applied, what will be the static position of the mass?
(18 mm)
iii.
Calculate the force needed to make the mass move with a constant acceleration of 12 m/s 2 at the
point where the velocity is 1.2 m/s.
(396 N)
T(t) = k (t)
T(s) = k (s)
1
(s)
T
k
T(t) k d
d
dt
T(s) k d s
www.freestudy.co.uk
G(s)
1
(s)
T
k ds
d 2
1
T(s) I s 2 G(s) (s) 2 .
2
T
dt
Is
Note many text books also use J for moment of inertia.
T(t) I
This work is important in the study of motors, gear boxes, pulley drives and so on.
G(s)
1/k
1/k
(s)
2 2
2
T
(J/k)s (Jk d /k)s 1
T s 2 Ts 1
www.freestudy.co.uk
10
m is the motor rotation and o the output rotation. The gear ratio is Gr = o/m
Since this is a fixed number and is not a function of time, the speed and acceleration are also in the same
ratio.
dm/dt = m
do/dt = o
Gr = o/m is the angular velocity
d2m/dt2= m
d2o/dt2 = o
Gr = o/m is the angular acceleration.
The power transmitted by a shaft is given by Power = T. If there is no power lost, the output and input
power must be equal so it follows that
m Tm = o To hence
Tm = o To /m = GrTo
(In reality friction significantly affects the torque)
Consider the inertia torque due the inertia on the output shaft Io.
To = Ioo = Io m x Gr
Tm = To x Gr = Io m x Gr2
Now consider the damping torque on the output shaft.
To = kdo o = kdo mGr
Tm = To x Gr = kdo m Gr2
Now consider that there is an inertia and damping torque on the motor shaft and on the output shaft. The
total torque produced on the motor shaft is
Tm = Imm + kdm m + Gr To
To = Ioo + kdo o
Tm = Imm + kdm m + Gr { Ioo + kdo o}
Tm = Imm + kdm m + Gr2 Io m + Gr2 kdo m
Tm = m (Im +Gr2 Io) + m (kdm +Gr2 kdo)
(Im +Gr2 Io) is the effective moment of inertia Ie
(kdm +Gr2 kdo) is the effective damping coefficient kde.
The equation may be written as
In calculus form this becomes
www.freestudy.co.uk
Tm = m (Ie) + m (kde)
Tm = d2/dt2 (Ie) + d/dt (kde)
11
The output is the motor angle and the input is the motor torque so the geared system may be presented as a
transfer function thus. (s)/Tm (s) = (1/Ie)/s{s + Kde/Ie}
(s)
Tm
s s k de /I e
Tm I e K de
Tm 120.5 5.1
www.freestudy.co.uk
12
www.freestudy.co.uk
13
6.
6.1
Consider a mass M kg at temperature 1. The mass is placed in a hot environment at temperature 2 and heat
Q is transferred into the mass causing its temperature to rise. The system could be for example, a resistance
thermometer, and we want to know how long it takes for the sensor to warm up to the same temperature as
the liquid.
The laws of heat transfer tell us that the temperature rise is directly proportional to the heat added so:
Q = Mc 1 and for a small change dQ = Mc d1 = C d1
c is the specific heat capacity. C = Mc is the thermal capacitance in Joules/Kelvin.
d
dQ
Divide both sides by dt and:
C 1
dt
dt
The rate of heat transfer into the mass is = C d1/dt and the rate is governed by the thermal resistance
between the liquid and the mass. This obeys a law similar to Ohms Law so that:
= (2 - 1)/R
Equating for we have
d1
d1
dt
d1
dt
dt
1 2
d1
dt
1
RC
1
T
2
RC
1 2
RC
RC is a time constant T
2
T
1
1
(s)
2
(Ts 1)
This is another example of standard first order equations and when compared to the equation for the
spring - damper system we see the thermal capacitance C is equivalent to 1/k and resistance R is equivalent
to kd.
www.freestudy.co.uk
14
7.
The basic theory for hydraulic and pneumatic components may be found in the tutorials on fluid power.
7.1
HYDRAULIC MOTOR
1
G(s)
Q
k qs
Pressure and torque. The formula that relates system pressure p to the output torque T is T = kq p
If pressure is the input and torque the output then:
G(s)
T
k q This is a further definition of the constant kq.
p
www.freestudy.co.uk
15
7.2
HYDRAULIC CYLINDER
Q
As
Force and pressure are related by the law F = pA. The transfer function with p as the input and F as the
F
output is: G(s)
A
p
7.3
The input to the system is the movement of the valve xi. This allows a flow of oil into the cylinder of Q m 3/s
which makes the cylinder move a distance xo.
Making a big assumption that for a constant supply pressure the flow rate is directly proportional to the
valve position we may say:
Q = kv xi
(Note this is a gross simplification of the real case where the relationship is more complex.)
www.freestudy.co.uk
16
kv is the valve constant and examining its units we find they are m 2/s
The area of the piston is A m2.
The velocity of the actuator is v = dx o/dt and this is related to the flow and the piston area by the law of
dx
Q k vxi A o
continuity such that
dt
Changing to a function of s this becomes kv xi = Asxo
x
1
Expressed as a transfer function we have G(s) o (s)
xi
(A/k v )s
The units of A/kv are seconds and we deduce this is yet another time constant T.
x
1
G(s) o (s)
xi
Ts
Note that this is not quite the standard first order equation 1/{Ts+1} and the difference is that the output
will keep changing for a given input, unlike the previous examples where a limit is imposed on the output.
If the actuator is a motor instead of a cylinder the equation is similar but the output is angle instead of linear
motion.
G(s)
xo
1
(s)
xi
Ts
Tsxo x i
T
dx o
xi
dt
x
dx o
0.005 m
velocity i
0.156 m/s
dt
T
0.032 s
www.freestudy.co.uk
17
A hydraulic motor has a nominal displacement of 5 cm 3/radian. Calculate the torque produced at a
pressure of 120 bar.
(60 N m)
2.
A hydraulic cylinder has bore of 50 mm and is controlled with a valve with a constant k v = 0.05 m2/s
Calculate the time constant T. Given that x i and xo are zero when t = 0, calculate the velocity of the
piston and the output position after 0.2 seconds when the input is changed suddenly to 4 mm.
(0.039 s, 0.102 m/s and 20 mm)
www.freestudy.co.uk
18
7.4
Consider the same system but this time let the actuator move a mass M kg and have to overcome a damping
force. Further suppose that the valve now meters the pressure and not the flow rate such that the pressure
applied to the cylinder is p = kvxi. Consider the free body diagram of the actuator.
The applied force is due to pressure Fd and this is determined by the pressure acting on the area A such that:
Fp = pA.
The applied force is opposed by the inertia force Fi and the damping force Fd.
Fi = M d2xo/dt2 and Fd = kd dxo/dt.
Balancing forces gives
Substituting p = kvxi. we have
In Laplace form we have
Rearranging it into a transfer function.
d2xo
dx o
dt
dt
2
d xo
dx o
k vxiA M
kd
2
dt
dt
2
k v x i A Ms x o k d sx o
x
1
G(s) o (s)
2
xi
(M/Akv )s (k d /Ak v )s
pA M
kd
Note the similarity with the standard 2nd order equation 1/{T2s2 + 2Ts + 1}. The difference is again due to
there being no limitation on the output. If the actuator is a motor instead of a cylinder, the transfer function
is similar but the output is angle and angular quantities are used instead of linear quantities.
www.freestudy.co.uk
19
www.freestudy.co.uk
20
8.
8.1
RESISTANCE
CAPACITANCE
INDUCTANCE
www.freestudy.co.uk
21
8.4
POTENTIOMETER
R -C SERIES CIRCUIT
Consider the electric circuit shown. The input
voltage Vi is the sum of the voltage over the
resistor and the capacitor so
Vi = I R + I /Cs
Vi = I (R + 1/Cs)
Vi
I(R 1/Cs) RCs 1
The units of RC are seconds and this is another electrical time constant T. The transfer function may be
written as
V
1
G(s) o (s)
Vi
Ts 1
This is the standard first order equation and is the same as both the spring and damper and the thermal
example.
www.freestudy.co.uk
22
8.6
L - C - R in SERIES
Consider the electric circuit shown. This is 3 sub-systems in
series. In this case we will take the output as the voltage on the
capacitor and the input as the voltage across the series circuit.
The input voltage is the sum of all three voltages and is found by
adding them up.
Vi = I R + I sL + I/sC
Vi
I(R sL 1/Cs) RCs CLs 2 1
G(s)
Vo
1
(s) 2
Vi
s CL sRC 1
If we examine the units of CL we find it is seconds2 and we have yet another time constant defined as
T2 = CL and the equation may be rewritten as:
V
1
G(s) o (s) 2 2
Vi
T s 2 Ts 1
The damping ratio is defined as
and
L
is called the critical damping value.
C
L
C
Note this is the standard 2nd order equation identical to the mass-spring-damper system.
4
www.freestudy.co.uk
23
1
The transfer function is o (s)
i
(Ts 1)
The voltage across the resistor is suddenly changed from 3V to 10V.
Calculate the time constant T.
It can be shown that the voltage varies with time by the formula Vo Vi V e
t
T
SOLUTION
T = RC = 20 x 103 x 200 x 10-6 = 4 seconds
Put in the values T = 4
Vo Vi
V e T
V = 10 3 = 8 Vi = 10
-t/4
Vo = 10 7e
Calculate the time constant for an RC circuit with a resistance of 220 and capacitance of 470 nF.
(103 s)
2.
Calculate the second order time constant and the damping ratio for a R-L-C circuit with L = 5 H,
C= 60 F and R=6.8 .
(17.3 s and 11.8 )
www.freestudy.co.uk
24
ELECTRIC MOTORS
Electric motors form part of many mechatronic systems and there are various models for the many types of
motors that exist. Students studying electrical engineering should be familiar with this. The following is a
brief summary of the models.
9.1
The main theory is not covered here. It can be shown that for a d.c. servo motor with field control that:
T = if
T is the torque produced, if is the current in the field coil and kf is a constant.
If the motor drives an inertial load and has damping the dynamic equation becomes
d 2
d
kd
2
dt
dt
2
T Is k d s (Is2 k d s) k f i f
T I
G(s)
(s) 2 f
if
Is sk d
This models the relationship between the shaft angle and the
control current.
9.2
dt R a
T Is 2 k d s
Equating we get
T (Is2 k d s) Va ks
k
k
k 2s
Va
Ra
Ra
Ra
k 2s
k
Is 2 k d s
Va
R
R
a
a
(k/R a )
G(s)
(s) 2
Va
Is sk d k 2s/R a
This models the relationship between the angle of the shaft and the control voltage.
The next section is optional for study, students applying the work to mechatronic systems will find that the
study of closed loop control circuits is very important but this is a large and complex area to study.
www.freestudy.co.uk
25
10. CLOSED LOOP SYSTEMS TRANSFER FUNCTION WITH UNITARY FEED BACK.
A simple system with an input and output as shown is called an open loop system as the output has no affect
on the input.
G(s)
o
e
G(s)
1
i
-1
o
rearrange
i
1
-1
o
G(s)
i
1
1 G(s)
G(s)
1
1
invert and o
or
o G(s)
G(s)
i 1 G(s)
1/G(s) 1
1
The transfer function for the closed system is hence G cl (s) o
i 1/G(s) 1
Lets revisit the hydraulic open loop transfer functions derived previously.
When the hydraulic valve and actuator is turned into a closed loop system, the two transfer functions
become:
1
1
G cl
for the first order version and G cl 2 2
for the second order version.
Ts 1
T s 2 Ts 1
These models are mathematically identical to the transfer function of the mass-spring- damper and the L-CR circuits.
Note that for any system with an open loop transfer function G(s) the closed loop transfer function with unit
1
feedback is G cl
1/G(s) 1
www.freestudy.co.uk
26
1
1
2
2
2
2
2
1/G(s) 1
s 2s 1
s 2s 1 2
s 2s 3
1
2
An open loop system has a transfer function G(s) = 5/(4s2 + 2s + 2). Derive the closed loop function
when unit feedback is used.
Gcl = 5/(4s2 + 2s + 7)
2.
An open loop system has a transfer function G(s) = 10/(s3 +5s). Derive the closed loop function when
unit feedback is used.
Gcl = 10/(s3 + 5s + 10)
www.freestudy.co.uk
27