SlideShare a Scribd company logo
1 of 24
Download to read offline
Introduction to Mechatronics (Meng 5272) Lecture Notes
Tsegaye Getachew Alenka
Department of Mechanical Engineering
Wolaita Sodo University
tsegaye.getachew@wsu.edu.et
February 26, 2023
Contents
1 Competencies and Objectives of the Course 1
1.1 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Competences (Learning Outcomes) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Mechatronics, Introduction 1
2.1 Definition and Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2.2 Measurement control Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.3 Performance of Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.4 The Wheatstone Bridge Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.5 Review Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 Control System, Actuating System and Mathematical Modeling 5
3.0.1 Mathematical models of Actuating Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.1 Semiconductors and Motor Controllers/Actuators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2 Mechatronic System Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.3 Mechatronic Design Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.4 Review Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 Micro-controllers and microprocessors 11
4.1 BASIC COMPUTER MODEL and Analogy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.2 Review Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5 Sensor Communication Design 13
5.1 Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.2 Sensor Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.2.1 Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.2.2 General Purpose Instrument Bus Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.3 Digital Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.3.1 Bivalent Axiomatic Set Theory/Logic Gates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6 Assembly Language and PLC 18
6.1 Ladder Logic, Functional Block Diagram, Structured Text, Instruction List and Sequential Functional
Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.2 Review Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
7 Miscellaneous & Objective Questions 21
List of Figures
1 (a) Concept of mechatronics: an interconnected energy and information flow (b) Definition: synergetic
integration of knowledge from main disciplines in mechatronics . . . . . . . . . . . . . . . . . . . . . . 2
2 (a) Wheatstone Bridge Circuit (b) Realtime step vs frequency Response . . . . . . . . . . . . . . . . . 4
3 (a) Comparison of Open and Closed Loop Controller (b) components of closed loop controller . . . . . 7
4 Schematic of Synergistic Mathematical Model of Actuation Control Systems (a)Mechanical (b) Hy-
draulic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5 (a) Types of Motor Actuators (b) Types of Electronics . . . . . . . . . . . . . . . . . . . . . . . . . . 9
I
6 (a) Watt-Governor (b) Electronic Furnace Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
7 (a) an 8051 µP Architecture & Components (b) bus (c)µcontrollers vs µprocessors . . . . . . . . . . . 12
8 Bivalent logic gates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
9 Ladder Logic Program/Diagram of Pump Motor Control . . . . . . . . . . . . . . . . . . . . . . . . . 20
10 (a) Sequential Function Chart (SFC) of the pump (b)Function Block Diagram (FBD) . . . . . . . . . 20
List of Tables
1 Measurement instruments construction A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Measurement instruments construction B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 Differential Modelling of Physical Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4 Comparison mathematical model of simple translational mechanical vs PID control systems . . . . . . 7
5 Basic Analogy of Computer Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6 8051 Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7 Simple Programs in 8051 Assembly Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
I
1 Competencies and Objectives of the Course
1.1 Objectives
Mechatronics, as an engineering discipline, is the synergistic combination of mechanical engineering, electronics, control
engineering, and computers, all integrated through the design process. It involves the application of complex decision
making to the operation of physical systems. Mechatronic systems depend for their unique functionality on computer
software. This course studies mechatronics at a theoretical and practical level; balance between theory/analysis and
hardware implementation is emphasized; emphasis is placed on physical understanding rather than on mathematical
formalities.
A case-study, problem-solving approach, with video hardware demonstrations, is used throughout the course. The
course of studies should enable students to analyze complex physical-technical combinations and to describe, to
model, to simulate and to develop Mechatronics systems using the methods of mechanical engineering, electrical
engineering and computer science. Students’ central task is A case-study, problem-solving approach, with video
hardware demonstrations, is used throughout the course. The course of studies should enable students to analyze
complex physical-technical combinations and to describe, to model, to simulate and to develop Mechatronics systems
using the methods of mechanical engineering, electrical engineering and computer science. Students’ central task is
the optimal configuration of the complete system.
1.2 Competences (Learning Outcomes)
After completion of this course students will
ˆ Understand the importance of the integration of modeling and controls in the design of mechatronic systems.
ˆ Understand the dynamic system investigation process and be able to apply it to a variety of dynamic physical
systems.
ˆ Understand the importance of physical and mathematical modeling (both from first principles and using system
ˆ identification experimental techniques) in mechatronic system design and be able to model and analyze mechan-
ical, electrical, electromechanical, fluid, thermal, chemical, and multidisciplinary systems.
ˆ Be able to develop a hierarchy of physical models for a dynamic system, from a truth model to a design model,
and understand the appropriate use of this hierarchy of models.
ˆ Become proficient in the use of MatLab/Simulink to model and analyze nonlinear and linear mechatronic systems.
ˆ Understand the key elements of a measurement system and the basic performance specifications and physi-
cal/mathematical models of a variety of analog and digital motion sensors.
ˆ Understand the characteristics and models of various electromechanical actuators (brushed dc motor, brushless
dc motor, and stepper motor) and hydraulic and pneumatic actuators.
ˆ Understand analog and digital circuits and components and semiconductor electronics as they apply to mecha-
tronic systems.
ˆ Understand and be able to apply various control system design techniques: open-loop feedforward control,
classical feedback control (root-locus and frequency response), and statespace control.
ˆ Have a general understanding of more advanced control design techniques: cascade control, inferential control,
model predictive control, adaptive control, fuzzy logic control, and multivariable control.
ˆ Understand the digital implementation of control and basic digital control design techniques.
ˆ Be able to use a microcontroller as a mechatronic system component, i.e., understand programming and inter-
facing issues. Be able to apply all these skills to the design of a mechatronic system
2 Mechatronics, Introduction
2.1 Definition and Concept
Mechatronics is a concept of Japanese origin (1980’s) and can be defined as the application of electronics and com-
puter technology to control the motions of mechanical systems. The word, mechatronics, is composed of “mecha”
from mechanism and the “tronics” from electronics. In other words, technologies and developed products will be
incorporating electronics more and more into mechanisms. [1] Mechanical systems are increasingly integrated with
actuators, sensors and digital electronics as in the figure 1 (a).[1]
1
(a) (b)
Figure 1: (a) Concept of mechatronics: an interconnected energy and information flow (b) Definition: synergetic integration of knowledge
from main disciplines in mechatronics
The design of mechatronic system involve interrelations during mechanical and electronic systems, the simultaneous
engineering with the goal of also creating synergetic effects as presented in the figure 1 (b).[2]. Mechatronics, therefore,
is the synergistic integration of mechanical engineering, with electronics and intelligent computer control in the design
and manufacturing of industrial products and processes.
2.2 Measurement control Review
Measurements of variables are needed for monitoring and control purposes. Typical variables that need to be measured
in a data acquisition and control system are:1. position, velocity, acceleration, 2. force, torque, strain, pressure, 3.
temperature, 4. flow rate, 5. humidity.. Many instruments constructed to work by the principle electromagnetism
with capacitive, resistive, and magnetic detection a few with Lorentz’s force measurement i.e.if a magnetic field
moves near an electrical wire, current flows through the wire. Whereas an LVDT measures displacement, an LVT
measures speed. The coils of opposite polarity around permanent magnet measures the net DC/AC voltage generated
proportional to object’s position measured and stored along with timer frequency, to compute motion. Tables 1 &
1 show review on schematic construction of various instruments. [3] Sensor is a device that responds to a change
Table 1: Measurement instruments construction A
An LVT consists of
a rod called the core
(a permanent mag-
net), and two elec-
trical coils around
the core slides in-
side a hollow cylin-
drical tube called
a bobbin and DC
vltage generated in
the coils.
doppler works by
the same principle
as a car horn where
moving towards
you (or away from
you) has an ap-
parently higher (or
lower) pitch, only
that doppler works
with radio wave
instead of sound
wave, or frequency,
A double-pulse laser
illuminates a region
of flow under study,
and a digital camera
(sometimes two sepa-
rate cameras) records
two images – timed
with the two flashes
(pulses) of laser light.
The displacement of
illuminated particles
is then determined
by analyzing (interro-
gating) the two im-
ages with image pro-
cessing software
An optical technique
involving a laser is laser
Doppler velocimetry
(LDV), also called laser
velocimetry (LV) or laser
Doppler anemometry
(LDA). whereas PIV is
a Lagrangian technique,
following the motion of
individual particles, LDV
is an Eulerian technique,
since the velocity is mea-
sured at a fixed point in
the flow.
works in Bernoulli’s
principle where
Pitot-static probe
either both pres-
sures are measured
(pierced two holes
from side), or the
pressure difference
is measured (with
only one hole at
the front edge).We
consider here in-
compressible flow,
and assume that
the probe is aligned
into the flow,
in the physical phenomenon. Transducer is a device that converts one form of energy into another form of energy
2
Sensors are transducers when they sense one form of energy input and output in a different form of energy. For
example, a thermocouple responds to a temperature change (thermal energy) and outputs a proportional change in
electromotive force (electrical energy). Therefore, a thermocouple can be called a sensor and or transducer. The study
of mechatronic systems can be divided into the following areas of speciality:
1. physical system modelling: mechanical systems (mechanical elements, machines, precision mechanics); and elec-
tronic systems (microelectronics, power electronics, sensor and actuator technology);
2. information technology (systems theory: Signals and Systems,and Data Acquisition), and Logic Systems,
Software, Computers, artefacts and Intelligence: automation, software engineering, artificial intelligence).
Table 2: Measurement instruments construction B
In piezoelectric (acceler-
ation, strainguage, etc)
instruments, A seismic
mass is placed on an
elastic return blade
equipped with two
or four piezoresistive
gauges in a Wheatstone
Bridge where the unit
vibration of a mass
applied by a force
proportional to acceler-
ation & the piezoelectric
element
C = ε0εr
A
d Bimetalic strip thermo-
couples: two dissimilar
metals, joined together
at one end, that produce
a voltage (expressed in
millivolts) with a change
in temperature.
Gyroscopes in-
ertia navigation
can be used to
construct gyro-
compasses, which
complement or
replace magnetic
compasses vehi-
cles, to assist in
stability
The photoelectric
effect is a phe-
nomenon in which
photon energy (i.e.
from light) releases
electrons from their
otherwise more
stable state on a
surface where the
disruption mea-
sured called hall
effect with Loretz
force
Due to the fact that the controller is a digital computer, the following problems are introduced in a closed loop
control system: time delay associated with signal conversion and processing, sampling, quantization error due to finite
precision, and reconstruction of signals. While the switch is ON, the output voltage is
y(t) =
1
C
Z t
1
i(τ)dτ where i(τ) =
y(t) − ¯
y(t)
R
(1)
Nevertheless, sensors/measurement instrument can either be designed for a discontinuous/continuous applications as
a system. Continuous applications require the process of signal conditioning: sampling, analogue to digital conver-
sion, filtering/manipulation and storing of data from single or multiple measurement instruments. Filtering involves
digital conversion, error verification and validation, real-time delay accommodation, time-space correlation, sampling
operation and specification.
2.3 Performance of Measurement
A measurement system must first be accurate, precise & repeatable before it can be reproducible. Repeatability
refers to a sensor’s ability to give identical outputs for the same input. Precision (or random) errors cause a lack of
repeatability Error is the difference between a measured value and the true input value. Two types of errors:
1. Bias (or systematic) errors and
2. Precision (or random) errors. Bias errors can be further subdivided into
(a) Calibration errors (a zero or null point error is a common type of bias error created by a nonzero output
value when the input is zero),
(b) Loading errors (adding the sensor to the measured system changes the system), errors due to sensor sensi-
tivity to variables other than the desired one (e.g., temperature effects on strain gages).
3
Saturation: All real actuators/instruments have some maximum output capability, regardless of the input. Deadband:
The dead band is typically a region of input close to zero at which the output remains zero. Once the input travels
outside the dead band, then the output varies with input. Engineering measurement signals are continuous: voltage
that varies over time; a chemical reaction rate that depends on temperature, etc. Analog-to-Digital Conversion (ADC)
and Digital-to-Analog Conversion (DAC) allow digital computers to interact with these signals. The output from the
sensor is conditioned (amplified, filtered, etc.). The conditioned analog signal is digitized using an analog-to-digital
converter (ADC). The digital information is acquired, processed and recorded by the computer. The computer may
then modify the system by outputting control signals. The digital control signals are converted to analog signals using
a digital-to-analog converter (DAC). The analog signals are conditioned (e.g. amplified and filtered) appropriately for
an actuator The actuator interacts with the system to give desired response
2.4 The Wheatstone Bridge Circuit
(a) (b)
Figure 2: (a) Wheatstone Bridge Circuit (b) Realtime step vs frequency Response
The Wheatstone bridge can be used in various ways to measure electrical resistance in all measurement system
circuit/sensor/transducer design construction:
ˆ For the determination of the absolute value of a resistance by comparison with a known resistance
ˆ For the determination of relative changes in resistance
The latter method is used with regard to strain gauge techniques. The four arms or branches of the bridge circuit are
formed by the resistances R1 to R4. The corner points 2 and 3 of the bridge designate the connections for the bridge
excitation voltage Vs. The bridge output voltage V0 , that is the measurement signal, is available on the corner points
1 and 4. as shown in Fig 2
Note: There is no generally accepted rule for the designation of the bridge components and connections. In existing
literature, there are all kinds of designations and this is reflected in the bridge equations. Therefore, it is essential that
the designations and indices used in the equations are considered along with their positions in the bridge networks in
order to avoid misinterpretation.
R1
R2
=
R4
R3
(2)
where the bridge output voltage V0 is zero. With a preset strain, the resistance of the strain gauge changes by the
amount ∆R. This gives us the following equation:
VO = Vs

R1 + ∆R1
R1 + ∆R1 + R2 + ∆R2
−
R4 + ∆R4
R3 + ∆R3 + R4 + ∆R4

For strain measurements, the resistances R1 and R2 must be equal in the Wheatstone bridge. The same applies
to R3 and R4. With a few assumptions and simplifications, the following equation can be determined. the H to
Measurements using Strain Gauges;
Vo
Vs
=
1
4

∆R1
R1
−
∆R2
R2
+
∆R3
R3
−
∆R4
R4

(3)
In the last step of calculation, the term ∆R/R must be replaced by the following:
∆R
R
= k · ε
Here k is the k-factor of the strain gauge, ε is the strain. This gives us the following:
Vo
Vs
=
k
4
(ε1 − ε2 + ε3 − ε4) (4)
4
The next section discuss about mathematical modelling, that involves Laplace and Fourier transformation of real-time
sampling to space variable and signal manipulation. It should be accompanied by physical device circuit design along
with implication design. A dedicated standard device setup or unit responsible for sampling and measurement manip-
ulation is called Data Acquisition System or in short DAQ. The modernized version of DAQ is Supervisory
Control and Aata Acquisition or in short SCADA is a control system architecture comprising computers,
networked data communications and graphical user interfaces for high-level supervision of machines and processes
2.5 Review Questions
1. Define Mechatronics with an aid of neat sketch
2. Draw Wheatstone bridge circuit, write its mathematical model equations in strainguage construction and explain
its importance in measurement system
3. Define signal sampling
4. Compare SCADA against DAQ
5. Compare piezoelectric sensors with photoelectric sensors
6. Evaluate similarity and difference in working principles of LVDT, LDV and LVT
7. Describe an instrument or two working principle under hall effect. constract and explain bimetallic strrip
thermocouple
3 Control System, Actuating System and Mathematical Modeling
Control engineering or control systems engineering: is an engineering discipline that applies automatic control theory
to design systems with desired behaviors in control environments. The practice uses sensors and detectors to measure
the output performance of the process being controlled; these measurements are used to provide corrective feedback
helping to achieve the desired performance. Multi-disciplinary mainly: mechanical, hydraulic, and electrical in
nature, control systems engineering activities focus on implementation of control systems mainly derived by mathe-
matical modeling of a diverse range of systems. System – An interconnection of elements and devices for a desired
purpose. Process – The device, plant, or system under control.
The input and output relationship represents the cause-and-effect relationship of the process. In 19th
Century James
Watt’s centrifugal governor see fig. 6 for the speed control of a steam engine. In 20th
Century, Nyquist Plot or
Polar Plot of frequency responses of linear systems developed a method for analyzing the stability of controlled sys-
tems mainly for an open control systems displaying both amplitude and phase angle on a single plot, using frequency as
a parameter in the plot. Later, Root-locus method due to Evans was fully developed incorporating open loop control
of Nyquist along with the frequency response methods made it possible to design linear closed-loop control systems.
The Nyquist analysis involved transforming a time Response Analysis of Control Systems to an space s domain via
Laplace mathematical transformation or modelling grasping a characteristic solution of equation of the system in
space s domain correlating an output response to its corresponding input and ploting dominant amplitude and phase
angle polar coordinates. Root locus method examined characteristic equation in an s Laplace domain correlating the
coefficients to stability criteria without calculating the roots.
3.0.1 Mathematical models of Actuating Systems
The mathematical description of the dynamic characteristic of a system is similar for actuating systems, measurement
instruments and mechatronic systems. The first step in the analysis of dynamic system is to derive its mathematical
model. The transfer function of a linear time-invariant system is define to be the ratio of the Laplace transform (
transform for sampled data systems) of the output to the Laplace transform of the input (driving function), under
the assumption that all initial conditions are zero. Compact model form: If the original model is a higher order
differential equation, or a set of first order differential equations, the relation between the input variable and the
output variable can be described by one transfer function, which is a rational function of the Laplace space variable
s, without any time-derivatives. Representation of standard models: Transfer functions are often used to represent
standard models of controllers and signal filters. Simple to combine systems: For example, the transfer function for a
combined system which consists of two systems in a series combination, is just the product of the transfer functions
of each system. Simple to calculate time responses: The calculations will be made using the Laplace transform, and
the necessary mathematical operations are usually much simpler than solving differential equations. Simple to find
the frequency response: The frequency response is a function which expresses how sinusoid signals are transferred
through a dynamic system. Frequency response is an important tool in analysis and design of signal filters and
control systems. The frequency response can be found from the transfer function of the system. The category of
control systems is shown in Fig 3 For a controller with proportional control action, P, the relationship between
5
Table 3: Differential Modelling of Physical Systems
Electrical System
Elec.Inductuctance v21 = L
d
dt
i Elec. power/Energy E =
1
2
· L2
1
Electrical Resistance i =
1
R
· v21 power P =
1
R
· v2
21
Mechanical System
Rotational Spring ω21 =
1
k
·
d
dt
T Energy E =
1
2
·
T2
k
Rotational mass T = J ·
d
dt
ω2 Energy E =
1
2
· J · ω2
2
rotational damper T = b · ω21 power P = b · ω2
21
Translation Spring v21 =
1
k
·
d
dt
F Energy E =
1
2
·
F2
k
Translational Mass F = M ·
d
dt
v2 E =
1
2
· M · v2
2
translational damper F = b · v21 power P = b · v2
21
Hydraulic Systems
fluid inertia P21 = I ·
d
dt
QEnergy E =
1
2
· I · Q2
fluid capacitance Q = Cf
d
dt
P21 Energy E =
1
2
· Cf P2
21
fluid resistance Q =
1
Rf
· P21 power P =
1
Rf
· P2
21
thermal capacitanceq = Ct
d
dt
T2 Energy E =
1
2
· CtT2
thermal resistance q =
1
Rt
· T21 power P =
1
Rt
· T21
the output of the controller u(t) and the actuating error signal e(t) is linear. In a controller with integral control
action,PI, the value of the controller output u(t) is integrated/summed-up and changed at a rate proportional to
the actuating error signal e(t). Proportional-Plus-Derivative Control Action,, PD, the control action of a
proportional, and derivative controller. Lastly, Proportional-Plus-Integral-Plus-Derivative Control Action,
PID, the combination of proportional control action, integral control action, and derivative control action is termed
proportional-plus-integral-plus-derivative control action. It has the advantages of each of the three individual control
actions. The typical model equation for general control system follows, emphtransfer function, formulation of a linear,
time-invariant, differential equation system is defined as the ratio of the Laplace transform of the output (response
function) to the Laplace transform of the input (driving function) under the assumption that all initial conditions are
zero.
Consider the linear time-invariant system defined by the following differential equation 5
a0
(n)
y + a
(n−1)
1 y + · · · + an−1ẏ + any
= b0
(m)
x + b1x + · · · + bm−1ẋ + bmx (n ≥ m)
(5)
Where y is the output of the system and x is the input. The transfer function of this system is the ratio of the Laplace
transformed output to the Laplace transformed input when all initial conditions are zero, or with with common s
space domain that enables correlation as shown in eq. 6.
Transfer function = G(s) =
L[ output ]
L[ input ] zero initial conditions
=
Y (s)
X(s)
=
b0sm
+ b1sm−1
+ · · · + bm−1s + bm
a0sn + a1sn−1 + · · · + an−1s + an
(6)
6
Practical mechatronic/control systems are an integration of all system components. See Fig 6, 4 1. [4], [1], [5], [6],
[7]. There is no isolated electrical, mechanical or hydraulic actuating system model but the practical relevance of
synergistic or an integrated system demands individual and integrated system model of either open loop (system
response without feedback) or closed loop control systems (system response with feedback).
(a)
(b)
Figure 3: (a) Comparison of Open and Closed Loop Controller (b) components of closed loop controller
Table 4: Comparison mathematical model of simple translational mechanical vs PID control systems
mechanical PID Electronic
Description: mass, damping and spring Description: Constants of (proportional, integral and
derivative)

ẋ1
ẋ2

=

0 1
− k
m − b
m
 
x1
x2

+

0
1
m

u u(t) = Kpe(t) +
Kp
Ti
R t
0
e(t)dt + KpTd
de(t)
dt
↑→ time-series model timeseries model ↑

s −1
k
m s + b
m
−1
= 1
s2+ b
m s+ k
m

s + b
m 1
− k
m s

U(s)
E(s) = Kp

1 + 1
Tis + Tds

Transfer Func.
↑→ time invariant space domain model
G(s) =

1 0
 1
s2 + b
m s + k
m

s + b
m 1
− k
m s
 
0
1
m

=
1
ms2 + bs + k
↑→ Transfer Function
Individual components and physical phenomena inside them needs to be modelled following their corresponding
governing principles (governing mathematical laws) and integrated in space domain via transfer function in common
time invariant space s variable. kircholf’s law for exaple governs electrical circuit while newton’s second law governs
solid motion along with newton’s modified or navier-stokes equations or bernoulli governs fluid depending on param-
eter under consideration. It should be noted that as you can see in the figure 4, mechanical system can also have
varieties of components for which table 3
7
(a)
(b)
Figure 4: Schematic of Synergistic Mathematical Model of Actuation Control Systems (a)Mechanical (b) Hydraulic
3.1 Semiconductors and Motor Controllers/Actuators
Most mechatronic systems have motor actuators as shown in figure 5 (a). The stationary outer housing, called the
stator, supports radial magnetized poles. These poles consist of either permanent magnets or wire coils, called field
coils, wrapped around laminated iron cores. The purpose of the stator poles is to provide radial magnetic fields.
There is a small air gap between the rotor and the stator where the magnetic fields interact. AC motors: run with
alternating source input, the synchronous motors/no slip where rotor speed matches synchronous speed in the
stator are more efficient AC type have wound rotor whereas induction motors have permanent with less rotor speed.
The brushed DC motors have coils in their center rotating around permanent magnets while brushless DC motors have
permanent magnet in the center that rotate around the coils. The brushless motors offer a better power-to-weight and
8
(a)
(b)
Figure 5: (a) Types of Motor Actuators (b) Types of Electronics
torque-to-weight ratio than brushed motors. Apart from these general common construction, there are many other
types of motor precise electronic constructions such as: stepper motor a brushless DC servo motor that divides a
full rotation into a number of equal discrete steps, linear motor: servo type with its stator and rotor ”unrolled”
producing linear force, etc.
An electronic circuit is composed of various types of components. Some of these components are termed as active
components because they take part in the transformation of the energy while other components, which only dissipate
or store energy, are called as passive elements. The vacuum tubes, rectifier, transistors are some of-the common ac-
tive while the resistances, which dissipate the power and energy storing elements such as capacitances and inductances
are known as passive elements. The transformers may be regarded as a matching device. The success of any electronic
circuit depends not only on proper selection of the active elements but on the passive and matching elements too. The
proper function, of an active device is decided by the proper values of these passive elements. Hence the selection of
these elements such as resistances, inductances, capacitance, and transformers not only require the proper attention,
but also decide the proper function of the active devices as well as the circuit as a whole.
3.2 Mechatronic System Review
The control-theoretic view of a sensor is that it provides the exact value y(t) of a process variable. Sometimes – to
provide a degree of realism – white noise is added and it is left to a Kalman filter or observer in the control algorithm
9
to estimate the underlying state. In industry there is much more emphasis on measurement technology, for without
good sensing, good control is impossible. For process applications, analogue 4/20 mA transmitters were developed for
communicating measurements to a remote direct digital control (DDC) computer (see Figure 1b). Such a transmitter
has several advantages: the use of current loops allows for long cable runs without significant interference,transmitters
can be powered down the wires from the control room, and the standard enables the interworking of transmitters from
different vendors.
Classic example of automation is the watt governor where a closed loop cylinder position control system with mechan-
ical feedback used in the actuation of the main valve to widen or lessen the injection opening in accordance with the
requirements of driving conditions based on speed/centrifugal force measurements feedbacks of the flyballs: Flyballs
move outer with higher centrifugal force/speed demand rising lever by the push of lever arms increases fuel injection
and vice-versa Typical example is shown in the Figure a temperature control system that can be used to heat a room
(a) (b)
Figure 6: (a) Watt-Governor (b) Electronic Furnace Control
or oven. The heat is generated by the electric heater. Heat is lost to the outside through the walls. A thermometer is
used to measure the temperature. An analog controller has the desired temperature setting. Based on the difference
between the set and measured temperature, the op-amp turns ON or OFF the relay which turns the heater ON/OFF.
In order to make sure the relay does not turn ON and OFF due to small variations around the set temperature, the
op-amp would normally have a hysteresis functionality implemented on its circuit.
The question of actuator sizing is a question of determining the following requirements for an axis underworst operat-
ing conditions (i.e., largest expected inertia and resistive load), For example, for the mechanical system, the following
considerations taken:
1. maximum torque (also called peak torque) required, Tmax,
2. rated (continuous or root mean squared, RMS) torque required, Tr,
3. maximum speed required, θmax,
4. positioning accuracy required, ∆θ,
5. gear mechanism parameters: gear ratio, its inertial and resistive load (force/torque), stiffness, backlash charac-
teristics.
Once the torque requirements are determined, then the amplifier current and power supply requirements are directly
determined from them.
3.3 Mechatronic Design Process
Earlier designs involved separate designs of components and integration of mechatronic systems. Now a days, the trend
in industrial practice is that the embedded control software development part of modern mechatronics engineering is
done involving three phases as shown in the figure 1.
1. Phase 1: Control software development and simulation in non-real-time environment.
2. Phase 2: Hardware in-the-loop (HIL) simulation and testing in real-time environment.
3. Phase 3: Testing and validation on actual machine.
10
In phase 1, the control software is developed by using graphical software tools, such as Simulink® and Stateflow,
simulated and analyzed on a non-real-time computer environment (Figure 1.29). The “plant model,” which is the
computer model of the machine to be controlled, is a non-real-time detailed dynamic model. Simulations and analysis
are done in this non-real-time environment. In phase 2, the “same control software” is tested on a target embedded
control module (ECM). That “same control software” is a C-code which is auto-generated from the graphical diagrams
of Simulink® and Stateflow using auto-code generation tools such as Simulink® Coder, Embedded Coder, and
MATLAB® Coder. The last phase involve physical experiment.
3.4 Review Questions
1. List down types of mechanical actuating system. Enumerate components of hydraulic actuating systems
2. Write steps involved in mechatronic design process
3. Write real-time, time-invariant and transfer function mathematical model of electrical, mechanical and hydraulic
control systems
4. Write characteristics and importance of passive electronic components and compare them with an active electi-
cal/electronic components.
5. Define Servo Motors, synchronous motors and brushless motors.
6. What is the function of a microprocessor in a system?
7. Why is the data bus in 8085 bidirectional?
8. How does microprocessor differentiate between data and instruction? Distinguish between microcontroller and
microprocessor
9. How long would the processor take to execute the instruction LDA 1753H if the T-state duration is 2µs?
10. Draw the timing diagram of the instruction LDAX B.
11. Sketch and explain the various pins of the 8085.
12. Explain direct addressing mode of 8085 with an example?
4 Micro-controllers and microprocessors
The digital computer is the brain of a mechatronic system. As such, it is called the controller when used for the
control function of an electro-mechanical system. Any computer with proper I/O interface devices (digital and analog
I/O) and software tools can be used as a controller. Microprocessor contains ALU, General purpose registers, stack
pointer, program counter, clock, timing circuit, interrupt circuit with more instructions input, less number of pins and
multifunctional flexible tasks with fewer bit handling. Whereas microcontroller contains the circuitry of microprocessor,
and in addition it has built in ROM, RAM, I/O Devices, Timers/Counters etc having fewer specialized tasks with
more bit handling in contrast to microprocessor, require less additional devices. Embedded computers are generally
used in real-time applications. Therefore, they have hard real-time requirements. Hard real-time requirement means
that certain tasks must be completed within a certain amount of time, or the computer must react to an external
event within a certain time. Otherwise the consequences may be very serious. The consequences of not meeting the
real-time response requirements in a desktop application are not as serious. Embedded computers are not general
purpose computing machines, but have more specialized architectures and resources. Memory resources in a desktop
PC are very large and conserving memory is not a concern for the programmer. Whereas memory resources in
microcontrollers are limited and memory space should be used carefully in order to not exceed that available. In
real-time programming, depending on the microcontroller/DSP type and the development environment we use, the
development environment at the compilation and link time may allow us to decide how to utilize the available memory
for variables and constants, in order to best fit the application program into the available memory. The components
of a development setup for a microcontroller-based control system: PC as host development environment including
the development software tools for the microcontroller, communication cable, microcontroller board, breadboard, test
and measurement tools, and electronic components supply kit.
4.1 BASIC COMPUTER MODEL and Analogy
Notice the following characteristics in a computer program: normally the program instructions are executed sequen-
tially, the order of execution can be changed using the conditional statements, the CPU, clock, ROM, RAM and
accumulators, and I/O are the key components of a basic computer operation. Microprocessor communicates and
11
(a)
(b) (c)
Figure 7: (a) an 8051 µP Architecture  Components (b) bus (c)µcontrollers vs µprocessors
Table 5: Basic Analogy of Computer Model
Brain CPU
wall clock clock
deck of instruction cards read only memory (ROM)
chalk-eraser-black-board random access memory (RAM)
pocket cards accumulators (also called registers)
input-output tray I/O devices
eyes, hands and arms bus to access resources (read/write)
operates in binary numbers 0 and 1. A typical microprocessor consists of arithmetic and logic unit (ALU) in associa-
tion with control unit to process the instruction execution. Almost all the microprocessors are based on the principle
of store-program concept. In store-program concept, programs or instructions are sequentially stored in the memory
locations that are to be executed. To do any task using a microprocessor, it is to be programmed by the user. The
semiconductor manufacturing technologies used for chips are:
1. Transistor-Transistor Logic (TTL)
2. Emitter Coupled Logic (ECL)
3. Complementary Metal-Oxide Semiconductor (CMOS)
Microprocessors: classified based on their specification, application and architecture microprocessors are classified.
Based on size of data bus:
1. 4-bit microprocessor
2. 8-bit microprocessor
3. 16-bit microprocessor
4. 32-bit microprocessor
Based on application:
1. General-purpose microprocessor- used in general computer system and can be used by programmer for any
application. Examples, 8085 to Intel Pentium.
12
2. Microcontroller- microprocessor with built-in memory and ports and can be programmed for any generic control
application. Example, 8051.
3. Special-purpose processors- designed to handle special functions required for an application. Examples, digital
signal processors and application-specific integrated circuit (ASIC) chips.
Components of microprocessor shown in Fig 7
1. Buses: wires/lines interconnecting various component blocks of µcontroller or µprocessor.
2. Arithmetic Logical Unit: The ALU performs the actual numerical and logical operations such as Addition
(ADD),Subtraction (SUB), AND, OR
3. Register (00h to 1Fh ASCII symbols/ R0 through R7 pins): Typical 8085 microprocessor includes six general
purpose registers to store an 8-bit data, one accumulator and one flag register. In addition, it has two 16-bit
registers: stack pointer and program counter. The programmer can use these registers to store or copy data into
the register by using data copy instructions.
4. Accumulator: Slower  cheaper version of RAM: The accumulator is an 8-bit register that is a part of ALU. This
register is used to store 8-bit data and to perform arithmetic and logical operations. The result of an operation
is stored in the accumulator.
5. Flag Register: The ALU includes five flip-flops, which are set or reset after an operation according to data
condition of the result in the accumulator and other registers. They are called Zero (Z), Carry (CY), Sign (S),
Parity (P) and Auxiliary Carry (AC) flags. The microprocessor uses these flags to test data conditions.
6. Counter: This 16-bit register deals with sequencing the execution of instructions. This register is a memory
pointer. The microprocessor uses this register to sequence the execution of the instructions. The function of the
program counter is to point to the memory address from which the next byte is to be fetched. When a byte is
being fetched, the program counter is automatically incremented by one to point to the next memory location
7. The stack pointer: is also a 16-bit register, used as a memory pointer. It points to a memory location in R/W
memory, called stack. The beginning of the stack is defined by loading 16- bit address in the stack pointer
8. Instruction Register/Decoder: It is an 8-bit register that temporarily stores the current instruction of a program.
Latest instruction sent here from memory prior to execution. Decoder then takes instruction and decodes or
interprets the instruction. Decoded instruction then passed to next stage.
9. Control Unit: Generates signals on data bus, address bus and control bus within microprocessor to carry out
the instruction, which has been decoded.
4.2 Review Questions
1. Compare the components of microcontroller against microprocessor with block diagrams and briefly describe
their difference
2. Describe the function and characteristics of counter; compare it with register and bus
3. compare control unit with ALU
4. Write classifications of microprocessors based on their specifications and raw materials they are made from.
5 Sensor Communication Design
Asynchronous transmission implies that both the transmitter and receiver computers are not synchronized, each
having their own independent clock signals. The time between transmitted characters is arbitrary clocks. While syn-
chronous transmission there is no need for start and stop bits since the transmitter and receiver have a common
clock signal and thus characters automatically start and stop always at the same time in each cycle.
Parallel data transmission Within computers, data transmission is usually by parallel data paths. Parallel data
buses transmit 8, 16 or 32 bits simultaneously, having a separate bus wire for each data bit and the control signals.
Thus, if there are eight data bits to be transmitted, e.g. 11000111, then eight data wires are needed.
Serial data transmission such as RS-232, The 20 mA current loop, I2C bus, CAN bus, USB, Fire-wire
: involves the transmission of data which, together with control signals, is sent bit by bit in sequence along a single
line. Only two conductors are needed, to transmit data and to receive data. Since the bits of a word are transmitted
sequentially and not simultaneously, the data transfer rate is considerably less than with parallel data transmission
such as General Purpose Instrument Bus; (GPIB), XT computer bus, AT bus, also referred to as the industry stan-
dard architecture (ISA) bus, The extended industry standard architecture (EISA) bus, General Purpose Instrument
13
Bus (GPIB)
For the parallel interface to a printer the Centronics parallel interface is commonly used. However, with instrumen-
tation the most commonly used parallel interface in communications is the General Purpose Instrument Bus (GPIB),
the IEEE 488 standard, [8] originally developed by Hewlett Packard to link its computers and instruments and thus
often referred to as the Hewlett Packard Instrumentation Bus. Each of the devices connected to the bus is termed a
listener, talker or controller. Listeners are devices that accept data from the bus, talkers place data, on request, on
the bus and controllers manage the flow of data on the bus by sending commands to talkers and listeners and carry
out polls to see which devices are active..
An external bus is a set of signal lines that interconnects microprocessors, microcontrollers, computers and pro-
grammable logic controllers (PLCs) and also connects them with peripheral equipment (i.e. Sensors  Actuators).
Thus a computer needs to have a bus connecting it with a printer if its output is to be directed to the printer and
printed. Multiprocessor systems are quite common. For example, in a car there are likely to be several microcon-
trollers with each controlling a different part of the system, e.g. engine management, braking and instrument panel,
and communication between them is necessary
Centralized computer control involves the use of one central computer to control an entire plant. This has the
problem that failure of the computer results in the loss of control of the entire plant. This can be avoided by the use
of dual computer systems. If one computer fails, the other one takes over. Such centralized systems were common in
the 1960s and 1970s. The development of the microprocessor and the ever reducing costs of computers have led to
multi-computer systems becoming more common and the development of hierarchical and distributed systems. [1].
With the hierarchical system, there is a hierarchy of computers according to the tasks they carry out. The comput-
ers handling the more routine tasks are supervised by computers which have a greater decision-making role. With the
distributed system, each computer system carries out essentially similar tasks to all the other computer systems.
In the event of a failure of one, or overloading of a particular computer, work can be transferred to other computers.
Serial data transmission occurs in one of three modes.
Simplex mode: Transmission is only possible in one direction, from device A to device B, where device B is not
capable of transmitting back to device A. This method is usually only used for transmission to devices such as printers
which never transmit information.
Half-duplex mode:Data is transmitted in one direction at a time but the direction can be changed. Terminals at each
end of the link can be switched from transmit to receive. Citizens Band (CB) radio is an example of half-duplex
mode; a person can receive or talk but not do both simultaneously.
Full-duplex mode: Data may be transmitted simultaneously in both directions between devices A and B. This is
like a two-lane highway in which traffic can occur in both directions simultaneously. The telephone system is an
example of full-duplex mode in that a person can talk and receive at the same time.
5.1 Networks
The term network is used for a system which allows two or more computers/ microprocessors to be linked for the
interchange of data. The logical form of the links is known as the network topology. The term node is used for a point
in a network where one or more communication lines terminate or a unit is connected to the communication lines.
The following are commonly used forms. Data Bus : This has a linear bus into which all the stations are plugged.
This system is often used for multipoint terminal clusters. It is generally the preferred method for distances between
nodes of more than 100m.
Star : This has dedicated channels between each station and a central switching hub through which all communications
must pass. This is the type of network used in the telephone systems (private branch exchanges (PBXs)) in
many companies, all the lines passing through a central exchange. This system is also often used to connect remote
and local terminals to a central mainframe computer. There is a major problem with this system in that if the central
hub fails then the entire system fails.
Hierarchy or tree : This consists of a series of branches converging indirectly to a point at the head of the tree.
With this system there is only one transmission path between any two stations. This arrangement may be formed from
a number of linked data bus systems. Like the bus method, it is often used for distances between nodes of more than
100m.
Ring: This is a very popular method for local area networks, involving each station being connected to a ring. The
distances between nodes are generally less than 100 m. Data put into the ring system continues to circulate round the
ring until some system removes it. The data is available to all the stations.
Mesh : This method has no formal pattern to the connections between stations and there will be multiple data
paths between them.
Local area network (LAN): used for a network over a local geographic area such as a building or a group of
buildings on one site. The topology is commonly bus, star or ring.
A wide area network (WAN): one that interconnects computers, terminals and local area networks over a
national or international level.
14
5.2 Sensor Communication
Sensor communication primarily concerned with local area networks. Network access control:Access control meth-
ods are necessary with a network to ensure that only one user of the network is able to transmit at any one time. The
following are methods used. With ring-based local area networks, two commonly used methods are:
ˆ Token passing : With this method a token, a special bit pattern, is circulated. When a station wishes to
transmit it waits until it receives the token, then transmits the data with the token attached to its end. Another
station wishing to transmit removes the token from the package of data and transmits its own data with the
token attached to its end.
ˆ Slot passing : This method involves empty slots being circulated. When a station wishes to transmit data it
deposits it in the first empty slot that comes along.
With bus or tree networks a method that is often used is:
ˆ Carrier sense multiple access with collision detection (CSMA/CD) : This method is generally identified
with the Ethernet LAN bus. With the CSMA/CD method, stations have to listen for other transmissions before
transmitting, with any station being able to gain control of the network and transmit, hence the term multiple
access. If no activity is detected then transmission can occur. If there is activity then the system has to wait
until it can detect no further activity.
ˆ Broadband and baseband: used for a network in which information is modulated onto a radio frequency carrier
which passes through the transmission medium such as a coaxial cable. Typically the topology of broadband local
area networks is a bus with branches. Broadband transmission allows a number of modulated radio frequency
carriers to be simultaneously transmitted and so offers a multichannel capability.
ˆ baseband transmission is used when digital information is passed directly through the transmission medium.
Baseband transmission networks can only support one information signal at a time.
. A LAN may be either baseband or broadband.
5.2.1 Protocol
Protocol used by the interface/component between a computer and the network to control the transfer of the data
into the network or from the network into the computer. A protocol is a formal set of rules governing data format,
timing, sequencing, access control and error control. The three elements of a protocol are:
1. Syntax, which defines data format, coding and signal levels;
2. Semantics, which deals with synchronization, control and error handling;
3. Timing, which deals with the sequencing of data and the choice of data rate.
When a sender communicates with a receiver then both must employ the same protocol, e.g. two microcontrollers
with data to be serially transmitted between them. With simplex communication the data block can be just sent from
sender to receiver. However, with half-duplex, each block of transmitted data, if valid, must be acknowledged (ACK)
by the receiver before the next block of data can be sent ; if invalid a NAK, negative acknowledgement, signal is sent.
Thus a continuous stream of data cannot be transmitted. The CRC bits, cyclic redundancy check bits, are a
means of error detection and are transmitted immediately after a block of data. The data is transmitted as a binary
number and at the transmitter the data is divided by a number and the remainder is used as the cyclic check code.
At the receiver the incoming data, including the CRC, is divided by the same number and will give zero remainder if
the signal is error-free. With full-duplex mode (Figure (b)), data can be continuously sent and received.
Open Systems Interconnection (OSI)Model: Communication protocols have to exist on a number of levels. The
International Organization for Standardization (ISO) has defined a seven-layer standard protocol system known as
the Open Systems Interconnection (OSI) model. The model is a framework for developing a coordinated system of
standards.
1. Physical layer : This layer describes the means for bit transmission to and from physical components of the
network. It deals with hardware issues, e.g. the types of cable and connectors to be used, synchronizing data
transfer and signal levels. Commonly used LAN systems defined at the physical layer are Ethernet and token
ring.
2. Data link layer : This layer defines the protocols for sending and receiving messages, error detection and correction
and the proper sequencing of transmitted data. It is concerned with packaging data into packets and placing
them on the cable and then taking them off the cable at the receiving end. Ethernet and token ring are also
defined at this level.
15
3. Network layer : This deals with communication paths and the addressing, routing and control of messages on
the network and thus making certain that the messages get to the right destinations. Commonly used network
layer protocols are Internet Protocol (IP) and Novell’s Internetwork Packet Exchange (IPX).
4. Transport layer : This provides for reliable end-to-end message transport. It is concerned with establishing and
maintaining the connection between transmitter and receiver. Commonly used transport layer protocols are
Internet Transmission Control Protocol (TCP) and Novell’s Sequenced Packet Exchange (SPX).
5. Session layer : This layer is concerned with the establishment of dialogues between application processes which
are connected together by the network. It is responsible for determining when to turn a communication between
two stations on or off.
6. Presentation layer : This layer is concerned with allowing the encoded data transmitted to be presented in a
suitable form for user manipulation.
7. Application layer : This layer provides the actual user information processing function and application-specific
services. It provides such functions as file transfer or electronic mail which a station can use to communicate
with other systems on the network.
5.2.2 General Purpose Instrument Bus Hardware
RS-232: The most popular serial interface is RS-232; this was first defined by the American Electronic Industries
Association (EIA) in 1962. The standard relates to data terminal equipment (DTE) and data circuit-terminating
equipment (DCE). Data terminal equipment can send or receive data via the interface, e.g. a microcontroller. Data
circuit-terminating equipment is devices which facilitate communication; a typical example is a modem. This forms an
essential link between a microcomputer and a conventional analogue telephone line. RS-232 Connections: Minimum
configuration , and PC Connection
The 20 mA current loop Another technique, based on RS-232 but not part of the standard, is the 20 mA current
loop (see the figure). This uses a current signal rather than a voltage signal. A pair of separate wires is used for
the transmission and the receiver loops with a current level of 20 mA used to indicate a logic 1 and 0 mA a logic 0.
Such current signals enable a far greater distance, a few kilometers, between transmitter and receiver than with the
standard RS-232 voltage connections.
I2C bus The Inter-IC Communication bus, referred to as the I2C bus, is a serial data bus designed by Philips for use
for communications between integrated circuits or modules. The bus allows data and instructions to be exchanged
between devices by means of just two wires. This results in a considerable simplification of circuits. The two lines
are a bidirectional data line (SDA) and a clock line (SCL). Both lines are connected to the positive power supply via
resistors (see the above figure). The device generating the message is the transmitter and the device receiving the
message the receiver. The device that controls the bus operation is the master and the devices which are controlled
by the master are the slaves. A modern automobile may have as many as seventy electronic control units (ECUs) for
various subsystems, e.g. engine management systems, anti-lock brakes, traction control, active suspension, airbags,
cruise control, windows, etc.
5.3 Digital Logic
Digital logic is the underlying logic system that drives electronic circuit board design. Digital logic is the manipulation
of binary values through printed circuit board technology that uses circuits and logic gates to construct the implemen-
tation of computer operations. Digital logic is the underlying logic system that drives electronic circuit board design.
Digital logic is the manipulation of binary values through printed circuit board technology that uses circuits and logic
gates to construct the implementation of computer operations.
Examlpe An 8-bit R-2R DAQ has a Vref of 10 V. The binary input is 10011011. Find the analog output voltage.
Solution An 8 bit DAQ has maximum capacity of M = 2N
, 28
= 256
10011011
= 1 × 27
+ 0 × 26
+ 0 × 25
+ 1 × 24
+ 1 × 23
+ 0 × 22
+ 1 × 21
+ 1 × 20
= 128 + 0 + 0 + 16 + 8 + 0 + 2 + 1
= 155
we can calculate the analog output voltage:
Vout =
input × Vref
256
=
155 × 10 V
256
= 6.05 V
6.05 V is the voltage we would expect on the analog output pin.
Similarly Binary number system has two symbols: 0 and 1, called bits. It is also a positional notation, for example,
10110B = 10000B + 0000B + 100B + 10B + 0B = 124
+ 023
+ 122
+ 121
+ 020
16
Hexadecimal number system uses 16 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F, called hex digits. It is
a positional notation, for example,
A3EH = A00H + 30H + EH = 10162
+ 3161
+ 14160
Starting from the right-most bit (least-significant bit), replace each group of 4 bits by the equivalent hex digit (pad
the left-most bits with zero if necessary), for examples,
1001001010B = 001001001010B = 24AH
10001011001011B = 0010001011001011B = 22CBH
Conversion from Base r to Decimal (Base 10):Given a n-digit base r number: dn − 1dn − 2dn − 3...d2d1d0(baser), the
decimal equivalent is given by:
dn − 1rn − 1 + dn − 2rn − 2 + ... + d1r1 + d0r0
For examples,
A1C2H = 10163
+ 1162
+ 12161
+ 2 = 41410 (base 10)
10110B = 124
+ 122
+ 121
= 22 (base 10)
Conversion from Decimal (Base 10) to Base r: Use repeated division/remainder. For example, To convert 261(base
10) to hexadecimal:
261/16 = quotient = 16 remainder = 5
16/16 = quotient = 1 remainder = 0
1/16 = quotient = 0 remainder = 1 (quotient = 0 stop)
Hence, 261D = 105H (Collect the hex digits from the remainder in reverse order) The above procedure is actually
applicable to conversion between any 2 base systems. For example, To convert 1023(base 4) to base 3:
1023(base4)/3 = quotient = 25D remainder = 0
25D/3 = quotient = 8D remainder = 1
8D/3 = quotient = 2D remainder = 2
2D/3 = quotient = 0 remainder = 2(quotient = 0stop)
Hence, 1023(base4) = 2210(base3) Decimal to Binary
Convert 18.6875D to binary: Integral Part, 18D
18/2 = quotient = 9 remainder = 0
9/2 = quotient = 4 remainder = 1
4/2 = quotient = 2 remainder = 0
2/2 = quotient = 1 remainder = 0
1/2 = quotient = 0 remainder = 1 (quotient = 0 stop)
Hence, 18D = 10010B Fractional Part, 0.6875D
.6875 ∗ 2 = 1.375 = whole number is 1
.375 ∗ 2 = 0.75 = whole number is 0
.75 ∗ 2 = 1.5 = whole number is 1
.5 ∗ 2 = 1.0 = whole number is 1
Hence .6875D = .1011B Combine, 18.6875D = 10010.1011B The IEEE-754 32-bit Single-Precision Floating-Point
Numbers, suppose that the 32-bit pattern is 1 1000 0001 011 0000 0000 0000 0000 0000, with:S = 1 sign signature for
negative,E = 10000001 exponent signature, F = 01100000000000000000000 signature for mantissa or fraction.
5.3.1 Bivalent Axiomatic Set Theory/Logic Gates
Most of mathematics (especially Axiomatic Set Theory and Number Theory) uses a bivalent logic in Fig 8, in which
statements are either true or false. Electronic computers employ logic gates for the most primitive computations,
taking 0 as false and 1 as true. An infinite number of gates are possible; here are six of the most common.
17
Figure 8: Bivalent logic gates
6 Assembly Language and PLC
Microcontrollers pin addresses and associated logic, jump, branching, data transfer etc instructions can be read in
referece [7] or manufacturer catalogue and set of instructions are standard. An 8051 has about 111 instructions that
can be grouped into the following categories
1. Arithmetic Instructions
2. Logical Instructions
3. Data Transfer instructions
4. Boolean Variable Instructions and
5. Program Branching Instructions
Mnemonics are an assembly language uses a mnemonic to represent, e.g., each low-level machine instruction or
opcode, each directive, typically also each architectural register, flag etc. An assembly language is a type of
low-level programming language that is intended to communicate directly with a computer’s hardware, for example
8051 components. The following table 7 shows Simple Programs in 8051 Assembly Language [9]. The heading row
Table 6: 8051 Instructions
Data Transfer Artithmetic Logical Boolean Program Branching
MOV,MOVC,MOVX ADD,ADDC,SUBB ANL,ORL,XRL CLR,SETB, MOV LJMP,AJMP,SJMP
PUSH,POP,XCH INC, DEC,MUL CLR,CPL,RL JC,JNC,JB JZ,JNZ,CJNE,JNB
XCHD DIV,DA A RLC ,RR, RRC JNB,JBC,ANL, DJNZ,NOP LCALL, ACALL,
SWAP ORL, CPL RET,RETI,JMP
18
column headers are tasks to be accomplished and the subsequent codes in each column are step by stem instructions
for an 8081 microcontroller. Higher level computer languages/instruction syntaxes/you name it with much enhanced
Table 7: Simple Programs in 8051 Assembly Language
Address: exchange the
content of FFh and FF00h
Arithmetic: exchange the
content of FFh and FF00h
treat r6−r7 and r4−r5 as
two 16 bit registers. Per-
form subtraction between
them. Store the result in
20h (lower byte) and 21h
(higher byte).
divide the content of r0
by r1. Store the result
in r2 (answer) and r3 (re-
minder). Then restore the
original content of r0
Mov dptr,# 0FF00h
→take the address in
dptr,
Mov a, r7→ get the con-
tent in acc,
Clr c →clear carry Mov a, r0 →get the con-
tent of r0 and r1
Movx a, dptr→get the
content of 0050h in a
Anl a, # 0F0h→mask
lower bit
Mov a, r4→ get first lower
byte
Mov b, r1→ in register A
and B
Mov r0, 0FFh → save the
content of 50h in r0,
Mov r6, a→send it to r6 Subb a, r6 ; subtract it
with other
Div ab→ divide A by B
Mov 0FFh, a → move a to
50h
Swap a → xchange upper
and lower nibbles of acc
Mov 20h, a ; store the re-
sult
Mov r2, a → store result
in r2
Mov a, r0→ get content of
50h in a
Orl a, r6→ OR operation Mov a, r5→ get the first
higher byte
Mov r3, b→ and reminder
in r3
Movx @dptr, a ; move it
to 0050h
Mov r6, a→finally load
content in r6
Subb a, r7→subtract from
other
Mov b, r1→again get con-
tent of r1 in B
Mov 21h, a→ store the
higher byte
Mul ab→ multiply it by
answer
Add a, r3→ add reminder
in new answer
Mov r0, a→ finally restore
the content of r0
performance such as PLC, simulink should be learnt along with these sets at this level so that those instructions can
easily be understood and designed.
Various comercial microcontroller board designs printings in recent mechatronic developments such as internet of
things include Aurduino Uno, Red Board, Arduino mini etc working under standard 5v input except pro with 3.3v,
16 MHz clock speed, 6 analogue inputs, 14 digital i/o, 6 pulse pulse width modulation, and 1 universal asynchronous
receiver/transmitter either Universal Serial Bus/USB or future technology device international/FTDI standard port
configurations or Programming Interface.
Arduino is an open-source hardware and software company, project, and user community that designs and manufactures
single-board microcontrollers and microcontroller kits. An IoT platform is a multi-layer technology that enables
straightforward provisioning, management, and automation of connected devices within the Internet of Things universe.
It basically connects your hardware, however diverse, to the cloud by using flexible connectivity options, enterprise-
grade security mechanisms, and broad data processing powers. For developers, an IoT platform provides a set of
ready-to-use features that greatly speed up development of applications for connected devices as well as take care of
scalability and cross-device compatibility.
6.1 Ladder Logic, Functional Block Diagram, Structured Text, Instruction List and
Sequential Functional Chart
There are four basic steps in the operation of all PLCs; Input Scan, Program Scan, Output Scan, and Housekeeping.
These steps continually take place in a repeating loop. Four Steps In The PLC Operations
1. Input Scan: Detects the state of all input devices that are connected to the PLC
2. Program Scan:Executes the user created program logic
3. Output Scan: Energizes or de-energize all output devices that are connected to the PLC.
4. Housekeeping: This step includes communications with programming terminals, internal diagnostics, etc...
Ladder Diagram (LD) Traditional ladder logic shown in the Figure 9 is graphical programming language. Initially
programmed with simple contacts that simulated the opening and closing of relays, Ladder Logic programming has
been expanded to include such functions as counters, timers, shift registers, and math operations. Structured Text
(ST) – A high level text language that encourages structured programming. It has a language structure (syntax)
that strongly resembles PASCAL and supports a wide range of standard functions and operators. For example; the
19
Figure 9: Ladder Logic Program/Diagram of Pump Motor Control
equivalent program of ST for the Figure 9
If Speed1  100.0 then
FlowRate: = 50.0 + OffsetA1;
Else
FlowRate: = 100.0; Steam: ŌN
EndIf;
Instruction List (IL): A low level “assembler like” language that is based on similar instructions list languages found
in a wide range of today’s PLCs. The equivalent for the Figure 9 is:
LD R1
MPC RESET
LD PRESS1
ST MAXP RESS
RESET: LD 0
ST AX43 Sequential Function Chart (SFC) A method of programming complex control systems at a more highly
(a) (b)
Figure 10: (a) Sequential Function Chart (SFC) of the pump (b)Function Block Diagram (FBD)
structured level. A SFC program is an overview of the control system, in which the basic building blocks are entire
program files. Each program file is created using one of the other types of programming languages. The SFC approach
coordinates large, complicated programming tasks into smaller, more manageable tasks. The equivalent SFC for Figure
9 is shown in FIGURE 10 (a)
Function Block Diagram (FBD) - A graphical language for depicting signal and data flows through re-usable function
blocks. FBD is very useful for expressing the interconnection of control system algorithms and logic. The equivalent
FBD for Figure 9 is shown in FIGURE 10(b)
6.2 Review Questions
1. What are characteristics of LAN, open area system interconnections and broadband? write advantages and
drawbacks of each.
2. Define FTDI and USB
3. What are syntax, semantics and timing protocols
4. Describe token passing and slot passing
5. Write an assembly language programming to find out how many equal bytes between two memory blocks 10h to
20h and 20h to 30h.
6. Write an assembly language programming for given block of 100h to 200h. Find out how many bytes from this
block are greater then the number in r2 and less then number in r3. Store the count in r4.
20
7. Determine truth table for S-R flip-flop based on NOR gate shown in the figure below
8. determine 32 bit single precision floating point signature number representation of 1.735.
9. Write an assembly language programming for the crystal frequency is given as 12 MHz. Make a subroutine that
will generate delay of exact 1 ms. Use this delay to generate square wave of 50 Hz on pin P2.0
7 Miscellaneous  Objective Questions
More objective and multiple choice questions with answers can be found online at [2] [10]. Refer websites and practice
Part I: Answer the following questions correctly and neatly.
1. What are the two main tasks of mechatronic systems? . Describe why mechatronic system is preferred over
traditional system. Write at least three comparison facts/points of traditional and mechatronic system.
2. The general schematic diagram representing mechatronic system is shown in figure 1. Select one of the fol-
lowing applications [Modular color segregation system, Manufacturing automation, Circuit board assembler, or
automatic juice maker.] After selection based on your preference, write the name(s) and function(s) at least one
element under each of the following components a) actuator b) sensor c) input signal conditioning and interfacing
d) graphical display e) output signal conditioning and interfacing f) digital control (architecture).
Schematic diagram of mechatronic system
3. For a 10 bit Data Acquisition System (Analogue to Digital Converter for this case) with a reference voltage
Vref = 1 volts, find the digital equivalent on the display that correspond to Vin = 0.6 volts.
Part II: Choose the best answer
1. In which of the following principle is the synergetic integration characterized by detects metal object, uses an
electro-magnetic field to detect a conductive target, sensing coil in the end of the sensor probe, when excited
creates an alternating magnetic field which induces small amounts of eddy current in the target object, eddy
currents create an opposing magnetic field which resists the field, being generated by the sensor probe coil, the
interaction of the magnetic fields is dependent on the distance, between the sensor probe and the target, and com-
paratively inexpensive but conducting targets sensing. a) Capacitive measurements b) Inductive Measurements
c) Optical Measurement d) all
2. Which of the following synergetic system employs stephan bolts man law by foccussing ray/radiation between
emissivity a) piezoelectric crystals b) Microphones condenser/ c) Camera temperature detector (Temperature
camera d) all
Part III: Say True or False
1. Smaller accelerometers have bigger dynamic range
2. Piezoelectric type accelerometers have high dynamic/frequency range than microphones condenser/capacitive
Part IV: Match by placing the letter correspond to the best explanation from column B to space
preceding associated numbers of mechatronic sensor elements under column A.
21
Column A Column B
1 Linear/Rotational variable differen-
tial transducer (LVDT/RVDT)
A Robust noncontact switching action, The digital
outputs are often directly fed to the digital controller
2 Photoresistors, photodiodes, photo
transistors, photo conductors, etc.
B Alternate to strain gages with very high accuracy
and bandwidth
3 Fiberscope C Good for measuring frequencies up to 40% of its
natural frequency
4 Inductance, eddy current, hall effect,
photoelectric, capacitance, etc
D Good for small force measurements
5 Infrared thermography E Good for very high flow rates Can be used for both
upstream and downstream flow measurements
6 Interferometer F High resolution with wide range capability, Very
stable in static and quasi-static applications
7 Optical fiber As strain sensor G Laser systems provide extremely high resolution
in large ranges Very reliable and expensive
8 Seismic accelerometer H Measure light intensity with high sensitivity Inex-
pensive, reliable, and noncontact sensor
9 Strain gauge elements I Noncontact point sensor with resolution limited by
wavelength Measures whole-field temperature distri-
bution
10 Ultrasonic stress sensor J Small (0.2 mm diameter) field vision scope using
SMA coil actuators
K Very high accuracy in small ranges Provides high
resolution at low noise levels
References
[1] A. K. K.K., Introduction to MECHATRONICS, Oxford University Press, 2007.
[2] Institute of Mechatronic Systems: Research Focused on Mechatronics, https://www.zhaw.ch/en/engineering/
institutes-centres/ims/, Accessed: Feb 20, 2023.
[3] R. Isermann, Institut fu¨ r Automatisierungstechnik Technische Universita¨t Darmstadt Darmstadt Germany
2000, 22, 29–55.
[4] W. Bolton, MECHATRONICS: ELECTRONIC CONTROL SYSTEMS IN MECHANICAL AND ELECTRI-
CAL ENGINEERING Seventh Edition, Pearson Education Limited, 2019.
[5] A. DP., Relay autotuning: a use of old ideas in a new setting. Transactions of the Institute of Measurement and
Control. 2000;22(1):103-122. doi:10.1177/014233120002200105, https://journals.sagepub.com/doi/abs/10.
1177/014233120002200105/, Accessed: Feb 20, 2023, 2000.
[6] R. H. Bishop, MECHATRONICS AN INTRODUCTION, CRC Press: Taylor  Francis Group, 2006.
[7] S. Cetinkunt, MECHATRONICS, John Wiley and Sons, 2007.
[8] IEE, Web-based networking protocol for expanding IEEE-488 ATE, https://standards.ieee.org/ieee/488/
6465/, Accessed: Feb 20, 2023, 2011.
[9] H. C. FacebookTwitterLinkedInRedditPinterestShare, Simple Programs in 8051 Assembly Language, engineers-
garage, https://www.engineersgarage.com/simple-programs-in-8051-assembly-language/, Accessed:
Feb 20, 2023, 2011.
[10] I. R., Mechatronic systems: concepts and applications: Transactions of the Institute of Measurement and Control,
https://journals.sagepub.com/doi/10.1177/014233120002200103/, Accessed: Feb 20, 2023, 2000.
22

More Related Content

What's hot

Mechanical system
Mechanical systemMechanical system
Mechanical systemAliAhssan
 
Band brake or band and block brake
Band brake or band and block brakeBand brake or band and block brake
Band brake or band and block brakejani parth
 
Modeling of mechanical_systems
Modeling of mechanical_systemsModeling of mechanical_systems
Modeling of mechanical_systemsJulian De Marcos
 
Position control system block diagram
Position control system block diagramPosition control system block diagram
Position control system block diagramSuraj Biniwale
 
ME6503 - DESIGN OF MACHINE ELEMENTS UNIT - II NOTES
ME6503 - DESIGN OF MACHINE ELEMENTS UNIT - II NOTESME6503 - DESIGN OF MACHINE ELEMENTS UNIT - II NOTES
ME6503 - DESIGN OF MACHINE ELEMENTS UNIT - II NOTESASHOK KUMAR RAJENDRAN
 
U3 design of connecting rod-(i section, big&small eng, bolt, whipping str...
U3 design of connecting rod-(i section, big&small eng, bolt, whipping str...U3 design of connecting rod-(i section, big&small eng, bolt, whipping str...
U3 design of connecting rod-(i section, big&small eng, bolt, whipping str...karuppusamy pitchai
 
Instantaneous center method
Instantaneous center methodInstantaneous center method
Instantaneous center methodRohit Singla
 
Elements of Industrial Automation Week 01 Notes.pdf
Elements of Industrial Automation Week 01 Notes.pdfElements of Industrial Automation Week 01 Notes.pdf
Elements of Industrial Automation Week 01 Notes.pdfTHANMAY JS
 
Introduction to Mechatronics, Sensors and Transducers
Introduction to Mechatronics, Sensors and TransducersIntroduction to Mechatronics, Sensors and Transducers
Introduction to Mechatronics, Sensors and Transducerstaruian
 
Introduction of control engineering
Introduction of control engineeringIntroduction of control engineering
Introduction of control engineeringAshvani Shukla
 
Adaptive control System
Adaptive control SystemAdaptive control System
Adaptive control SystemSUMIT ATTRI
 
Me6505 dynamics of machines unit 1
Me6505 dynamics of machines unit 1Me6505 dynamics of machines unit 1
Me6505 dynamics of machines unit 1P Manimaran
 

What's hot (20)

Mechanical system
Mechanical systemMechanical system
Mechanical system
 
Design of springs
Design of springsDesign of springs
Design of springs
 
Band brake or band and block brake
Band brake or band and block brakeBand brake or band and block brake
Band brake or band and block brake
 
Brakes
BrakesBrakes
Brakes
 
Unit 2 design of shaft
Unit 2 design of shaftUnit 2 design of shaft
Unit 2 design of shaft
 
Modeling of mechanical_systems
Modeling of mechanical_systemsModeling of mechanical_systems
Modeling of mechanical_systems
 
Position control system block diagram
Position control system block diagramPosition control system block diagram
Position control system block diagram
 
ME6503 - DESIGN OF MACHINE ELEMENTS UNIT - II NOTES
ME6503 - DESIGN OF MACHINE ELEMENTS UNIT - II NOTESME6503 - DESIGN OF MACHINE ELEMENTS UNIT - II NOTES
ME6503 - DESIGN OF MACHINE ELEMENTS UNIT - II NOTES
 
U3 design of connecting rod-(i section, big&small eng, bolt, whipping str...
U3 design of connecting rod-(i section, big&small eng, bolt, whipping str...U3 design of connecting rod-(i section, big&small eng, bolt, whipping str...
U3 design of connecting rod-(i section, big&small eng, bolt, whipping str...
 
Vibration measuring instruments
Vibration measuring instrumentsVibration measuring instruments
Vibration measuring instruments
 
Flywheel
FlywheelFlywheel
Flywheel
 
kinematic synthesis
kinematic synthesiskinematic synthesis
kinematic synthesis
 
Instantaneous center method
Instantaneous center methodInstantaneous center method
Instantaneous center method
 
Elements of Industrial Automation Week 01 Notes.pdf
Elements of Industrial Automation Week 01 Notes.pdfElements of Industrial Automation Week 01 Notes.pdf
Elements of Industrial Automation Week 01 Notes.pdf
 
Clutches
ClutchesClutches
Clutches
 
Introduction to Mechatronics, Sensors and Transducers
Introduction to Mechatronics, Sensors and TransducersIntroduction to Mechatronics, Sensors and Transducers
Introduction to Mechatronics, Sensors and Transducers
 
The reheat cycle
The reheat cycleThe reheat cycle
The reheat cycle
 
Introduction of control engineering
Introduction of control engineeringIntroduction of control engineering
Introduction of control engineering
 
Adaptive control System
Adaptive control SystemAdaptive control System
Adaptive control System
 
Me6505 dynamics of machines unit 1
Me6505 dynamics of machines unit 1Me6505 dynamics of machines unit 1
Me6505 dynamics of machines unit 1
 

Similar to mechatronics lecture notes.pdf

Arduino bộ vi điều khiển cho tất cả chúng ta part 1
Arduino bộ vi điều khiển cho tất cả chúng ta part 1Arduino bộ vi điều khiển cho tất cả chúng ta part 1
Arduino bộ vi điều khiển cho tất cả chúng ta part 1tungdientu
 
BE Project Final Report on IVRS
BE Project Final Report on IVRSBE Project Final Report on IVRS
BE Project Final Report on IVRSAbhishek Nadkarni
 
INTRODUCTION TO EMBEDD.docx
INTRODUCTION TO EMBEDD.docxINTRODUCTION TO EMBEDD.docx
INTRODUCTION TO EMBEDD.docxvrickens
 
INTRODUCTION TO EMBEDDED SYSTEMSA CYBER-PHYS.docx
INTRODUCTION TO EMBEDDED SYSTEMSA CYBER-PHYS.docxINTRODUCTION TO EMBEDDED SYSTEMSA CYBER-PHYS.docx
INTRODUCTION TO EMBEDDED SYSTEMSA CYBER-PHYS.docxvrickens
 
Uni v e r si t ei t
Uni v e r si t ei tUni v e r si t ei t
Uni v e r si t ei tAnandhu Sp
 
Distributed Traffic management framework
Distributed Traffic management frameworkDistributed Traffic management framework
Distributed Traffic management frameworkSaurabh Nambiar
 
Design of a bionic hand using non invasive interface
Design of a bionic hand using non invasive interfaceDesign of a bionic hand using non invasive interface
Design of a bionic hand using non invasive interfacemangal das
 
FYP_enerScope_Final_v4
FYP_enerScope_Final_v4FYP_enerScope_Final_v4
FYP_enerScope_Final_v4Hafiiz Osman
 
Distributed Mobile Graphics
Distributed Mobile GraphicsDistributed Mobile Graphics
Distributed Mobile GraphicsJiri Danihelka
 
Team Omni L2 Requirements Revised
Team Omni L2 Requirements RevisedTeam Omni L2 Requirements Revised
Team Omni L2 Requirements RevisedAndrew Daws
 
Aidan_O_Mahony_Project_Report
Aidan_O_Mahony_Project_ReportAidan_O_Mahony_Project_Report
Aidan_O_Mahony_Project_ReportAidan O Mahony
 

Similar to mechatronics lecture notes.pdf (20)

Arduino bộ vi điều khiển cho tất cả chúng ta part 1
Arduino bộ vi điều khiển cho tất cả chúng ta part 1Arduino bộ vi điều khiển cho tất cả chúng ta part 1
Arduino bộ vi điều khiển cho tất cả chúng ta part 1
 
BE Project Final Report on IVRS
BE Project Final Report on IVRSBE Project Final Report on IVRS
BE Project Final Report on IVRS
 
thesis-hyperref
thesis-hyperrefthesis-hyperref
thesis-hyperref
 
INTRODUCTION TO EMBEDD.docx
INTRODUCTION TO EMBEDD.docxINTRODUCTION TO EMBEDD.docx
INTRODUCTION TO EMBEDD.docx
 
INTRODUCTION TO EMBEDDED SYSTEMSA CYBER-PHYS.docx
INTRODUCTION TO EMBEDDED SYSTEMSA CYBER-PHYS.docxINTRODUCTION TO EMBEDDED SYSTEMSA CYBER-PHYS.docx
INTRODUCTION TO EMBEDDED SYSTEMSA CYBER-PHYS.docx
 
dissertation
dissertationdissertation
dissertation
 
Hoifodt
HoifodtHoifodt
Hoifodt
 
Uni v e r si t ei t
Uni v e r si t ei tUni v e r si t ei t
Uni v e r si t ei t
 
Distributed Traffic management framework
Distributed Traffic management frameworkDistributed Traffic management framework
Distributed Traffic management framework
 
Black_book
Black_bookBlack_book
Black_book
 
Design of a bionic hand using non invasive interface
Design of a bionic hand using non invasive interfaceDesign of a bionic hand using non invasive interface
Design of a bionic hand using non invasive interface
 
FYP_enerScope_Final_v4
FYP_enerScope_Final_v4FYP_enerScope_Final_v4
FYP_enerScope_Final_v4
 
Distributed Mobile Graphics
Distributed Mobile GraphicsDistributed Mobile Graphics
Distributed Mobile Graphics
 
PLC & SCADA
PLC & SCADA PLC & SCADA
PLC & SCADA
 
Team Omni L2 Requirements Revised
Team Omni L2 Requirements RevisedTeam Omni L2 Requirements Revised
Team Omni L2 Requirements Revised
 
Final_report
Final_reportFinal_report
Final_report
 
jc_thesis_final
jc_thesis_finaljc_thesis_final
jc_thesis_final
 
Aidan_O_Mahony_Project_Report
Aidan_O_Mahony_Project_ReportAidan_O_Mahony_Project_Report
Aidan_O_Mahony_Project_Report
 
andershuss2015
andershuss2015andershuss2015
andershuss2015
 
Milan_thesis.pdf
Milan_thesis.pdfMilan_thesis.pdf
Milan_thesis.pdf
 

Recently uploaded

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 

Recently uploaded (20)

young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 

mechatronics lecture notes.pdf

  • 1. Introduction to Mechatronics (Meng 5272) Lecture Notes Tsegaye Getachew Alenka Department of Mechanical Engineering Wolaita Sodo University tsegaye.getachew@wsu.edu.et February 26, 2023 Contents 1 Competencies and Objectives of the Course 1 1.1 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Competences (Learning Outcomes) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 Mechatronics, Introduction 1 2.1 Definition and Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2.2 Measurement control Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2.3 Performance of Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.4 The Wheatstone Bridge Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.5 Review Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3 Control System, Actuating System and Mathematical Modeling 5 3.0.1 Mathematical models of Actuating Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.1 Semiconductors and Motor Controllers/Actuators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.2 Mechatronic System Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.3 Mechatronic Design Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.4 Review Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4 Micro-controllers and microprocessors 11 4.1 BASIC COMPUTER MODEL and Analogy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.2 Review Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 5 Sensor Communication Design 13 5.1 Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5.2 Sensor Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.2.1 Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.2.2 General Purpose Instrument Bus Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5.3 Digital Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5.3.1 Bivalent Axiomatic Set Theory/Logic Gates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6 Assembly Language and PLC 18 6.1 Ladder Logic, Functional Block Diagram, Structured Text, Instruction List and Sequential Functional Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 6.2 Review Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7 Miscellaneous & Objective Questions 21 List of Figures 1 (a) Concept of mechatronics: an interconnected energy and information flow (b) Definition: synergetic integration of knowledge from main disciplines in mechatronics . . . . . . . . . . . . . . . . . . . . . . 2 2 (a) Wheatstone Bridge Circuit (b) Realtime step vs frequency Response . . . . . . . . . . . . . . . . . 4 3 (a) Comparison of Open and Closed Loop Controller (b) components of closed loop controller . . . . . 7 4 Schematic of Synergistic Mathematical Model of Actuation Control Systems (a)Mechanical (b) Hy- draulic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 5 (a) Types of Motor Actuators (b) Types of Electronics . . . . . . . . . . . . . . . . . . . . . . . . . . 9 I
  • 2. 6 (a) Watt-Governor (b) Electronic Furnace Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 7 (a) an 8051 µP Architecture & Components (b) bus (c)µcontrollers vs µprocessors . . . . . . . . . . . 12 8 Bivalent logic gates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 9 Ladder Logic Program/Diagram of Pump Motor Control . . . . . . . . . . . . . . . . . . . . . . . . . 20 10 (a) Sequential Function Chart (SFC) of the pump (b)Function Block Diagram (FBD) . . . . . . . . . 20 List of Tables 1 Measurement instruments construction A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 Measurement instruments construction B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 Differential Modelling of Physical Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 4 Comparison mathematical model of simple translational mechanical vs PID control systems . . . . . . 7 5 Basic Analogy of Computer Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6 8051 Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7 Simple Programs in 8051 Assembly Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 I
  • 3. 1 Competencies and Objectives of the Course 1.1 Objectives Mechatronics, as an engineering discipline, is the synergistic combination of mechanical engineering, electronics, control engineering, and computers, all integrated through the design process. It involves the application of complex decision making to the operation of physical systems. Mechatronic systems depend for their unique functionality on computer software. This course studies mechatronics at a theoretical and practical level; balance between theory/analysis and hardware implementation is emphasized; emphasis is placed on physical understanding rather than on mathematical formalities. A case-study, problem-solving approach, with video hardware demonstrations, is used throughout the course. The course of studies should enable students to analyze complex physical-technical combinations and to describe, to model, to simulate and to develop Mechatronics systems using the methods of mechanical engineering, electrical engineering and computer science. Students’ central task is A case-study, problem-solving approach, with video hardware demonstrations, is used throughout the course. The course of studies should enable students to analyze complex physical-technical combinations and to describe, to model, to simulate and to develop Mechatronics systems using the methods of mechanical engineering, electrical engineering and computer science. Students’ central task is the optimal configuration of the complete system. 1.2 Competences (Learning Outcomes) After completion of this course students will ˆ Understand the importance of the integration of modeling and controls in the design of mechatronic systems. ˆ Understand the dynamic system investigation process and be able to apply it to a variety of dynamic physical systems. ˆ Understand the importance of physical and mathematical modeling (both from first principles and using system ˆ identification experimental techniques) in mechatronic system design and be able to model and analyze mechan- ical, electrical, electromechanical, fluid, thermal, chemical, and multidisciplinary systems. ˆ Be able to develop a hierarchy of physical models for a dynamic system, from a truth model to a design model, and understand the appropriate use of this hierarchy of models. ˆ Become proficient in the use of MatLab/Simulink to model and analyze nonlinear and linear mechatronic systems. ˆ Understand the key elements of a measurement system and the basic performance specifications and physi- cal/mathematical models of a variety of analog and digital motion sensors. ˆ Understand the characteristics and models of various electromechanical actuators (brushed dc motor, brushless dc motor, and stepper motor) and hydraulic and pneumatic actuators. ˆ Understand analog and digital circuits and components and semiconductor electronics as they apply to mecha- tronic systems. ˆ Understand and be able to apply various control system design techniques: open-loop feedforward control, classical feedback control (root-locus and frequency response), and statespace control. ˆ Have a general understanding of more advanced control design techniques: cascade control, inferential control, model predictive control, adaptive control, fuzzy logic control, and multivariable control. ˆ Understand the digital implementation of control and basic digital control design techniques. ˆ Be able to use a microcontroller as a mechatronic system component, i.e., understand programming and inter- facing issues. Be able to apply all these skills to the design of a mechatronic system 2 Mechatronics, Introduction 2.1 Definition and Concept Mechatronics is a concept of Japanese origin (1980’s) and can be defined as the application of electronics and com- puter technology to control the motions of mechanical systems. The word, mechatronics, is composed of “mecha” from mechanism and the “tronics” from electronics. In other words, technologies and developed products will be incorporating electronics more and more into mechanisms. [1] Mechanical systems are increasingly integrated with actuators, sensors and digital electronics as in the figure 1 (a).[1] 1
  • 4. (a) (b) Figure 1: (a) Concept of mechatronics: an interconnected energy and information flow (b) Definition: synergetic integration of knowledge from main disciplines in mechatronics The design of mechatronic system involve interrelations during mechanical and electronic systems, the simultaneous engineering with the goal of also creating synergetic effects as presented in the figure 1 (b).[2]. Mechatronics, therefore, is the synergistic integration of mechanical engineering, with electronics and intelligent computer control in the design and manufacturing of industrial products and processes. 2.2 Measurement control Review Measurements of variables are needed for monitoring and control purposes. Typical variables that need to be measured in a data acquisition and control system are:1. position, velocity, acceleration, 2. force, torque, strain, pressure, 3. temperature, 4. flow rate, 5. humidity.. Many instruments constructed to work by the principle electromagnetism with capacitive, resistive, and magnetic detection a few with Lorentz’s force measurement i.e.if a magnetic field moves near an electrical wire, current flows through the wire. Whereas an LVDT measures displacement, an LVT measures speed. The coils of opposite polarity around permanent magnet measures the net DC/AC voltage generated proportional to object’s position measured and stored along with timer frequency, to compute motion. Tables 1 & 1 show review on schematic construction of various instruments. [3] Sensor is a device that responds to a change Table 1: Measurement instruments construction A An LVT consists of a rod called the core (a permanent mag- net), and two elec- trical coils around the core slides in- side a hollow cylin- drical tube called a bobbin and DC vltage generated in the coils. doppler works by the same principle as a car horn where moving towards you (or away from you) has an ap- parently higher (or lower) pitch, only that doppler works with radio wave instead of sound wave, or frequency, A double-pulse laser illuminates a region of flow under study, and a digital camera (sometimes two sepa- rate cameras) records two images – timed with the two flashes (pulses) of laser light. The displacement of illuminated particles is then determined by analyzing (interro- gating) the two im- ages with image pro- cessing software An optical technique involving a laser is laser Doppler velocimetry (LDV), also called laser velocimetry (LV) or laser Doppler anemometry (LDA). whereas PIV is a Lagrangian technique, following the motion of individual particles, LDV is an Eulerian technique, since the velocity is mea- sured at a fixed point in the flow. works in Bernoulli’s principle where Pitot-static probe either both pres- sures are measured (pierced two holes from side), or the pressure difference is measured (with only one hole at the front edge).We consider here in- compressible flow, and assume that the probe is aligned into the flow, in the physical phenomenon. Transducer is a device that converts one form of energy into another form of energy 2
  • 5. Sensors are transducers when they sense one form of energy input and output in a different form of energy. For example, a thermocouple responds to a temperature change (thermal energy) and outputs a proportional change in electromotive force (electrical energy). Therefore, a thermocouple can be called a sensor and or transducer. The study of mechatronic systems can be divided into the following areas of speciality: 1. physical system modelling: mechanical systems (mechanical elements, machines, precision mechanics); and elec- tronic systems (microelectronics, power electronics, sensor and actuator technology); 2. information technology (systems theory: Signals and Systems,and Data Acquisition), and Logic Systems, Software, Computers, artefacts and Intelligence: automation, software engineering, artificial intelligence). Table 2: Measurement instruments construction B In piezoelectric (acceler- ation, strainguage, etc) instruments, A seismic mass is placed on an elastic return blade equipped with two or four piezoresistive gauges in a Wheatstone Bridge where the unit vibration of a mass applied by a force proportional to acceler- ation & the piezoelectric element C = ε0εr A d Bimetalic strip thermo- couples: two dissimilar metals, joined together at one end, that produce a voltage (expressed in millivolts) with a change in temperature. Gyroscopes in- ertia navigation can be used to construct gyro- compasses, which complement or replace magnetic compasses vehi- cles, to assist in stability The photoelectric effect is a phe- nomenon in which photon energy (i.e. from light) releases electrons from their otherwise more stable state on a surface where the disruption mea- sured called hall effect with Loretz force Due to the fact that the controller is a digital computer, the following problems are introduced in a closed loop control system: time delay associated with signal conversion and processing, sampling, quantization error due to finite precision, and reconstruction of signals. While the switch is ON, the output voltage is y(t) = 1 C Z t 1 i(τ)dτ where i(τ) = y(t) − ¯ y(t) R (1) Nevertheless, sensors/measurement instrument can either be designed for a discontinuous/continuous applications as a system. Continuous applications require the process of signal conditioning: sampling, analogue to digital conver- sion, filtering/manipulation and storing of data from single or multiple measurement instruments. Filtering involves digital conversion, error verification and validation, real-time delay accommodation, time-space correlation, sampling operation and specification. 2.3 Performance of Measurement A measurement system must first be accurate, precise & repeatable before it can be reproducible. Repeatability refers to a sensor’s ability to give identical outputs for the same input. Precision (or random) errors cause a lack of repeatability Error is the difference between a measured value and the true input value. Two types of errors: 1. Bias (or systematic) errors and 2. Precision (or random) errors. Bias errors can be further subdivided into (a) Calibration errors (a zero or null point error is a common type of bias error created by a nonzero output value when the input is zero), (b) Loading errors (adding the sensor to the measured system changes the system), errors due to sensor sensi- tivity to variables other than the desired one (e.g., temperature effects on strain gages). 3
  • 6. Saturation: All real actuators/instruments have some maximum output capability, regardless of the input. Deadband: The dead band is typically a region of input close to zero at which the output remains zero. Once the input travels outside the dead band, then the output varies with input. Engineering measurement signals are continuous: voltage that varies over time; a chemical reaction rate that depends on temperature, etc. Analog-to-Digital Conversion (ADC) and Digital-to-Analog Conversion (DAC) allow digital computers to interact with these signals. The output from the sensor is conditioned (amplified, filtered, etc.). The conditioned analog signal is digitized using an analog-to-digital converter (ADC). The digital information is acquired, processed and recorded by the computer. The computer may then modify the system by outputting control signals. The digital control signals are converted to analog signals using a digital-to-analog converter (DAC). The analog signals are conditioned (e.g. amplified and filtered) appropriately for an actuator The actuator interacts with the system to give desired response 2.4 The Wheatstone Bridge Circuit (a) (b) Figure 2: (a) Wheatstone Bridge Circuit (b) Realtime step vs frequency Response The Wheatstone bridge can be used in various ways to measure electrical resistance in all measurement system circuit/sensor/transducer design construction: ˆ For the determination of the absolute value of a resistance by comparison with a known resistance ˆ For the determination of relative changes in resistance The latter method is used with regard to strain gauge techniques. The four arms or branches of the bridge circuit are formed by the resistances R1 to R4. The corner points 2 and 3 of the bridge designate the connections for the bridge excitation voltage Vs. The bridge output voltage V0 , that is the measurement signal, is available on the corner points 1 and 4. as shown in Fig 2 Note: There is no generally accepted rule for the designation of the bridge components and connections. In existing literature, there are all kinds of designations and this is reflected in the bridge equations. Therefore, it is essential that the designations and indices used in the equations are considered along with their positions in the bridge networks in order to avoid misinterpretation. R1 R2 = R4 R3 (2) where the bridge output voltage V0 is zero. With a preset strain, the resistance of the strain gauge changes by the amount ∆R. This gives us the following equation: VO = Vs R1 + ∆R1 R1 + ∆R1 + R2 + ∆R2 − R4 + ∆R4 R3 + ∆R3 + R4 + ∆R4 For strain measurements, the resistances R1 and R2 must be equal in the Wheatstone bridge. The same applies to R3 and R4. With a few assumptions and simplifications, the following equation can be determined. the H to Measurements using Strain Gauges; Vo Vs = 1 4 ∆R1 R1 − ∆R2 R2 + ∆R3 R3 − ∆R4 R4 (3) In the last step of calculation, the term ∆R/R must be replaced by the following: ∆R R = k · ε Here k is the k-factor of the strain gauge, ε is the strain. This gives us the following: Vo Vs = k 4 (ε1 − ε2 + ε3 − ε4) (4) 4
  • 7. The next section discuss about mathematical modelling, that involves Laplace and Fourier transformation of real-time sampling to space variable and signal manipulation. It should be accompanied by physical device circuit design along with implication design. A dedicated standard device setup or unit responsible for sampling and measurement manip- ulation is called Data Acquisition System or in short DAQ. The modernized version of DAQ is Supervisory Control and Aata Acquisition or in short SCADA is a control system architecture comprising computers, networked data communications and graphical user interfaces for high-level supervision of machines and processes 2.5 Review Questions 1. Define Mechatronics with an aid of neat sketch 2. Draw Wheatstone bridge circuit, write its mathematical model equations in strainguage construction and explain its importance in measurement system 3. Define signal sampling 4. Compare SCADA against DAQ 5. Compare piezoelectric sensors with photoelectric sensors 6. Evaluate similarity and difference in working principles of LVDT, LDV and LVT 7. Describe an instrument or two working principle under hall effect. constract and explain bimetallic strrip thermocouple 3 Control System, Actuating System and Mathematical Modeling Control engineering or control systems engineering: is an engineering discipline that applies automatic control theory to design systems with desired behaviors in control environments. The practice uses sensors and detectors to measure the output performance of the process being controlled; these measurements are used to provide corrective feedback helping to achieve the desired performance. Multi-disciplinary mainly: mechanical, hydraulic, and electrical in nature, control systems engineering activities focus on implementation of control systems mainly derived by mathe- matical modeling of a diverse range of systems. System – An interconnection of elements and devices for a desired purpose. Process – The device, plant, or system under control. The input and output relationship represents the cause-and-effect relationship of the process. In 19th Century James Watt’s centrifugal governor see fig. 6 for the speed control of a steam engine. In 20th Century, Nyquist Plot or Polar Plot of frequency responses of linear systems developed a method for analyzing the stability of controlled sys- tems mainly for an open control systems displaying both amplitude and phase angle on a single plot, using frequency as a parameter in the plot. Later, Root-locus method due to Evans was fully developed incorporating open loop control of Nyquist along with the frequency response methods made it possible to design linear closed-loop control systems. The Nyquist analysis involved transforming a time Response Analysis of Control Systems to an space s domain via Laplace mathematical transformation or modelling grasping a characteristic solution of equation of the system in space s domain correlating an output response to its corresponding input and ploting dominant amplitude and phase angle polar coordinates. Root locus method examined characteristic equation in an s Laplace domain correlating the coefficients to stability criteria without calculating the roots. 3.0.1 Mathematical models of Actuating Systems The mathematical description of the dynamic characteristic of a system is similar for actuating systems, measurement instruments and mechatronic systems. The first step in the analysis of dynamic system is to derive its mathematical model. The transfer function of a linear time-invariant system is define to be the ratio of the Laplace transform ( transform for sampled data systems) of the output to the Laplace transform of the input (driving function), under the assumption that all initial conditions are zero. Compact model form: If the original model is a higher order differential equation, or a set of first order differential equations, the relation between the input variable and the output variable can be described by one transfer function, which is a rational function of the Laplace space variable s, without any time-derivatives. Representation of standard models: Transfer functions are often used to represent standard models of controllers and signal filters. Simple to combine systems: For example, the transfer function for a combined system which consists of two systems in a series combination, is just the product of the transfer functions of each system. Simple to calculate time responses: The calculations will be made using the Laplace transform, and the necessary mathematical operations are usually much simpler than solving differential equations. Simple to find the frequency response: The frequency response is a function which expresses how sinusoid signals are transferred through a dynamic system. Frequency response is an important tool in analysis and design of signal filters and control systems. The frequency response can be found from the transfer function of the system. The category of control systems is shown in Fig 3 For a controller with proportional control action, P, the relationship between 5
  • 8. Table 3: Differential Modelling of Physical Systems Electrical System Elec.Inductuctance v21 = L d dt i Elec. power/Energy E = 1 2 · L2 1 Electrical Resistance i = 1 R · v21 power P = 1 R · v2 21 Mechanical System Rotational Spring ω21 = 1 k · d dt T Energy E = 1 2 · T2 k Rotational mass T = J · d dt ω2 Energy E = 1 2 · J · ω2 2 rotational damper T = b · ω21 power P = b · ω2 21 Translation Spring v21 = 1 k · d dt F Energy E = 1 2 · F2 k Translational Mass F = M · d dt v2 E = 1 2 · M · v2 2 translational damper F = b · v21 power P = b · v2 21 Hydraulic Systems fluid inertia P21 = I · d dt QEnergy E = 1 2 · I · Q2 fluid capacitance Q = Cf d dt P21 Energy E = 1 2 · Cf P2 21 fluid resistance Q = 1 Rf · P21 power P = 1 Rf · P2 21 thermal capacitanceq = Ct d dt T2 Energy E = 1 2 · CtT2 thermal resistance q = 1 Rt · T21 power P = 1 Rt · T21 the output of the controller u(t) and the actuating error signal e(t) is linear. In a controller with integral control action,PI, the value of the controller output u(t) is integrated/summed-up and changed at a rate proportional to the actuating error signal e(t). Proportional-Plus-Derivative Control Action,, PD, the control action of a proportional, and derivative controller. Lastly, Proportional-Plus-Integral-Plus-Derivative Control Action, PID, the combination of proportional control action, integral control action, and derivative control action is termed proportional-plus-integral-plus-derivative control action. It has the advantages of each of the three individual control actions. The typical model equation for general control system follows, emphtransfer function, formulation of a linear, time-invariant, differential equation system is defined as the ratio of the Laplace transform of the output (response function) to the Laplace transform of the input (driving function) under the assumption that all initial conditions are zero. Consider the linear time-invariant system defined by the following differential equation 5 a0 (n) y + a (n−1) 1 y + · · · + an−1ẏ + any = b0 (m) x + b1x + · · · + bm−1ẋ + bmx (n ≥ m) (5) Where y is the output of the system and x is the input. The transfer function of this system is the ratio of the Laplace transformed output to the Laplace transformed input when all initial conditions are zero, or with with common s space domain that enables correlation as shown in eq. 6. Transfer function = G(s) = L[ output ] L[ input ] zero initial conditions = Y (s) X(s) = b0sm + b1sm−1 + · · · + bm−1s + bm a0sn + a1sn−1 + · · · + an−1s + an (6) 6
  • 9. Practical mechatronic/control systems are an integration of all system components. See Fig 6, 4 1. [4], [1], [5], [6], [7]. There is no isolated electrical, mechanical or hydraulic actuating system model but the practical relevance of synergistic or an integrated system demands individual and integrated system model of either open loop (system response without feedback) or closed loop control systems (system response with feedback). (a) (b) Figure 3: (a) Comparison of Open and Closed Loop Controller (b) components of closed loop controller Table 4: Comparison mathematical model of simple translational mechanical vs PID control systems mechanical PID Electronic Description: mass, damping and spring Description: Constants of (proportional, integral and derivative) ẋ1 ẋ2 = 0 1 − k m − b m x1 x2 + 0 1 m u u(t) = Kpe(t) + Kp Ti R t 0 e(t)dt + KpTd de(t) dt ↑→ time-series model timeseries model ↑ s −1 k m s + b m −1 = 1 s2+ b m s+ k m s + b m 1 − k m s U(s) E(s) = Kp 1 + 1 Tis + Tds Transfer Func. ↑→ time invariant space domain model G(s) = 1 0 1 s2 + b m s + k m s + b m 1 − k m s 0 1 m = 1 ms2 + bs + k ↑→ Transfer Function Individual components and physical phenomena inside them needs to be modelled following their corresponding governing principles (governing mathematical laws) and integrated in space domain via transfer function in common time invariant space s variable. kircholf’s law for exaple governs electrical circuit while newton’s second law governs solid motion along with newton’s modified or navier-stokes equations or bernoulli governs fluid depending on param- eter under consideration. It should be noted that as you can see in the figure 4, mechanical system can also have varieties of components for which table 3 7
  • 10. (a) (b) Figure 4: Schematic of Synergistic Mathematical Model of Actuation Control Systems (a)Mechanical (b) Hydraulic 3.1 Semiconductors and Motor Controllers/Actuators Most mechatronic systems have motor actuators as shown in figure 5 (a). The stationary outer housing, called the stator, supports radial magnetized poles. These poles consist of either permanent magnets or wire coils, called field coils, wrapped around laminated iron cores. The purpose of the stator poles is to provide radial magnetic fields. There is a small air gap between the rotor and the stator where the magnetic fields interact. AC motors: run with alternating source input, the synchronous motors/no slip where rotor speed matches synchronous speed in the stator are more efficient AC type have wound rotor whereas induction motors have permanent with less rotor speed. The brushed DC motors have coils in their center rotating around permanent magnets while brushless DC motors have permanent magnet in the center that rotate around the coils. The brushless motors offer a better power-to-weight and 8
  • 11. (a) (b) Figure 5: (a) Types of Motor Actuators (b) Types of Electronics torque-to-weight ratio than brushed motors. Apart from these general common construction, there are many other types of motor precise electronic constructions such as: stepper motor a brushless DC servo motor that divides a full rotation into a number of equal discrete steps, linear motor: servo type with its stator and rotor ”unrolled” producing linear force, etc. An electronic circuit is composed of various types of components. Some of these components are termed as active components because they take part in the transformation of the energy while other components, which only dissipate or store energy, are called as passive elements. The vacuum tubes, rectifier, transistors are some of-the common ac- tive while the resistances, which dissipate the power and energy storing elements such as capacitances and inductances are known as passive elements. The transformers may be regarded as a matching device. The success of any electronic circuit depends not only on proper selection of the active elements but on the passive and matching elements too. The proper function, of an active device is decided by the proper values of these passive elements. Hence the selection of these elements such as resistances, inductances, capacitance, and transformers not only require the proper attention, but also decide the proper function of the active devices as well as the circuit as a whole. 3.2 Mechatronic System Review The control-theoretic view of a sensor is that it provides the exact value y(t) of a process variable. Sometimes – to provide a degree of realism – white noise is added and it is left to a Kalman filter or observer in the control algorithm 9
  • 12. to estimate the underlying state. In industry there is much more emphasis on measurement technology, for without good sensing, good control is impossible. For process applications, analogue 4/20 mA transmitters were developed for communicating measurements to a remote direct digital control (DDC) computer (see Figure 1b). Such a transmitter has several advantages: the use of current loops allows for long cable runs without significant interference,transmitters can be powered down the wires from the control room, and the standard enables the interworking of transmitters from different vendors. Classic example of automation is the watt governor where a closed loop cylinder position control system with mechan- ical feedback used in the actuation of the main valve to widen or lessen the injection opening in accordance with the requirements of driving conditions based on speed/centrifugal force measurements feedbacks of the flyballs: Flyballs move outer with higher centrifugal force/speed demand rising lever by the push of lever arms increases fuel injection and vice-versa Typical example is shown in the Figure a temperature control system that can be used to heat a room (a) (b) Figure 6: (a) Watt-Governor (b) Electronic Furnace Control or oven. The heat is generated by the electric heater. Heat is lost to the outside through the walls. A thermometer is used to measure the temperature. An analog controller has the desired temperature setting. Based on the difference between the set and measured temperature, the op-amp turns ON or OFF the relay which turns the heater ON/OFF. In order to make sure the relay does not turn ON and OFF due to small variations around the set temperature, the op-amp would normally have a hysteresis functionality implemented on its circuit. The question of actuator sizing is a question of determining the following requirements for an axis underworst operat- ing conditions (i.e., largest expected inertia and resistive load), For example, for the mechanical system, the following considerations taken: 1. maximum torque (also called peak torque) required, Tmax, 2. rated (continuous or root mean squared, RMS) torque required, Tr, 3. maximum speed required, θmax, 4. positioning accuracy required, ∆θ, 5. gear mechanism parameters: gear ratio, its inertial and resistive load (force/torque), stiffness, backlash charac- teristics. Once the torque requirements are determined, then the amplifier current and power supply requirements are directly determined from them. 3.3 Mechatronic Design Process Earlier designs involved separate designs of components and integration of mechatronic systems. Now a days, the trend in industrial practice is that the embedded control software development part of modern mechatronics engineering is done involving three phases as shown in the figure 1. 1. Phase 1: Control software development and simulation in non-real-time environment. 2. Phase 2: Hardware in-the-loop (HIL) simulation and testing in real-time environment. 3. Phase 3: Testing and validation on actual machine. 10
  • 13. In phase 1, the control software is developed by using graphical software tools, such as Simulink® and Stateflow, simulated and analyzed on a non-real-time computer environment (Figure 1.29). The “plant model,” which is the computer model of the machine to be controlled, is a non-real-time detailed dynamic model. Simulations and analysis are done in this non-real-time environment. In phase 2, the “same control software” is tested on a target embedded control module (ECM). That “same control software” is a C-code which is auto-generated from the graphical diagrams of Simulink® and Stateflow using auto-code generation tools such as Simulink® Coder, Embedded Coder, and MATLAB® Coder. The last phase involve physical experiment. 3.4 Review Questions 1. List down types of mechanical actuating system. Enumerate components of hydraulic actuating systems 2. Write steps involved in mechatronic design process 3. Write real-time, time-invariant and transfer function mathematical model of electrical, mechanical and hydraulic control systems 4. Write characteristics and importance of passive electronic components and compare them with an active electi- cal/electronic components. 5. Define Servo Motors, synchronous motors and brushless motors. 6. What is the function of a microprocessor in a system? 7. Why is the data bus in 8085 bidirectional? 8. How does microprocessor differentiate between data and instruction? Distinguish between microcontroller and microprocessor 9. How long would the processor take to execute the instruction LDA 1753H if the T-state duration is 2µs? 10. Draw the timing diagram of the instruction LDAX B. 11. Sketch and explain the various pins of the 8085. 12. Explain direct addressing mode of 8085 with an example? 4 Micro-controllers and microprocessors The digital computer is the brain of a mechatronic system. As such, it is called the controller when used for the control function of an electro-mechanical system. Any computer with proper I/O interface devices (digital and analog I/O) and software tools can be used as a controller. Microprocessor contains ALU, General purpose registers, stack pointer, program counter, clock, timing circuit, interrupt circuit with more instructions input, less number of pins and multifunctional flexible tasks with fewer bit handling. Whereas microcontroller contains the circuitry of microprocessor, and in addition it has built in ROM, RAM, I/O Devices, Timers/Counters etc having fewer specialized tasks with more bit handling in contrast to microprocessor, require less additional devices. Embedded computers are generally used in real-time applications. Therefore, they have hard real-time requirements. Hard real-time requirement means that certain tasks must be completed within a certain amount of time, or the computer must react to an external event within a certain time. Otherwise the consequences may be very serious. The consequences of not meeting the real-time response requirements in a desktop application are not as serious. Embedded computers are not general purpose computing machines, but have more specialized architectures and resources. Memory resources in a desktop PC are very large and conserving memory is not a concern for the programmer. Whereas memory resources in microcontrollers are limited and memory space should be used carefully in order to not exceed that available. In real-time programming, depending on the microcontroller/DSP type and the development environment we use, the development environment at the compilation and link time may allow us to decide how to utilize the available memory for variables and constants, in order to best fit the application program into the available memory. The components of a development setup for a microcontroller-based control system: PC as host development environment including the development software tools for the microcontroller, communication cable, microcontroller board, breadboard, test and measurement tools, and electronic components supply kit. 4.1 BASIC COMPUTER MODEL and Analogy Notice the following characteristics in a computer program: normally the program instructions are executed sequen- tially, the order of execution can be changed using the conditional statements, the CPU, clock, ROM, RAM and accumulators, and I/O are the key components of a basic computer operation. Microprocessor communicates and 11
  • 14. (a) (b) (c) Figure 7: (a) an 8051 µP Architecture Components (b) bus (c)µcontrollers vs µprocessors Table 5: Basic Analogy of Computer Model Brain CPU wall clock clock deck of instruction cards read only memory (ROM) chalk-eraser-black-board random access memory (RAM) pocket cards accumulators (also called registers) input-output tray I/O devices eyes, hands and arms bus to access resources (read/write) operates in binary numbers 0 and 1. A typical microprocessor consists of arithmetic and logic unit (ALU) in associa- tion with control unit to process the instruction execution. Almost all the microprocessors are based on the principle of store-program concept. In store-program concept, programs or instructions are sequentially stored in the memory locations that are to be executed. To do any task using a microprocessor, it is to be programmed by the user. The semiconductor manufacturing technologies used for chips are: 1. Transistor-Transistor Logic (TTL) 2. Emitter Coupled Logic (ECL) 3. Complementary Metal-Oxide Semiconductor (CMOS) Microprocessors: classified based on their specification, application and architecture microprocessors are classified. Based on size of data bus: 1. 4-bit microprocessor 2. 8-bit microprocessor 3. 16-bit microprocessor 4. 32-bit microprocessor Based on application: 1. General-purpose microprocessor- used in general computer system and can be used by programmer for any application. Examples, 8085 to Intel Pentium. 12
  • 15. 2. Microcontroller- microprocessor with built-in memory and ports and can be programmed for any generic control application. Example, 8051. 3. Special-purpose processors- designed to handle special functions required for an application. Examples, digital signal processors and application-specific integrated circuit (ASIC) chips. Components of microprocessor shown in Fig 7 1. Buses: wires/lines interconnecting various component blocks of µcontroller or µprocessor. 2. Arithmetic Logical Unit: The ALU performs the actual numerical and logical operations such as Addition (ADD),Subtraction (SUB), AND, OR 3. Register (00h to 1Fh ASCII symbols/ R0 through R7 pins): Typical 8085 microprocessor includes six general purpose registers to store an 8-bit data, one accumulator and one flag register. In addition, it has two 16-bit registers: stack pointer and program counter. The programmer can use these registers to store or copy data into the register by using data copy instructions. 4. Accumulator: Slower cheaper version of RAM: The accumulator is an 8-bit register that is a part of ALU. This register is used to store 8-bit data and to perform arithmetic and logical operations. The result of an operation is stored in the accumulator. 5. Flag Register: The ALU includes five flip-flops, which are set or reset after an operation according to data condition of the result in the accumulator and other registers. They are called Zero (Z), Carry (CY), Sign (S), Parity (P) and Auxiliary Carry (AC) flags. The microprocessor uses these flags to test data conditions. 6. Counter: This 16-bit register deals with sequencing the execution of instructions. This register is a memory pointer. The microprocessor uses this register to sequence the execution of the instructions. The function of the program counter is to point to the memory address from which the next byte is to be fetched. When a byte is being fetched, the program counter is automatically incremented by one to point to the next memory location 7. The stack pointer: is also a 16-bit register, used as a memory pointer. It points to a memory location in R/W memory, called stack. The beginning of the stack is defined by loading 16- bit address in the stack pointer 8. Instruction Register/Decoder: It is an 8-bit register that temporarily stores the current instruction of a program. Latest instruction sent here from memory prior to execution. Decoder then takes instruction and decodes or interprets the instruction. Decoded instruction then passed to next stage. 9. Control Unit: Generates signals on data bus, address bus and control bus within microprocessor to carry out the instruction, which has been decoded. 4.2 Review Questions 1. Compare the components of microcontroller against microprocessor with block diagrams and briefly describe their difference 2. Describe the function and characteristics of counter; compare it with register and bus 3. compare control unit with ALU 4. Write classifications of microprocessors based on their specifications and raw materials they are made from. 5 Sensor Communication Design Asynchronous transmission implies that both the transmitter and receiver computers are not synchronized, each having their own independent clock signals. The time between transmitted characters is arbitrary clocks. While syn- chronous transmission there is no need for start and stop bits since the transmitter and receiver have a common clock signal and thus characters automatically start and stop always at the same time in each cycle. Parallel data transmission Within computers, data transmission is usually by parallel data paths. Parallel data buses transmit 8, 16 or 32 bits simultaneously, having a separate bus wire for each data bit and the control signals. Thus, if there are eight data bits to be transmitted, e.g. 11000111, then eight data wires are needed. Serial data transmission such as RS-232, The 20 mA current loop, I2C bus, CAN bus, USB, Fire-wire : involves the transmission of data which, together with control signals, is sent bit by bit in sequence along a single line. Only two conductors are needed, to transmit data and to receive data. Since the bits of a word are transmitted sequentially and not simultaneously, the data transfer rate is considerably less than with parallel data transmission such as General Purpose Instrument Bus; (GPIB), XT computer bus, AT bus, also referred to as the industry stan- dard architecture (ISA) bus, The extended industry standard architecture (EISA) bus, General Purpose Instrument 13
  • 16. Bus (GPIB) For the parallel interface to a printer the Centronics parallel interface is commonly used. However, with instrumen- tation the most commonly used parallel interface in communications is the General Purpose Instrument Bus (GPIB), the IEEE 488 standard, [8] originally developed by Hewlett Packard to link its computers and instruments and thus often referred to as the Hewlett Packard Instrumentation Bus. Each of the devices connected to the bus is termed a listener, talker or controller. Listeners are devices that accept data from the bus, talkers place data, on request, on the bus and controllers manage the flow of data on the bus by sending commands to talkers and listeners and carry out polls to see which devices are active.. An external bus is a set of signal lines that interconnects microprocessors, microcontrollers, computers and pro- grammable logic controllers (PLCs) and also connects them with peripheral equipment (i.e. Sensors Actuators). Thus a computer needs to have a bus connecting it with a printer if its output is to be directed to the printer and printed. Multiprocessor systems are quite common. For example, in a car there are likely to be several microcon- trollers with each controlling a different part of the system, e.g. engine management, braking and instrument panel, and communication between them is necessary Centralized computer control involves the use of one central computer to control an entire plant. This has the problem that failure of the computer results in the loss of control of the entire plant. This can be avoided by the use of dual computer systems. If one computer fails, the other one takes over. Such centralized systems were common in the 1960s and 1970s. The development of the microprocessor and the ever reducing costs of computers have led to multi-computer systems becoming more common and the development of hierarchical and distributed systems. [1]. With the hierarchical system, there is a hierarchy of computers according to the tasks they carry out. The comput- ers handling the more routine tasks are supervised by computers which have a greater decision-making role. With the distributed system, each computer system carries out essentially similar tasks to all the other computer systems. In the event of a failure of one, or overloading of a particular computer, work can be transferred to other computers. Serial data transmission occurs in one of three modes. Simplex mode: Transmission is only possible in one direction, from device A to device B, where device B is not capable of transmitting back to device A. This method is usually only used for transmission to devices such as printers which never transmit information. Half-duplex mode:Data is transmitted in one direction at a time but the direction can be changed. Terminals at each end of the link can be switched from transmit to receive. Citizens Band (CB) radio is an example of half-duplex mode; a person can receive or talk but not do both simultaneously. Full-duplex mode: Data may be transmitted simultaneously in both directions between devices A and B. This is like a two-lane highway in which traffic can occur in both directions simultaneously. The telephone system is an example of full-duplex mode in that a person can talk and receive at the same time. 5.1 Networks The term network is used for a system which allows two or more computers/ microprocessors to be linked for the interchange of data. The logical form of the links is known as the network topology. The term node is used for a point in a network where one or more communication lines terminate or a unit is connected to the communication lines. The following are commonly used forms. Data Bus : This has a linear bus into which all the stations are plugged. This system is often used for multipoint terminal clusters. It is generally the preferred method for distances between nodes of more than 100m. Star : This has dedicated channels between each station and a central switching hub through which all communications must pass. This is the type of network used in the telephone systems (private branch exchanges (PBXs)) in many companies, all the lines passing through a central exchange. This system is also often used to connect remote and local terminals to a central mainframe computer. There is a major problem with this system in that if the central hub fails then the entire system fails. Hierarchy or tree : This consists of a series of branches converging indirectly to a point at the head of the tree. With this system there is only one transmission path between any two stations. This arrangement may be formed from a number of linked data bus systems. Like the bus method, it is often used for distances between nodes of more than 100m. Ring: This is a very popular method for local area networks, involving each station being connected to a ring. The distances between nodes are generally less than 100 m. Data put into the ring system continues to circulate round the ring until some system removes it. The data is available to all the stations. Mesh : This method has no formal pattern to the connections between stations and there will be multiple data paths between them. Local area network (LAN): used for a network over a local geographic area such as a building or a group of buildings on one site. The topology is commonly bus, star or ring. A wide area network (WAN): one that interconnects computers, terminals and local area networks over a national or international level. 14
  • 17. 5.2 Sensor Communication Sensor communication primarily concerned with local area networks. Network access control:Access control meth- ods are necessary with a network to ensure that only one user of the network is able to transmit at any one time. The following are methods used. With ring-based local area networks, two commonly used methods are: ˆ Token passing : With this method a token, a special bit pattern, is circulated. When a station wishes to transmit it waits until it receives the token, then transmits the data with the token attached to its end. Another station wishing to transmit removes the token from the package of data and transmits its own data with the token attached to its end. ˆ Slot passing : This method involves empty slots being circulated. When a station wishes to transmit data it deposits it in the first empty slot that comes along. With bus or tree networks a method that is often used is: ˆ Carrier sense multiple access with collision detection (CSMA/CD) : This method is generally identified with the Ethernet LAN bus. With the CSMA/CD method, stations have to listen for other transmissions before transmitting, with any station being able to gain control of the network and transmit, hence the term multiple access. If no activity is detected then transmission can occur. If there is activity then the system has to wait until it can detect no further activity. ˆ Broadband and baseband: used for a network in which information is modulated onto a radio frequency carrier which passes through the transmission medium such as a coaxial cable. Typically the topology of broadband local area networks is a bus with branches. Broadband transmission allows a number of modulated radio frequency carriers to be simultaneously transmitted and so offers a multichannel capability. ˆ baseband transmission is used when digital information is passed directly through the transmission medium. Baseband transmission networks can only support one information signal at a time. . A LAN may be either baseband or broadband. 5.2.1 Protocol Protocol used by the interface/component between a computer and the network to control the transfer of the data into the network or from the network into the computer. A protocol is a formal set of rules governing data format, timing, sequencing, access control and error control. The three elements of a protocol are: 1. Syntax, which defines data format, coding and signal levels; 2. Semantics, which deals with synchronization, control and error handling; 3. Timing, which deals with the sequencing of data and the choice of data rate. When a sender communicates with a receiver then both must employ the same protocol, e.g. two microcontrollers with data to be serially transmitted between them. With simplex communication the data block can be just sent from sender to receiver. However, with half-duplex, each block of transmitted data, if valid, must be acknowledged (ACK) by the receiver before the next block of data can be sent ; if invalid a NAK, negative acknowledgement, signal is sent. Thus a continuous stream of data cannot be transmitted. The CRC bits, cyclic redundancy check bits, are a means of error detection and are transmitted immediately after a block of data. The data is transmitted as a binary number and at the transmitter the data is divided by a number and the remainder is used as the cyclic check code. At the receiver the incoming data, including the CRC, is divided by the same number and will give zero remainder if the signal is error-free. With full-duplex mode (Figure (b)), data can be continuously sent and received. Open Systems Interconnection (OSI)Model: Communication protocols have to exist on a number of levels. The International Organization for Standardization (ISO) has defined a seven-layer standard protocol system known as the Open Systems Interconnection (OSI) model. The model is a framework for developing a coordinated system of standards. 1. Physical layer : This layer describes the means for bit transmission to and from physical components of the network. It deals with hardware issues, e.g. the types of cable and connectors to be used, synchronizing data transfer and signal levels. Commonly used LAN systems defined at the physical layer are Ethernet and token ring. 2. Data link layer : This layer defines the protocols for sending and receiving messages, error detection and correction and the proper sequencing of transmitted data. It is concerned with packaging data into packets and placing them on the cable and then taking them off the cable at the receiving end. Ethernet and token ring are also defined at this level. 15
  • 18. 3. Network layer : This deals with communication paths and the addressing, routing and control of messages on the network and thus making certain that the messages get to the right destinations. Commonly used network layer protocols are Internet Protocol (IP) and Novell’s Internetwork Packet Exchange (IPX). 4. Transport layer : This provides for reliable end-to-end message transport. It is concerned with establishing and maintaining the connection between transmitter and receiver. Commonly used transport layer protocols are Internet Transmission Control Protocol (TCP) and Novell’s Sequenced Packet Exchange (SPX). 5. Session layer : This layer is concerned with the establishment of dialogues between application processes which are connected together by the network. It is responsible for determining when to turn a communication between two stations on or off. 6. Presentation layer : This layer is concerned with allowing the encoded data transmitted to be presented in a suitable form for user manipulation. 7. Application layer : This layer provides the actual user information processing function and application-specific services. It provides such functions as file transfer or electronic mail which a station can use to communicate with other systems on the network. 5.2.2 General Purpose Instrument Bus Hardware RS-232: The most popular serial interface is RS-232; this was first defined by the American Electronic Industries Association (EIA) in 1962. The standard relates to data terminal equipment (DTE) and data circuit-terminating equipment (DCE). Data terminal equipment can send or receive data via the interface, e.g. a microcontroller. Data circuit-terminating equipment is devices which facilitate communication; a typical example is a modem. This forms an essential link between a microcomputer and a conventional analogue telephone line. RS-232 Connections: Minimum configuration , and PC Connection The 20 mA current loop Another technique, based on RS-232 but not part of the standard, is the 20 mA current loop (see the figure). This uses a current signal rather than a voltage signal. A pair of separate wires is used for the transmission and the receiver loops with a current level of 20 mA used to indicate a logic 1 and 0 mA a logic 0. Such current signals enable a far greater distance, a few kilometers, between transmitter and receiver than with the standard RS-232 voltage connections. I2C bus The Inter-IC Communication bus, referred to as the I2C bus, is a serial data bus designed by Philips for use for communications between integrated circuits or modules. The bus allows data and instructions to be exchanged between devices by means of just two wires. This results in a considerable simplification of circuits. The two lines are a bidirectional data line (SDA) and a clock line (SCL). Both lines are connected to the positive power supply via resistors (see the above figure). The device generating the message is the transmitter and the device receiving the message the receiver. The device that controls the bus operation is the master and the devices which are controlled by the master are the slaves. A modern automobile may have as many as seventy electronic control units (ECUs) for various subsystems, e.g. engine management systems, anti-lock brakes, traction control, active suspension, airbags, cruise control, windows, etc. 5.3 Digital Logic Digital logic is the underlying logic system that drives electronic circuit board design. Digital logic is the manipulation of binary values through printed circuit board technology that uses circuits and logic gates to construct the implemen- tation of computer operations. Digital logic is the underlying logic system that drives electronic circuit board design. Digital logic is the manipulation of binary values through printed circuit board technology that uses circuits and logic gates to construct the implementation of computer operations. Examlpe An 8-bit R-2R DAQ has a Vref of 10 V. The binary input is 10011011. Find the analog output voltage. Solution An 8 bit DAQ has maximum capacity of M = 2N , 28 = 256 10011011 = 1 × 27 + 0 × 26 + 0 × 25 + 1 × 24 + 1 × 23 + 0 × 22 + 1 × 21 + 1 × 20 = 128 + 0 + 0 + 16 + 8 + 0 + 2 + 1 = 155 we can calculate the analog output voltage: Vout = input × Vref 256 = 155 × 10 V 256 = 6.05 V 6.05 V is the voltage we would expect on the analog output pin. Similarly Binary number system has two symbols: 0 and 1, called bits. It is also a positional notation, for example, 10110B = 10000B + 0000B + 100B + 10B + 0B = 124 + 023 + 122 + 121 + 020 16
  • 19. Hexadecimal number system uses 16 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F, called hex digits. It is a positional notation, for example, A3EH = A00H + 30H + EH = 10162 + 3161 + 14160 Starting from the right-most bit (least-significant bit), replace each group of 4 bits by the equivalent hex digit (pad the left-most bits with zero if necessary), for examples, 1001001010B = 001001001010B = 24AH 10001011001011B = 0010001011001011B = 22CBH Conversion from Base r to Decimal (Base 10):Given a n-digit base r number: dn − 1dn − 2dn − 3...d2d1d0(baser), the decimal equivalent is given by: dn − 1rn − 1 + dn − 2rn − 2 + ... + d1r1 + d0r0 For examples, A1C2H = 10163 + 1162 + 12161 + 2 = 41410 (base 10) 10110B = 124 + 122 + 121 = 22 (base 10) Conversion from Decimal (Base 10) to Base r: Use repeated division/remainder. For example, To convert 261(base 10) to hexadecimal: 261/16 = quotient = 16 remainder = 5 16/16 = quotient = 1 remainder = 0 1/16 = quotient = 0 remainder = 1 (quotient = 0 stop) Hence, 261D = 105H (Collect the hex digits from the remainder in reverse order) The above procedure is actually applicable to conversion between any 2 base systems. For example, To convert 1023(base 4) to base 3: 1023(base4)/3 = quotient = 25D remainder = 0 25D/3 = quotient = 8D remainder = 1 8D/3 = quotient = 2D remainder = 2 2D/3 = quotient = 0 remainder = 2(quotient = 0stop) Hence, 1023(base4) = 2210(base3) Decimal to Binary Convert 18.6875D to binary: Integral Part, 18D 18/2 = quotient = 9 remainder = 0 9/2 = quotient = 4 remainder = 1 4/2 = quotient = 2 remainder = 0 2/2 = quotient = 1 remainder = 0 1/2 = quotient = 0 remainder = 1 (quotient = 0 stop) Hence, 18D = 10010B Fractional Part, 0.6875D .6875 ∗ 2 = 1.375 = whole number is 1 .375 ∗ 2 = 0.75 = whole number is 0 .75 ∗ 2 = 1.5 = whole number is 1 .5 ∗ 2 = 1.0 = whole number is 1 Hence .6875D = .1011B Combine, 18.6875D = 10010.1011B The IEEE-754 32-bit Single-Precision Floating-Point Numbers, suppose that the 32-bit pattern is 1 1000 0001 011 0000 0000 0000 0000 0000, with:S = 1 sign signature for negative,E = 10000001 exponent signature, F = 01100000000000000000000 signature for mantissa or fraction. 5.3.1 Bivalent Axiomatic Set Theory/Logic Gates Most of mathematics (especially Axiomatic Set Theory and Number Theory) uses a bivalent logic in Fig 8, in which statements are either true or false. Electronic computers employ logic gates for the most primitive computations, taking 0 as false and 1 as true. An infinite number of gates are possible; here are six of the most common. 17
  • 20. Figure 8: Bivalent logic gates 6 Assembly Language and PLC Microcontrollers pin addresses and associated logic, jump, branching, data transfer etc instructions can be read in referece [7] or manufacturer catalogue and set of instructions are standard. An 8051 has about 111 instructions that can be grouped into the following categories 1. Arithmetic Instructions 2. Logical Instructions 3. Data Transfer instructions 4. Boolean Variable Instructions and 5. Program Branching Instructions Mnemonics are an assembly language uses a mnemonic to represent, e.g., each low-level machine instruction or opcode, each directive, typically also each architectural register, flag etc. An assembly language is a type of low-level programming language that is intended to communicate directly with a computer’s hardware, for example 8051 components. The following table 7 shows Simple Programs in 8051 Assembly Language [9]. The heading row Table 6: 8051 Instructions Data Transfer Artithmetic Logical Boolean Program Branching MOV,MOVC,MOVX ADD,ADDC,SUBB ANL,ORL,XRL CLR,SETB, MOV LJMP,AJMP,SJMP PUSH,POP,XCH INC, DEC,MUL CLR,CPL,RL JC,JNC,JB JZ,JNZ,CJNE,JNB XCHD DIV,DA A RLC ,RR, RRC JNB,JBC,ANL, DJNZ,NOP LCALL, ACALL, SWAP ORL, CPL RET,RETI,JMP 18
  • 21. column headers are tasks to be accomplished and the subsequent codes in each column are step by stem instructions for an 8081 microcontroller. Higher level computer languages/instruction syntaxes/you name it with much enhanced Table 7: Simple Programs in 8051 Assembly Language Address: exchange the content of FFh and FF00h Arithmetic: exchange the content of FFh and FF00h treat r6−r7 and r4−r5 as two 16 bit registers. Per- form subtraction between them. Store the result in 20h (lower byte) and 21h (higher byte). divide the content of r0 by r1. Store the result in r2 (answer) and r3 (re- minder). Then restore the original content of r0 Mov dptr,# 0FF00h →take the address in dptr, Mov a, r7→ get the con- tent in acc, Clr c →clear carry Mov a, r0 →get the con- tent of r0 and r1 Movx a, dptr→get the content of 0050h in a Anl a, # 0F0h→mask lower bit Mov a, r4→ get first lower byte Mov b, r1→ in register A and B Mov r0, 0FFh → save the content of 50h in r0, Mov r6, a→send it to r6 Subb a, r6 ; subtract it with other Div ab→ divide A by B Mov 0FFh, a → move a to 50h Swap a → xchange upper and lower nibbles of acc Mov 20h, a ; store the re- sult Mov r2, a → store result in r2 Mov a, r0→ get content of 50h in a Orl a, r6→ OR operation Mov a, r5→ get the first higher byte Mov r3, b→ and reminder in r3 Movx @dptr, a ; move it to 0050h Mov r6, a→finally load content in r6 Subb a, r7→subtract from other Mov b, r1→again get con- tent of r1 in B Mov 21h, a→ store the higher byte Mul ab→ multiply it by answer Add a, r3→ add reminder in new answer Mov r0, a→ finally restore the content of r0 performance such as PLC, simulink should be learnt along with these sets at this level so that those instructions can easily be understood and designed. Various comercial microcontroller board designs printings in recent mechatronic developments such as internet of things include Aurduino Uno, Red Board, Arduino mini etc working under standard 5v input except pro with 3.3v, 16 MHz clock speed, 6 analogue inputs, 14 digital i/o, 6 pulse pulse width modulation, and 1 universal asynchronous receiver/transmitter either Universal Serial Bus/USB or future technology device international/FTDI standard port configurations or Programming Interface. Arduino is an open-source hardware and software company, project, and user community that designs and manufactures single-board microcontrollers and microcontroller kits. An IoT platform is a multi-layer technology that enables straightforward provisioning, management, and automation of connected devices within the Internet of Things universe. It basically connects your hardware, however diverse, to the cloud by using flexible connectivity options, enterprise- grade security mechanisms, and broad data processing powers. For developers, an IoT platform provides a set of ready-to-use features that greatly speed up development of applications for connected devices as well as take care of scalability and cross-device compatibility. 6.1 Ladder Logic, Functional Block Diagram, Structured Text, Instruction List and Sequential Functional Chart There are four basic steps in the operation of all PLCs; Input Scan, Program Scan, Output Scan, and Housekeeping. These steps continually take place in a repeating loop. Four Steps In The PLC Operations 1. Input Scan: Detects the state of all input devices that are connected to the PLC 2. Program Scan:Executes the user created program logic 3. Output Scan: Energizes or de-energize all output devices that are connected to the PLC. 4. Housekeeping: This step includes communications with programming terminals, internal diagnostics, etc... Ladder Diagram (LD) Traditional ladder logic shown in the Figure 9 is graphical programming language. Initially programmed with simple contacts that simulated the opening and closing of relays, Ladder Logic programming has been expanded to include such functions as counters, timers, shift registers, and math operations. Structured Text (ST) – A high level text language that encourages structured programming. It has a language structure (syntax) that strongly resembles PASCAL and supports a wide range of standard functions and operators. For example; the 19
  • 22. Figure 9: Ladder Logic Program/Diagram of Pump Motor Control equivalent program of ST for the Figure 9 If Speed1 100.0 then FlowRate: = 50.0 + OffsetA1; Else FlowRate: = 100.0; Steam: ŌN EndIf; Instruction List (IL): A low level “assembler like” language that is based on similar instructions list languages found in a wide range of today’s PLCs. The equivalent for the Figure 9 is: LD R1 MPC RESET LD PRESS1 ST MAXP RESS RESET: LD 0 ST AX43 Sequential Function Chart (SFC) A method of programming complex control systems at a more highly (a) (b) Figure 10: (a) Sequential Function Chart (SFC) of the pump (b)Function Block Diagram (FBD) structured level. A SFC program is an overview of the control system, in which the basic building blocks are entire program files. Each program file is created using one of the other types of programming languages. The SFC approach coordinates large, complicated programming tasks into smaller, more manageable tasks. The equivalent SFC for Figure 9 is shown in FIGURE 10 (a) Function Block Diagram (FBD) - A graphical language for depicting signal and data flows through re-usable function blocks. FBD is very useful for expressing the interconnection of control system algorithms and logic. The equivalent FBD for Figure 9 is shown in FIGURE 10(b) 6.2 Review Questions 1. What are characteristics of LAN, open area system interconnections and broadband? write advantages and drawbacks of each. 2. Define FTDI and USB 3. What are syntax, semantics and timing protocols 4. Describe token passing and slot passing 5. Write an assembly language programming to find out how many equal bytes between two memory blocks 10h to 20h and 20h to 30h. 6. Write an assembly language programming for given block of 100h to 200h. Find out how many bytes from this block are greater then the number in r2 and less then number in r3. Store the count in r4. 20
  • 23. 7. Determine truth table for S-R flip-flop based on NOR gate shown in the figure below 8. determine 32 bit single precision floating point signature number representation of 1.735. 9. Write an assembly language programming for the crystal frequency is given as 12 MHz. Make a subroutine that will generate delay of exact 1 ms. Use this delay to generate square wave of 50 Hz on pin P2.0 7 Miscellaneous Objective Questions More objective and multiple choice questions with answers can be found online at [2] [10]. Refer websites and practice Part I: Answer the following questions correctly and neatly. 1. What are the two main tasks of mechatronic systems? . Describe why mechatronic system is preferred over traditional system. Write at least three comparison facts/points of traditional and mechatronic system. 2. The general schematic diagram representing mechatronic system is shown in figure 1. Select one of the fol- lowing applications [Modular color segregation system, Manufacturing automation, Circuit board assembler, or automatic juice maker.] After selection based on your preference, write the name(s) and function(s) at least one element under each of the following components a) actuator b) sensor c) input signal conditioning and interfacing d) graphical display e) output signal conditioning and interfacing f) digital control (architecture). Schematic diagram of mechatronic system 3. For a 10 bit Data Acquisition System (Analogue to Digital Converter for this case) with a reference voltage Vref = 1 volts, find the digital equivalent on the display that correspond to Vin = 0.6 volts. Part II: Choose the best answer 1. In which of the following principle is the synergetic integration characterized by detects metal object, uses an electro-magnetic field to detect a conductive target, sensing coil in the end of the sensor probe, when excited creates an alternating magnetic field which induces small amounts of eddy current in the target object, eddy currents create an opposing magnetic field which resists the field, being generated by the sensor probe coil, the interaction of the magnetic fields is dependent on the distance, between the sensor probe and the target, and com- paratively inexpensive but conducting targets sensing. a) Capacitive measurements b) Inductive Measurements c) Optical Measurement d) all 2. Which of the following synergetic system employs stephan bolts man law by foccussing ray/radiation between emissivity a) piezoelectric crystals b) Microphones condenser/ c) Camera temperature detector (Temperature camera d) all Part III: Say True or False 1. Smaller accelerometers have bigger dynamic range 2. Piezoelectric type accelerometers have high dynamic/frequency range than microphones condenser/capacitive Part IV: Match by placing the letter correspond to the best explanation from column B to space preceding associated numbers of mechatronic sensor elements under column A. 21
  • 24. Column A Column B 1 Linear/Rotational variable differen- tial transducer (LVDT/RVDT) A Robust noncontact switching action, The digital outputs are often directly fed to the digital controller 2 Photoresistors, photodiodes, photo transistors, photo conductors, etc. B Alternate to strain gages with very high accuracy and bandwidth 3 Fiberscope C Good for measuring frequencies up to 40% of its natural frequency 4 Inductance, eddy current, hall effect, photoelectric, capacitance, etc D Good for small force measurements 5 Infrared thermography E Good for very high flow rates Can be used for both upstream and downstream flow measurements 6 Interferometer F High resolution with wide range capability, Very stable in static and quasi-static applications 7 Optical fiber As strain sensor G Laser systems provide extremely high resolution in large ranges Very reliable and expensive 8 Seismic accelerometer H Measure light intensity with high sensitivity Inex- pensive, reliable, and noncontact sensor 9 Strain gauge elements I Noncontact point sensor with resolution limited by wavelength Measures whole-field temperature distri- bution 10 Ultrasonic stress sensor J Small (0.2 mm diameter) field vision scope using SMA coil actuators K Very high accuracy in small ranges Provides high resolution at low noise levels References [1] A. K. K.K., Introduction to MECHATRONICS, Oxford University Press, 2007. [2] Institute of Mechatronic Systems: Research Focused on Mechatronics, https://www.zhaw.ch/en/engineering/ institutes-centres/ims/, Accessed: Feb 20, 2023. [3] R. Isermann, Institut fu¨ r Automatisierungstechnik Technische Universita¨t Darmstadt Darmstadt Germany 2000, 22, 29–55. [4] W. Bolton, MECHATRONICS: ELECTRONIC CONTROL SYSTEMS IN MECHANICAL AND ELECTRI- CAL ENGINEERING Seventh Edition, Pearson Education Limited, 2019. [5] A. DP., Relay autotuning: a use of old ideas in a new setting. Transactions of the Institute of Measurement and Control. 2000;22(1):103-122. doi:10.1177/014233120002200105, https://journals.sagepub.com/doi/abs/10. 1177/014233120002200105/, Accessed: Feb 20, 2023, 2000. [6] R. H. Bishop, MECHATRONICS AN INTRODUCTION, CRC Press: Taylor Francis Group, 2006. [7] S. Cetinkunt, MECHATRONICS, John Wiley and Sons, 2007. [8] IEE, Web-based networking protocol for expanding IEEE-488 ATE, https://standards.ieee.org/ieee/488/ 6465/, Accessed: Feb 20, 2023, 2011. [9] H. C. FacebookTwitterLinkedInRedditPinterestShare, Simple Programs in 8051 Assembly Language, engineers- garage, https://www.engineersgarage.com/simple-programs-in-8051-assembly-language/, Accessed: Feb 20, 2023, 2011. [10] I. R., Mechatronic systems: concepts and applications: Transactions of the Institute of Measurement and Control, https://journals.sagepub.com/doi/10.1177/014233120002200103/, Accessed: Feb 20, 2023, 2000. 22