Mechatronics Principles Concepts and Applications - Compress
Mechatronics Principles Concepts and Applications - Compress
Dr. Nitaigour Premchand Mahalik received his B.Sc. (Engg.) in Electronics and Telecommunication
Engineering in the year 1989 and Master of Engineering in Electronics Systems and Communication
Engineering in December-1993 from the University College of Engineering (UCE), Burla. He did his
Ph.D. in Engineering in June 1998 from the De Montfort University, U.K. and Postdoctoral research
in June 2002 from Kwangju Institute of Science and Technology, South Korea. He joined UCE, Burla
functioning under the Biju Patnaik University of Technology, Orissa as a lecturer in the Department of
Electronics and Telecom Engineering in 1990. He was promoted to the post of Senior Lecturer in
1994 and is presently continuing as Assistant Professor in the same Institute with an additional
assignment of Controller of Examinations.
He is the recipient of the prestigious National Oversers Scholarship from the Govermment of India
for Ph. D. study abroad in the field of Mechatronics, and Brain Korea-21 Fellowship from the
Govermment of South Korea for Postdoctoral research in the field of “Real-time Intelligent Distributed
Machine Control Systems” in the Department of Mechatronics at Kwangju Institute of Science and
Technology, South Korea.
He was invited as Visiting Professor to the Moscow State Technological University, Russia in the
year 2001. Recently, Dr. Mahalik has completed editing a book “Fieldbus Technology; Industrial
Network Standards for Real-time Distributed Control”. He is the author of more than 40 academic
research papers that have already been published at National as well as International levels.
He is a member and associated member of the various professional bodies such as ISTE (I), MMF
(UK), MMF (I), MISA (USA). He is the reviewer of the International Journal of American Society of
Nuclear Energy and International Association for Science and Technology Development, Canada.
MECHATRONICS
Principles, Concepts and Applications
ISBN 0-07-048374-4
Cover: De-Unique
RALQCRBDRYRCX
Dedicated to
My parents
and
Mechatronics Research Group
De Montfort University
Leicester
UK
Preface
The technological education and research scenario, all over the world, is turning towards a multi-
disciplinary one. Worldwide technical education curriculum has been a reverse structure in contrast
to the traditional methodology. Thus, the present scenario is different as compared to the recent past
in the sense that the engineering disciplines are now dilating instead of diverging. The primary reason
being that the current technological designs are of highly complex and inter-interdisciplinary nature
involving synergistic integration of many aspects of engineering knowledge base. This book covers
the aspects of interdisciplinary subjects synergistically.
The discipline Mechatronics is enormous in magnitude. Ideally it combines mechanical, electronics,
electrical, software engineering, information systems, communication, control and artificial
intelligence. Mechatronics is being taught to the engineering students at undergraduate (UG) and
postgraduate (PG) levels all over the world. In foreign universities, almost all engineering disciplines
have included mechatronics as a subject in their curriculum (The author has visited many foreign
universities and has gone through their syllabus meticulously).
In future, the subject mechatronics is very likely to find a place in the curriculum of all engineering
disciplines, just as the subject Basic Electronics did a few years back. It will be effectual if all
engineering students are given the scope of learning this important subject. This book can be used as
a textbook at the UG and PG levels in almost all engineering disciplines, especially, Electrical,
Electronics, Mechanical and Manufacturing engineering disciplines. A wide range of researchers will
be able to find many useful tips and hints from this book.
The integration of various theories, principles, techniques, methodologies and standards to cater to
the pressing needs have long been emerging as new disciplines. For instance, background figures
about advanced machines and their dominant functional subsystems, perception, cognition and
execution can be better understood with an overview of the concept of architecture, and this is very
close to the definition of mechatronic systems. Specialized opportunity at the UG and PG level should
viii
Preface
embody source of concepts and techniques, which have recently been applied in practical situation. It
is true that knowledge can be acquired passively. But, students have to ripen their academic skills by
actively learning from the valuable lessons. This book aims towards satisfying that requirement. The
author covers the essential subject matter by explaining the meaning and significance of the key
topics. Comprehensive in scope, and gentle in approach, the book will help the readers grasp the
basics and understand the implementation of the concepts gradually.
In view of the above, the importance of the study of mechatronics, its emergence, definition and
principles have been dealt with in Chapter 1. The broad knowledge accommodating the principle of
mechatronics has been described logistically, so that the readers can grasp the essence of the topic.
The scope of mechatronics is also discussed briefly.
Chapter 2 includes the mathematical tools and theories required for the mechatronic study. Besides
the basic study in terms of definition and description, the insight into the usefulness and applicability
of such tools and theories have been depicted and focused respectively. In particular, the significance
of Fourier series, Fourier transform and Wavelet transform are elucidated. Advanced discrete-time
signal processing methods such as Discrete Fourier Transform (DFT), Fast Fourier Transform (FFT)
are introduced. The distinction between differential equation and difference equations from control
schematic is ascertained. The chapter also deals with Laplace Transform and Z-Transform, the
important mathematical tools, which are mainly used to solve system problems.
In Chapters 3 and 4 different types of fundamental components used for mechatronic system
design applications have been described. These include semiconductor electronics, basics of
electronic components, electrical relations, circuit elements, circuit analysis, fundamental aspects of
digital techniques, digital theory such as Boolean algebra, logic functions such as AND, OR, and
NOT, building blocks of digital technology such as logic gates, flip-flops, registers, counters and
multiplexers.
Chapter 5 focuses on the principle of operations of various types of commonly used transducers
and sensors. In particular, the chapter provides an overview of transducers, which are seen to be
common in many mechatronic systems or products. The concept of intelligent sensors has also been
explained at some places in the following chapters. The equipments used for the measurement of
electrical and electronics parameters have also been described.
Within mechatronic systems, many signals require some amount of signal conditioning or signal
processing at the intermittent point of interaction. Some of the signal conditioning functions are
rectification, amplification, filtering, Analog to Digital Conversion (ADC), Digital to Analog
Conversion (DAC), Isolation, multiplexing to name a few. Chapter 6 deals with these.
Chapter 7 discusses the various types of commonly used industrial actuators, such as
electromechanical, pneumatic, smart material based actuators, etc. developed and implemented so
far. The concept of intelligent actuators has also been explained from the mechatronic point of view
in the subsequent chapters.
Mechanisms play very important role in designing mechatronic systems. Mechanisms within
machine systems are realized by the use of basic building blocks, which are referred to as mechanical
components. Some of the mechanical components are belts, pulleys, gears, bearing, chains and
sprockets, cam and follower, ratchet and pawl, crank and pinion, and so on. Fundamental studies on
such mechanical components have been presented elaborately.
Sophisticated and flexible control has continuously been changing the automation system. In the
past, most industrial control systems were relay or PLC-based with nearly a one-to-one input-output
ix
Preface
electromechanical in nature integrate I/O devices such as sensors and actuators and they need to be
controlled flexibly by adopting advanced control methodology and techniques. The knowledge gained
so far has to be implemented by integrating the software, hardware, tools, methods and techniques in
the real application platforms. In Chapters 15 and 16, the available methods, tools, techniques and
platforms for the realisation of the control in response to systems’ requirement are dealt with. These
two chapters fill the gaps between theoretical study and practical implementation. These chapters
include many examples of mechatronic systems and are the proper extensions of the Chapter 1 in
terms of detail technical touch and understandings. The presentation deals with issues involved in
integrating microcontrollers, advanced technology, computers, workbench and associated
measurement systems for design, development, control, data acquisition, presentation, simulation,
analysis and validation. Some emphasis has been given in terms of explaining the relative merits and
demerits of centralized and distributed, supervisory control and data acquisition (remote monitoring
and control) methods. More explanation of real-time systems, response time, throughput, events,
transition, coherence, coordination, synchronisation and many control related useful parameters have
been made clear.
The users of the book are requested to give feedback for further improvement of the text.
I appreciate the valuable comments given by the reviewers, namely Prof. Himanshu Sharma of BITS,
Pilani and Mr Vikas Chawla of Lala Lajpat Rai Institute of Engineering and Technology. They found
time in their busy schedules to read the text and offer valuable suggestions for improvement. I also
render my thankfulness to the editor Ms Vibha Mahajan and Mr. K. Srinivas for their encouragement
and counsel throughout. I also owe the deep sense of love to my students from whom I have gathered
so much of feedback during my teaching and interaction.
Further, I want to extend my profound sense of gratitude to Professor Philip Ronald Moore, the
Head of Mechatronics Research Group, De Montfort University, UK, who had really planted the seed
of Mechatronics in my brain. I would also like to extend my sincere appreciation to Professor S K
Lee, Head, Micro-manufacturing Laboratory, Kwangju Institute of Science and Technology, South
Korea who made many suggestions to the book throughout its various phases.
Moreover, I would like to acknowledge the Intel Corporation, USA; Andantex, USA; Perry Sink of
Synergetic Micro System Inc.; UCE, Burla for supplying (directly or indirectly) materials, data,
questions, etc., for the book.
Last but not least I want to thank my wife (Ellyy) and two sons (Likun and Pikun) for sacrificing
their valuable moments and making it all worthwhile.
Preface vii
Acknowledgements xi
1. Introduction 1
1.1 Background 2
1.2 Multidisciplinary Scenario 2
1.3 Origins 4
1.4 Evolution of Mechatronics 5
1.5 An Overview of Mechatronics 6
1.6 Brief Introduction to Manufacturing 7
1.7 Design 10
1.8 Scope of the Book 10
Points to Remember 24
Exercises 25
9. Modeling 324
9.1 Introduction 325
9.2 System 325
9.3 Modeling 327
9.4 Mechanical System 327
9.5 Electrical Systems 331
9.6 Fluid Systems 332
9.7 Thermal Systems 334
9.8 Engineering System 336
9.9 Translational Mechanical System with Spring, Damper and Mass 337
9.10 Rotational Mechanical System with Spring, Damper and Mass 339
9.11 Modeling Electric Motor 340
9.12 Modeling Chamber Filled with Fluid 343
9.13 Modeling Pneumatic Actuator 344
Points to Remember 348
Summary 349
Exercises 349
16. Mechatronic Design Strategy: An Example with High Speed Spindle 530
16.1 Background and Introduction 531
16.2 Spindle System Review 533
16.3 Dynamic Modeling of HSSS 533
16.4 Important Design Criteria 539
16.5 Diagnostics and Prognostics 546
16.6 SEA Scheme 549
16.7 Approach to the Design of Control Systems 554
16.8 Remote Monitoring and Control 559
Points to Remember 560
Summary 561
Appendix 563
References 565
Index 573
1
Introduction
1.1 BACKGROUND
In recent years, the application of digital microelectronics and computers in design and manufacturing
sectors has considerably improved productivity and quality of many mechanical products.
Automation and control methods, adopting integrated embedded technology has become relevant to
industries, machineries and consumer products. Automation and control represent a broad topic with
applications in many disciplines, including production, industrial and manufacturing engineering,
process control, robotics, instrumentation, home automation, and many others based upon
sophistication, flexibility and state-of-the-art technology. Mechatronics, an enabling discipline, has
already emerged to cater to the need for sophistication and flexibility and in fact has become a
preferred choice for the current generation of real-time automation and control solutions for traditional
mechanical systems.
This book incorporates fundamentals to the mechatronics engineering and technology. The
technological trend in this domain has to be disseminated extensively so the mechatronics revolution
can evolve quickly and serve the society. The book intends to focus on theory, principles, basics,
concepts, and the latest developments in the context of mechatronics discipline conforming to
different techniques and standards so far developed and available in the technology domain. The book
also includes a number of examples with regard to applicability of mechatronics in order to provide
readers a great deal of understanding.
Technological design has become a high-risk endeavour due to the lack of knowledge and
experiences on interdisciplinary subjects and methods. Advanced technological designs are highly
complex and interdisciplinary nature involving synergistic integration of mechatronics, photonics,
computronics, and communication. Technological development and innovations would thus require
simultaneous knowledge of discrete fundamentals already developed to date. Synergistic integration is
solitarily logic-based integration. Combined action and cooperation increases effectiveness and
productivity. Figure 1.2 shows that the productivity of an industry can increase up to 40% by
employing engineers with interdisciplinary degrees at the basic level.
Mathematics
General Science
Axis
Information Technology
CU
High-level
Optoelectronics Computronics
Research
Stage
100%
60%
Productivity
1.3 ORIGINS
The field of mechatronics has received international recognition only within the last few years,
although it is rooted in efforts on sensors and actuators that go back thirty years or more. The field
has been driven by rapid global progress in the field of microelectronics, where solid-state
microprocessors and memory have revolutionized many aspects of instrumentation and control, and
have facilitated explosive growth in data processing and communications.
The word mechatronics originated in Japan in late 1970s to describe a philosophy adopted in
designing subsystems of electro-mechanical products. Since those early days there have been major
advances in the technology and the methods that have become available to manufacturing industries.
Mechatronics, although still a relatively new term compared with many of the traditional branches of
5
Introduction
engineering, now appears firmly established. Individuals, industries, and universities around the world
are now using the term freely. At the research and development (R&D) level, ten technical areas are
classified under the mechatronic discipline [1]. They are,
· Motion Control
· Robotics
· Automotive Systems
· Intelligent Control
· Actuators and Sensors
· Modeling and Design
· System Integration
· Manufacturing
· Micro Devices and Optoelectronics
· Vibrations and Noise Control
However, to deal with all the above areas of research, fundamental study at the basic level is
necessary.
MANUFACTURING
MARKETING
Market search Manufacturing Strategy
User need Total Quality Management (TQM)
Information Just-in-Time (JIT)
Product specification Cellular Manufacturing (CM)
Group Technology (GT)
Concurrent Engineering
DESIGN
Performance Measurement and Costing (PMC)
Flexible Manufacturing Systems (FMS)
Computer Integrated Manufacturing (CIM)
Holonic Manufacturing Systems (HMS)
SPECIFICATION Digital Plant Technology (DPT)
Electronics design Microelectronics
Safety, Intrinsic safety (Analog and Digital) Open Manufacturing Standards
Law, regulation Control engineering
Mechanical design
Open system Software engineering
Analog, Digital
M Testing, Failure analysis
ec
cs
Simulation ica
ec
l Actuation
El
System response
System study
Integration
Real-time, On-line In Data storage and
f
Sy orm l Management
Sensing, feedback, st ati ro
em on nt
Artificial intelligence s Co DCS, SCADA,
Throughput, Diagnostics,
Response time Tools, techniques
System description
Concepts
System identification
This book does not include the detailed topical areas as far as marketing and manufacturing are
concerned, however, in order to grasp the subject matter at this stage of learning, a brief description
adhering to important terms in this domain is outlined in the following section. From various
perspectives, the state-of-the-art of the manufacturing systems and technologies is presented. The
book also keeps distance from marketing strategies. Conversely, the scope of the book is to
accommodate a very comprehensive description as far as ‘design’ fundamentals are concerned.
measure of the achievement of a specified standard. The International Standard Organization (ISO)
began operating in 1947. It is a worldwide federation of national standards bodies representing many
countries. The ISO has developed many voluntary, consensus-based international standards covering
nearly every field of industrial, economic, scientific, and technological activity. It developed the ISO
9000 standards for quality management and quality assurance. The ISO 9000 family of standards in
terms of Total Quality Management (TQM) is one of the most successful in the history of the
organization. The key benefits of implementing TQM include customer satisfaction and quality of
product, services and enhanced productivity.
Just-in-Time Technique Just-in-time (JIT) is relatively a new concept in manufacturing
processes. The fundamental operating principle of JIT is the delivery of materials to a process exactly
when required. The goal of a JIT approach is to develop a manufacturing system that would require
having only the materials, equipment and peopling on hand. This eliminates the need for material
stock. JIT facilitates streamlining of the flow of materials and the approach is considered a high-level
system management approach for developing, changing, operating, and optimizing a manufacturing
system. It has been implemented in the Japanese manufacturing industries for quite some time.
Cellular Manufacturing A cell is a collection of dissimilar machines or manufacturing
processes dedicated to design similar parts. Cellular manufacturing (CM) is said to be in place when
a manufacturing system encompasses one or more such cells. CM has emerged as one of the major
implementation strategy being used in driving manufacturing competitiveness.
Group Technology Group Technology (GT) is a philosophy that aims to create an efficient
manufacturing environment through the exploitation of inherent similarities in products,
manufacturing processes, or existing designs.
Concurrent Engineering Concurrent Engineering (CE) is defined as ‘a systematic approach to
the integrated simultaneous design of a product and the related processes. CE necessitates that
product and process design be developed simultaneously rather than sequentially. By integrating many
activities such as design, analysis and planning the productivity and cost effectiveness of the
manufacturig products can significantly be increased.
Performance Measurement and Costing (PMC) Performance Measurement and Costing
(PMC), continues to be one of the primary competitive fields of manufacturing. PMC is used by
almost all types of industry and there are a number of standard techniques that are applied to measure
financial performance based on information contained in company accounts, the profit and loss
account and a balance sheet.
Flexible Manufacturing Systems A Flexible Manufacturing Cell (FMC) consists of a group of
CNC (Computer Numerical Controller) machine tools that is capable of manufacturing a family of
similar components. Enterprise-wide factory automation has been growing rapidly with the wide
spread use of CNC machine tools and robotic workstations onto the factory floor. This working
environment transforms the production process, and information flow becomes as important as
materials flow. The components are transported to or from the machine tools by work handling
equipment (e.g. robot, conveyors, Automated Guided Vehicles, etc.) and the whole working
environment is referred to as Flexible Manufacturing Systems (FMS). In response to the need for
FMS, manufacturers have investigated the application of computer technology. Such computer
9
Introduction
assisted manufacturing systems are called Computer Integrated Manufacturing (CIM). CIM is an
application of technology that can provide an uninterrupted flow of data throughout the manufacturing
and management process. The strategy allows several sections in a manufacturing plant to link up via
a computerized system to improve productivity, efficiency, and availability.
Holonic Manufacturing Systems (HMS) Holonic systems entail a relatively new methodology
applied to the development of Intelligent Manufacturing Systems (IMS). The early concepts of holonic
systems provided a theoretical basis upon which the development of functional IMS could occur. As
defined by the IMS consortium, a holon in a manufacturing system context exhibits one or more of
three main attributes, namely; Autonomy, Co-operativeness, and Intelligence. Autonomy: The ability
of a system element or sub-system to recognise the state of itself or the state of its environment to
perform a demanded task. Co-operativeness: The extent to which the behaviour of a system element
or subsystem co-ordinates its activities by means of communication and negotiation with other
system elements or subsystems to perform tasks within a system. Intelligence: The capability of a
system entity to (a) perform its tasks based on knowledge stored in a knowledge base and reasoning
about the autonomous capabilities, current state, and probable future states, and (b) learn from past
decisions/events, and adapt/improve future decisions.
Digital Plant Technology The requirement to introduce new plants and to modify existing
industrial facilities in ever shorter lead times with proven designs and performance capabilities has
resulted in a move towards the greater use of virtual design and simulation tools. Recently a simulation
platform defined as a basis for realising Digital Plant Technology (DPT) has emerged that enables 3-D
graphical visualisation and modeling of industrial environments. The concept of DPT has been
introduced by Prosolvia Systems with the launch of its virtual manufacturing suite of tools known as
PS-Engine. The digital plant (a digital version of the manufacturing/process plant) generated by the
DPT platform, is fully interactive with the real plant it represents. It conforms precisely to the
configuration of the production equipment and, importantly, changes in real production are
immediately forwarded to the digital plant. Being fully interactive with the production system, DPT
allows programming data to be prepared off-line in the digital plant and downloaded directly to the
industrial system, minimising programming downtime and production stoppages. Visualisation and
understanding is greatly enhanced through the visibility and consistency of information.
Application of Open System Standards in Manufacturing In a manufacturing plant there
exist many components and equipments such as terminals, computers, telephones, printers, and other
data-handling devices. In general, the above mentioned components and equipments have been
developed by numerous manufacturers. The difficulty that arises when attempting to interconnect
such mixed products is that the data format and the data-exchange principle of the equipment
developed by one manufacturer are not compatible with those of another. The solution to effective
communication among these components is to abide by some common set of data-format and data-
exchange rules. In fact, ISO (International Standards Organization) issued a communication system
guideline for a standard architecture in the form of a seven-layer model known as the Open System
Interconnection (OSI) Reference Model. The purpose of the layered model is to provide a common
basis for unified communication. This unified communication standard is referred to as open system
standard. The standards define the format in which data is exchanged, remote systems are accessed,
and services are involved. An open system can thus be defined as a set of standard relationships,
10
Mechatronics: Principles, Concepts and Applications
applicable across all platforms that would enable end-user to buy off-the-shelf products to achieve
coherent communication. The open system standards support the creation of system architectures
that can be built articulately.
1.7 DESIGN
With regard to the design of mechatronic systems the concentration is on studying fundamental
aspects of sensors, actuators, control and integration methods. Depending upon the load involved and
sophistication required, actuating devices, sensing elements, and control algorithms are implemented.
Irrespective of the structure and implementation, broadly the core of a mechatronic system
incorporates Mechanical, Electronics, Control and Information system engineering. A brief
description follows.
Subject areas of mechanical engineering are vast. However, mechatronics conformant topical
subjects are actuation, modeling and mechanisms. Electronics is the field of manipulating electrical
currents and voltages by the use of passive and active components. They are connected together to
create circuits for controlling mechatronic systems. Electronic circuits range from a simple load
resistor that converts a current to a voltage, to central-processing units (CPUs) and ASIC (Application
Specific Integrated Circuit) that can contain more than a million transistors. Various control schemes
such as feedback control, adaptive control, intelligent control, depending upon the sophistication and
requirement specification are employed in the system. Information systems play an important role in
mechatronic designs. Information system are generic structures that are considered an evolving
portfolio that significantly enhance portability at all levels of a control system for consequent
enhancement. The methods, tools, and techniques for storing, recording, and displaying of
parameters and variables in terms of data or information entails ‘information systems.’ It also asserts
to support computer-based activities, which includes the development, design, installation,
configuration, and monitoring of the control systems.
The derivatives of the above four domains (mechanical, electronic, control and information
systems) can properly be placed in order. The next section looks at the derivatives.
S = f (A, f, q, t)
Amplitude, frequency and phase are called dependant parameters and time is called independent
parameter. Through signal analysis and processing, the dependant parameters become visible.
Depending upon the types of signal, the analysis and processing methods are employed.
The most well-known signal analysis method is the Fourier analysis, which breaks down a periodic
signal into constituent sinusoids of different frequencies. Another way to think of Fourier analysis is
through the use of Fourier Transform (FT), a mathematical tool for transforming the signal from
time-domain to frequency-domain, essentially to know the frequency content of the nonperiodic
signal. A transform, in general, is a formula that converts one function into another via some rule. For
many signals, Fourier analysis is extremely useful because the signal’s frequency content is of great
importance. On the other hand, Fourier analysis has a drawback that in transforming the signal to the
frequency domain, its time information is lost. Further, Fourier transform is suitable for analyzing
stationary signals in which the signal properties such as frequency content do not change over time.
However, apparently most signals contain non-stationarity due to transitory characteristics such as
drift, trends, abrupt changes, and beginnings and ends of events. Fourier analysis is not suited to
detect them, where wavelet transforms (WT) comes in. More detail knowledge and applicability of
FT and WT will be discussed in the following chapter.
Another mathematical tool is the Laplace Transform. Many engineering systems such as
mechanical, electrical, thermal and fluid systems are represented by differential equations. To study
the behaviour of the system often there are requirements to solve the differential equations. Laplace
Transform is an extremely versatile technique for solving ordinary differential equations. It is
considered as a useful and powerful tool for dealing with a wide variety of initial-value problems. The
transform is an integral function that has the property of translating certain complicated operations,
(e.g., the differentiation of a function or the convolution of two functions) into simple algebraic
operations in the Laplace space or Laplace domain (also called s-space). It transforms differential
equations into simple algebra problems for which solutions can be easily obtained. The Inverse
Laplace Transform can then be applied to retrieve the solutions of the original problems.
In summary, we can solve an equation (or system of equations) containing differential or even
integral terms by transforming the equation in t-space to one in s-space simplifying, then finding, the
inverse transform, which gives us the solution in t-space. The Laplace Transform is a close relative of
the Fourier Transform. However, the fact that the Laplace Transform is defined on the semi-infinite
interval from zero to infinity rather than on the whole real line. When applying the Laplace Transform,
it is important to have a good understanding of the theory underlying it, rather than just a cursory
knowledge of its application. This book provides that understanding.
Discrete methods and techniques are now used to analyze and process data in many areas of
engineering and science. Advances in digital computer technology have a major impact on discrete
processing. There is the need to be familiar with the discrete-time systems and signals. This suggests
fundamental study. The scope of discrete signal processing includes sampling theorem, quantisation,
Discrete Fourier Transform (DFT) and Fast Fourier Transform (FFT), difference equations, and
Z-transform. DFT reveals the amplitude, frequency and phase parameter of the discrete-time signal.
FFT is an algorithm that employs DFT. The analysis of discrete systems is performed by means of
the Z-transform. For instance, Z-transforms can be applied to solve the difference equation.
13
Introduction
Further, digital information is easier to store because of its simplicity of form. Other benefits that can
be achieved through digital system are flexibility in reproduction, accuracy, ease of system design,
programmability, speed, and economy. The power of digital systems is what has built the foundation
for the incredible advances that have taken place in mechatronic systems.
The architecture of a mechatronic system encompasses electronic hardware systems and control
methods emphasizing the philosophy of digital technology. Rapid development in digital technology
advocates fundamental study that builds on theory and practice. The underlying architecture of this
technology is based upon binary numbers, logic functions, Boolean algebra and solid state devices.
Solid-state devices that can be used to configure digital technology are logic circuits, memories,
microprocessors, microcontrollers, computers etc. An understanding of the fundamental theory and
technique provides the basis for the construction of digital technology. A firm grasp of the basics is
vital.
1.8.4 Transducers
The transducers are used for the measurement of the system parameters. A transducer is a device that
produces a measurable response to a change in a physical condition such as temperature, pressure,
humidity, flow, light intensity, magnetic field, vibration and so on. It responds to some properties of
the environment and transforms the response into an electric signal, with different transduction
principle. The transduction principle includes mainly thermoelectric, photoelectric, electromagnetic,
magnetoelectric, thermoelastic, pyroelectric, thermomagnetic and so on. Mechatronic system uses a
broad range of transducer with different transduction principles.
The words transducer and sensor are used interchangeably, although, there is a difference between
them. Transducer is a basic element whereas sensor is a more sophisticated transducer in the form
that additional signal conditioning circuits are interfaced at the output of the transducer in order to
produce the refined output signal, which can be used conveniently. The signal conditioning circuit
could be an amplifier, a noise eliminator an analog-to-digital converter or combination of all.
Transducer is thus simply an elemental device where as sensor includes transducer as well as
additional conditioning circuitry.
Transducers vary from very simple to highly complex. They are classified in different ways, such
as according to the nature of the signal, the nature of the selective agent of the transducer, and to the
types of signal generation. One good way to look at a transducer is to consider all of its properties,
such as stimulus, specifications, physical phenomena, conversion mechanism, material, response,
ruggedness, stiffness, range, ability to measure parameters, and application field.
appropriately at the control point. Further, in many instances analog signals have to be converted to
digital equivalents since the control system requires digital data. Moreover, there is a requirement to
nullify the effect of errors, noise, etc. that are produced at the output of the transducer. These typical
functions, (e.g. amplification, ADC, noise-filtering, etc.) are called signal-conditioning functions. The
important signal conditioning functions are listed below.
· Amplification
· Attenuation
· Rectification
· Filtering
· Isolation
· Removal of undesired signals (noise)
· Multiplexing
· Analog-to-digital conversion
· Sampling and hold function
· Digital-to-analog conversion
· Voltage to frequency conversion
· Frequency to voltage conversion, etc.
Signal conditioning is simply the process of refining the raw signal by use of the solid-state
electronic circuits such as amplifiers, attenuators, rectifiers, filters, and so on, as described above.
Signal conditioners could include filters to reject unwanted noise within a certain frequency range.
The transducers and sensors sometimes contain unwanted frequency components including noise.
The noise is not desirable and needs to be removed. This can be achieved using appropriate signal
conditioning circuits, usually called noise filters. The noise filters along with the amplifiers can help to
improve the Signal-to-Noise Ratio (SNR), which is an important parameter in instrumentation and
measurement. The signal level is boosted before it is affected by environmental noise further giving
rise to high SNR.
In many applications it is necessary to isolate the transducer from rest of the system. Even so,
sometimes the conditioned signal (could be the amplified version of the transducer signal) needs to be
isolated from the rest of the system. Improper grounding of the whole system (of which the sensor is
a part) is one of the most common causes of error and noise. In effect, the devices as well as the
systems are being damaged. Isolation to some extent can prevent most of such problems. Isolation is
achieved in one of the following three ways, voltage-follower isolation, magnetic isolation, or optical
isolation. Voltage-follower isolation is achieved through OPAMP (Operational Amplifier) circuits.
Magnetic isolation is done through the use of a transformer. Optical isolation is usually done through
the use of a light-emitting diode (LED) and also through photodetector. Bridge conditioners such as a
Wheatstone bridge, amplifier-cum-isolators such as an Instrumentation Amplifier (IA), and filters are
commonly used in order to minimize the effect of noise and error produced at the output of the
transducers.
Multiplexing is necessary in many systems. Multiplexing is a process of transmitting many signals
through a single channel, thus achieving a cost-effective communication. Multiplexing can be
achieved electronically. The electronic circuit responsible for making multiplexing possible is called a
multiplexer, which can also be considered a kind of signal conditioning circuit.
16
Mechatronics: Principles, Concepts and Applications
Analog to Digital Conversion (ADC) is a process of converting analog signal to digital equivalent.
The electronic circuit that does the conversion is called Analog-to-Digital (A/D converter. One of the
important process of analog to digital conversion is sampling and hold (S/H). The S/H process is to
sample an analog signal voltage then turned off to hold the sampled voltage at the output, while an A/D
converter converts the voltage to a digital number. Similarly Digital to Analog Conversion (DAC) is a
process of converting the digital signal to its analog signal.
In some other applications, it is desirable to convert voltage to frequency and vice versa. The
conversion process is achieved via Voltage to Frequency Converter (VFC) and Frequency to Voltage
Converter (FVC) respectively.
1.8.6 Actuators
Mechatronic systems include rotating machinery, production, assembly, packaging lines, conveyor
based material handling systems, AGV (Autonomous Guided Vehicle), NC (Numerical Controlled)
machines, weapon systems, transportation systems, robotic systems, and many consumer products
such as camcorder, music system, video player, etc. to name a few. All of these application areas
incorporate either open-loop control or closed loop control or combination of both. One of the
important components of the control system is the actuator. Actuator is a device that makes something
to move. A reference input called setpoint is given to the actuator in order to obtain the desired output.
In a feedback control system (See Section 1.8.10) the desired output is checked by the use of sensors.
One way to classify the actuators is based on their movement. Accordingly, we have two types of
actuation.
· Translational
· Rotational
It is possible to convert one form of actuation to another, for example, translational to rotational
and vice versa, by suitably designing the interfacing components around the actuator. Just like a
signal-conditioning circuit manipulates the transducer signal in order to produce a desirable output,
the actuator output (movement) can be conditioned by suitably designing the interfacing components.
The interfacing components include rigid body and mechanical components. Gears, pulleys, and
cams can be considered interfacing components.
Depending upon the load involved, the actuators are selected. Commonly used actuators are
· Electromechanical actuator
· Pneumatic and hydraulic actuators
· Microactuators
Electric motors are used to efficiently convert electrical energy into mechanical energy. Mostly
they are used for driving purposes. Magnetism is the basis of their principles of operation. They use
permanent magnets, electromagnets, and exploit the magnetic properties in order to effect the
actuation. There are two main classes of motors; AC and DC. AC motors require an alternating
current or voltage source as the input signal, on the other hand DC motors require a direct current or
voltage source. Stepper motors are considered as another class of electromechanical actuating
devices, which also use the principle of magnetism, typically has capability of achieving precision
angular rotation in both the directions and are commonly employed to exploit digital control
17
Introduction
technology. The motor move in accurate angular increments knows as steps in response to the
application of digital pulses.
Electric motors are the workhorse of the industry. There are several types of electric motors, each
with its own unique features and benefits. They are available in different ratings ranging from
nanowatts to megawatts as far as power is concerned. Some electric motors run at a constant speed.
Some motors have a relatively small drop in speed as the load increases and some have a large speed
decline with load. Further, some motors are designed to provide high starting torque such as in cranes
and elevators and others can be stepped through accurate short motions such as in computer drives.
Microactuators are required to produce the mechanical output (actuation) that is required of
particular microsystems. They are lightweight, conformable, and are employed in specific
applications. For instance, microactuation (A translational or angular movement of the order of
micron, i.e., 106 th of a meter or radians) can be used to move micromirrors to scan laser beams, to
drive cutting tools for microsurgical applications, to drive micropumps and valves for microanalysis
or microfluidic systems or this may even be a part of microelectrode devices to stimulate nervous
tissue in neural prosthesis applications. The methods of achieving microactuation are
· Piezoelectric
· Hydraulic
· Electrostatic
· Magnetostrictive
· Thermal
· Electroactive
Of these, piezoelectric and hydraulic methods currently look most promising, although the others
have their places. Electrostatic actuation is possibly the most common and well developed method,
but it does suffer a little from wear and sticking problems. Electrostatic actuation methods usually
offer better output per unit volume. Magnetostrictive actuators usually require relatively high currents
(and high power). Thermal actuators require relatively large amount of electrical energy, and the heat
generated also has to be dissipated. The technology of electroactive polymer materials has experienced
expansive growth responding to the call from a myriad of applications, especially requiring a high
performance smart solution.
1.8.7 Mechanisms
The mechanical part of the mechatronic systems are composed of a base, the main body and many
other basic interfacing components and units. Besides the base, the other components can be classified
into two groups,
· Passive components
· Active components
Passive components are the components which typically do not transfer mechanical power. On the
other hand, the active components help to transmit power in terms of motion (reduction,
amplification, direction), torque, force, etc. Examples of some passive and active components are
given in Table 1.1.
18
Mechatronics: Principles, Concepts and Applications
Table 1.1
Passive and Active Mechanical Component
Passive components Active components
Screws Gear
Nut-bolt Rack and pinion
Springs Pulley and belt
Washers, etc. Cam and follower; Bearings, Crank and slider; Four bar linkage;
Geneva wheel, etc.
The active components are responsible for transferring action from one place to an other by virtue
of what is being known as mechanism. For instance, gears make it possible for changing the rate of
rotation of a machinery shaft. They can even change the direction of the axis of rotation and can
change rotary motion to linear one. The active components are sometimes referred to as basic
machines. Mechanism is achieved through combination of properly designed geometrical components.
For instance a single gear can not help to transmit motion, rather a gear train makes it possible to
transmit motion from one shaft to an other.
important feature of this strategy is that the control functionality of the system can be easily modified
by only changing the software (control code). Diagnostic and sensorless control implementation is
also feasible.
Moreover, automation of many processes involves the integration of data processing, control,
alarm and presentation functions into a single, flexible ‘Supervisory System’. This has great
advantages over traditional relay based automation systems, each of which had its own sensors,
cabling, processor and controls. If full advantage is to be obtained, the mechanical and automation
systems must be integrally designed. This will doubtless be the most effective in terms of cost. A
microprocessor or microcontroller based design platform facilitates to advance these features.
Microprocessor and microcontroller-based control systems also offer integrated communications
and development tools in terms of software and hardware to develop control system platforms. Some
of the application areas of microprocessor and microcontroller-based system include,
· Instrumentation
· Machine control and multilevel supervisory systems
· Robotics
· Industrial control
· Safety applications
· Fire protection systems
· Home appliances
· Radiation interlock systems
· Motion control
· Manufacturing equipments
· Web-based process monitoring and control applications, etc.
There is a difference between microprocessor and microcontroller. A microcontroller has built in
I/O functionalities and additional control related circuitry, such as A/D (Analog to Digital), D/A
(Digital to Analog Converter), PWM (Pulse Width Modulator), PLL (Phase Locked Loop), timers,
and so on. In general, these circuitries are lacking as far as design and architecture of microprocessor
chip is concerned.
Microcontrollers are considered good candidates for control application, on the other hand
microprocessors are mostly, in present scenario, used in computing environment. Microcontroller is
a processor on a chip that is programmed to perform almost any control, sequencing, monitoring and
display function. Because of its compactness and relatively low cost, it is a natural choice for control
design. It performs many of the functions traditionally done by simple logic circuitry, sequential
control circuits, timers or a microprocessor.
understanding and predicting their behaviour. A mechatronic system is designed and its performance
is analyzed using model equations. Results of the analysis help find out how well the system meet the
design parameters (specifications), and how to alter the specification and modify the design as needed.
Then another model is created for analysis for improved performance. The process continues to
iterate the analysis based on model equations, until we have a system that satisfies the application
parameters. The modeling procedure can be summarized as follows.
· Identification or description of the physical system in terms of basic modeling elements.
· Formulation of a mathematical model. This is also called dynamic modeling.
· Analysis of the model.
· Iterative evaluation in terms of achieving effectiveness of the system.
· Interpretation, confirmation and verification. That is whether all the functional design
specifications are met.
· Practical behaviour study.
· Propose modifications for improving the manufacturability and disposal
Intrinsically, mechatronic systems are composed of four basic physical systems such as
mechanical systems, electrical systems, fluid systems, and thermal systems. Real systems are
combinations of these basic systems, thus they are considered hybrid in nature. The physical nature
of the systems is identified or described in terms of lumped parameters, called basic modeling
elements. The dynamic model equations are formulated by the use of modeling elements based on
governing fundamental laws and theories.
Simulation is an important tool in most of the design as far as mechatronics systems are concerned.
By using dynamic model equations, designers can simulate the system before the actual design begins.
As a consequence, significant reduction in design cycle time can be achieved and overall lifetime cost
of new products can be reduced. The optimal goal of modeling is thus to attain the most optimal
realistic physical system with the least amount of design headache. The best design is that which
gives the most accurate description of physical behaviour for a given system. Modeling allows system
development and design improvements. Both modeling and simulation can be applied to generate
optimized description of design parameters.
Study concerning system response provides useful information as far as understanding of
behaviour of physical systems are concerned. Careful engineering analysis supports design of systems
that function in predictable ways. It also helps explain non-intuitive behaviour of physical systems.
Mechatronic systems are characterized by their frequency response functions. Frequency response
characterizes the response of the system with frequency. It is employed to estimate the available
system performance and to determine the disturbance rejection and the bandwidth of the system.
Closed-loop control system is also called feedback control. In a generalized sense, a closed-loop
control system is a system of integrated elements whose function is to maintain a process variable at
a desired value or within a desired range of values. Feedback loops occur whenever part of an output
of the system is connected back into its input. The control system constantly or discretely monitor
the process variables and then causes some action to occur to maintain the desired system parameter.
For instance, in a central heating unit the control system monitor the temperature of the room by the
use of a temperature sensor. If the temperature of the room drops below the preset value, the heating
system gets on. The temperature of the room increases until the switch in the thermostat causes the
heating system to turn off. Thus, in a closed-loop control system the control action is dependent on
the output. In general, a closed-loop system consists of the following:
· Plant: A system or process to be controlled. This could be an actuator.
· Input: A reference input is the basis for giving the desired output for the system. The reference
input is called setpoint.
· Measurement devices such as sensors: These devices measure the process variables in order to
provide information about the current state of the system to the controller.
· Controller: An algorithm responsible for generating appropriate control signal in achieving the
desired output with respect to the setpoint and measured process variables. It generates
appropriate error signal.
· Output: The measurement device measures the output, which is the controlled output generated
by the closed loop system
The process variables or feedback parameters such as temperature, pressure, flow, current,
voltage, vibration, and so on are measured, converted to electrical signals and subsequently processed
by microelectronics and then sent for decision to be made. After the necessary control decisions are
made, the resulting controlled output in the form of electronic signals is fed into the actuators to
control the target application. This is considered as a kind of loop, essentially called a control loop.
Sensors sense the parameters and based upon the parameter value the control system makes a decision
whether or not to activate the actuator. Thus a loop is formed.
Feedback control is an error-driven strategy. An equivalence of the setpoint should appear at the
output, if it does not then corrections are evident. Corrections are made on the basis of a difference
between the system’s current state and the desired state.
Feedback systems are secure, reliable, optimal and stable. In the simplest case of feedback control,
the corrections are proportional to the magnitude of the difference between the setpoint and the output
(also called error). This refers to proportional correction. The PID (Proportional Integral Derivative)
correction is another manner in which the correction is proportional, integral and derivative of the
magnitude of the difference (error) between the setpoint and the output. The PID algorithm is used
for the control of many control loops in the process industries, and is the basis for many control
algorithms and strategies.
· Digital system
· Distributed system
· Enhanced computing power
· Relatively good real-time performance
· Field level programming capability
· Modularity, extendability and scalability
· Interchangeability and interoperability (openness)
· Reliability, safety and intrinsic safety (IS)
· Feedback control
· Soft computing
· Diagnostics and prognostics in terms of sensor, actuator and loop validation
· Life cycle data acquisition (LCDA), etc.
1.8.12 Diagnostics
Traditionally the conditions of devices, components, machines and systems are monitored by skilled
operators routinely checking analogue dials, digital readings, graphical displays and chart recorders.
The procedure of such monitoring is human-centred. However, this conservative approach denies the
operators the opportunity to focus their attention and expertise on guaranteeing process stability and
maximising production efficiency. The human centred plant and processes demand greater
automation capabilities. The technological drive towards greater visualisation of a system in terms of
fault detection and isolation (FDI) can be considered as greater automation capabilities. The creation
of diagnostic functions is seen as a perspective of the human-centred approach. This is regarded as an
essential requirement for mechatronic systems, where the majority of efforts is often spent in
identifying the problems when failures occur.
Any kind of malfunction is understood as a fault that leads to an unacceptable anomaly in the
overall system performance. Faults may occur anywhere in a system including, sensors, actuators,
switches, valves, shafts, components, body, rotors, and so on. While designing mechatronic
systems, attention has to be paid to the problem of fault detection in order to meet the demand for
safety in terms of reliability and availability. Reliability is defined as the probability of a system or
component to perform a required function under specified conditions for a certain period of time.
Availability refers to accessibility of the system or component during the accepted period.
Quantitatively it is defined as operational use hours minus failure downtime divided by operational use
hours. The development of methods which contribute to the provision of fault diagnosis and fault
tolerance is strongly advocated as an essential requirement.
including hardware, software and the principle of communication. The development systems and
platforms are sometimes referred to as workbench. One of the important requirement of all kind of
design activities is the supporting and development tool. Discussions on tools and techniques used for
mechatronic systems, cover broad areas since they differ application wise.
In a centralized system all the field devices such as sensors and actuators are directly wired back
to a central controller. Communication between the field devices is thus achieved via a single
centralized controller, requiring individual point-to-point links between each field device (the point of
interaction) and the processing unit. On the other hand DCS inherits the concept of networking
system amongst many controllers instead of one. The entire control task of the centralized controller
is physically distributed among the other controllers, which are then connected onto a network. The
distributed controllers must have a communication protocol in order to communicate with each other.
The advantage of the DCS is that it overcomes the fear of central failure and also the problem of mesh
wiring between the field devices. The other shortcomings encountered in centralized systems can be
attributable to:
· Inflexibility
· Central failure
· Slow pace and
· Expensiveness
Therefore, DCS is seen to be an effective control architecture in comparison to CCS. The advances
in digital technology have opened way to establish low cost, reliable DCS control architecture. Digital
Industrial Networking Systems (DINS), called the fieldbus technology, enables processing power to
be distributed to the device level (sensor, actuator level) in such a manner that greatly enhances
monitoring and control at reduced cost.
· Automation and control methods, adopting integrated embedded technology has become
relevant to industries, machineries and consumer products.
· The worldwide technical education curriculum has been a reverse pyramid structure, in contrast
to traditional teaching methodology.
· The engineering disciplines are now dilating instead of diverging. This is because of the
requirement of interdisciplinary knowledge at the production place.
· Advanced technological designs are highly complex and inter-interdisciplinary nature involving
synergistic integration of mechatronics, photonics, computronics, and communication.
· Combined action and cooperation increases effectiveness and productivity.
· The word mechatronics originated in Japan in late 1970s to describe a philosophy adopted in
designing subsystems of electro-mechanical products.
· Mechatronics is the synergistic integration of mechanical engineering with electronics and
intelligent control algorithms in the design and manufacture of products process.
· A microprocessor based electrical motor used for actuation purposes in typical industrial robots
can be considered as an example of tertiary level mechatronic system.
· Artificial Neural Network and Fuzzy Logic try to capture some of the intellectual capabilities of
the intelligent human operator.
· With regard to the design of mechatronic systems the concentration is on studying fundamental
aspects of electronics, mechanical components, sensors, actuators, control theory and
integration methods. In particular, the following enlisted fundamental topics are under the
mechatronic study.
25
Introduction
EXERCISES
· To discuss about the different sources of a signal, and to explain, how they can be represented.
· To list the types of signal according to the frequency contents.
· To describe the imperative study of the different types of signal classification.
· To explain how the analog, digital, periodic and nonperiodic signals can be analyzed with proper
representation both in time domain and frequency domain.
· To define the Fourier Transform and IFT and to discuss their applications.
· To explain the difference between DFT and FFT. To enlighten how they are represented and their
practical applications.
· To discuss about wavelet transform and STFT. Explain how they are better suited in comparison
to FT.
· To list the uses of the differential Eq. in the engineering domain.
· To describe the log-antilog process of a transformation.
· To describe in blocks, how the Laplace Transform and inverse Laplace Transform can be illus-
trated.
· To calculations of Laplace Transform for the various time domain functions.
· To define Z-Transform and their importance in the difference equations.
· To describe the different properties of Z-Transform.
· To provide a table of different time-domain functions and their Z-Transform.
· To list the applications of FT, DFT, CWT, DWT, LT and ZT.
· To define power and energy of a signal and explain.
· To define modulation and demodulation and in particular to explain PWM and its application
control systems.
28
Mechatronics: Principles, Concepts and Applications
2.1 INTRODUCTION
Signal analysis and processing is an essential recipe in the engineering design. This chapter presents
signal theory and analysis in terms of their classification, representation and processing methods.
Signals can be differentiated from various angles in terms whether they are random or nonrandom,
stationary or nonstationary, periodic or nonperiodic and analog or discrete. An introduction to signal,
its definition, description and their representations in time, frequency and time-frequency domains are
the subject matter of the first part of the chapter. In the second part, engineering tools such as Fourier
Transform, Laplace Transform and Z-Transform, which play important role as far as study and
design of mechatronics engineering and technology is concerned, have been described. In the sequel
the topics include:
· Background and definition of signal
· Sources of signal
· Signal nomenclature
· Fourier series
· Fourier Transforms
· Wavelet Transform
· Discrete-time systems
· Discrete Fourier Transforms (DFT) and Fast Fourier Transforms (FFT)
· Differential and difference equation
· Laplace Transform
· Z-Transform
The significance of Fourier series, Fourier transform and Wavelet transform is elucidated.
Advanced signal processing methods in terms of discrete-time systems, Discrete Fourier Transform
(DFT), Fast Fourier Transform (FFT) are explained. The distinction between differential equation
and difference equations, from control schematic is ascertained. Moreover, the chapter deals with
Laplace Transform, and Z-Transform, the important mathematical tools, which are mainly used to
solve system problems in terms of examining issues such as stability, feedback control and initial
value problems.
2.2 BACKGROUND
To know the temperature at the vicinity of the bearing system of a spindle machine, a temperature
sensor has to be fitted into. To actuate an actuator system, proper command has to be generated and
directed to the actuator. To close an automatic door of a building from a remote place we must send
a command to the actuator integrated with the locking system of the door. From these examples, one
can note that what is really being received through sensor and what is being directed to the actuator is
simply the ‘signal’. The transducer output is simply the ‘signal’ and the actuator input is also ‘signal’.
Three important questions in this context, comes into mind immediately.
· What are the sources of signal?
· How does the signal look like?
· How are they represented?
29
Signal Theory and Engineering Tools
Fundamentally, the source of signal is the ‘transducer’, or ‘sensor’ a device that helps to describe
the variation in the process parameters (also called process variables) by converting one form of
energy to other. The practice of conversion is referred to as transduction. There is a difference
between the transducer and sensor, which will be explained later, however, temporarily assume that
both types of devices do the same job. A process could either be a natural process or an engineering
process. Some of the process parameters of the natural processes could be the ambient temperature,
humidity level, intensity of light inside the room, etc. Examples of process parameters of some
engineering processes are rotational speed of an electric motor, transient temperature of a typical
ball-bearing system of a rotary shaft, pressure in the chamber of a pneumatic actuator, flow rate
through an orifice, field current in a DC motor, to name a few. Without loss of generality it can be
presumed that the process parameters are analog in nature, means that when they are observed with
respect to time they are continuous function of time. The strength or intensity of these process
variables are converted to some equivalent magnitude, called equivalence, and are measured or
observed in another domain. The conversion is achieved by transducers adopting different
transduction principle. For instance, the transduction principles in a temperature and pressure
transducer vary as they adopt different transduction principles (Detail description is in Chapter 5).
Irrespective of adoption of the principle of transduction, the resulted equivalence, from engineering
point of view, is simply referred to as ‘signal’. Although, theoretically, signal originates from the
transducer, in general, we can generate signal from any kind of signal generating devices, and circuits.
The devices or circuits which generate signals are called signal generators.
Eventually, one should know how to envisage and visualize the signal. One good point is that all
signals are function of time. We are therefore, in a position that we can now pick-up a horizontal axis
with an arrow at the end and can place the time to sit upon it and can place the signal strengths,
intensities or amplitude along another arrowed axis, which should be vertical so as to enable us to
visualize the signal at all instances. The horizontal axis must originate at some reference point of time.
This is the starting time from which we have been interested to observe the signal. This reference
point is usually marked as zero. Since Einstein’s era we have been more or less acquainted with
negative time, but for engineering and mechatronics study, especially in the context of the scope of
this book we will only deal with the positive time. However, we will encounter the appearance of
negative frequency during the course of our study related to signal analysis.
Figure 2.1 illustrates some of the signals originated from different signal generators. In Fig. 2.1(a),
the signal is generated from the output of a transducer. In Fig. 2.1(b), the signal has been generated
from the output of a microphone (Microphones are also transducers). On the other hand, in Fig.
2.1(c), the signal has been generated from a typical signal generator circuit, where as in Fig. 2.1(d),
it has been generated from a microprocessor. The signal shown in Fig. 2.1 (c) and (d) are FM
(Frequency Modulated) signal and PWM (Pulse Width Modulated) signal respectively. Notice that all
the signals are analog signals. The horizontal axis refers to time axis. The vertical axis shows the
intensity of the signal at all instances. In these particular examples, the respective amplitudes of the
signals have been shown from time, t = 0 to t = t1. All the signals are said to be in time-amplitude
space. Such type of presentation of signal or visualization of signal is known as time-domain
representation of signal.
30
Mechatronics: Principles, Concepts and Applications
A useful definition of the signal is that ‘signal is analogous and intrinsically it may have many
signals’. The definition looks funny. Nevertheless, one has to accept how the definition works. The
meaning of the first clause of the above definition is already described. In the context of plurality, it
means that the signal actually consists of many signal components, which we are unable to visualize
31
Signal Theory and Engineering Tools
in the time-amplitude space. A signal is thus simply a summation of a set of components and the set
is unique. The signals differ from each other due to different sets of unique components set. Each
component within the signal is characterized by three parameters, such as amplitude, frequency and
phase. Each of these parameters, in general, influences the shape of the signal.
For practical use, if we require a signal, which should have a single frequency component or a
group of frequency components then perhaps we need to feed the original signal, containing all the
frequency components to an electronic filter, in order to extract the frequency component (s) of
interest. The process is called filtering.
0
(a) Time
Amplitude
v0(t) = B sin (2πf t) for t ≥ 0
v(t) = B cos (2πf t) for t ≥ 0
B
0
Time
(b)
32
Mechatronics: Principles, Concepts and Applications
0
T Time
(c)
0
t1 (d) Time
So far, we analysed that a signal carries amplitude and frequency parameter. One more parameter
is phase. A phase is a peculiar parameter, which does not leave the signal alone. Even if its value is
zero it is there with the signal. If the value of the phase of a signal is positive as compared to that of
another signal then apparently, it forces the first signal to leave the time axis early. In Fig. 2.3 (b), both
sine and cosine signals have a phase difference of 90 degrees between them.
before it is observed. Once it has been observed for a sufficient period of time, the phase is known
and all future values can be predicted. Another example of random signal is the output of the sensors.
The output is comprised of equivalence of converted signal along with noise (additive, multiplicative)
and interference. Since the noise and interferences are random in nature, the output is also random
signal. However, when the output is observed for a long time, its degree of uncertainty becomes
known and in essence the future values can be predicted.
A nonrandom signal is one about which there is no uncertainty before it occurs and therefore, an
explicit mathematical expression can be written for it. Nonrandom signal does not exist, but it has a
good deal of use for assumption, simplicity and understanding.
The discrete-time signal is generated from the sampled signal by the process of quantisation. The
discrete-time signal is then coded in order to obtain the digital signal. This process is called coding
(More details is found in the following chapter). A schematic diagram as to know how digital signal is
generated from the analog signal is shown in the Fig. 2.4.
v(t1)
t1 Time
Sound
Microphone
Equivalent electrical signal output
of the microphone is sound signal. The microphone converts the sound signal to its electrical
equivalence.
Quantitatively, the signals are described by the use of mathematical notations and symbols. The
mathematical notation of this signal, v(t), which is simply the amplitude of the time domain signal with
time, t as the independent variable. It only informs us about the amplitude of the signal at various
instances. For instance, at time t1 the amplitude of v(t) is v(t1).
One can be interested to know the frequency content of the signal (For the time being let us not
consider the phase information). The time-amplitude plot or time domain plot of the microphone
output only provides amplitude information at various instances. It does not provide any information
as far as frequency content of the signal is concerned. The time-domain plot lacks frequency
information, although, in some typical time-domain signals such as sine, cosine signal, frequency
information is inherited. In order to reveal the frequency information, the signal need to be processed
in terms of a mathematical treatment, in effect that should extract the frequency content of the signal.
Thus, to substantiate the earlier claim we will have to process the signal to disclose its real face,
which in this discussion is the frequency contents. Once it is done, the signal can be plotted in the
frequency domain. This in turn signifies that a signal can be represented in more than one domains,
and hence can be understood as multi-domain representation of signal. In fact, Fourier Transform
(FT) method is employed to accomplish the job.
Are we happy? Absolutely, not. What is the problem then? The problem is that still we are missing
some information (forget about phase now) about the signal, i.e., the time of occurrence of a particular
or group of frequency components. There are some signals, such as nonstationary signals, which we
will discuss in the latter part of this chapter, that even if they differ from each other, they cannot be
distinguished from their frequency domain plot. They produce same results when FT is taken on
them. Therefore, we have to deal such signals with different processing methods. The appropriate
mathematical tools to be used to solve the purpose are either Short Time Fourier Transform (STFT)
or Wavelet Transform (WT). STFT and WT reveals the frequency information as well as the
information on the time of occurrence of the frequency components. These tools (STFT and WT)
transform the signal to ‘time-frequency’ domain, a domain that discloses the signal competently.
Detailed explanation on time-frequency analysis and processing has been provided in Section 2.9 of
this Chapter.
What is concluded is that to know frequency contents and the time of occurrence of frequency
components we need to analyze them in many domains through processing. Once the signal is
processed and subsequently plotted, its real face can be opened up. The following sections deal with
the representation of signal in time, frequency and time-frequency domain. The mathematical notations
along with analytical treatment have been described in detail. Figure 2.7 (a) and (b) show that
mathematical treatment is needed in order to obtain frequency information of the signal.
37
Signal Theory and Engineering Tools
(a)
where, f is its frequency of oscillation and A is called the peak amplitude of the sinusoid. The above
signal is simple in the sense that sometimes it does not need to be analyzed or represented in frequency
38
Mechatronics: Principles, Concepts and Applications
domain, since its frequency information can be revealed from the time-domain plot. However, some
more complicated periodic signals need mathematical treatment (processing) for their description.
Figure 2.9 shows a typical periodic signal, As you can see that it is not as simple as the periodic
signal shown in Fig. 2.8.
Fig. 2.9 A complicated periodic signal in the time-amplitude space (time domain)
In this case the schematic of mathematical treatment involves Fourier series analysis, which states
that “A periodic signal of period T can be expressed as a summation of infinite number of
trigonometric functions such as sine and cosine functions as long as the signal has finite number of
maxima, minima and discontinuity within T ”. The statement also implies that the signal is absolutely
integrable and has finite energy. If these conditions are true then mathematically the periodic signal
can be represented as,
a0 ¥ ¥
2 p nt 2 p nt
v( t ) = + å an cos + å a n sin (2.3)
2 n=1 T n=1 T
This is called a Fourier series. The reciprocal of the time period of the periodic signal, is called the
fundamental frequency of the periodic signal. 1/T is the fundamental frequency, a0 is the DC
component of the signal, an and bn are the coefficients of the trignometric functions. Their values can
be obtained from the following three equations respectively.
t0 + T
2
a0 =
T z
t0
v(t ) dt (2.4)
t0 + T
2 2pnt
an =
T z
t0
v(t )cos
T
dt (2.5)
t0 + T
2 2pnt
bn =
T z
t0
v(t )sin
T
dt (2.6)
39
Signal Theory and Engineering Tools
Equation 2.3 is interpreted as any periodic signal that has a DC component (frequency zero) and
infinite number of other components having frequencies multiple of fundamental frequency (1/T).
The lowest frequency component being the fundamental frequency.
Equation 2.3 can also be described in the complex form by using the Euler’s identity
e jx = cos( x ) + j sin( x ) . Then the complex form of Fourier series becomes,
+¥
v( t ) = å cn e jwnt (2.7)
n =-¥
2 pn a n - jbn
where, wn = , cn = and n is integer.
T 2
wn is simply frequency in radians per second, as it is multiplied with the factor, 2 p . For negative
values of n, components having negative frequency will appear. How would frequency be negative?
One thing you should be clear in your mind that frequency is no way negative. However, sometimes
we prefer to use some well-defined mathematical tools and methodology, already accepted by many,
in order to deal the problems more qualitatively. Let us not accept the existence of negative frequency
as a human being, but let us accept it as an engineer at least up to a time until we stop our engineering
profession. Once it is accepted, one can automatically get himself or herself more involved into the
subject matter by drawing a conclusion that as long as or if the power of the signal represented by the
Eq. 2.3 and that of the same signal represented by Eq. 2.7 remains same, then what is wrong in
accepting the existence of negative frequency?
are just half of the amplitude of the corresponding frequency component of the one sided plot. Since,
the amplitude level of each spectral component contributes towards the total power of the signal, it
really does not matter whether the signal is one sided or two sided one.
Amplitude
One-sided
A
f (a) Frequency
a2
a5
a8 One-sided
a0 a6 (Trigonometric form)
a3
a1 a4
a7
a9
(b)
Two-sided
(Exponential form)
a9 a 8 a7 a6 a5 a4 a3 a2 a1 a1 a2 a3 a4 a5 a6 a7 a8 a9
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
a0
2
- 9f0 - 7f0 - 5f0 - 3f0 - f0 f0 2f0 3f0 4f0 5f0 6f0 7f0 8f0 9f0 Frequency
DC
Component (c)
some transducers produce periodic signal as well. Mathematically, distinction can be made between a
periodic and nonperiodic signals.
Figure 2.11 is another example of a nonperiodic signal. The signal is the output of the temperature
sensor, which is located at the vicinity of the bearing system of a high-speed spindle machine ¨
(Rotating at a speed more than 15,000 revolutions per minute).
¨ The temperature sensor, in this typical example, is a protecting device for the spindle machine. It is there to measure
the transient temperature of the bearing system on-line. If the temperature of the bearing system is more than the
threshold limit, the spindle has to be stopped, so that no serious damage would occur to the costly spindle machine.
42
Mechatronics: Principles, Concepts and Applications
¥
v( t ) = z
-¥
V ( f ) e 2 p ft df (2.10)
Let us understand how FT works. The right hand side of the Eq. 2.9 is the summation of products
of two terms, the time domain signal v(t) itself and the exponential function e. The process is a series
of multiplications and the results provide the amplified version of the exponential function. The
process of multiplication searches the frequency components present in the signal. When the
exponential term, inheriting a frequency parameter f, is multiplied with the signal, it gets amplified only
if the signal has a frequency component f or else the product becomes zero. Zero means that the
signal does not have this frequency component. The exponential function starts multiplying the signal
from zero frequency to infinite, since exponential function starts from zero to infinite. The process
only extracts frequencies that are present only in the signal. Therefore, the result of the process is
simply a signal containing frequency information. The integration does not mean the sum of all
products! It really means the summation of products over all times.
FT of a signal is a complex function because it is the product of original signal and the exponential
function. Moreover, since the integral in the Eq. 2.9 takes the limit from – ¥ to + ¥ , the outcome is
a two-sided plot. Figure 2.12 shows the frequency domain representation of a typical nonperiodic
signal. You can see that, the spectra are continuous. It was pointed out in case of periodic signal that
if the duration of time period of a periodic signal is increased then the spacing between the spectral
components is decreased. If the fundamental period of a periodic signal is increased to infinite, it
would become a nonperiodic signal, and in effect, if we take the FT of such signal, the spacing
between the spectral components would become infinitesimally small, i.e. continuous. All nonperiodic
signals are periodic (hypothetically) if the fundamental frequency of the signal is taken as infinite.
Unlike periodic signals, the nonperiodic signals have no discrete frequency components. There does
not exist unique amplitude corresponding to unique frequency. In this case (nonperiodic) one can
interpret the concept by using the term ‘amplitude of spectral density’. This means that there exist
amplitude, but the amplitude is contributed by a group of spectral components within the interval of
D f . Further, note that the shapes of the amplitude of spectral density on both sides of the frequency
axis are identical.
Fourier series and Fourier Transforms have many important applications in all branches of
engineering. They operate on continuous functions, which are defined at all values of the time t. Such
a function might represent a continually varying analog voltage signal produced by a typical
transducer. Whatever may be the source of origin of the signal, in reality it turns out that the signal is
43
Signal Theory and Engineering Tools
built from only sine and cosine waves of various amplitudes, and hence can be broken down or
analyzed. Given an arbitrary time domain signal v(t), the basic idea of analysis is to decompose the
signal, over some finite interval, into a sum of pure sine components, and to find the frequencies,
amplitudes, and phases of those components.
Example 2.1 Plot the following time domain signal in the freqauency domain.
v( t ) = A1 sin 2 p f1t + A2 sin 2 p f2 t + A3 sin 2 p f3t
Solution The above signal contains three sinusoidal components with amplitudes and frequencies
(A1, f1); (A2, f2) and (A3, f3) respectively.
Let us assume A1 > A2 > A3 and f1 < f2 < f3
The frequency domain plot of the given signal is shown in the Fig. 2.13
Amplitude
A1
A2
A3
f1 f2 f3 Frequency
Amplitude
τ τ
+ Time
2 2
e j 2 pft + e- j 2 p ft = 2 cos( 2 p ft )
e j 2 pft - e- j 2 pft = j 2 sin( 2 p ft )
We have,
sin(pft )
V ( f ) = At
= At sinc ( ft )
pft
Figure 2.15 shows the signal in the frequency domain. The Fourier Transform of a gate function is
a function of the form sin(x)/x symmetrical to time axis. It is a decreasing function and contains all
the frequencies. The highest peak, At occurs at the origin. The function sin(x)/x is zero for
x = np , where n is an integer (n ¹ 0) and other peaks occur approximately at ±1/ 2 ( np ), ± 3 / 2 ( np ),
±5 / 2( np )... and so on.
Amplitude of spectral components
At
Two-sided plot
+
Frequency
The DFT altogether a different method making it possible to allow computer implementation for
the extraction of amplitude, frequency and phase of the signal. Since the computer is a digital device,
in place of a continuous input signal we provide discrete data. The basic that lies with DFT is the
involvement of Digital Signal Processing (DSP) methods. In digital world we can only process a
function defined on a discrete set of points. This leads to define DFT, whose equations s are very
similar to those for the continuous Fourier Transform. In this case both the time and the frequency
variables are discrete.
Let v( t n ) represent the discrete time signal, and let V ( w k ) represent the discrete frequency
transform function. Then , mathematically, the DFT is written as,
N -1
V (wk ) = å v ( t n )e - j w k tn , for k = 0, 1, 2,......................, ( N - 2 ), ( N - 1) (2.11)
n =0
where,
V ( wk ) Þ The spectrum of v(t) at radian frequency wk
2p k th
wk = Þ k frequency sample
NT
N Þ Number of samples in both time and frequency
T Þ Sampling period
fs Þ Sampling frequency
th
tn = nT Þ n sampling instant in second
n Þ Sample number
v (tn) Þ Amplitude of the input signal at time tn
From the computing schematic, largely, DFT is an algorithm. As far as calculation of DFT is
concerned, as an index, it is an order of N 2 calculation, meaning is that the number of multiplications
involved in the calculation is equal to the square of the number of data points. The traditional DFT
algorithm has been superceded by Fast Fourier-Transform (FFT) algorithm, which reduce calculation
redundancies in terms of taking much less computer time. The order of FFT calculation is N log N,
which is less than N 2. Without loss of generality it can be stated that DFT is the equation from which
the Fast Fourier Transform (FFT) algorithm is derived. FFT is considered as one of the most
significant numerical techniques, because it helps to reduce differential equations to essentially
algebraic problems. The FFT is not a different transform, rather a means of computing the DFT with
a considerable reduction in the number of calculations involved. In summary, FFT is simply a class of
special algorithms, which implement the DFT.
46
Mechatronics: Principles, Concepts and Applications
Fig. 2.16 Two typical time domain signals, each containing same frequency components.
(a) Signal 1 with frequencies f1, f2 and f3 (b) Signal 2 with frequencies f1, f2
and f3
The second time domain signal, shown in Fig. 2.16 (b), also has same frequency components f1, f2
and f3 (f1 > f2 > f3) but all are cropping up at different time intervals, T1, T2 and T3. Let us temporarily
ignore the amplitude part of the signals as we are now concentrating only on the frequency contents.
If we take Fourier Transforms of these two signals to know the frequency information we shall get
identical results. Figure 2.17 (a) is the FT of the first signal (Eq. 2.13) and Fig. 2.17 (b) is the FT of
second signal (Fig. 2.16(b)). In this typical example, although, the two signals are exclusively different
but they are distinguished in their frequency domain plots.
What is informative here is that FT cannot be applied to all types of signals. Let us observe the two
time domain signals and their FTs very closely. The difference between the two signals is the time of
occurrence of their frequency components. The frequency components of first signal occur at all
47
Signal Theory and Engineering Tools
times, where as the frequency components of second signal occur only during specific intervals,
such as f2 occurs during T1 interval, f2 occurs during T2 interval, and so on. The time of occurrence
of frequencies is not same. FT provides results about the presence of frequency components in a
signal, but it never provides any information about the time of occurrence of the frequency
components. Because of this reason the FT of both the signals resulted same. Note that the two
signals are categorized under stationary and nonstationary signals, respectively. In order to overcome
such drawback, which are inherited by the Fourier Transforms, i.e. to reveal all the information such
as amplitude, phase, frequency content and the time of occurrence of frequency components of the
signal situation is more involved. And, the approach which resolve the problem is called time-frequency
domain analysis and processing of signals. A time-frequency distribution shows what frequencies are
present at a given time. The latest advancement of time-frequency analysis of signal is called Wavelet
Transform (WT).
Amplitude
− f3 − f2 − f1 f3 f2 f1 Frequency
(a)
Amplitude
− f3 − f2 − f1 f3 f2 f1 Frequency
(b)
y (t , s ) =
1
z v( t ) y ∗ FH t − t IK dt (2.14)
s s
48
Mechatronics: Principles, Concepts and Applications
where, y (t, s) is WT, which is a function of t and s × t and s are called translation (time) and scale
(frequency) parameters respectively. v(t) is the nonstationary signal and y* is the conjugate window
function, called mother wavelet. The mother wavelet serves as the basis for all windows in the
computation process. Different type of windows functions serves as the mother wavelet. In case of
FT the window function is replaced by exponential function. In WT, the translation is related to the
location of the window and the scale parameter is the inverse of the frequency. The scale parameter
either dilates or compresses.
WT originated from another treatment, which is called Short Time Fourier Transform (STFT).
STFT is also a time-frequency distribution. Mathematically the STFT is written as,
z
STFT ( t , f ) = v ( t ) w * ( t - t' ) e- j 2 pft dt (2.15)
where, v(t) is the time domain signal, w* is the conjugate of the fixed window function. The problem
with STFT is that it uses a single analysis window, on the other hand the WT uses scale parameters
(s), in order to have short windows at high frequencies and long windows at low frequencies. For this
reason, WT based signal analysis is referred to as multiresolution decomposition technique. The
existence of scaling parameter enables to achieve constant relative bandwidth frequency. The STFT
is a linear process and the WT is logarithmic in nature.
Laplace Inverse
Result Transform (L 1)
where, L is the Laplace operator, s is a complex variable. The inverse Laplace Transform is denoted
by,
L -1 [ F ( s )] = f ( t ) (2.19)
–1
where, L is the symbol used for inverse Laplace Transformation.
The Laplace Transform of a time domain function exist if the integral converges. This implies that
f(t) is piecewise continuous on 0 £ t < ¥ and f(t) is of exponential order as 0 Þ ¥ , meaning is that
there exist real constants C, a and tr such that f ( t ) £ Ce at for all t > tr . These are the sufficient but
not necessary conditions for F(s) to exist. Conditions for the existence of an inverse Laplace
Transform of F(s) is lim s®¥ F ( s ) = 0 and lim s®¥ s · F ( s ) is finite.
Laplace Transform of a constant, a The Laplace Transform of a constant function, also
known as step function, such as f (t) = a for t > 0 is given by,
¥
a
z
L[ f ( t )] = ae-st dt =
0
s
(2.20)
Laplace Transform of unit-step function If the value of a is 1 in the above equation, then the
step function will be a unit step function. The Laplace Transform of unit step function is given by,
¥
1
z
L[ f ( t )] = e-st dt =
0
s
(2.21)
Laplace Transform of exponential function Let the exponential function be defined by f (t)
= e–s t for t ³ 0. Then,
¥ ¥
1
z
0
z
L[ f ( t )] = e-st e-st dt = e-( s+s ) t dt =
0
s +s
(2.22)
Laplace Transform of ramp function A ramp function is defined by f (t) = at for t ³ 0. Its
Laplace Transform is,
¥ -st ¥ ¥
LM e - 1 e-st dt = a2
OP
z
L[ f ( t )] = ate-st dt = a t
0 N -s 0 s z
0 Q s
(2.23)
Laplace Transform of sum of two time domain function Laplace Transform is a linear
operation. If the Laplace Transform of f (t) is F(s) and that of g(t) is G(s) then following relationship
holds.
L[ af ( t ) + bg ( t )] = aL[ f ( t )] + bL[ g ( t )] (2.24)
Where a and b are constants. This can be proved using the Eq. 2.18.
Laplace Transform of time-shifted function If the Laplace Transform of f (t) is F(s), then,
L[ f ( t - t )] = e-st F ( s ) (2.25)
This can be proved using the Eq. 2.18 as follows.
51
Signal Theory and Engineering Tools
¥ ¥
L[ f ( t - t )] = z
0
f ( t - t ) e-st dt = z
0
f ( w )e-s ( w+t ) dw
¥ ¥
z z
= e-st f ( w )e-sw dw = e-st f (t )e-st dt = e-st F( s )
0 0
Laplace Transform of first, second, higher order derivatives of the function If the
f (t) has a Laplace Transform F(s) then,
df (t )
With regard to second derivative (Eq. 2.27), considering = g( t ) ,
dt
LM d f (t ) OP = L L dg(t ) O = sL[g(t )]- g(0) = sLL df (t ) O - f& (0) = s F(s) - sf (0) - f& (0)
2
2
L
N dt Q NM dt QP NM dt QP
By similar approach, the Laplace Transform of nth order derivative of a function can also be
obtained.
Laplace Transform of integral of a function If f (t) has a Laplace Transform of F(s) then,
the Laplace Transform of the integral of f (t) is
L t
O F(s)
L z f ( t ) dt = L M z f ( t )dt P = (2.29)
N 0 Q s
t
z
Let us define g( t ) = f ( t )dt . and du = e-st dt Now, dg = f ( t ) dt and u = -
0
e-st
s
. So,
Nz Q z Nz
-st
L[ f ( t )] = L dt
0 0 0 Q
52
Mechatronics: Principles, Concepts and Applications
L e IJ f (t )dt OP
= M FG -
t ¥ ¥ ¥
NH s K z z z
-st F(s)
+1 f ( t )e-st dt =
1
f ( t )e-st dt =
Q 0 t =0
s 0
s 0
s
1 jwt
By using Euler’s formula, we can write sin w0 t = (e - e- jwt ) .
2j
LM (e - e )e dt OP
¥
Nz
1 jw 0 t - jw0 t -s0 t
L[ f ( t )] = L[sin w 0 t ] =
2j 0 Q
1 L O
¥ ¥
=
2j N
M z e e dt - z e
0
jw 0 t -s0 t
e dt P
Q 0
- jw0 t -s0 t
1 L 1 1 OP = w
= M
2 j N s - jw
-
s + jw Q s + w
0 0
2
0
2
0
By similar approach the Laplace Transform of cosine function can be derived as,
s
L[ f ( t )] = L[cos w0 t ] = (2.31)
s 2 + w02
Laplace Transform of function multiplied by e –at Laplace Transform of a function
multiplied by the factor e–at is,
L[ f ( t ) e at ] = F ( s + a ) (2.32)
It can be derived as follows.
¥ ¥
L[ f ( t )e at ] = z
0
f ( t )e at e-st dt = z
0
f ( t )e ( a-s )t dt = F ( s + a )
Nz z
d d -st
F(s) = dt = - tf ( t )e-st dt = -L[ tf ( t )] .
ds ds 0 Q 0
53
Signal Theory and Engineering Tools
L[t] = L[ t ´1] = -
d 1 FH1
= 2 IK (2.34)
ds s s
L[t 2] = L[ t ´ t ] = -
d 1
2
FH= 3
2 IK (2.35)
ds s s
n!
L[t n] = n+1 (2.36)
s
Table 2.1 provides some of the frequently used time functions and their Laplace Transforms.
Table 2.1
Laplace Transform Table
Time domain function Laplace transform
1 d (t ) 1
1
2 u (t )
s
1
3 t
s2
1 1
4
pt s
t 1
5 2
x s3
n!
6 t n n = 1,2,3.............
s n+1
1
7 e –at
s+a
b
8 be –at
s+a
1
9 te –at
( s + a )2
n
10 t n e-at , n = 1,2,3...........
( s + a ) n+1
1 1
11 (1 - e-at )
a s( s + a )
b- a
12 e-at - e-bt
( s + a )( s + b )
Contd.
54
Mechatronics: Principles, Concepts and Applications
1 e-at e-bt 1
13 - -
ab a( b - a ) a( a - b ) s( s + a )( s + b )
s
14 (1 - at )e-at
( s + a )2
w0
15 sin( w 0 t ) 2
s + w0 2
sin(q )s + w0 cos(q )
16 sin( w 0 t + q )
s 2 + w0 2
s
17 cos( w 0 t ) 2
s + w0 2
s 2 - w0 2
18 t cos( w 0 t )
( s 2 + w0 2 )2
w0
19 e-at sin( w0 t )
( s + a )2 + w0 2
s+a
20 e-at cos( w 0 t )
( s + a) 2 + w02
1 w n2
21 1-
1- z 2
d
e-z wnt sin wn 1 - z 2 t + cos-1 (z ) i s( s 2 + 2 z w n s + w n2
wn w n2
22
1- z 2
d
e-z wnt sin wn 1 - z 2 t i s 2 + 2 zwn s + w n2
-wn2 swn2
23 1-
1- z 2
d
e-z wnt sin wn 1 - z 2 t - cos-1 (z ) i s 2 + 2 zwn s + wn2
Example
1. Solve the following differential equations by using Laplace Transform method.
dy( t )
(a) + ay( t ) = 0 , Given that y ( 0 ) = y0
dt
d 2 y( t ) dy( 0 )
(b) m + ky(t ) = 0 , Given that y ( 0 ) = y0 and = y& 0
dt 2 dt
Solution (a) The equation is called a first order equation. Let the Laplace Transform of y(t) is
Y(s).
55
Signal Theory and Engineering Tools
L LM dy(t ) OP = sY ( s) - y
N dt Q 0
L ay ( y ) = aY ( s )
LL
MN dt + ay(t )OPQ = L[ 0] = 0
dy( t )
y0
Therefore, sY ( s ) - y0 + aY ( s ) = 0 or, Y ( s ) =
s+a
Thus, y ( t ) = L-1 LM y OP = y e
0 -at
[Refer Sl. No. 8 of the Laplace Transform Table]
N s+a Q 0
L m
LM dy 2 ( t ) OP
= m s 2 Y ( s ) - sy0 - y&( 0 )
N dt Q
L ky ( t ) = kY ( s )
So,
LM dy (t ) + ky(t )OP = m s Y (s) - sy
L m
2
2
- y& (0 ) + kY ( s )
N dt Q 0
But,
L dy (t ) + ky(t )OP = L[0] = 0
L Mm
2
N dt Q
Therefore, m s 2 Y ( s ) - sy0 - y& ( 0 ) + kY ( s ) = 0
my0 s + my&0 y0 s + y&0 y0 s y&0
or, Y (s) = = = +
ms 2 + k
s2 +
FG k IJ 2
s2 +
FG k IJ 2
s2 +
FG k IJ 2
H m K H m K H m K
LM OP
Thus, y(t ) = L Y ( s ) = L M
y s
MM s + FG k IJ
0
+
y&0
PP = y cosFGH k IJ y&
t + 0 sin
K
FG
H
kIJ
t
K
+ FG
k I
2 2 0
m k m
H m JK PQ
2
s2
N H mK m
[Refer Sl. Nos. 15 and 17 of the Laplace Transform Table]
advantage of digital technology, the continuous-time systems are converted to discrete-time systems.
The theory behind the discrete-time systems have already been introduced in this chapter and will
further be described in the Chapter 5. In the context of differential equation in relation to continuous
system, there exist difference equation in relation to discrete time system. A difference equation, in
fact, is the discrete adaptation of a differential equation.
Difference equations arise out of the sampling process. If an analog signal is sampled, then the
differential equation describing the analog signal becomes a difference equation. As regards to digital
control representation the difference equation shows the relationship between the input and output
signal. In order to obtain kth output it is necessary to consider past values of input and output signals.
Let us assume that the discrete-time input signal is given by u(k) and the output signal is given by
y(k). The past values of the inputs and outputs are, u ( 0 ), u (1), u ( 2 ),... u ( k − 1), u( k ) and
y ( 0 ), y (1), y( 2 ),... y ( k − 2 ), y( k − 1) respectively. Since the current output depends on the past values,
the difference equation can be expressed as a function of the form
y ( k ) = f ( u( 0 ), u(1),... u ( k ):: y( 0 ), y (1),... y( k − 1) ) (2.37)
If we assume that the function f is linear and depends only on immediate past values, then the
Eq. 2.37 can be reduced to,
y ( k ) = u( k ) + y ( k - 1) (2.38)
or, y ( k ) - y( k - 1) = u( k ) (2.39)
2.13 Z-TRANSFORMATION
In analogy to how the Laplace Transform is used to solve differential equations, the Z-transform is
used to solve difference equations. The Z-Transform is used to take discrete time domain signals into
a complex-variable frequency domain. Like the Laplace transform, the Z-Transform opens up new
ways of solving problems and analyzing systems in the discrete domain. It transfers discrete time
domain signals into algebraic equations which, in many cases, helps the solution of problems.
Let the known discrete sequences be ... x ( − k ), x (1 − k ),... x ( 0 ), x (1),... x ( k ),... . Then, mathe-
matically, the Z-Transform of the sequence x(k) is defined as,
¥
Z x ( kT ) = X ( z ) = å x ( k )z -k (2.40)
k =-¥
where, -¥ < k < +¥ , z is a complex variable. T is the sampling frequency. This is a two-sided
Z-transform. The governing equation for one sided Z-Transform is,
¥
X ( z ) = å x ( k )z-k (2.41)
k =0
The Z-Transform is only defined for values of z where the series converges.
As an example, if x ( 0 ) = x (1) = x ( 2 ) = x (3) = x ( 4 ) = x ( 5) = 1 , and x ( k ) = 0 for all other
sequences, then the Z Transform of the sequence becomes,
X ( Z ) = 1 + z -1 + z-2 + z-3 + z -4 + z -5
57
Signal Theory and Engineering Tools
Z -1 X ( z ) =
1
j2p z
C
X ( z ) z k-1dz (2.42)
where, C is a closed contour that includes z = 0. The inverse Transform is obtained by visual
inspection or partial fraction method.
Linear property The Z-Transform is a linear transform, Consider a linear discrete system, x(k)
defined by,
x ( k ) = ax1 ( k ) + bx 2 ( k ) (2.43)
Where, a and b are constants. Now if X1(z) is the Z-Transform of x1(k) and X2(z) is the Z-transforms
of x2(k), for all values of a and b
X ( z ) = aX1 ( z ) + bX2 ( z ) (2.44)
Time-shift property Let us define a time series x(k), which is a time-shifted series of y(k), i.e.,
x ( k ) = y ( k - k0 ) . The Z-Transform of this time-shifted series becomes,
¥ ¥
X ( z ) = å x ( k ) z -k = å x ( k - k 0 ) z -k
k =0 k =0
¥ ¥
= å x (q )z -( q+k0 ) =Z -k0 å x ( q ) z-q (2.45)
k =0 k =0
- k0
=z X( z )
Z-Transform of impulse function:
¥
X ( z ) = Z d( t ) = å x ( k )z-k = 1´ z 0 = 1 (2.46)
k =0
Z-Transform of unit step:
¥ ¥
z
X ( z ) = Z u( t ) = å x ( k )z -k = å z-k = (2.47)
k =0 k =0 z -1
Z-Transform of a k:
∞ ∞
z
X (z) = Z a k = ∑ x (k )z − k = ∑ a k z − k = 1 + az −1 + a 2 z −2 + ... =
z−a
(2.48)
k =0 k=0
Table 2.2
Z-Transform table
Sl. No. Function Z-Transform
1 d (k) 1
z
2 1(t) or 1(kT)
z -1
zT
3 t or kT
( z 2 - 2 z + 1)
z ( z + 1)T 2
4 t 2 or (kT)2
( z -1) 3
z ( z 2 + 4 z + 1)T 3
5 t 2 or (kT)3
( z - 1) 3
z
6 ak
z -a
za
7 ka k
( z - a) 2
za( z + a)
8 k 2a k
( z - a)3
a
ak
9 ez
k!
z2
10 ( k + 1)a k
( z - a) 2
( k + 1)( k + 2 ) k z3
11 a
2! ( z - a)3
z
12 a–at or a –akT
z - e aT
ze -aT T
13 ta–at or kTa–akT
( z - e aT ) 2
z sin( w0 T )
14 sin(w0 t) or sin(w0 kT ) 2
z - 2 z cos( w0 T ) + 1
Contd.
59
Signal Theory and Engineering Tools
ze -aT sin( w0 T )
16 e–at sin(w0 t) or e–akT sin(w0 kT )
z - 2 ze -aT cos( w 0 T ) + e-2 aT
2
z[ z - e- aT cos( w0 T )]
17 e–at cos(w0 t) or e–akT cos(w0 kT )
z 2 - 2 ze -aT cos( w 0 T ) + e-2 aT
Example 2.4 Find the Z-Transform of sinusoidal function, sin w0 t and cos w 0 t .
1 L z sin w T O
j 2 N z - 2 z cos w T + 1 PQ
M 0
= 2
0
By similar approach the Z-Transform of cosine function, cos w 0 t can also be obtained.
X ( Z ) = Z cos( w 0 t ) =
LM z 2 - z cos w 0 T OP
Nz 2
- 2 z cos w0 T + 1 Q
Example 2.5 Find the inverse Z-transform, x(k) of the following.
2z
X ( z) = 2
z - 0.7 z + 0 .1
2z 2z
Solution X ( z) = 2
=
z - 0.7 z + 0.1 ( z - 0.5)( z - 0.2)
2
Let, Y ( z ) =
( z - 0.5)( z - 0.2)
Then, by partial fraction Y(z) can be written as,
2 A B
= +
( z - 0.5)( z - 0.2) ( z - 0.5) ( z - 0.2)
This gives, 2( z - 0.5)( z - 0.2) = A( z - 0.2) + B( z - 0.5)
60
Mechatronics: Principles, Concepts and Applications
¥ ¥
Z x ( k + 2) = å x ( k + 2 ) z-k = å x ( k ) z 2-k
k =0 k =2
¥ ¥
= å x (k )z -k z 2 = Z 2 å x ( k )z -k - x ( 0 )z 2 - zx (1)
k =2 k =0
2 2
= z X ( z ) - z x ( 0) - zx (1)
Z 2 x ( k + 2 ) + 5 x ( k + 1) + 6 x ( k ) = Z [ 0] = 0
Substituting the values in the above equation, we have,
Z 2 X ( z ) - z 2 x ( 0 ) - zx (1) + 5 zX ( z ) - zx ( 0 ) + 6 X ( z ) = 0
Þ z 2 X ( z ) + 5zX ( z ) + 6 X ( z ) = 2 z
61
Signal Theory and Engineering Tools
Þ X ( z) = 2z
= 2z
=2RSz
- z UV
z 2 + 5z + 6 ( z + 3)( z + 2 ) T
z+2 z+3 W
LM RS z - z UVOP
Z -1 X ( z ) = Z -1 2
N T z + 2 z + 3 WQ
Þ x ( k ) = 2(-2 ) k - 2(-3) k k = 0, 1, 2, ..................
or,
x(0) = 0
x (1) = 2
x ( 2) = -10
x ( 3) = 38
x ( 4 ) = -130
...............
So on
If v(t) is a periodic signal, then the normalized power P of the signal is given by,
62
Mechatronics: Principles, Concepts and Applications
T0
P=
1
T0 z
0
v ( t ) 2 dt (2.51)
Table 2.3
The transforms and their major application domains
Transforms Application domain
Fourier Transform (FT) Applied to continuous (analog) signals to reveal
amplitude, frequency and phase information.
Discrete Fourier Transform (DFT) Applied to discrete signals to reveal amplitude,
frequency and phase information.
Continuous Wavelet Transform (CWT) Applied to continuous (analog) signals to reveal
amplitude, frequency, phase and time of occurrence of
frequency information.
Discrete Wavelet Transform (DWT) Applied to discrete signals to reveal amplitude,
frequency and phase information.
Laplace Transform Applied to solve linear differential equations
Z-Transform Applied to solve difference equations
in response to the intensity of the given signal, keeping the width of the pulse constant, then it is
referred to as PAM modulation. Similarly, if the width of the pulse is varied in response to the intensity
of the given signal, keeping the amplitude of the pulse constant, then it is referred to as PWM
modulation.
Amplitude
Amplitude
B2
B1
B0
Time
B3
Amplitude C2
C0 µ B0 (C0 = A)
PAM signal
C1 µ B1
C1 C2 µ B2
C3 µ B3
C0
C3
Time
Amplitude
PWM signal
t1 tx ty tz
t x µ B1 ty µ B2 tz µ B3 Time
Fig. 2.19 (a) Constant-amplitude constant-width pulsed signal; (b) Typical modulating
signal; (c) PAM signal (Amplitude is proportional to the intensity of the
modulation signal); (d) PWM signal (Width is proportional to the intensity of the
signal)
64
Mechatronics: Principles, Concepts and Applications
Theoretically, a PWM signal is a signal that can be generated by varying the on-off ratio, called
duty cycle, of a rectangular or square wave. The average on time may be varied from 0 to 100
percent. By doing this, a variable amount of power can be generated and can be transferred to an
electrical load. PWM draws special attention as far as automation and control is concerned. PWM is
employed in a wide variety of applications, ranging from measurement and communications to power
control and conversion. One such application is to control the speed of DC motors. Traditionally, the
speed can be controlled (see Chapter 8) with a variable resistor connected to the motor winding.
While this traditional approach works well, it generates heat and hence wastes power. PWM based
speed control strategy eliminates these problems. It controls the motor speed by driving the motor
with PWM signal. The PWM pulses vary in duration to change the speed of the motor. The longer the
pulses, faster the motor turns.
This chapter began with the basic concepts in signal, their generations and types. These
concepts deal with the analysis and processing, their representation in time and frequency
domain for different types of continuous and discrete type of signals. Based on these concepts,
different transformations were illustrated. The illustration included examples such as gate
function, differential equation and difference equations. Similarly, the concepts of wavelet
transform with its superiority were illustrated. In addition, topics related to modulation and de-
modulation, were examined.
66
Mechatronics: Principles, Concepts and Applications
LOOKING AHEAD
The study of signal theory and engineering tools is considered as the first step to acquiring
knowledge on mechatronics discipline. The importance of signal theory and engineering tools
is noteworthy from various perspectives such as representation, identification, design, modeling
and simulation. The usefulness of this study will be reflected in rest of the chapters wherever
necessary.
EXERCISES
2.17 Find the Fourier transform of a rectangular pulse of width T located at the origin.
2.18 Find the exponential Fourier Series of the sawtooth wave shown in Fig. 2.20.
ωt
ωt
2π 4π 6π
Fig. 2.20 q
2.36 Discuss the application domain of Z-Transform, from engineering point of view.
2.37 Write the equation to Z-Transform and define the terms.
2.38 Find out the Z-Transform of the following functions.
· Impulse function
· a k and e–at
· Unit step function
2.39 Write down the properties of Z-Transform.
2.40 Give comments on DFT and Z-Transform.
2.41 Find the inverse transform of
4 z 2 - 27
F(z ) =
( z - 1)( z - 2 ) 2
2.42 Write down the equations that govern power and energy of a signal respectively.
2.43 Define modulation and demodulation.
2.44 Write short notes on
· Amplitude modulation
· Angle modulation
· Analog modulation
· Digital modulation
· Pulse Amplitude Modulation
· Pulse Width Modulation
2.45 Enlist the transformations and their major application areas.
2.46 Abbreviate the following:
FT STFT WT FM AM PWM
DFT FFT IDFT IWT
2.47 Determine whether the following signals are periodic and hence determine the period of such
signal.
(i) x(n) = cos(n/8).cos(pn/8)
(ii) x(n) = 2exp[j(n/6–p)]
2.48 Determine the convolution of the following pairs of signals.
x1(n) = (0.25) u(n–1), x2(n) = [(1.5) u(n)
2.49 Compute the response of the system.
Y(n) = 0.7y(n–1) – 0.12 y(n–2) + x(n–1) + x (n–2) to the input x(n) = n.u(n).
Is the system stable?
2.50 Describe one algorithm for Fast Fourier Transformation along with the associated butterfly
diagram for computing a 8-point DFT. Compare the number of multiplications necessary in
FFT method with that in direct computations. Use above algorithm to compute the DFT of the
sequence {4, 0, 6, 2, 3, 1, 8, 2}.
2.51 Determine the impulse response. Show that this impulse response can be expressed as the
product of cos(n.p/4) and the impulse response of a low pass filter.
3
Electrical Components and
Electronic Devices
3.1 INTRODUCTION
In order to deal with the signal conditioning circuits to be presented in Chapter-6, it becomes
necessary to look at the basics of electrical components and electronic devices. At this point, it can be
said that the signal conditioning circuits are the electronic circuits that are usually interfaced at the
output of the transducers (Transducers are the devices that convert the equivalent electrical signal of
the physical parameters such as temperature, pressure, magnetic field, etc.) and even at the
intermittent stage where there is a need to condition the signal.
In the following section, the basics and theory of electrical components and electronic devices are
presented. The three basic electrical components are resistors, inductors and capacitors and
commonly used electronic devices are diodes, transistors, SCR, Triac etc. This Chapter depicts the
characteristics and principle of operations of these basic components and devices.
3.2.1 Resistor
For most materials, there is a relationship between the potential difference (voltage) applied across
two points of the material and the current generated. The relationship is linear in most of the materials.
The constant of proportionality between the potential difference and the resulted current is called the
resistance, which is defined through Ohm’s law:
V = RI (3.1)
where V is potential difference in volts, I is current in amperes, and R is resistance in volts per ampere
known as Ohm, or simply W. The material possessing resistance is called a resistor. The symbol of a
resistor is shown in Fig. 3.1.
R
X X
Resistance is proportional to the length and inversely proportional to the cross-sectional area of the
material as shown in the Eq. 3.2. Mathematically,
l
R=r (3.2)
A
where, r is defined as resistivity, in Ohm-meter (W – m), which is simply the resistance per unit length
times cross-sectional area. A is the cross-sectional area of the material through which the current
flows, in meter squared (m2 ) and l is the length of the material, in meter (m). Normal conductors have
resistivities as low as 10 – 8 Ohm-m. Materials with resistivities higher than 108 Ohm-m are insulators.
These include glass, rubber, and many plastics. Exceptional insulating materials show resistivities as
71
Electrical Components and Electronic Devices
high as 1016 Ohm-m. Typical resistivity of semiconductor materials is in the order 10 6 Ohm-m. The
inverse of the resistivity is called conductivity.
1
s= (3.3)
r
Where, s is the conductivity of the material. Conductors such as copper, aluminium, and gold have
low resistance to the flow of electric current, i.e., they have high conductivity. Insulators such as
mica and glass have high resistance to the flow of electric current i.e., they have poor conductivity.
And semiconductors such as Silicon, Germanium, and Gallium Arsenide have resistance in between
conductors and insulators, i.e., they have moderate conductivity.
Resistivity is a function of temperature. The relationship has been shown in the Eq.(3.4)
r( T ) = r(1 + aDT ) (3.4)
where, T is temperature, DT is the change in temperature, a temperature coefficient of resistance,
which is positive in case of metal and negative in case of semiconductor.
In a metal, at the atomic level, currents are pictured as the flow of the conduction band electrons.
Resistance then results from collisions of electrons with other free electrons as well as with immobile
atoms.
Superconductivity is defined as zero resistance of certain materials at a temperature at or below
absolute zero. Kamerlingh Onnes discovered the phenomenon in 1911, but a major breakthrough
occurred in 1986.
Resistances connected in series and parallel are given in Fig. 3.2 (a) and (b), respectively. The
equivalent resistances of series and parallel configurations can be calculated using Eqs. (3.5) and (3.6)
respectively.
R1 R3
X X
R4 R1 R2 R3 R4
R2
Y Y
(a) (b)
Example 3.1 Find the equivalent resistance across X and Y of the following connections.
Calculate the current, I through the resistor that connects the point B and C, when a potential
difference of 10 volts DC, is applied across X and Y, with X terminal positive. The value of R is
10 kW.
I
X A B C D
X
R R R
2R 2R 2R 2R 2R
Y
y1 y2 y3 y4 ys
Solution The above network is a useful network, usually called R-2R ladder network because of
the way they are connected. The R-2R network forms the basis for designing Analog-to-Digital
Converters (ADC). For more information see Chapter-6. Refer following figure, which has been
redrawn for understanding.
Now, looking towards right across the point D and y5, the resistance is just 2R. Looking towards
right across the point C and y4, the equivalent resistance, Req_1 becomes,
1 1 1
= + Þ Req_1 = R
Req_1 2R 2R
Since the connection is parallel. This equivalent resistance, being value R, is now in series with the
resistance that has been connected from the point B and C, being value R, and gives rise to a value,
which becomes 2R.
Similarly, looking towards right across the point B and y3, the equivalent resistance, Req_2 becomes,
73
Electrical Components and Electronic Devices
1 1 1
= + Þ Req_2 = R
Req_2 2R 2R
By similar approach, i.e., as you move towards left looking towards right, you find that the value of
equivalent resistance across X and Y becomes, R only.
Current, I: The applied voltage is 10 volts DC, with X positive. Since X is positive, the current
flows from B to C as shown. Moreover, since the equivalent resistance of the entire network is R,
the current into the network becomes,
V 10
I eq = = 4 = 10-3 Amp.
R 10
Note that Req_3, which is simply R, is in series with the resistor that has been connected from x and
A, and gives rise to a resistance of value 2R. Therefore, the equivalent current, Ieq gets divided into
two halves at the point x, a half would flow through xy1 and the rest half would flow through xA.
Similar situation would occur at the point A and B, i.e., the current would be divided into two
halves. Thus the current, I becomes,
10-3
I= = 1.25´10-2 Amp.
8
3.2.2 Inductors
Purpose-made conductor coils are called inductors. The symbol of an inductor is shown in Fig. 3.5.
When a good conductor with low resistance to current is purposefully turned into coils of different
types the characteristics of the original conductor changes in response to an alternating current (AC)
signal. Inductors are the basic building blocks of electrical actuators (e.g., motors), transformers,
tuned circuits, LVDT (Linear Variable Differential Transformer) transducers, oscillators, delay lines,
and so on.
L
X Y
When current i flows through it, an electromagnetic field is established. The electromagnetic lines
of force surrounds the conductor. Since the conductor has been wound into many turns the magnetic
lines of force becomes concentrated. When the current changes, the electromagnetic field changes
accordingly and the changing electromagnetic field causes an induced voltage in a direction in opposite
to the flow of current. This property is referred to as inductance. Inductance is thus the property of
a coil of wire that opposes a change in current. The magnetic flux through the coil is proportional to
its own current. This makes it convenient to define the inductance to be
NF
L=k (3.7)
i
where, L is the inductance expressed in Henery, F is the flux (Weber) through one of the turns of the
coil and N is the number of turns of wire in the coil. k is a constant and its appearance is due to the fact
74
Mechatronics: Principles, Concepts and Applications
that the inductance of a coil depends on its geometry and the material property. For instance, the
inductances of the coil shown in Fig. 3.6 is given by the following equation.
mN 2 A
Lcoil = (3.8)
l
where, m is the permeability of the material through which the magnetic flux passes, N is the number
of turns present in the coil and l is the length of the coil-turn as shown.
N turns
The equation governing the relationship between the rate of change of current and the induced
voltage is expressed as follows:
di
-v = L (3.9)
dt
where, v is the induced voltage in volts, i is current in amperes and L is inductance. The negative sign
in Eq. (3.9) indicates that the current and voltage are opposite to each other. Current lags behind the
voltage.
Inductors store energy, and the stored energy, x is given by the formula,
1
x = Li 2 (3.10)
2
The Q of an inductor is the measure of inductiveness of the coil. This parameter expresses the
quality or merit of the inductor. A higher value of Q is desirable. Although it is possible to achieve Q
on the order of 1,000 or so, in practice, an inductor has Q values that are less than 100 when used
within its operational frequency ranges. Like resistors, inductors connected in series add together
(Refer Eq. 3.5) and those connected in parallel use the similar formula as expressed for resistor in
Eq. 3.6.
3.2.3 Capacitors
A capacitor is another type of energy storage passive component and is one of the important circuit
element. The term capacity derives from the dictionary meaning in the sense that “what is the capacity
75
Electrical Components and Electronic Devices
of the surfaces in holding the electrical charges.” The fundamental property of a capacitor is that it
stores charge and hence electric field energy. Capacitance C between two surfaces is the charge per
unit voltage.
q
C= (3.11)
v
Representing charge in terms of current, the relationship between voltage and current in a capacitor
can be expressed as derived below. From Eq. (3.11),
q
v=
C
dv 1 dq
Þ =
dt C dt
dq dv 1 1
Since, i = , we have, = i Þ dv = idt
dt dt C C
1
Therefore, v=
C z
idt + v( 0 ) (3.12)
C
Surface-1
Dielectric material
Surface-2
Y
Electrode-2
The equivalent capacitance of a series combination is always less than any individual capacitance in
the combination and can be expressed using the following equation.
1 1 1 1 1
= + + ................... (3.15)
Ceq_ parallel C1 C2 C3 Cn
On the other hand, the parallel connection adds up all the individual capacitances:
Ceq_ parallel = C1 + C2 +.................... Cn (3.16)
A capacitor does not allow to pass DC current. Some capacitors (electrolytic) are asymmetric
components in the sense that they have polarity terminals and therefore must be connected in a
definite way. The capacitance in a circuit is typically measured in micro (10–6) or picco (10–9) Farad.
Inductance Frequency
(a)
Capacitance Frequency
(b)
Fig. 3.8 (a) Inductive reactance versus inductance and frequency curve; (b) Capacitive
reactance versus capacitance and frequency curve
Reactance and resistance in combination are defined as impedance, Z, which is a complex number.
The impedance can be inductive and capacitive, given in the Eq. (3.19a) and Eq. (3.19b).
Z L = R + jX L (3.19a)
Z C = R - jX C (3.19b)
where, ZL is inductive impedance; ZC is capacitive impedance and R is the value of the resistance. As
can be seen that the inductive reactance is assigned positive imaginary number values, capacitive
reactance is assigned negative imaginary number values. Since reactance is a function of frequency,
so is the impedance. However, purely resistive impedance, i.e. when the impedance contains neither
inductive nor capacitive components, does not vary with frequency.
The operator +j and – j in the Eq. (3.19) bear significant meaning in Laplace domain. In Laplace
domain, +j signifies derivative action and – j signifies integral action. A derivative action and integral
action are the multiplication and division of ‘s’ in the Laplace domain, respectively. Eq. (3.19) can be
therefore, written as follows:
Z L = R + sL (3.20a)
1
ZC = R + (3.20b)
Cs
The usefulness of the above form of description of impedance is important in the field of circuit
analysis. Laplace domain is the preferred choice for problem solving.
78
Mechatronics: Principles, Concepts and Applications
Equivalent impedance in series and parallel connections can be calculated by using the formula
shown in the Eqs (3.21) and (3.22).
Z eq_series = Z1 + Z2 +............. Zn (3.21)
1 1 1 1
= + +.......... (3.22)
Z eq_ parallel Z1 Z2 Zn
Example 3.2 In the following Fig 3.9, calculate the impedance of the following circuit across
XZ.
L1 R
C
X Y Z
L2
+
V
−
I
Solution L1 and R are in series, and are added, giving rise to impedance (in ‘s’ domain)
Z1 = R + L1s
Now, Z1 is in parallel with L2. The impedance corresponding to second inductor, L2 is L2s. So the
impedance across XY becomes,
1 1 1 L2 s ( R + L1s )
= + Þ Z2 =
Z2 R + L1s L2 s R + L1s + L2 s
The impedance corresponding to the capacitor, C is 1/Cs. Now, Z2 and Z3 are in series. The
impedance across XZ becomes,
L2 s ( R + L1s ) 1 R + ( L1 + L2 )s + L2 Cs 2 ( R + L1s )
Z = Z2 + Z3 = + =
R + L1s + L2 s Cs Cs ( R + L1s + L2 s )
voltage and current in circuit. A circuit consists of electronic devices such as transistors, resistors,
capacitors, and diodes connected by conductors so that current can run through it in a complete loop.
Circuits can be simple or complex, depending upon the way the components and devices are
connected. The conductors connecting a switch to a light to the power source and back to the switch
is a simple circuit. The switch breaks the circuit and stops the current flow, when opened. Even a
semiconductor IC (chip) is simply an extremely complicated network of circuits. In fact, the circuits
have been designed to do one of three things:
· Stop the flow of electrons
· Start the flow of electrons
· Control the amount of flow of electrons
semiconductor. Similarly, if an accepter atom having three valence electrons is added into the pure
semiconductor material, the result is that a shortage of electron is encountered as far as completion of
bond between the semiconductor atom and the acceptor atom is concerned. This shortage or absence
of electron is defined as a hole.
Doping is an important process, which determines the concentration of the excess electrons or
holes. Doping process provides interesting and useful properties as far as design, development and,
indeed, fabrication of electronic devices are concerned. If the donors are added, the intrinsic
semiconductor becomes n-type semiconductor and if the acceptors are added it becomes p-type
semiconductor. n-type semiconductor materials have loosely-attached free-electrons and p-type
semiconductor materials have loosely-attached free-holes. The electrons and holes, in the respective
extrinsic semiconductors, are called the charge carriers. When a potential difference is established
across the material, the loosely-attached excess electrons and the hole will flow to the appropriate
terminal. That is, in n-type the electrons will move from negative terminal to the positive terminal of
the applied voltage and in p-type the holes will flow from +ve terminal to the –ve terminal of the
applied voltage. In a semiconductor the current is contributed by both electrons and holes. In n-type
material electrons constitute majority charge carriers, while in p-type materials holes constitute
majority charge carriers. p stands for positive, signifying that a hole is a positive charge carrier, which
is simply opposite to that of electron. Figure. 3.10 depicts the flow of charge carriers and their
direction with respect to applied voltage.
At zero degree Celsius, if a potential difference across the two terminals of an intrinsic
semiconductor bar is established in the manner as shown in Fig. 3.10 (a), (i.e. A is connected to +ve
and B is connected to –ve terminal of the applied voltage), no current will flow. However, if
temperature increases, say up to the room temperature, some of the valence electrons in the valence
band may get sufficient thermal energy to come up to the conduction band, constituting a current that
flows through the bar. In practice, several electrons become available in the conduction band due to
the rise in temperature, which in turn allows more electrons to produce giving rise to more current to
flow when a potential difference is applied across it. This justifies that the semiconductor is having
the property of negative temperature of resistance. That is, as temperature increases the resistance
decreases. When an electron becomes available at the conduction band after leaving the valence band,
a hole is created in the valence band. When a potential difference is established across the material, the
current through a intrinsic semiconductor material is not only due to the electrons alone, rather the
current is due to both electrons and holes. Holes flow opposite to the direction of the flow of electrons
(Fig. 3.10 (a)).
When a potential difference is established across a p-type semiconductor (Fig. 3.10 (b)), the holes
are being attracted by the negative terminal of the voltage source. So it should have been expected that
the current is due to holes only. However, as before, at room temperature, some of the electrons are
generated because of the thermal effect. The electrons thus generated by this effect becomes minority
carriers, due to the fact that the holes have already been signifying majority carriers in a p-type
material. In deed, the number of majority carriers are much more than the minority carriers. These
minority carriers contribute a small current when a potential difference across the bar is applied. The
current contributed by the minority carrier is opposite to that of the current contributed by the majority
carriers (holes). Similarly, in an n-type material, the electrons become the majority carriers and the
holes generated by thermal energy constitute minority carriers.
81
Electrical Components and Electronic Devices
In the extrinsic semiconductor, all dopant atoms display themselves as immobile ions.
Fig. 3.10 (a) A typical semiconductor bar; (b) p-type semiconductor; (c) n-type
semiconductor
n-type material has low concentration as far as holes are concerned. The hole-electron pairs currently
in the process of diffusion combine with each other and get lost leaving immobile ions (Dopants atom
within the semiconductor piece) alone. The immobile ions are now uncovered. The diffusion process
causes continuous increase of potential gradients across the junction due to the appearance of more
uncovered immobile ions. As a result p-side becomes negative and n-side becomes positive. The
gradient called the potential barrier, will continue to increase and after certain time it becomes
sufficient enough which makes it possible to repel the carriers. As a matter of fact further flow of
carriers can not be possible, and a layer called depletion layer is formed. A depletion layer is a layer in
which the charge carriers are absent as shown in Fig. 3.11(a). The symbol of a junction diode is
shown in Fig. 3.11(b).
If the p-side is connected to the positive terminal of a voltage source and the n-side to the other
terminal of a diode, the connection is called a forward-biased p-n junction, and if the connection is
reversed, then it is called a reverse-biased p-n junction. The forward-biased and reverse-biased
connections and their respective volt-ampere (V-I ) characteristics are shown in Figs. 3.11 (a)-(b)
and Fig. 3.11 (c)-(d) respectively. The point to be noted here is that in the forward-biased condition
(Refer to Fig. 3.11 (a)), there should not be any junction current (diode current) up to a voltage VT ,
called the threshold voltage, which is equal to the potential barrier that has been developed across the
83
Electrical Components and Electronic Devices
junction at the time of fabrication. The current then increases reasonably sharply as voltage increases
beyond VT. Therefore, at least a potential difference of amount VT is required in order to activate the
junction in a forward direction. An ideal diode has VT = 0, zero forward resistance and infinite
resistance in reverse directions, respectively.
In the reverse-biased condition, on the other hand, the current is approximately zero since the
external voltage source further enhances the potential barrier across the junction which in turn does
not allow the majority carrier to flow. The small current I0 (Refer to Fig. 3.12 (d)), is only due to the
existence of minority carriers (i.e. due to electrons in p-side and holes in n-side). The presence of
minority carriers is due to thermal energy supplied by the environment. This current, I0, is called a
reverse saturation current.
Forward-biased p-n junction diode Reverse-biased p-n junction diode
+ - - +
(a) (b)
Current in mA Current in mA
Vb I0
Voltage in volts
VT Voltage in volts
(c) (d)
Fig. 3.12 (a) Forward-biased connection; (b) Reverse-biased connection; (c) Junction
diode volt-ampere (V-I) characteristics in case of forward biased condition;
(d) Junction diode volt-ampere (V-I) characteristics in case of reverse biased
condition
The behaviour of a junction diode is such that it offers a low resistance to electric current in one
direction and a high resistance to it in the reverse direction. This property is a requirement in the
context of signal manipulation and processing. The current equation in the diode is given by the
following formula:
qV
F
I = I Ge kT -1
I (3.23)
0
H JK
84
Mechatronics: Principles, Concepts and Applications
where, I is the diode current, q is charge of the charge carriers, k is a constant, V is the applied
voltage and T is temperature in degrees Kelvin.
Semiconductor diodes can be designed to have a variety of applications. The depletion layer of a
junction diode plays an important role as far as application domains of diodes are concerned. Desirable
depletion layers are fabricated, which basically depends on the following factors such as:
· The type of semiconductor materials (silicon, germanium, or others) used
· The amount of doping (doping is the process of adding impure material to the semiconductor.
This in turn determines the concentration of majority carriers hence the width of the depletion
layer)
· The relative volume of p- type and n-type material
Based on above factors the depletion layer and hence the characteristics of the diode (Shown in
Figs. 3.11 (c) and (d)) can be modified in order to obtain different types of application-specific
junction diodes. Some of the important application-specific diodes are Zener diodes, Varactor diodes,
Tunnel diodes, Gunn diodes, Light Emitting Diodes (LED) and Photodiodes.
Zener diode When the voltage applied in the reverse direction exceeds a certain value, the junction
of the semiconductor diode breaks down and it conducts heavily. This voltage is known as the
reverse breakdown voltage. When the reverse voltage at which breakdown occurs remains nearly
constant for a wide range of currents, the phenomenon is called avalanching. This property is
exploited in designing a special type of junction diode called a Zener diode. The output voltage of a
Zener diode is constant. The Zener diode can be used to stabilize the voltage in a circuit.
Varactor diode Another type of junction diode called a varactor that exploits the depletion layer
in terms of a parallel plate capacitor, whose capacitance is controlled by applying reverse voltage
across junction diode. In practice the reverse voltage controls the width of the layer which in turn
controls the value of capacitance because the capacitance across the junction is inversely proportional
to the width of the depletion layer (Fig. 3.13 (a)). The varactors are also called varicaps and are useful
for designing VCO (Voltage controlled Oscillator), FM (Frequency Modulator) modulators and
demodulators and also are used to design tuning circuits.
Tunnel diode In another kind, the tunnel diode, the current through the device decreases as the
voltage is increased within a certain range (Fig. 3.13 (b)). This property is known as negative
resistance and makes it useful as switch and oscillators. Gunn diodes are mostly used for high
frequency applications like microwave applications.
Photodiode Light-sensitive or photosensitive diodes can be used to measure intensity of radiation
and illumination (More details in Chapter 5).
LED A light-emitting diode (LED) produces light as a current passes through it. Some LED devices
act as the light source of lasers. They are commonly used as sensory and display devices (More
details in Chapter 5).
In general, junction diodes are referred to as rectifiers because when an alternating signal (voltage
or current) say a sinusoidal or rectangular signal is applied as shown in Fig. 3.14 (assuming ideal
diode) the output would be a signal containing only positive half-cycles.
85
Electrical Components and Electronic Devices
Capacitance Current
Negative
coefficient of
resistance
Fig. 3.13 (a) Characteristics of Varactor diode; (b) That of Tunnel diode
+
+ Diode
Input Output
-
Common terminal
called GROUND
(Common to both input and output)
Amplitude
(a) Amplitude
Time
(b) (c) Time
Amplitude Amplitude
Time Time
(d) (e)
Fig. 3.14 (a) A rectifier circuit using diode; (b) A square wave signal; (c) Rectified output
corresponding to square wave signal (d) A sinusoidal signal (e) Rectified
output corresponding to sinusoidal signal
86
Mechatronics: Principles, Concepts and Applications
E E
(c) (d)
E C
n-p-n
C C
Input
B B
n-p-n Output n-p-n Output Input Output
B
Input
E E
Fig. 3.15 (a) A p-n-p transistor (b) An n-p-n transistor (c) The symbol of a p-n-p
transistor (d) the symbol of n-p-n transistor (e) The common emitter
configuration of an n-p-n transistor (f) the common collector configuration of an
n-p-n transistor (g) The common base configuration of an n-p-n transistors
87
Electrical Components and Electronic Devices
The geometry of a real transistor is very different from those shown in the Fig. 3.15. Essentially,
the base section is narrower or thinner as compared to emitter and collector. There are two junctions
called the emitter junction (JE) and the collector (JC) junction. Each junction can be treated individually
like a junction diode, but when operated in combination (as is obvious) they take on very different
characteristics. The three sections constitute the three terminals of the transistor. The intended design
of two junctions comes from the fact that the three terminals can be configured in three different
ways—what are being called the common-emitter configuration, the common-base configuration, and
the common-collector configuration. Two terminals out of three are used as input and two terminals
out of three are used as output. Since the transistor has only three terminals, one terminal must be
common to both input and output as shown in Fig. 3.14 (c). In most of the applications, the emitter
junction is made forward biased and the collector junction is made reverse biased.
The above transistors are called bipolar junction transistors (BJT) since two types of majority
carriers (electrons and holes) are involved as far as constitution of transistor current is concerned.
The transistor characteristics for the above three configurations can be studied by conducting
experiments.
First consider the common-emitter configuration with an n-p-n transistor. In order to operate JE
forward biased and JC reverse biased, the emitter terminal must be negative and the collector terminal
must be positive with respect to the base terminal. Once this condition is established, experiments in
terms of observing the output current, IC (collector current) with respect to the collector to emitter
voltage, VCE for a fixed value of emitter to base voltage, VEB (more accurately, for a fixed value of
base current, IB) can be performed. The curve thus obtained is called the output characteristics of a
transistor in common-emitter configuration mode. A set of curves can also be obtained (i.e., VCE
versus IC) for different values of IB. The output characteristics of a typical transistor have been
shown in Fig. 3.16 (a). The number of curves is exactly equal to the number of times the experiment
has been performed. Figure 3.16 (a) shows the output characteristics curves based on three
experiments (i.e., for three different values of IB). If the variation of input parameter (i.e., IB) is
extremely small and if the number of experiments conducted is large, the output characteristic curves
will be very close to each other as illustrated in Fig. 3.16 (b). Geometry of the shadow area differs
from transistor to transistor (marginally, since all are transistors anyway) and from configuration to
configuration (significantly).
The shadow portion of this figure actually provides much information about the characteristics of
the transistor. The whole quadrant can now be divided into three regions, which are called the active
region, the saturation region, and the cut-off region. Each point in the quadrant is called an operating
point or Q-point of the transistor (remember, we are only discussing common emitter configuration).
The characteristic plot of the transistor plays a very important role in the sense that looking at it the
designer has now enough clues to set up the base current, collector-emitter voltage, etc. in order to
meet his/her design requirements. For example, for simple amplification purposes the transistor must
be operated within its active region. A proper Q-point can be determined from the shadow portion so
that the transistor by no means should be driven to the cut-off or saturation region. If the transistor is
to be used as a switch, a suitable Q-point must be chosen from the saturation region.
88
Mechatronics: Principles, Concepts and Applications
IC In mA IC In mA
IB3 in mA
ion
IB2 in mA
reg
tion
IB1 in mA
ACTIVE REGION
ura
Sat
IB3 > IB2 > IB1
Cut-Off region
VCE In volts VCE In volts
(a) (b)
From the above discussion it can be concluded that the collector current is the sum of the emitter
current and the base current. Mathematically it can be written as,
IC = I E + I B (3.24)
In a particular transistor circuit, a small current that flows into the base controls a much larger
current that flow into the collector. In this respect two parameters have been defined: One is alpha, a,
called static forward-current transfer ratio, which is the ratio of collector current to emitter current,
and is always less than unity; Beta, b, called the direct current gain, is the ratio of collector current to
the base current and is a fairly high number, typically around 200. The relationship between a and b
is,
b= a (3.25)
1-a
The characteristic of a transistor is such that a small voltage change in the base-emitter junction
will produce large current change in the collector and emitter, whereas small changes in the collector-
emitter voltage have little effect on the base. A typical transistorized amplifying circuit is given in
Fig. 3.18.
Basically, in BJT the base current controls the collector current. For this reason the bipolar
transistors are called current-controlled devices. There are other types of transistors whose output
current can be controlled by input voltage and hence have the similar name of voltage-controlled
devices. A Junction Field Effect Transistor is a voltage-controlled device and it is unipolar since the
output current, called the drain current, is due to the flow of either electrons or holes.
90
Mechatronics: Principles, Concepts and Applications
+ Vcc
RL
Cc
R1 C
Ri Cb B
n-p-n VCE
VBE E
R2 Output
Input
RE
CE
conduction path. Therefore, the reverse-biased gate voltage can control the flow of carriers through
the channel.
Bipolar junction transistors have low input impedance small high-frequency gain, and are to some
extend non-linear. However, high input impedance is desirable for low power consumption. FET
overcomes this problem.
ID Drain (D)
Depletion layer
Depletion layer
n-channel
VDS
Gate (G)
P-type
p-type
VGS
n-type
Source (S)
ID
One of the important parameters of FET is the transconductance, which is considered as the circuit
design parameter. The parameter determines the gain of the FET-based circuit. The notation of the
transconductance is gm and is defined as the ratio of drain current to gate-source voltage. It is similar
to b of a bipolar transistors.
+
Emitter + R1 B2
p A - E
VB2B1 E
+ A
VEB1
n
- Vp R2
B1 B1
Base-1 Vp
B1
Characteristics VEB1
Ground Equivalent circuit UJT Symbol
The principle of operation of UJT is as follows. Temporarily, assume that VEB1 is zero (ground).
The point A is now positive with respect to Base-1 and hence with respect to the emitter. The p-n
junction of the equivalent diode will be in a state of reverse-biased condition since the n-type (cathode)
is positive with respect to the p-type (anode). Let the potential difference between point A and Base-
1 be VP. The diode will be in forward biased only if the emitter terminal (anode) voltage is slightly
greater than VP. If VEB1 is increased beyond VP the diode will conduct suddenly (Fig. 3.20 (d)). For
this reason VP is called the peak voltage, meaning the transistor conducts only when the emitter
terminal attends beyond the peak voltage. UJT exhibits a negative resistance characteristic as can be
seen from the V-I plot (Fig. 3.19 (d)). This switching feature can be exploited in designing oscillators,
which will be explained in Chapter 6.
3.3.7 SCR
SCR stands for Silicon Controlled Rectifier. SCRs are four-layered diodes (Fig. 2.21 (a)), and shows
negative resistance characteristics. It has three junctions and three terminals. The application of a
forward voltage VD is not enough for conduction since the junction J2 is reverse biased. A gate signal
can control the conduction of the rectifier.
93
Electrical Components and Electronic Devices
In the forward direction with an open gate (no signal at the gate terminal), the SCR remains in the
OFF state until the forward breakover voltage VB is reached. At that voltage, the current suddenly
increases and the SCR then behaves just like a forward-biased simple diode. By applying a small
forward gate voltage the SCR can be switched from the OFF state to the ON state. Once the gate
voltage turns it on, it remains ON even if the gate signal is removed and as long as a minimum current,
called the holding current Ih, is fed. The limitation of the SCR is the rate of rise of voltage with
respect to time. SCRs are used in inverter circuits, choppers, power switching, and phase control
applications. The reverse characteristics are the same as that of a normal diode having a breakdown
voltage.
SCR current
Anode
Anode
Forward conduction
p
J1 Reverse breakdown Forward breakover
voltage voltage
n
+
J2 VD
Gate p
-
Fig. 3.21 (a) Silicon Controlled Rectifier (b) SCR Symbol (c) The V-I characteristics
3.3.8 Triac
In SCR, the flow of current is controlled in one direction, however, it is possible to control the flow
in the other direction simply by including another SCR. The construction is such that the gate terminal
is shared by both SCRs. The device thus constructed is called a triac, which consists of three
terminal semiconductor devices for controlling current in either direction.
many drawbacks such as large size, high power consumption, more time involvement, unreliability,
increased material consumption, susceptibility to factory floor interference such as noise, vibration,
dust, etc., and so on. As circuit designs get bigger, it becomes difficult to build and interconnect a
complete circuit.
Therefore, there is a trend to build integrated circuits. For example, a typical voltage amplifier may
requires five discrete transistors and more than twenty discrete registers. Since the transistors and
resistors have been designed from semiconductor materials, an equivalent amplifier circuit can also be
manufactured from a single piece of semiconductor material. The semiconductor devices thus
fabricated and interconnected in order to meet specified circuit design requirements are referred to as
Integrated Circuits (IC). Several types of integrated circuits, such as amplifiers, operational amplifiers
(OPAMP), analog-to-digital converters (ADC), digital-to-analog converters (DAC), and input/output
(I/O) ports, are available in the technology marketplace. Modern circuits are highly integrated in the
sense that hundreds of thousands, or even millions, of transistors are fabricated and interconnected
on a single piece of semiconductor material. These are called Very Large Scale Integrated (VLSI)
circuits. Advances in IC technology over the years have led to the development of sophisticated and
powerful microprocessors, microcontrollers, memory chips, and the like. ICs are also of two types,
namely, analog and digital.
In summary, in the real world of automation and control we seldom deal with discrete devices.
Instead we rely on the integrated circuit, containing many devices configured properly to produce a
desirable output.
Positive supply
Inverting terminal _
Output
+
Noninverting terminal
Negative supply
Typical open-loop and closed-loop OPAMP circuit configurations are shown in Figs. 3.23 (a) and
(b). R1 is called the input resistor and Rf (in closed-loop configurations) is called the feedback resistor.
A capacitor, inductor or diode can be connected in place of resistor. For example, when Rf is replaced
by a capacitor the circuit will be converted to a low-pass filter (details in Chapter 6). Similarly, when
it is replaced by a diode the amplifier behaves as a logarithm amplifier. That is, the output is
proportional to the logarithm of the input.
(UTP) cable, a Shielded Twisted Pair (STP) cable, a coaxial cable, a fiber optic cable, an RF, etc.
These cables have been designed taking into account all of the above features. Basic knowledge on the
characteristics of different types of cable is necessary.
The Electronic Industry Association and Telecommunication Industry Association (EIA/TIA) has
defined standards for wires and cables. UTP cable is susceptible to radio and electrical frequency
interference. An STP cable is suitable for use in environments in which interference and noise are
dominant. A coaxial cable has a single copper conductor at its center that is covered with a plastic
layer. A braided (grill-like) metal shield covers the plastic layer, which helps to block such outside
interference as from fluorescent lights, motors, and other igniting systems. Coaxial cables are highly
resistant to signal interference. Fiber optic cable constitutes a center glass core surrounded by several
layers of protective materials. It uses a light signal rather than electrical signals, eliminating the
problem of interference. Fiber optic cable has the ability to transmit signals over much longer distances
and has high bandwidth compared to coaxial and twisted pair types. These are very much immune to
moisture, temperature, and lightning. A network can also be formed using air as the medium. In this
case, an electromagnetic wave is used instead of an electrical signal.
· The process of adding impure material is called doping and the impure materials involved in this
process are called dopants.
· The absence of electron is defined as a hole.
· Semiconductor is having the property of negative temperature of resistance.
· At least a potential difference of amount VT (called threshold voltage) is required in order to
activate the diode junction in a forward direction.
· The behavior of a junction diode is such that it offers a low resistance to electric current in one
direction and a high resistance to it in the reverse direction.
· When the reverse voltage at which breakdown occurs remains nearly constant for a wide range
of currents, the phenomenon is called avalanching.
· The reverse voltage controls the width of the depletion layer of the varactor diode. This in turn
controls the value of capacitance since the capacitance across the junction is inversely
proportional to the width of the depletion layer.
· Light-sensitive or photosensitive diodes can be used to measure intensity of radiation and
illumination.
· The intended design of two junctions in a transistor comes from the fact that the three terminals
can be configured in three different ways—which are called the common-emitter configuration,
the common-base configuration, and the common-collector configuration.
· The characteristic of a transistor is such that a small voltage change in the base-emitter junction
will produce large current change in the collector and emitter, whereas small changes in the
collector-emitter voltage have little effect on the base.
· The transconductance, gm is defined as the ratio of drain current to gate-source voltage of the
FET.
· A metal oxide semiconductor field effect transistor, which is abbreviated MOSFET, is similar to
the FET but has larger input impedance due to the existence of a thin layer of silicon dioxide in
between the gate and the semiconductor channel.
· The semiconductor devices fabricated in order to meet specified circuit design requirements
are referred to as Integrated Circuits (IC).
· Operational Amplifiers (OPAMP) are analog ICs and are basically amplifiers, but can be
configured in a variety of ways in order to design low- and high-pass filters, differential
amplifiers, oscillators, impedance matching circuits (unit follower), sample and hold (S/H)
circuits, current limiters, rectifiers, instrumentation amplifiers, comparators, zero crossing
detectors, and so on.
· The gain of the OPAMP is defined as the ratio of output voltage to the input voltage.
In this chapter, various electrical components were discussed, compared and contrasted in
terms of their symbol, characteristic and applications. Semiconductor materials were
discussed in Section 3.1. These materials were classified primarily into two groups: p-type and
n-type. Junction diode and characteristic were discussed in Section 3.2. Also, the diodes,
98
Mechatronics: Principles, Concepts and Applications
which are application specific, were discussed in subsequent sections. Junction transistors
and their different modes of configuration were discussed with their characteristics. A typical
transistor amplifier was also illustrated. Also, IC technology for both analogy & digital were
discussed. In addition, network cables and their standards were discussed.
LOOKING AHEAD
In order to understand the digital circuits and sub-systems there was a requirement to study
the principle of operation of basic electrical components and electronic devices. This chapter
has been intended to solve the purpose. The groundwork presented in this chapter can
stimulate the student to understand the underlying operation of digital circuits and systems,
which are to be presented in the next chapter.
EXERCISES
2V
2 ohm
2 ohm
4V 4V
Fig. 3.24 q
99
Electrical Components and Electronic Devices
3.5 A star load with Za =10 Ð 00 W, Zb = 10 Ð 450 W and Zc =10 Ð –300 W is connected to a three
phase, 3-wire 300V, XYZ system. Find (i) the voltage between the star point of the load the
supply neutral, (ii) the line currents and (iii) the total power and the reactive power.
3.6 Derive expression for growth of current in a R-L circuit when a DC voltage is applied to it.
3.7 In the following circuit (Fig. 3.25), find the frequency at which there will be resonance. If the
capacitor and inductor be interchanged, what would be value of the resonance frequency?
Fig. 3.25 q
3.8 A coil with a self inductance of 2.2 H and a resistance of 11 ohm is suddenly switched across
a 120 Volt DC. Determine the time constant of the coil to find the steady state value of current
and time taken for the current to reach 5 A.
3.9 A coil takes a current of 6A when connected to 24 V DC supply. To obtain the same current
with a 50 Hz AC supply, the voltage required was 30 V. Calculate the inductance of the coil and
the power factor of the coil.
3.10 Define impedance and power factor.
3.11 Name some semiconductor materials.
3.12 What do you mean by intrinsic semiconductor?
3.13 Define the following terminology.
· Intrinsic semiconductor
· Extrinsic semiconductor
· Doping
· Dopant
· Majority carrier
· Minority carrier
· N-type semiconductor
· P-type semiconductor
· Potential barrier
· Depletion layer
3.14 Explain the concept of hole. Why is the mobility of electron higher than a hole? What is intrinsic
conduction?
3.15 Distinguish between drift and diffusion. Explain the formation of depletion layer in a p-n
junction.
3.16 Explain how p-n junction behaves as a diode.
3.17 What do you mean by forward bias and reverse bias condition?
100
Mechatronics: Principles, Concepts and Applications
3.18 Write down equation of the semiconductor diode. Define each term.
3.19 Draw and explain the characteristics of forward biased and reversed biased junction diode.
3.20 Explain various types of semiconductor diodes. Mention their application areas.
3.21 Explain the physical mechanism involved in the breakdown of reverse biased p-n junctions.
Sketch V-I characteristic of a zener diode and explain its operation as a voltage regulator.
3.22 What do you mean by avalanching?
3.23 What do you mean by static and dynamic resistances of a diode? Explain temperature effect
recovery time equivalent circuit of a diode.
3.24 Draw the circuit for a half wave rectifier with LC filter. Explain the role of LC filter.
3.25 Explain how amplification takes place in an amplifier circuit using BJT.
3.26 Discuss CE, CB and CC configurations.
3.27 Define alpha and beta of a transistor. Derive the relationship between alpha and beta.
3.28 Draw a typical circuit diagram of a transistorized amplifier.
3.29 Analyse different current components of different regions of a n-p-n transistor using suitable
diagram. Show the process of recombination of carriers in different regions.
3.30 Explain the DC biasing of a transistor. Discuss the stabilization.
3.31 What do you mean by small signal and large signal analysis of a transistor?
3.32 What is the approximation made in the small-signal mode of a BJT?
3.33 Draw a self-bias circuit using BJT.
3.34 How does a transistor behave as a switch?
3.35 Explain the principle of transistor biasing with emitter resistor.
3.36 Why is FET known as a unipolar device? How do you compare this with BJT as an amplifying
device? Discuss.
3.37 What is JFET? Draw common source drain characteristics of an n-channel JFET and explain
its different regions. Explain its shapes. Which reason is suitable for amplifier action and why?
Discuss.
3.38 Discuss different parameters of JFET.
3.39 Discuss DC bias using universal JFET bias curve.
3.40 What is CMOS? What are its special features? Where is it use? Discuss.
3.41 What are the advantages of CMOS over JFET?
3.42 What is MOSFET? Discuss relative merits and demerits of JFET as compared to MOSFET.
Discuss the differences between two types of MOSFETs.
3.43 Analyse the operation of an Enhancement MOSFET with the help of its characteristics.
3.44 Analyse the effect of feedback in series-series feedback amplifier.
3.45 Draw and explain the hybrid equivalent circuit for a BJT. Discuss the variations.
3.46 Draw and explain the principle of operation of an emitter follower circuit. List some
applications.
3.47 What is UJT?
3.48 Define the term intrinsic standoff ratio in case of a unijunction transistor circuit.
3.49 Explain the characteristics of UJT.
3.50 What is SCR? Draw its characteristics. Discuss the effect of gate current and anode voltage in
firing an SCR.
3.51 Explain turn-on and turn-off mechanism of SCR with necessary waveforms.
101
Electrical Components and Electronic Devices
4.1 INTRODUCTION
Digital control has become the cornerstone of all industrial automation and control systems. The
information system and electronic aspects of mechatronic systems employ digital technology. Digital
technology, or simply digital system, is defined as a system that employs digital theory and technique
for the design of information systems and sophisticated electronic devices and components to be used
for digital control.
In digital technology the inputs and outputs are strictly digital in nature. Compared to analog, digital
technology is inherently versatile because it employs digital signals, which are more accurate, reliable
and error free compared to analog systems. Digital technology based control implementations are
configurable, interoperable, extendable and scalable. With the development and increased application
of digital technology over its analog counterpart, the basics of digital technology must be understood.
This chapter deals with the fundamental aspects of digital techniques, theory and systems,
beginning with the digital number system. The digital number system forms the basis for
understanding digital technology. Fundamentals of digital principles such as Boolean algebra and logic
functions such as AND, OR, and NOT functions have been described. Logic gates, universal logic
gates, flip-flops, registers, counters, and multiplexers, which are considered to be the building blocks
of digital technology are presented. The Karnaugh-map-based logic circuit minimization process and
the comparison of logic designs such as TTL and COMS logic are presented at the end.
1 0 1 0 1 0 1 1
MSB LSB
If the value of the range determinant of the DNS is 128 then any number within the range will be 16
bytes in length.
Fig. 4.2 (a) Weight of the digit position of the decimal numbers (b) Weight of the digit
position of the binary numbers
4.5 CONVERSION
It is possible to convert decimal number to binary number and vice-versa. To get an equivalent binary
number of a decimal number, repeatedly divide the decimal number by 2. For each division, if the
remainder is 0, write down a 0. If the remainder is 1, write down a 1. Continue the process until the
quotient is 0. During the process of division, the remainders, which will represent the binary
equivalent of the decimal number, are written beginning at the least significant position (extreme right)
and each new digit is written to the more significant digit (towards the left) of the previous digit. Take
the example of 3,422 and verify. The converted number (Refer Table 4.1) is a 12 bit binary number,
which is (110100110110)2.
Table 4.1
Decimal to binary conversion
Divide by 2 Quotient Remainder Binary equivalent
¾¾¾¾¾¾¾®
3422 1711 0
1711 855 1
855 422 1 (110100110110)2
422 211 0
211 105 1
105 52 1
52 26 0
Contd.
106
Mechatronics: Principles, Concepts and Applications
¾¾¾¾¾®
26 13 0
13 6 1
6 3 0
3 1 1
1 0 1
To convert fractional decimal number to binary, multiply the number by 2. For each multiplication
with the fraction, if the carry is ‘0’ write down ‘0’ or if the carry is ‘1’ write down ‘1’. Take the
example of (0.48)10. The converted binary number is a 11bit binary number, which is
(0.011110101111)2. Refer Table 4.2.
Table 4.2
Fractional decimal to binary conversion
Multiply by 2 Fraction Carry Binary equivalent
0.48 0.96 0
¾¾¾¾¾¾¾¾¾¾¾¾¾®
0.96 1.92 1
0.92 1.84 1 (0.011110101111)2
0.84 1.68 1
0.68 1.36 1
0.36 0.72 0
0.72 1.44 1
0.44 0.88 0
0.88 1.76 1
0.76 1.52 1
0.52 1.04 1
0.04 0.08 0
To convert a binary number to its decimal equivalent, multiply each digit by its weighted position,
and add each of the weighted values together. For example, the decimal equivalent of binary number
1110 0011 is 227, as follows.
1´2 7 + 1´2 6 + 1´2 5 + 0 ´2 4 + 0 ´2 3 + 0 ´2 2 + 1´21 + 1´2 0
= 128 + 64 + 32 + 0 + 0 + 0 + 2 +1 = ( 227)10
The decimal equivalent of the fractional binary number is obtained by multiplying the respective
decimal weight with the fractional binary bits. The decimal equivalent of fractional binary number
0.1101 is,
1 ´ 0.5 + 1 ´ 0.25 + 0 ´ 0.125 + 1 ´ 0.0625 = (0.8125)10.
There is another method which may be used to determine the decimal equivalent of a binary
fraction, and it is given below.
· Ignore binary point and find a whole number decimal value of the binary fraction
· Divide this value by 2 n (n is the number of bits in the fraction)
107
Basics of Digital Technology
Take the above example. The binary fraction 0.1101 has four bits. Ignoring the decimal point you
would get 1101, its decimal equivalent is 13 and it is a 4-bit number. So 22 = 24 = 16. Now the decimal
fraction is 13/16 = (0.8125)10.
The decimal equivalent of mixed type binary number 110.01 is,
(1 ´ 22 + 1 ´ 21 + 0 ´ 20) × (0 ´ 0.5 + 1 ´ 0.25) = (4 + 2 + 0) × (0 + 0.25) = (6.25)10.
4 2 6 7 1 0 0 3
87 86 85 84 83 82 81 80 Octal weight
Fig. 4.3 Weight of the bit positions of the octal number systems
In case of octal to binary conversion, for each digit in an octal number, find three bit binary
equivalents as illustrated in Fig. 4.4. The three bit binary equivalent of octal digits are shown in the
Table 4.3.
Table 4.3
3-bit binary equivalent of octal digits
Octal digits 3-bit binary equivalent
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111
In the Fig. 4.4 the given octal number is (4267)8. Its binary equivalent is (100010110111)2, which
is a 12 bit binary number.
4 2 6 7 Octal number
To convert binary to octal number, simply break the binary number into a group of three bits,
starting from the least significant bit. Then convert the 3-bit binary number to its octal equivalent.
Refer to Fig. 4.5.
(1110010001011101)2
Start making group from least significant bit
1 6 2 1 3 5 = (162135)8
Another number system is hexadecimal number system that works exactly like the binary, octal
and decimal number systems, except that its base is sixteen. The hexadecimal number system derives
from its name, hex meaning “six” and decimal meaning “ten.” Decimal digits 0 through 9 and English
alphabets A through F are used to define the digits of the hexadecimal number.
The hexadecimal number system is derived from four-bit binary numbers. This number system
can be used to represent the same values as the decimal and binary number systems. Just like the
decimal number system represents a power of 10, each hexadecimal number represents a power of 16
as shown in the Fig. 4.6.
A 1 4 9 0 F 6 2 Hexadecimal number
167 166 165 164 163 162 161 160 Hexadecimal weight
Fig. 4.6 Weight of the positions of the digits in the hexadecimal number systems
The conversion from hexadecimal to binary and binary to hexadecimal proceeds exactly like the
octal conversion, except that a group of four bits is made (Fig. 4.7). That is, for each digit in the
hexadecimal number, find a four-bit binary equivalent. The 4-bit binary equivalent of hexadecimal
digits are shown in the Table 4.4.
Table 4.4
4-bit binary equivalent of hexadecimal digits
Hexadecimal digits 4-bit binary equivalent
0 0000
1 0001
2 0010
3 0011
Contd.
109
Basics of Digital Technology
Similarly, to convert binary to hexadecimal, break the binary number into a group of four bits,
starting from the least significant bit. Convert the 4-bit binary number to its hexadecimal equivalent.
Refer to Fig. 4.7 (b).
Fig. 4.7 (a) Binary to hexadecimal conversion (b) Hexadecimal to binary conversion
Generally, the hexadecimal numbers are used to represent the OPCODE (See Chapter 9), address
of the memory, input/output port of the computer, data acquisition boards, etc.
conversion. The conversion technique encountered in the previous section is known as whole
conversion, which is based on division by two (Table 4.1). That means the decimal number has been
treated as a whole. The other form of binary equivalent of decimal is called BCD and is based on
individual digits of the decimal number. The BCD number system has ten combinations of nibble (a
group of 4 bit is called a nibble) corresponding to each decimal number. Table 4.5 illustrates the BCD
groups corresponding to each decimal digit. It becomes evident that BCD is merely a method of using
binary digits to represent the decimal digits 0 through 9.
Table 4.5
BCD equivalent of decimal digits
Decimal digits BCD code
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
Note that the combinations such as 1010, 1011, 1100, 1101, 1110, and 1111 do not exist in BCD
number systems. The conversion of decimal to BCD or BCD to decimal is similar to the conversion of
hexadecimal to binary and vice versa. To convert from BCD to decimal, just reverse the process.
Refer to Fig. 4.8.
Fig. 4.8 (a) Decimal to BCD conversion (b) BCD to decimal conversion
111
Basics of Digital Technology
It is important to understand that BCD and binary are not the same. This can be illustrated by taking
an example. The binary equivalent of decimal number (33)10 is (100001)2, whereas its BCD equivalent
is (110011)BCD.
Table 4.6
Some Decimal, Binary and Gray code comparison
Decimal digits Binary code Gray code
0 0000 0000
1 0001 0001
2 0010 0011
3 0011 0010
4 0100 0110
5 0101 0111
6 0110 0101
7 0111 0100
8 1000 1100
9 1001 1101
10 1010 1111
11 1011 1110
12 1100 1010
13 1101 1011
14 1110 1001
15 1111 1000
112
Mechatronics: Principles, Concepts and Applications
How the Gray code is considered reliable compared to binary code can be explained some at this
point. Electronic systems are vulnerable to noise and error. In a data transmission system, the
probability of occurrence of error is proportional to the number of transitions occurred between the
intersymbols. Since the number of transitions that has happened between two adjacent numbers in
Gray code is one the probability of occurrence of error is less, compared to binary code.
As a typical example, consider a position detection system. For the measurement of positions, the
system uses two code patterns based on binary code and Gray code, respectively. (This example is
only for the purposes of illustration, since it is not really desirable to use two code patterns for the
measurement of the same position.) That means positions p-0 through p-9 as shown in Fig. 4.9 have
been coded in terms of binary and Gray codes. There are two sensing elements (one for producing
binary code, another for producing Gray code) that have been interfaced in the system to produce
respective codes corresponding to every position. For each position the two sensing elements (each
sensing element provides a signal as per code) provide respective electrical signals as per code pattern.
For example, for position p-7 the binary sensor produces three consecutive pulses and one non-pulse,
whereas the Gray code sensor produces two non-pulses followed by one pulse and one non-pulse (a
pulse of amplitude five volts for ‘1’ and a non-pulse of amplitude zero volts for ‘0’). A change in
adjacent location only affects one bit for a Gray code pattern, whereas using a binary code pattern up
to four bits could change, giving rise to wildly incorrect readings.
Fig. 4.9 Reliability test for Binary code and gray code
Table 4.7
Binary pattern and gray code
Position Binary pattern Gray code pattern
p-0 0000 0000
p-1 0001 0001
p-2 0010 0011
p-3 0011 0010
p-4 0100 0110
p-5 0101 0111
Contd.
113
Basics of Digital Technology
The meaning of “widely incorrect reading,” must be understood. Incorrect readings are those you
might get instead of correct readings. If you analyze the range of incorrect readings while going from
p-7 to p-8, you would find that
· In the case of binary code, the range is 0000, 0001, 0010, 0011, 01000, 0101, 0110, 0111,
1001, 1010, 1011, 1100, 1101 and 1111. 1000 should not appear since it has to be the correct
reading.
· Whereas in the case of Gray code the range is 0100, 0101, 0110, 0111, 1101, 1110 and 1111.
Note that the third significant bit would not be counted while determining the range. 1100
should not appear since it has to be the correct reading.
Since the number of incorrect readings in case of binary code is more, the reliability is less.
0 1 1 1 0 1 1
Carry nil Carry nil Carry nil Carry ‘1’ Carry ‘1’
1.0 = 0
0.1 = 0
1.1 = 1
Multiplication in the binary system works the same way as in the decimal system. There are many
methods to multiply binary numbers. The easiest is
· Ignore the sign bit and find the magnitude of the two multiplicands
· Multiply them together using the rule mentioned above
· Use the original sign bits to determine the sign of the result. (If the sign of the multiplicands are
the same, the result must be positive; if different, the result is negative. A result of zero presents
a special case.)
Example 4.1
101
* 11
____
101
1010
_____
1111
Table 4.8
Boolean Algebra and DeMorgan Theorems
Boolean Algebra
Law Expression
(a) A+B = B+ A
Commutative law
( b) A· B = B· A
(a) ( A + B) + C = A + ( B + C )
Associative law
( b) ( A · B) · C = A · ( B · C )
(a) A · (B + C) = A · B + A · C
Distributive law
( b) A + ( B · C ) = ( A + B) · ( A + C )
(a) A+ A = A
Identity law
( b) A· A = A
(a) (A) = A
Negation law
( b) A=A
(a) A+ A· B = A
Redundancy law
( b) A · ( A + B) = A
(a) 0+A = A
( b) 1· A = A
(c ) 1+ A =1
(d ) 0·A =0
Derived laws
(e) A + A =1
(f) A·A=0
(g) A+ A ·B = A+ B
(g) A · ( A + B) = A · B
DeMorgan’s Theorems
(a) ( A + B) = A · B
( b) ( A · B) = A + B
A, B, C are called variables and “0” and “1” are Boolean values (false or true)
called logic states and it has only two states. Theoretically and numerically these two logic states are
expressed as ‘1’ or ‘0’ and electrically they are realized as V and V or vice versa, where V and V
essentially are two distinct voltage levels. If V represents ‘1,’ then V has to represent ‘0’ or vice
versa. As far as voltage levels are concerned, many combinations are possible as shown in Table 4.9
and Fig 4.11
Table 4.9
Electrical voltage levels for the realization of logic states
V V
+5 volts 0 volt
0 volt -5 volts
+5 volts -5 volts
0 volt +5 volts
–5 volts 0 volt
–5 volts +5 volts
The above combination is treated as a kind of logic assignment, which are basically of two types,
namely positive logic assignment and negative logic assignment.
Positive logic: Higher voltage represents ‘1’ and the lower voltage represents ‘0’
Negative logic: Lower voltage represents ‘1’ and the higher voltage represents ‘0’
The physical circuit implements either positive or negative logic in order to interpret the inputs and
output. Bear in mind that digital systems work on Boolean values (binary digits), that relates to an
electrical flow of V and V . Digital electronic circuits are designed to manipulate these positive and
negative pulses into meaningful logic. Moreover, using these values data can also be represented. One
important reason for constituting logical operations on the binary number system is that it becomes
118
Mechatronics: Principles, Concepts and Applications
rather easy to design straightforward, secure, and stable electronic circuits that can switch back and
forth between two absolutely defined states, with no uncertainty attached.
Fig. 4.12 (a) Symbol of the AND gate (b) Symbol of the OR gate (c) Symbol of the NOT
gate (d) Truth table of the AND gate (e) Truth table of the OR gate (f) Truth
table of the NOT gate
The AND function and hence the AND gate operates on the statement, “If all the inputs are ‘1’ the
output is ‘1’ else the output is ‘0’.” The AND gate shown in the Fig. 4.12 (a) is a three input AND
gate. Notice the last row of the truth table of the AND gate. If all input terminals (i.e., A, B, and C) of
the AND gate are ‘1’ the output is ‘1.’ For all other unique combinations of the input, the
corresponding unique outputs are ‘0’. Note that there would be total of 2 n combinations of input in
case of n input AND function.
With regard to the OR function and hence the OR gate the statement, “If any of the input is ‘1’ then
the output is ‘1’,” note the first row of the truth table of the OR gate.
The statement, “The output is the negation of the input” refers to NOT gate.
Logic functions and hence logic gates are conformant to Boolean algebra. For instance, an AND
gate conformant Boolean expression is,
Y = A×B
The above Boolean expression is read as “Y is produced as a result of A AND B or simply A AND
120
Mechatronics: Principles, Concepts and Applications
B is Y”.
The variables A, B and Y are two level variables since they only take logic values such as a ‘1’ or
‘0’. Therefore, the left hand side of the above expression can have four following combinations such
as
‘0’ AND ‘0’
‘0’ AND ‘1’
‘1’ AND ‘0’
‘1’ AND ‘1’
The first two combinations can be written as,
‘0’ AND B and the last two combinations can be written as ‘1’ AND B
‘0’ AND B produces a ‘0’ where as ‘1’ AND B produces B. That is if B is ‘0’, ‘1’ AND ‘0’
produces ‘0’ and if ‘B’ is ‘1’, ‘1’ AND ‘1’ produces ‘1’. (Refer Table 4.8). Out of four combinations
only last combination produces a ‘1’.
The Boolean expression of OR gate is expressed as,
Y=A+B
Which is read as, “Y is produced as a result of A OR B or simply A OR B is Y”,
Similarly Boolean expression of NOT gate is expressed as,
Y= A
Read as, “Y is produced as a result of COMPLEMENTING A or simply NOT A is Y”.
A four input AND gate is implied by four input variables (Could be A, B, C and D) and one output
variable (Could be Y). The Boolean expression of this gate is,
Y = A.B.C.D
The four input variables can have sixteen combinations (x n = number of combinations, where x is
number of variables state, which is 2 (a ‘0’ or a ‘1’), and n is number of variables, which is 4;
24 = 16). Using the variables, A, B, C, D, and Y, the truth table of this gate is shown in the Fig. 4.13.
Comparing the truth table of AND gate, it is observed that the output is conformant to Boolean
algebra. Boolean algebra and logic gates are strictly related.
The simplest gate is an inverter or NOT gate. It takes a bit or state as input and produces its
opposite as output. If the input is ‘0,’ the output is ‘1’. If the input is ‘1’ then the output is ‘0.’ NOT
gates can be realized using a transistor. Refer to Fig. 4.14. If the base voltage is zero (0 state) no
collector current will flow. So no current will be there in the resistor R. The supply voltage Vcc will
appear at the collector terminal C. The supply voltage usually is kept at 5 volts, which is considered as
a ‘1’ or ‘high.’ Now, if the input base voltage is made high (say ‘1’) then the base emitter junction will
be forward biased. Current will pass through the emitter junction and consequently through the
collector junction, providing collector current Ic as indicated. Because of the flow of the collector
current there will be a voltage drop across the resistor R. Assuming, VCE (Vcc – IC R = VCE) is close to
zero, it can be noted that the voltage drop across R is nearly Vcc. Hence the voltage remains at C is zero
(also logic ‘0’). In summary, when input is ‘1’ the output is ‘0’ and when the input is ‘0’ the output
is ‘1.’ This entails a NOT function or NOT gate.
121
Basics of Digital Technology
A .B .C .D = Y 0000 = 0
A .B .C .D = Y 0001 = 0
A .B .C .D = Y 0010 = 0
A .B .C .D = Y 0011 = 0
A .B .C .D = Y 1000 = 0
A .B .C .D = Y 1010 = 0
A
B A .B .C .D = Y 1100 = 0
A.B.C.D = Y
C A .B .C .D = Y 1110 = 0
D
A.B .C .D = Y 1000 = 0
A.B .C .D = Y 1001 = 0
A.B .C .D = Y 1010 = 0
A.B .C .D = Y 1011 = 0
A.B .C .D = Y 1100 = 0
A.B .C .D = Y 1101 = 0
A.B .C .D = Y 1110 = 0
A.B .C .D = Y 1111 = 0
Fig. 4.13 Boolean algebra conformant logic functions and logic gates (An example with
AND gate)
+ VCC
Ic R
C + 5 volts
IB
B
1(5 volts) n-p-n Output 0(0 volts)
Input E
0(0 volts) At t = t1
At t = t1
Common-emitter configuration
NAND : The output is ‘0’ only when all the inputs are ‘1’
The Boolean expression of three-input NAND gate is
Y = A. B. C
NOR : The output is ‘1’ only when all the inputs are ‘0’
The Boolean expression of three-input NOR gate is
Y = A+ B+C
Figure 4.15 (a) describes three input NAND gate and its truth table. Figure 4.15 (b) describes a
NOR gate and its truth table. From the figure it is appropriate to say OR-NOT and AND-NOT rather
than NOT-OR and NOT-AND, respectively. Compare the truth tables with the truth table of OR and
AND gates.
A A A B C Y
Y
B ´ Y B
C C 0 0 0 1
AND NOT NAND 0 0 1 1
0 1 0 1
NAND Symbol 0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
(a) 1 1 1 0
A A A B C Y
Y
B + Y B
C C 0 0 0 1
OR NOT NOR 0 0 1 0
0 1 0 0
NOR Symbol 0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
(b) 1 1 1 0
Fig. 4.15 Symbol and truth table of NAND gate (b) Symbol and truth table of NOR gate
(The universal gates)
An XOR gate is usually called a half-adder electronic circuit. One can see from the rows of the
truth table that the gate really adds two input bits. With regard to the last row of the truth table, two
input binary bits (i.e. ‘1’ and ‘1’) have been added to produce binary bits ‘10’ (This is not ‘ten’ but
‘one zero’). The carry part of the sum, which is ‘1’ (left hand side of ‘10’), has not been shown in the
truth table since there is only one output. If it is required to retain the carry part of the sum, additional
circuit must be there along with the XOR gate. The additional circuit is just an AND gate as shown in
Fig. 4.17.
Notice that in a two-bit addition system we need one XOR gate and one AND gate. For multi-bit
addition operations (i.e., a byte, for instance) additional XOR gates and AND gates are required.
124
Mechatronics: Principles, Concepts and Applications
The name “half-adder” comes from the fact that the above circuit does only half of the addition
process. The addition process completes only when the carry bit is added with the next higher order
bits present at the left of the DNS number at hand. Therefore, so as to enable us to realize the addition
process completely, a full-adder circuit is inevitable. A full-adder must have three inputs, since we
have a carry bit now. An addition process actually deals with three digits (bits).
XOR gates are very useful for designing circuits for addition and parity checking. Parity checking
is a process of counting the number of ‘1’s in a data stream. The process is used for the detection and
isolation of errors. A commercially manufactured XOR gate comes as a standard 14-pin IC package
that may include four or more XOR gates.
4.17 FLIP-FLOPS
In the digital world, normally binary bits are retained or stored in groups that represent either a
number or information (code). The grouped bits are called DNS data and are to be stored
electronically. An electronic circuit that retains a single bit of DNS data is called a flip-flop. A flip-flop
can simply be understood as a single unit of memory. Flip-flops are designed using logic gates and
they are under the category of sequential logic circuits. There are various types of flip-flops depending
upon the way they retain a bit. For example, some flip-flops change states at any time owing to input
125
Basics of Digital Technology
changes and some change state only when a clock edge or pulse is triggered. Distinguishably there are
four types of flip-flops, SR flip-flops, JK flip-flops, T flip-flops, and D flip-flops.
4.17.1 SR flip-flop
A simple type of flip-flop that can retain or store a single bit is an SR flip-flop. S stands for ‘set’ and
R stands for ‘reset.’ The truth table of an SR flip-flop is given in Fig. 4.18 (a). The truth table can be
realized by using basic logic gates or universal logic gates. Figure 4.18 (b) illustrates the realization of
SR flip-flops using NAND or NOR gates. Figure 4.18 (c) is its symbol. Although the SR flip-flop
behaves as a single bit memory cell but they can be used for sequencing and triggering applications.
So, how does this basic circuit behave as memory? The process of storage of a bit is a kind of
‘setting-resetting’ procedure. If the output Y is ‘1’ the flip-flop has been ‘set,’ and if the output is ‘0’
the flip-flop has been ‘reset.’ The data bit to be stored is input through the input terminals and
retrieved from the output terminal when needed. The truth table of the SR flip-flop shows the valid
combinations of inputs and outputs. The terminal Y has been provided just to get a complement of the
output. In some situations the complement of the output (or the stored value) is desirable. As you can
see from the Fig. 4.18 (c) that there is a clock input into the SR flip-flop. The role of a ‘clock’ signal
can be understood from the truth table given in Fig. 4.19.
In a digital system everything has to be carried out in a timely sequential manner. The sequential
logic circuits used in digital control inherently involve time and sequence of operation. In such circuits
the clock signal plays a very important role. The circuit listens to the clock signal at a period of clock
126
Mechatronics: Principles, Concepts and Applications
frequency and the action takes place (i.e. a change of state at the output) in a precise timing sequence.
Sometimes many digital circuits are provided with the same clock signal. A clock signal triggers the
circuits in timely manner and can be considered as a kind of initiation signal for achieving sequencing
in the same circuit and synchronization in the other circuits. The interval of time at which all the
components within a single unit or within the entire circuit are triggered, is determined by the period
of the clock signal.
The clock input given to the SR flip-flop is to sequence the operation in terms of displaying the
next-time status of the circuit. The outputs of the flip-flop depend on the status of the system. The
next status of the flip-flop depends on the current status of the input and output. When clocked, the
SR flip-flop displays next time status.
Look at the first and last rows of the truth table of the NAND gate-based and NOR gate-based SR
flip-flops in the Fig. 4.19. The statement ‘Not allowed’ implies that the S terminal and the R terminal
must not be ‘1’ simultaneously. The statement is also there in the truth table of clocked SR flip-flops
shown in Fig. 4.18. What would happen if so? This entails an understanding of the basic SR circuit
drawn in the Fig. 4.20. Although SR flip-flops are realized either using NAND gates or NOR gates, in
their basic form the SR circuit is simply two transistors connected back to back as shown in the
Fig. 4.20. In this figure, collector current Ic–1 of T-1 will flow through R1 when S is high (‘1’). So,
point A will be low (Why? Refer Fig. 4.14; the NOT gate). Transistor T-2 will be then in OFF state
since base voltage is low. No collector current will flow in T-2 because of low input. The voltage at
point B will now be high. That is, the output Y is high. In another situation, if R is high the collector
current in T-2 will flow, so the voltage at point B will be low. Now if S and R are both made high
simultaneously, then what would be the voltage at point B? Is it high or low? The output level strictly
depends on the internal design of the transistor. Bear in mind that no transistors are identical. As soon
as the terminals S and R are made high one would saturate (go to active reason) faster than the other.
There would be a race between the two transistors so connected. Since we assumed the two
transistors were identical, no information would be available in order to know which one is faster.
Even if they are identical, a slight difference among the mirror resistors (R1, R3, and R5 are the mirror
resistors of R2, R4, and R6, respectively, and vice versa) could cause a race problem. Therefore, S and
R are not made simultaneously high. This is prohibited.
127
Basics of Digital Technology
4.17.2 D Flip-Flop
The SR flip-flop can retain a bit at the output Y in response to setting and resetting of input. In
essence, once a bit is retained it is memorized. This retaining ability of the flip-flop forms the basis in
designing real memory devices. Indeed, several flip-flops are put together to store large set of DNS
data. Some of the flip-flops are very good as far as design of real memory devices are concerned. D
flip-flops are good in this respect. Race-around conditions can be avoided by the use of D flip-flops.
Figure 4.21 (a) illustrates a D flip-flop. It is an SR flip-flop in which the R terminal is shorted to the S
terminal through a NOT gate (inverter). A clocked D flip-flop is a practical one that has a clock input.
When clocked the action takes place. The truth table of a D flip-flop is provided in Fig. 4.21 (b) and
its symbol is found in the Fig. 4.21 (c).
D Clock D Y D
S
Y Y
0 0 No change
0 1 No change
Clock
1 0 0 Clock
1 1 1
R
Y Y
4.17.3 JK Flip-Flops
A JK flip-flop is one of the most versatile flip-flop and frequently used in digital control systems. It
has two data inputs like an SR flip-flop and a clock input. The two data inputs are called the J and K
terminals. It does not inherit the race problem. It is like an SR flip-flop with additional logic circuits at
the inputs that serve to overcome the SR = 1 1 state. The circuit diagram, truth table, and symbol are
shown in Fig. 4.22. The circuit configuration prohibits the race condition since both the outputs (Y
and its complement) are fed back to the AND gates at the input. Since Y and Y are complements to
each other, each AND gate at the input requires all inputs to be ‘1’ to give an output of ‘1’; eventually
it is not possible for both of these AND gates to be ‘1’ at the same time and therefore S and R cannot
both be ‘1.’ Because of their basic operation and versatility JK flip-flops are essentially used in
designing registers, counters, encoders, decoders, etc. described in the following section.
Clock J K Y
S 0 0 0 No change
J Y
0 0 1 No change
Clock 0 1 0 No change J Y
0 1 1 No change
1 0 0 No change Clock
R 1 0 1 0
K Y
1 1 0 1
K Y
1 1 1 Yt−1
4.17.4 Registers
Flip-flops are the secondary building blocks in the construction of large memory blocks. A large
memory block is really composed of a set of many small units called registers. Registers as name
indicates (something it registers) are simply a group of flip-flops interfaced in an appropriate manner
by which multi-bit digital data can be stored. The data can be stored for a longer or shorter time. The
number of flip-flops interfaced to form a small unit, depends upon the length of the data. An eight-bit
data word is a standard. A register is considered higher-level basic building block. The registers can
also constitute I/O (input/output) ports. I/O ports are small sized memory units in which data in the
order of few bytes (could be up to four bytes) are stored. Registers and I/O ports are found within
Analog to Digital Converters (ADC), Digital to Analog Converters (DAC), microprocessors,
microcontrollers, etc.
Data can enter into the register in serial or parallel. Once entered, data are said to be stored at the
output. One can retrieve data from the output only. Depending on the way the flip-flops are
configured, different types of data entering and retrieval is possible. In view of this, four types of
registers can be constructed as follows:
Serial In Serial Out registers (SISO): Store data serially to use in serial
Serial In Parallel Out registers (SIPO): Store data serially to use in parallel
129
Basics of Digital Technology
Parallel In Serial Out registers (PISO): Store data in parallel to use in serial
Parallel In Parallel Out registers (PIPO): Store data parallel to use in parallel
Registers are useful building blocks and are found in many applications; a SISO register can be
used as a time delay device, for instance. The amount of delay is controlled by:
· The number of stages in the register
· The clock frequency.
Some control systems require incoming data to be in serial form. So, serial-to-parallel conversion
is required. Conversion from serial data to parallel data is possible through an SIPO register. Other
requirements such as parallel in serial out and parallel in parallel out are achieved through PISO and
PIPO registers, respectively.
Two typical connections such as SIPO and PIPO have been shown in the Fig. 4.23. It illustrates
how four clocked D flip-flops are used to store four bits of data (d4, d3, d2, d1) serially. For simplicity,
only four D flip-flop have been taken. Let d1 bit enter first into the first flip-flop, i.e., D4. Four clocks
are required to enter four bits of data. At the end of the 4 th clock period, d1 would have been registered
by the D1 flip-flop, d2 would have been registered by the D2 flip-flop, and so on. The data bits d4, d3,
d2, d1 can be retrieved in parallel from the output. This type of register is called a shift-register in the
sense that data are stored on a shift basis. Data can also be entered in parallel as illustrated in Fig. 4.23
(b). It needs a single pulse/clock to feed all the data into all the flip-flops, where as in earlier case,
equivalently, four clock pulses were required.
Fig. 4.23 A 4-bit register constructed with D flip-flops. (a) SIPO; (b) PIPO
130
Mechatronics: Principles, Concepts and Applications
4.17.5 Counters
Counting is essential in many applications, including control. A counter is an electronic device that
counts. It circulates data in a predefined sequence. Counters generate a sequence of count values
determined by the selected encoding and the status of the inputs. The counter can be an up-counter or
down-counter. The up-counters starts from a value to the next larger value in the sequence and down-
counters do the opposite. Counters are also constructed from flip-flops.
Counters are of various types and primarily differ in the way they use the counting code and the
way the cycle repeats. Some counters are
· Binary counter
· Decade counter
· Gray counter
· Ring counter
Decade counters (also called BCD counters) are the popular among other types. The BCD counter
is decimal and is essentially used for display applications. A 4-bit binary, Gray, ring, or decade counter
begins counting through the sequence shown in Table 4.10.
Table 4.10
Counting sequence of some counters
Binary Gray Ring Decade
0000 0000 0001 0000
0001 0001 0010 0001
0010 0011 0100 0010
0011 0010 1000 0011
0100 0110 0001 0100
0101 0111 0010 0101
0110 0101 0100 0110
0111 0100 And so on 0111
1000 1100 1000
1001 1101 1001
1010 1111 0000
1011 1110 0001
1100 1010 0010
1101 1011 And so on
1110 1001
1111 1000
0000 0000
0001 0001
0010 0011
And so on And so on
131
Basics of Digital Technology
c1
c2
d1 d2 d3 d4
(a)
Group-1
d1
d2
d3
d4
D1
O
U
D2
T
P
D3 U
T
D4
Group-2
Enable (b)
Fig. 4.24 (a): A 4-1 Multiplexer (used for data selector), (b): A 4-1 Multiplexer (used for
data multiplexing)
132
Mechatronics: Principles, Concepts and Applications
4.17.6 Multiplexers
Multiplexers are sequential logical devices used for various applications such as data selector, data
multiplexing, and even for the generation of Boolean functions. A 4-1 multiplexer is shown in Fig.
4.24 (a). There are four single-bit data bits d1 through d4 that are to be selected. Two control signals
(22 = 4) c1 and c2 are required to select four numbers of single bit of data. If c1c2 = 00, the leftmost
AND gate is selected and hence d1 will appear at Y. If c1c2 = 11, the rightmost AND gate is selected
and hence d4 will appear at Y.
Figure 4.24 (b) illustrates how data are multiplexed using a typical multiplexer. Two 4-bit data d1 d2
d3 d4 and D1 D2 D3 D4 are to be multiplexed, i.e., they are to be output at different times through the
same line. If ENABLE is low group-2 is selected, the data D1 D2 D3 D4 will pass through and be
outputted. If ENABLE is high group-1 is selected, the data d1 d2 d3 d4 will pass through.
A B C D
BC
AD
(A + B) + BC + AD + CD
CD
A+B
Fig. 4.25 A logic circuit realization based on a given Boolean expression (Not optimized)
The given expression can thus be optimized using the Boolean algebra as follows (Refer Table 4.8).
A + B + B.C + A.D + C.D
ß
A.D+A + B.C+B + C.D
ß
A.(D+1) + B .(C+1) + C.D
ß
A.(1) + B.(1) + C.D
ß
A + B + C.D
The truth table of the simplified expression A + B + C.D and that of the original expression (A + B)
+ B.C + A.D + C.D is exactly same as shown in Table 4.11.
Table 4.11
Truth table of the Boolean Expressions (A+B) + BC + AD + CD and its minimized version
A + B + CD
A B C D Y
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 1
0 1 0 0 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
Contd.
134
Mechatronics: Principles, Concepts and Applications
A B C D Y
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
Since both expressions persuade the same truth table, it is wise to use the last expression to realize
the digital circuit as you only need two logic gates, one two-input AND gate to realize C.D and one
three-input OR gate to realize A+B+C.D, as shown in Fig. 4.26 (b). This logic circuit obviously needs
fewer logic gates as compared to that shown in Fig. 4.25. By doing this not only the space, but the
design cost of the logic circuit can be significantly reduced.
A B C D
CD
A + B +CD
In what follows the procedure of K-map method. K-map is a pictorial method. It groups
expressions with common factors and eliminates unwanted terms and variables. The K-map based
minimization process starts with obtaining a K-map from a given truth table. Basically, a K-map is a
different form of a truth table. The procedure to follow in obtaining the K-map is given below.
· Draw the sketch of K-map
· Assign the sequence number
· From the truth table enter the output values into the appropriate sequence number
The sketch of K-map consists of squares called boxes. The number of boxes depends on the
number of variables presents in the truth table. A two-, three- and four-variable truth table must have
22 (= 4), 23 (= 8) and 24 (= 16), number of boxes respectively. The boxes are placed adjacent to each
other. Each box has been assigned a box number that corresponds to a sequence number. The only
thing to note is that the ordering of the sequence number with respect to the box number. Refer Table
4.12 and Fig. 4.27. The sequence has been maintained as per Gray code. The sequence number
assigned to a box is fixed. This is key to how K-map provides a detrimental effect with regard to the
process of elimination of redundant terms and variables.
Table 4.12
Box number versus sequence number of 2, 3, and 4-variable truth tables.
Two variable Three variable Four variable
Box. No. Seq. No. Box. No. Seq. No. Box. No. Seq. No.
1 1 1 1 1 1
2 2 2 2 2 2
3 3 3 3 3 4
4 4 4 4 4 3
5 7 5 5
6 8 6 6
7 5 7 8
8 6 8 7
9 13
10 14
11 16
12 15
13 9
14 10
15 12
16 11
136
Mechatronics: Principles, Concepts and Applications
Fig. 4.27 (a) Box number of K-map corresponding to the two variable truth table
(b) Box number of K-map corresponding to the three variable truth table
(c) Box number of K-map corresponding to the four variable truth table
(d) Sequence number of K-map corresponding to the two variable truth table
(e) Sequence number of K-map corresponding to the three variable truth table
(f) Sequence number of K-map corresponding to the four variable truth table.
From the truth table, sequentially enter the values of Y (It could be a ‘0’ or a ‘1’) into the box. Look
at the sequence number and enter the value in the appropriate box. Once this is done, you have
completed the K-map. Figure 4.28 (d-f) illustrates how K-map has been derived from the given two-
, three-, and four-variable truth tables (Fig. 4.28 (a-c)). For simplicity let us assume that the truth
table given in the Fig. 4.28 (a-c) have been obtained from given Boolean expressions containing
redundant terms and variables. The minimization process, involves more procedures as follows.
Sequence A B C D Y
1 0 0 0 0 0
2 0 0 0 1 0
3 0 0 1 0 0
4 0 0 1 1 1
5 0 1 0 0 0
Sequence A B C Y 6 0 1 0 1 0
1 0 0 0 1 7 0 1 1 0 0
2 0 0 1 0 8 0 1 1 1 1
3 0 1 0 1 9 1 0 0 0 0
Sequence A B Y 4 0 1 1 0 10 1 0 0 1 0
1 0 0 0 5 1 0 0 0 11 1 0 1 0 0
2 0 1 1 6 1 0 1 0 12 1 0 1 1 1
3 1 0 1 7 1 1 0 1 13 1 1 0 0 0
4 1 1 1 8 1 1 1 1 14 1 1 0 1 0
15 1 1 1 0 0
16 1 1 1 1 1
(a) (b)
(c)
Contd.
137
Basics of Digital Technology
A A AB AB AB AB AB AB AB AB
A AB AB
B 0 1 C 00 01 11 10 00 01 11 10
CD
B 0 0 1 C 0 1 1 1 0 CD 00 0 0 0 0
1 3 1 3 7 5 1 5 13 9
B 1 1 1 C 1 0 0 1 0 CD 01 0 0 0 0
2 4 2 4 8 6 2 6 14 10
K-map of two-variable K-map of three-variable CD 11 1 1 1 1
Truth table Truth table 4 8 16 12
(d) (e)
CD 10 0 0 0 0
3 7 15 1
K-map of four-variable Truth table
(f)
Fig. 4.28 Obtaining Karnaugh map from the given truth table.
The next step is to form groups of adjacent ‘1’s. Groups of 2, groups of 4, and groups of 8 could
be formed. These groups are called pairs, quads, and octets, respectively, as shown in Fig. 4.29. The
presence of pairs, quads, and octets purely depends on the truth table at hand. The K-map uses some
rules as far as grouping of adjacent boxes containing ‘1’s is concerned.
· Groups are formed throughout the map.
· Groups could be horizontal or vertical.
· Group should be as large as possible.
· Groups may overlap, but a group should not be enclosed completely within another group.
· No ‘1’s should be left. If it is not enclosed within a pair, quad, or octet, it should be a stand-
alone group. That is, each box holding a ‘1’ must be covered.
· The leftmost box in a row has the right to be grouped with the rightmost box.
· The identical rule applies to topmost and bottommost boxes. That is, the top box in a column
can be grouped with the bottom box.
· There should be as few groups as possible, as long as this does not contradict any of the
previous rules.
· Diagonal groups are invalid.
· Groups must not contain ‘0.’
Once the groups are formed, the process of elimination of redundant terms and variables starts.
The principle of elimination process of redundant variables from the K-map suggests that the variables
which appears itself and its complements in a specific group are to be eliminated. That is, by no
means, a variable and its complement should exist simultaneously. The other variables will remain
ANDed.
As an example, consider a K-map, as shown in Fig. 4.30, which has been derived from a given
truth table (also shown). There are three groups, one singular group (sequence number 4), a pair, and
a quad. Let us start with the quad. Out of four variables, A, B, C, D, while moving from top to
bottom, it is found that the variables C and D have their complements. So these variables have to be
eliminated. The only variables left are A and B, which are to be ANDed. These variables and their
complements do not appear simultaneously, while looking at the same group. So, we now get one
term as follows:
138
Mechatronics: Principles, Concepts and Applications
A A AB AB AB AB AB AB AB AB
A AB AB
B 0 1 C 00 01 11 10 C 00 01 11 10
B 0 0 1 C 0 0 1 1 0 C 0 0 1 1 0
1 3 1 3 7 5 1 3 7 5
B 1 1 1 C 1 0 0 1 0 C 1 0 1 1 0
2 4 2 4 8 6 2 4 8 6
Pairs Pairs Pairs
(a) (b) (c)
AB A B AB AB AB
AB AB AB AB AB C 00 01 11 10
C 00 01 11 10
C 0 1 1 1 1
C 0 1 0 0 1 1 3 7 5
1 3 7 5
C 1 0 1 1 1
C 1 1 0 0 1 2 4 8 6
2 4 8 6
Quads
Quads (e)
(d)
AB A B AB AB AB AB A B AB AB AB
00 01 11 10 CD 00 01 11 10
CD
0 0 1 0 1 1 1 1 An octet
CD 00 CD 00
1 5 13 9 1 5 13 9
CD 01 0 0 1 0 CD 01 1 1 1 1
2 6 14 10 2 6 14 10
CD 11 0 0 1 0 CD 11 0 1 1 0 A quad
4 8 16 12 4 8 16 12
CD 10 0 0 1 0 CD 10 1 1 0 0
3 7 15 11 3 7 15 11
Quads A pair
(g)
(f)
AB = Y1
Now consider the pair. As you go from sequence number 1 to sequence number 5, you can see that
only B and its complement appears. So, eliminate this variable. The other three variables will remain
ANDed. The three variables are A , C , and D . So, we get the second term, which is,
ABC = Y2
In the context of a singular group, which is there in sequence number 4, no variable has its
complement. So all the variables will remain ANDed. The third term can therefore immediately be
written as,
AB CD = Y3
Now the complete minimized Boolean expression can be written by ORing the above terms Y1 , Y2,
and Y3. Thus, finally,
Y = Y1 + Y2 + Y3
ß
Y = AB + ABC + AB CD
The above Boolean expression is the minimized expression. The logic circuit of this expression is
shown in the Fig. 4.31. Try to minimize all the functions already translated to the K-map in Fig. 4.28
(a)-(g).
140
Mechatronics: Principles, Concepts and Applications
A B C D
A B C D
AB
AB + ABC + ABCD
ABC
A B CD
+V +V
A
A
Y=A+B A A
Y = A.B B
B
Fig. 4.32 (a) Diode logic OR gate (b) An AND gate (c) CMOS logic (NOT)
4.21 MEMORY
Semiconductor-based memory cells that are fabricated on a single piece of material (called wafer) can
accommodate a large number of data bytes. These are called memory ICs. Figure 4.33 shows a
Most significant bit Last significant bit
Location-0
Location-1
Location-2
Location-3
Location-4
Location-5
Location-6
Location-7
Location-8
Location-9
Location-10
Location-11
Location-12
Location-13
Location-14
Location-15
Read/Write Ground
enable
of address lines solely depends on the number of locations the chip has. For example, ten lines must
be there to address 210 = 1,024 locations. The chip should also have data lines in order to store and
retrieve data to and from the chip according to the Read/Write signal. Note that the data lines are bi-
directional whereas the address lines are unidirectional.
ROM, on the other hand, is called a one-time memory device. ROMs are permanent storage of
data. The data stored in ROM are always there, whether the power is on or not. The data from a
location is retrieved at any point in time. Any location of the ROM can be accessed randomly, but
“random access” always refers to RAM. At the manufacturing stage, or even later on, the ROM chip
is programmed to adhere the data everlastingly. Several types of ROM chips are available, depending
upon whether or not they are programmable and re-programmable. All ROMs are programmable. But
if the manufacturer programs the ROM then it is referred to as ROM. If the user programs a ROM
according to his requirements then the user must buy a PROM, the Programmable ROM. PROMs are
ROMs that are programmed at some later stage. EPROMS, Erasable PROMS, are another type in
which the data already programmed can be erased and reprogrammed. ROMs are commonly used to
store system programs that we want to have available at all times.
· In the context of engineering and technology, quantity is a measure and represented by means
of numerical assignment using number systems.
· A decimal number has base 10 (ten), whereas a binary number has base 2 (two).
· To convert binary to octal number simply break the binary number into a group of three bits,
starting from the least significant bit. Then convert the 3-bit binary number to its octal
equivalent. Similarly, to convert binary to hexadecimal, break the binary number into a group of
four bits, starting from the least significant bit.
· A group of 4-bit is called a nibble.
· Gray code is used in designing the pattern of the disk of the optical encoder (refer to Chapter
5).
· An adder circuit can perform both addition and subtraction if 1’s and 2’s complement methods
is implemented.
· The two logic states are expressed as ‘1’ or ‘0’ and electrically they are realized as V and V or
vice versa, where V and V are two distinct voltage levels.
· Logic gates, circulating the fundamental principle of logic functions, constitute the functional
building blocks in designing the digital circuits or digital system.
· OR gate: “If any of the input is ‘1’ then the output is ‘1’,”
· AND gate: “If all the inputs are ‘1’ the output is ‘1’ else the output is ‘0’.”
· NOR and NAND gates are called Universal gates, due to the fact that these two gates can be
used for the construction of any kind of digital circuits.
· “The XOR gate output is ‘1’ if any one of the inputs are ‘1’; the output is ‘0’ when all inputs are
‘0’ or ‘1’.
· An XOR gate is called a half-adder electronic circuit.
· Combinational logic circuits have the property that the output at any time is a Boolean function
of the inputs, whereas circuits whose output can be a function of the input at some time in the
past are called sequential logic circuits.
144
Mechatronics: Principles, Concepts and Applications
· A flip-flop can simply be understood as a single unit of memory. Distinguishably there are four
types of flip-flops, SR flip-flops, JK flip-flops, T flip-flops, and D flip-flops.
· A large memory block is composed of a set of many small units called registers. Data can enter
into the register in serial or parallel.
· Depending on the way the flip-flops are configured, different types of data entering and retrieval
is possible. Data can enter into the register in serial or parallel.
· Counters generate a sequence of count values determined by the selected encoding and the
status of the inputs.
· The BCD counter is decimal and is used for display applications.
· Multiplexers are sequential logical devices used for various applications such as data selector,
data multiplexing, and even for the generation of Boolean functions.
· A truth table is a tabular representation of a Boolean or logic expression.
· A truth table could have more than one Boolean expression.
· A Boolean expression might contain redundant terms. The redundant terms must be eliminated
before realising the digital circuit. The elimination process is called minimization.
· K-map is a minimization technique.
· The principle of elimination process of redundant variables from the K-map suggests that the
variables which appears itself and its complements in a specific group are to be eliminated.
· Semiconductor-based memory cells that are fabricated on a single piece of material (called
wafer) can accommodate a large number of data bytes. These are called memory ICs.
· RAM differs from ROM in that data can be both read and written. RAMs are volatile but ROMs
are nonvolatile. ROMs are commonly used to store system programs that we want to have
available at all times.
· Static RAM holds its data without any refresh mechanism, in contrast to dynamic RAM, which
must be refreshed many times per second to hold its data contents.
· DRAMs are cheaper and take much less space as compared with SRAMs.
· PROMs are ROMs that are programmed at some later stage.
· EPROMS, Erasable PROMS, are another type in which the data already programmed can be
erased and reprogrammed.
This chapter describes the importance of digital technology in industrial automation and control
system. The fundamentals of digital number system, has been discussed including the number
system conversion. A brief idea on BCD and the Gray code has been illustrated to cope with
the chapter. Again, basic DNS arithmetic operations, such as, binary addition, binary
subtraction, binary multiplication and division has been performed. Postulates of Boolean
algebra and De Morgan’s theorem have been discussed in addition to the simplification
technique such as algebraic manipulation method and map method. In order to describe the
combinational and sequential logic concepts, the fundamentals of logic gates and flip-flops has
been discussed thoroughly. The important sequential circuits covered here are counter and
registers and the combinational circuits and multiplexers and adder circuits.
145
Basics of Digital Technology
LOOKING AHEAD
The electronics part of mechatronics discipline covers four topics such as
· Electrical components and electronic devices
· Digital theory and technology
· Transducers and sensors
· Signal conditioning circuits
So far, first two topics have been described thoroughly. Chapter 5 and Chapter 6 depict the
rest of the electronic topics in order. Chapter 5 takes the benefit of the understandings that is
gained from the previous Chapters. For instance, while describing the piezoelectric transducer
the knowledge on capacitance is necessary. The principle of operation of piezoelectric
transducer and its description has been made in Chapter 5 where as the definition of
capacitance has been made in the Chapter 3. This is just one instance, but a proper sequence
has been maintained throughout the book to present the intratopics and intertopics.
EXERCISES
4.1 What do you mean by range and weight of the binary number system?
4.2 Write down all the combinations of a four bit DNS.
4.3 How many symbols will be necessary to represent a 3 digit decimal number?
4.4 Define range determinant of a number system.
4.5 Convert to binary numbers.
5.32 0.605 502.4 729.171
4.6 Convert to decimal numbers.
1101 1.111 1001.011 11011.10101
4.7 Convert 246.34 of radix 7 to its equivalent decimal number.
4.8 Convert the following numbers
(B2F8)10 = ( ? )10 (1010.0110)2 = ( ? )8
4.9 Determine the octal equivalent number of (32.51)7 up to four places of radix point.
4.10 Express (-59)10 in 2’s complement form.
4.11 Add 1001 + 10.1
4.12 Subtract 5.82 from 13.24 in binary.
4.13 Subtract 13.24 from 5.82 in binary.
4.14 Write the number (2375)10 in 8421 BCD code.
4.15 Explain multiplication techniques for signed and unsigned numbers.
4.16 Perform 10101.11101´101.11 and 10101.11101¸101.11
4.17 What is the use of complements in arithmetic number system?
4.18 State the algorithm of addition of two signed binary numbers represented in sign and 2’s
complement representation. Give one example.
4.19 Represent –23 and 56 in sign 2’s complement form (8 bit) and add them.
4.20 Draw the circuit diagram for combined addition and subtraction operation.
4.21 Discuss the following number systems.
146
Mechatronics: Principles, Concepts and Applications
B
B
Fig. 4.35 C
147
Basics of Digital Technology
S Q
Fig. 4.36 C
4.60 Design a combinational circuit whose input is a four bit number and whose output is the 2’s
complement of the input number.
4.61 What do you mean by electronic counter?
4.62 Discuss the following.
· Binary counter
· Decade counter
· Ring counter
· Gray counter
4.63 Design a 2-bit comparator using logic gates.
4.64 Obtain a logic diagram that converts a four digit binary number to a decimal number in BCD
using only NOR gates for implementation.
4.65 Give various applications of multiplexer.
4.66 Symbolically draw a 4-1 multiplexer to be used for data selector.
4.67 Symbolically draw a 4-1 multiplexer to be used for data multiplexing.
4.68 Give some comments on truth tables.
4.69 Why does minimization concept come into picture?
4.70 Give the examples of minimization techniques.
4.71 Implement the following logic function by ROM.
f (x, y, z) = S (0, 1, 6, 7)
4.72 Design a modulo-5 ripple counter.
4.73 Write notes on Shift Register.
4.74 In case of K-map, what rules are followed as far as grouping of adjacent boxes containing ‘1’s
is concerned.
4.75 Use Karnaugh’s map to simplify
(i) Y = ( A + B + C + D)
(ii) Z = ( A + B + C + E )
(iii) f (x, y, z, w) = S(3, 8, 10, 11, 12, 14)
(vi) f (x, y, z, w) = S(1, 3, 7, 11, 15) and the don’t care conditions
d (x, y, z, w) = S(1, 3, 7, 11, 15)
4.76 Minimise the following switching function by K-map and implement it by NAND gate only.
f (a, b, c, d) = S (0, 1, 3, 4, 6, 7, 8, 12) + Sdc (9, 11)
4.77 Briefly explain TTL and CMOS.
4.78 Discuss about electronic memory. Draw the block diagram of a memory and explain the
important pin out diagram.
5
Transducers and Sensors
· To define various types of transducers used in industrial automation, machine control systems,
instrumentation and equipments.
· To list out commonly encountered measurands for automation and control purpose.
· To differentiate between transducer and sensor.
· To explain the principles of different transducers.
· To construct a table to show the range and sensitivity for different types of thermocouples.
· To draw circuit diagrams of piezoelectric transducer, and explain the principles.
· To explain the Hall effect of transducer.
· To list the pneumatic transducers and the principles of operation.
150
Mechatronics: Principles, Concepts and Applications
filters, Analog to Digital Converter (ADC), etc. Figure 5.1 gives a illustration of a sensor. The input
signal is referred to as measurands. The output of the transducer is referred to as equivalence. The
signal/energy or signal at the output of transducer and hence at the output of the sensor is in different
form with respect to the input signal/energy. For industrial automation and control, the outputs of the
most of the transducers are electrical signals (either voltage or current).
Input energy/signal
Transducer
output Electronic circuit
Transducer for signal Sensor output
Equivalence conditioning (Another form of energy)
Variables or Parameters
(measurands)
Sensor
Fig. 5.1 A typical sensor showing transducer and signal conditioning unit
The phenomenon of energy transformation is called transduction, which is based on one or more
effects. The principle of transduction can be attributed to the following effects.
· Photoemissive · Hall
· Photoconductive · Ionization
· Photovoltaic · Burden tube
· Photoresistive · Strain gauge
· Thermoelectric · Bimetallic strip
· Inductive · Mechanical switch
· Capacitive · Optical encoding
· Pyroelectric · Optical fibre
· Piezoelectric
Apparently, in the technology marketplace, there exist more than a thousand distinct types of
transducers and hence sensors characterizing to their application domains, ratings, sophistication,
etc. are available. Irrespective of their internal design and fabrication, mostly they adopt very common
and fundamental transduction principles as listed above. In the rest of the chapter, most of the
commonly used transducers and their principle of transduction have been depicted.
Light
Dynode-1
(positive)
Dynode-4
(mode +ve than
Dynode-3)
Dynode-2
(more +ve than
Dynode-1)
Dynode-3
(more +ve than
Dynode-2)
In order to measure the radiation or light intensity, semiconductor based devices (described below)
can be used instead of vacuum chamber based photoemissive trasducers. However, due to some
environmental constraints and technical reasons in many applications the semiconductor based devices
are not considered as the preferred choice to replace the vacuum chamber based transducers.
modulates the conductance of the semiconductor in terms of generating hole-electron pairs. The
number of hole-electron pairs generated is proportional to the number of incident photons per unit
time (The number of photons per unit time is simply the intensity of the incident radiation).
Figure 5.3 shows a typical circuit in which LDR constitutes a circuit element. A constant current
source is connected across the LDR. When light falls upon it the conductivity (resistance) of the
material from which the LDR has been made, changes. Depending upon the type of material the
conductivity may increase or decrease. Since the LDR is supplied with a constant current source, the
effect is developed in terms of a rise or drop in voltage across the LDR, which is proportional to the
intensity of light. The change in voltage can be calibrated. If the supplied constant source becomes a
voltage source, the measured signal would be a current signal instead of voltage. In this case the
change in current can be calibrated to quantify the light intensity.
LDR
+
a +
Constant
V Current
Source
Light b −
−
LDR type transducers are widely used not only in industrial sectors but also in many applications
for the detection of intensity of the light. The principle is also employed for the design of the color
sensors.
The ‘p’ layer of the photodiode is very thin. Analogously, the base layer of the phototransistor is
very thin (Fig. 5.4). The thickness of the layer is determined by the wavelength of radiation to be
detected. The wavelength of the radiation to be detected is an important parameter. The silicon
becomes transparent to radiation of longer than 1100 nm wavelength. It is not suitable for use at
wavelengths appreciably longer than this.
Photodiodes and phototransistors are mainly used in the application areas where it is required for
light intensity measurement (linear and logarithmic), optical position detection, light barrier detection,
etc.
Anode Cathode
p n-type
(a)
Emitter Collector
p n p
Emitter Collector
n p n
(c)
Fig. 5.4 (a) Photodiode; (b) Phototransistor (pnp-type); (c) Phototransistor (npn-type)
5.6 THERMISTORS
Temperature is among the most important parameters to be measured for many automation and
control applications. The common types of temperature transducers in use today are thermal resistors
or thermistors.
A thermistor is a piece of sintered semiconductor material, which exhibits a relatively large change
in resistance proportional to a change in temperature. Usually, thermistor possesses negative
temperature coefficient of resistance, i.e., the resistance of the piece decreases with increase in
temperature. The relationship between resistance and temperature for thermistors is expressed in the
Eq. 5.1.
r( 1t - t1 )
rt = r0 e 0
(5.1)
156
Mechatronics: Principles, Concepts and Applications
10 100
Negative coefficient Positive coefficient
of resistance of resistance
5 Thermistors 50 RTDs
0 100 200 300 400 500 0 100 200 300 400 500
Temperature ° C Temperature ° C
(a) (b)
Among many configurations, beads, discs, and chips are the most widely used thermistor types,
due to the reason that these configurations are typically more rugged and better to handle mechanical
shock and vibration. Thermistors are manufactured by sintering process. Processing techniques for
the thermistor manufacture consists of the preparation of the metal oxide, milling and blending, heat-
157
Transducers and Sensors
treatment, addition of electrical contacts, assembly into a device and protective coating. Each
configuration (bead, disc and chip) is produced by a unique method.
Specification of a typical thermistor is 10000 Ohms at 25 °C, with a resistance tolerance of ±15%.
5.7 THERMODEVICES
Specially designed semiconductor diodes and transistors to meet the requirements of the temperature
measurement are individually called thermodiodes and thermotransistors respectively and commonly
called thermodevices. Thermodevices are more sensitive to the temperature variations as compared to
other devices. The characteristic and design features are such that their junctions are more sensitive
to temperature. The principle of operation of thermodevices is based on the fact that if temperature
increases, the thermal energy makes it possible to knock out the hole-electrons pairs from the valence
band of the semiconductor materials. These knocked out charge carriers, acquiring higher energy
then enter into the conduction band constituting current, which in effect affects the junction voltage
of the device. Identical situation occurs at the emitter-base junction of the thermotransistors.
Thermotransistors are more sensitive as compared to thermodiodes, since the output voltage in this
case is the amplified version of the voltage developed at the emitter-base junction. The voltage across
the diode junction is related with the temperature as follows,
V = ln
FG I +1IJ kT (5.3)
HI K q
0
where, I is the current through the diode, I0 is called reverse saturation current, k is Boltzomann
constant (1.38 × 10-23 Joules/Kelvin), T is the temperature in degree Kelvin and q is the charge of the
electron. Temperature sensors are coming as Integrated Circuit (IC), in which thermodevice as well
as signal conditioning circuits such as amplifying circuit and analog-to digital converter circuits have
been built in one component.
5.8 THERMOCOUPLE
A thermocouple is a transducer that is employed for the measurement of temperature. It consists of
two dissimilar metals, joined together at one end, called thermocouple junction. When the temperature
of this junction is different from the temperature of other parts of the metals an EMF (Electro-Motive
Force) is generated as shown in Fig. 5.6. The phenomenon is called Seebeck effect. The EMF
produced is known as Seebeck EMF or simply thermovoltage, Vth. If points ‘a’ and ‘b’ are connected
a current will flow through the circuit. The circuit thus formed is called thermoelectric circuit. The
variation of thermovoltage in response to the temperature variation is measured, calibrated and
interpreted as temperature.
Using only one kind of metal no temperature can be detected. It is evident that when a strip of metal
is heated at one end relative to the other the electrons at this end (hot) will acquire thermal energy. The
electrons from the hot end will diffuse to the other end and get accumulated. In effect, a tiny amount
of electric field is established and a situation will arrive when there will be no net further diffusion.
The developed electrostatic field will make it possible to repel the electrons. Although, there will be no
net flow of electrons across a cross section, however the velocity of electrons on two sides of the
158
Mechatronics: Principles, Concepts and Applications
cross section remains different. The velocity at hotter side is greater as compared to the colder side.
Because of velocity differences a continuous transfer of heat is ensured. This phenomenon is referred
to as thermal conduction, which simply means that a temperature gradient has to be established albeit
there involves no net flow of electron even after equilibrium is set up. Under these circumstances, to
measure the amount of electric field the measuring device must be connected to either side of the
strip. If the measuring device is made up of the same material as that of strip the situation can be
thought of, as if the strip and the measuring device are not two elements, rather a single type thus
establishing a similar temperature gradient in the arrangement. Therefore, under these conditions, no
net EMF would be detected. In fact, to measure the EMF, thermoelectric circuit, at least two different
materials have to be formed making a thermocouple.
Metal A
a
+
Temperature
Junction EMF
−
b
Metal B
The relationship between the temperature and the thermovoltage produced is expressed in the
Eq. 5.4. Note that the relationship is not linear.
Vth =a1t + a2 t 2 + a3t 3 +..........+an t n (5.4)
Where, Vth is thermovoltage, t is the temperature to be measured and a s are the thermocouple
coefficients, which depend upon the materials used and are temperature independent. Considering
more number of terms, the above power series can minimize the nonlinearity error. In most cases, the
best result is obtained with tolerable accuracy if approximately five numbers of terms are taken. The
term a 1 is known as Seeback coefficient. Since the coefficients are temperature independent and
material dependent, for best linearity the selection of materials having desirable quality plays important
role. The important factor in determining the materials is that the produced EMF should be linear with
respect to the temperature. Materials having good level of Seebeck coefficient are always preferred.
In practice, the thermocouple circuits are like as shown in Fig. 5.7. There are two junctions J-1
and J-2. Keep in mind that it is impossible to connect the thermocouple to any temperature-measuring
device without constructing another junction. The junction J-1 is the junction responsible for the
measurement of temperature with respect to the junction J-2, which is called cold junction or
reference junction. J-1 is called hot junction. The arrangement is fairly a differential device and the
output is related to the difference in temperature between the hot and the cold junction. The cold
junction is held at a constant temperature. This essentially allows for accurate calibration of the
temperature of the hot junction.
159
Transducers and Sensors
Display unit
Metal B Metal B
EMF
Thermoelectric
Current
circuit
Metal A
Fundamentally, any attempt to join any two dissimilar metals express a thermocouple. As expected,
if a thermocouple based temperature sensor is connected with the signal conditioning circuitry, more
or less the entire integrated system forms additional thermocouples along with the main thermocouple,
thus producing additional thermovoltages, which are superimposed onto the base thermovoltage
produced by the main thermocouple. However, it is a fact that the other metals in the circuit have no
effect on the base thermovoltage as long as the temperature of the new junctions (because of
connections) are kept at the same level.
The important parameters to be considered in selecting thermocouples for desired applications are
sensitivity or Seebeck coefficient, temperature range, and resistance to corrosion, vibration and strain.
Alloys are usually used for the construction of thermocouple. Ageing causes variations in the alloy
composition for which the performance deteriorates with time. Another source of error is moisture.
This is the reason why the thermocouples are supplied with the protecting case. Several thermocouple
types have been emerged as standard transducers because of desirable features and qualities in terms
of linearity and sensitivity. Sensitivity is defined as a ratio of voltage to temperature. Table 5.1 provides
information about some of the standardized thermocouple types and their characteristics.
Table 5.1
Standardized designated thermocouples
Sl. No. Designation Composition (terminal) Range Sensitivity
(mV/ 0C)
1 B Platinum30% Rhodium (+), Platinum 6% 1300–1700 3
Rhodium (–)
2 C W5Re Tungsten 5% Rhenium (+), W26Re 1650–2315 –
Tungsten 26% Rhenium (–)
3 E Chromel (+), Constantan (–) –100–900 64
4 J Iron (+), Constantan (–) –150–800 52
Contd.
160
Mechatronics: Principles, Concepts and Applications
Primary coil
Output
The principle of operation of LVDT is as follows. Notice the connections of the two secondary
coils. They are connected in opposit to each other. The two secondary coils are essentially placed
symmetrically on either side of a primary coil. The connection is such that the outputs of the two
secondary coils are being added together simply by connecting the secondary coils at a common
central point. From an oscillator, an AC current or voltage is applied in the primary coil. The AC
current in the primary coil provides a varying magnetic field around the core. The two secondary coils
have been connected in such a way that when the core is at center position, an equal voltage signal is
induced in both the coils. The central position is called ‘electrical zero position’ (EZP). Since, the two
secondary coils are connected opposite to each other, in the central position the outputs of the two
secondary coils cancel out each other, resulting zero voltage.
161
Transducers and Sensors
Fig. 5.9 Relative voltage signals with respect to electrical zero position
When the core is moved or displaced right or left, the number of turns in the secondary coil
exposed to the primary coil changes. Thus, any movement of the core causes the mutual inductance
of each secondary coil to vary relative to the primary. The variations of mutual inductances of each
coil, in effect, induce varied relative voltages in the secondary coils. Since, the two secondary
windings are connected in opposition, as the core moves, the output of one increases while the other
decreases. For instance, as the core moves towards left, the situation is that (Refer Fig. 5.9; Situation-
B) the sum has induced voltage signal that favours Secondary-1. Bear in mind that the phase of this
induced signal is same as that of the excitation voltage applied at the primary coil. In another situation,
as the core moves towards right (Refer Fig. 5.9; Situation-C) the sum favours Secondary-2. This
time, however, the phase of the sum is opposite to that of primary. The amplitude of the sum depends
on the relative position of the core with respect to EZP. The magnitude of the output of the transducer
increases irrespective of the direction of movement from the central position.
Depending upon which half of the coil the centre of the core is in, the phase can be either in or out
with the excitation. In order to know in which half of the LVDT the core is present at the moment the
phase of the output must be considered along with the magnitude. It is therefore required to compare
162
Mechatronics: Principles, Concepts and Applications
the phase of the output voltage signal with the phase of the primary excitation signal. The detection of
phase is achieved through electronic circuits.
The voltage of the induced signal in the secondary coil is linearly related to the number of coils. The
basic relation is:
V0 N
= 0 (5.5)
Vin Nin
Where, V0, Vin, N0 and Nin are output voltage, input voltage, number of turns in output windings
and number of turns in input winding respectively.
These LVDTs can be calibrated by varying the position of the core and measuring the
corresponding output voltages. The representation of equivalent displacement of corresponding
voltage signal is called calibration. A calibration constant has to be determined and applied to arrive at
the position unit.
The main advantage of the LVDT transducer over other types of displacement transducer is their
high degree of linearity and robustness. This is from the fact that there is no physical contact across
the sensing element and so there is zero wears in the sensing element. The LVDT principle of
measurement is based on magnetic transfer. The magnetic transfer based systems inherit high
accuracy and resolution. Suitable signal conditioning and electronics can detect the smallest fraction
of the movement.
The applications are mostly found in automotive industry, machine building industry, pneumatic
and hydraulic cylinders, servo control systems, wood and paper industry, process control,
automation, electronic industry, custom made machine building industry and research laboratories.
Typical LVDT specification has been provided in Table 5.2.
Table 5.2
Typical LVDT Specification
Specification Typical Values
Range ±1 mm up to ±100 mm
Output 0...10 V, 0...5 V, 4...20 mA, 0...20 mA...
Linearity ± 0.3% / ± 0.2%
Resolution Approximately 0.01% of full range
Types plain core, core with extension, sprung loaded core
Housing ø 12 mm, stainless steel/steel nickel-plated
Temperature – 30... +120°C (150°C optional)
Shock 1000 g (10 ms)
Vibration 2 kHz
er e0 A
C= (5.6)
d
Where, d is the distance, A is the area, e r is the relative permittivity of the dielectric material
between the plates and e0 is the permittivity of the free space (The value is 8.854 * 10E-12 Farad/
Meter). The distance and overlapping area can be changed either by the movement of one of the plate
relative to other. The capacitance can also be varied by displacing the dielectric material in between
them. Figure 5.10 illustrates three ways of measuring the measurands. In Fig. 5.8 (a) the distance
between the plates has been displaced in accordance with the input measurand. Figure 5.10 (b) and
Fig. 5.10 (c) shows different situations, where one of the plate and the dielectric material have been
displaced respectively.
‘d’ changes wrt Plate displaced by
measurand the measurand Dielectric material moves
d A A
Capacitive transducers are non-contact type for which accuracy and resolution are high. However,
because of appearance of parasitic capacitances from the cable and the environmental effects such as
moisture, pressure, vibration, dust, etc. the performance is likely to degrade. The manufacturers of
capacitive sensors take care of these very important factors while packing the sensor. The capacitive
transducers are employed for the measurement of audio signal, acceleration, displacement, flow,
force, level, pressure, relative humidity, strain, thickness, velocity, etc.
is converted to an electrical voltage signal that are amplified through signal conditioning circuitry.
These transducers are used as ball bearing failure detector, intrusion detector, transient heating
studies, gas flow monitors and so on. The detection of intrusion is based on the human body’s infra-
red emissivity.
+++++++++
Accumulation of
charge at the surface
The relationship between the applied force and the charge accumulated is given in the Eq. 5.7.
Q = cF (5.7)
where, F is the applied force, Q is the accumulated charge and c is the piezoelectric constant. The
piezoelectric constant is not actually a constant; rather the value depends on the orientation and the
mode of operation. Orientation and mode of operation refers to as
Orientation : By which the transducers are cut from the original crystal.
Mode : The way by which the stress is applied.
Piezoelectric transducers are cut from the crystal slabs or plates in a specific orientation with
respect to the crystal axes depending on the application requirement. There are mainly four types of
cuts, namely;
· Longitudinal cut
· Transverse cut
· Shear cut
· Polystable cut
165
Transducers and Sensors
The shear cut is commonly used for force and acceleration measurement where as polystable cut
based transducers are employed for pressure measurement, within high temperature environment.
Various modes of operation are bend, shear and compression. The charge in a piezoelectric transducer
is therefore proportional to the piezoelectric constant of the material and to the stretched or squeezed
force. When in operation the piezoelectric transducer can be thought of as a parallel plate capacitor,
which is shown in Fig. 5.12.
Force
+ + + + + + + +
t = thickness
A = area
Cf
Rf
−A Calibration
Cp Rp Cc Rc
and display
Some of the piezoelectric materials are ammonium dihydrogen phosphate, barium titanate, lead
betaniobate, lithium sulphate, polyvinylidine fluoride (PVDF), Rochelle salt, tormaline, quartz and
zirconate titanate.
B = Magnetic field
t = thickness
Hall induced
electric field
++++++++++++++++
I = Current
+ Vh
V h =x h (5.12)
Where, h is the height of the metal bar. From Eqs. (5.11) and (5.12), we have,
IBh IB
V h = vd Bh = = Hc (5.13)
nqA t
Hc =1 / nq called Hall coefficient. The coefficient is negative for n-type semiconductor; see
Table 5.3. t = A / h , the thickness of the metal bar.
From Eq. 5.13, one can observe that the Hall voltage is proportional to the current and the magnetic
field. If the current is deliberately made constant (usually 10-50 mA) the Hall voltage is proportional to
the magnetic field. Either the current or the magnetic field can be measured by using Hall effect
transducers.
Table 5.3
Hall coefficient of some materials
n-type material Hall coefficient
Bismuth –5*10E-7
Copper –5.33*10E-11
Germanium –3.5*10E-2
Indium antimonide –6*10E-4
Silicon –1.0*10E-2
Hall effect is pragmatic in all metals, but for the fabrication of the transducers, n-type
semiconductor materials are preferred due to the reasons that a controllable amount of charge carriers
can be doped into the semiconductor material determining the application domain of the transducer.
Typically, Hall voltage is a very weak signal, in the order of few microvolts for a magnetic field of
one gauss. Therefore, proper electronic circuits are integrated with the transducer. Typical
168
Mechatronics: Principles, Concepts and Applications
specifications are the power supply, temperature range, operating frequency and air gap. The magnetic
field could either be positive or negative, if it is employed for the measurement of current. Hall sensors
are used in automotive, automation and control, robotics, valves, computers, motor commutation,
security systems where essentially direction sensing, position detection, flow-rate detection, angular
movement, length measurement, current sensing etc. are desired.
Magnetodiodes and magnetotransistors are recently developed two semiconductor devices used
for detecting the magnetic field. The magnetodiodes use the effect of magnetoconcentration
phenomenon. Magnetoconcentration is the concetration gradient of the carrier perpendicular to the
magnetic vector and the current direction. On the other hand, the collector current of the
magnetotransistors is modulated by the presence of magnetic field.
In electrical machines, some faults can be detected by measuring the currents or voltages in the
machine windings. The magnetic field created near electrical machines changes when faults occur
and therefore using such transducers to measure flux can also aid in condition monitoring.
When the cathode is heated by means of cathode source, the electrons are emitted and are
accelerated towards positive grid terminal. Because of the difference in their kinetic energies, all
electrons are not being collected by the grid terminal. Some of the electrons move towards the anode
plate and exert repulsive force since the plate is negative. As a consequence, they oscillate in between
the grid and the anode plate. During the process of oscillation they collide with the gas molecules
producing positive ions, which are then attracted by the anode plate, and constitute anode current,
Ianode. The number of positive ions thus formed is proportional to the gas pressure (vacuumness) and
the number of electrons emitted from the cathode. If the number of electrons released from the
cathode, and the biasing grid current is held constant, then the anode current can be a measure of
vacuum. Following relationship holds good in case of ionization transducer.
Ianode =Sit × Igrid ×Q (5.14)
Where, Ianode is the anode current, Igrid is the grid current, Q is the vacuum or pressure, and Sit is
the sensitivity of the ionization transducer. The sensitivity depends on the geometry of the transducer
chamber and the type of gas present in it.
Light
Anode Cathode
p-side n-side
Forward-biased
+ −
V
Time
Opaque LED (light source)
Line of action
Photodetector
Opaque
Patterned disk
Disk
Fig. 5.17 Optical encoder for measurement of position and speed the rotary systems
To know the direction of rotation or movement of a rotor, shaft or even a piston there must be a
provision of another circular opaque and transparent pattern as shown in the Fig. 5.18 (a). The pulsed
light signal generated by utilizing the two patterns are usually called Channel-A signal and Channel-B
signal. The relative angular placements of transparent segments of these two patterns are such that
the outputs of the two photodetectors are like as shown in Fig. 5.18 (c). In order to make it more clear
an equivalent of the relative angular placements of two patterns have been shown in the Fig. 5.18 (b).
As you can see (Fig. 5.18 (c)) the phase difference between the two signals is 90 degrees electrical.
Such signals together are referred to as ‘quadrature square-waves’, which means that two square-
waves that are phase-shifted with respect to each other by 90 degrees electrical, or one-quarter of a
cycle. For this reason some manufacturers assign the name of such type of encoder as quadrature
incremental optical encoder. The phase relationship parameter, offset by 90 degrees electrical,
determines the direction. If Channel-A leads Channel-B, then the direction of movement is clockwise
direction, and vice versa.
The number of transparent segments on the disk determines the resolution of the encoder. More
the number of transparent segments more accurate position (angular) information can be obtained.
Therefore, it is preferred to have higher number of transparent segments within the pattern for better
resolution.
172
Mechatronics: Principles, Concepts and Applications
Pattern-2
Pattern-1
(a)
Opaque Transparent
Pattern-1
Pattern-2
(b)
Channel-A (Detector-1)
Clockwise rotation
Channel-B (Detector-2)
Channel-A (Detector-1)
90°
One cycle
(c)
Fig. 5.18 (a) Quadrature incremental optical encoder with two patterns (b) Relative
angular placements of two patterns (c) The quadrature output of two
photodetectors
173
Transducers and Sensors
Track-2
0001 1000
Track-3
1111 1010
1110 1011
Transparent
1101 1100
Fig. 5.19 A binary conformant coded disk for the absolute encoder
In order to understand how gray code is more reliable over normal binary coding scheme, refer any
text related to ‘error detecting codes’. As a hint, note the difference between the binary code and gray
code bit patterns of their corresponding decimal number presented in the Fig. 5.20. What you see here
in these two types of coding schemes are that in gray code only one bit change occurs while moving
to the next number (For verification compare gray code of decimal number 5 and 6 and so on). This
particular effect is not found in the binary codes. This one bit change, enabling us to distinguish the
previous or next value (the position of the disk really) is important from the point of view that at least
we have some detrimental information that the next value would be changed with only one bit (Refer
Chapter 4). The transparent segments of the tracks are thus gray code conformant. The great merit of
the absolute encoder is that if the power fails the exact position of the rotating disk can be known.
174
Mechatronics: Principles, Concepts and Applications
Track-2
Track-3
Track-4
Track-1
Track-2
Track-3
Track-4
Opaque segment
Transparent segment
Free end
Metal with higher coefficient
of expansion
q d
q
d
d
(c)
Fig. 5.21 (a) Bimetallic transducer (b) Spiral type bimetallic strip (c) Helical or spiral
bimetallic strip
instruments for measuring the pressure of liquids and gases of all kinds, including steam, water, and
air. Bourdon tubes are ‘C’ structured tubes (Fig. 5.22) and they work on similar principle as that of
bimetallic strips. The angular or linear displacement is proportional to the applied pressure (In case of
bimetallic strip the displacement is proportional to the temperature). One end of the tube is fixed and
connected to the pressure source where as other end is made free and closed. A marker or needle is
mounted at this free end. As pressure rises, the C-structured tube moves the needle providing an
equivalence that has to be calibrated. Either q or d (Fig. 5.22) can be measured and calibrated to
quantify the pressure. Thicker bourdon tubes are chosen for high pressure measurement.
Pressure
5.19 STRAIN-GAUGE
Strain-gauges are resistive pick-up type transducers. The resistance of the gauge changes in
accordance with the input measurand. The strain gauge consists of metallic filament (a resistor) of
approximately 0.03 mm thickness, which is bonded or pasted directly to the strained surface by a thin
layer of epoxy resin. When a load is applied to the surface, resulting change in surface length, hence
the strain (Strain is defined as a ratio of change in length to the original length.) is communicated to
the metallic filament (Fig. 5.23) and the corresponding strain is measured in terms of the electrical
resistance of the filament, which varies linearly with strain. The gauge may be designed in the form of
wire or thin-flat surface (Fig. 5.23).
Metal or semiconductor wire
Connecting
terminal-1
Connecting
terminal-2
The equation governing the strain and resistance is expressed in Eq. 5.15.
Dr
=g X (5.15)
r
where, Dr is the change in resistance, r is resistance without pressure or load, X is the strain to be
measured and g is sensitivity of the strain gauge, called gauge factor.
Strain gauges are used for the measurement of displacement, pressure, load or force, torque and
strain. The gauge may be designed in the form of wire or thin-flat surface. Metal or semiconductor
materials can be used for fabricating the strain gauge, hence the name metal strain gauge or
semiconductor strain gauge. The strain gauge sometimes is attached to a mechanical structure as
shown in the Fig. 5.24. The output terminals are connected to a bridge circuit (Refer Chapter 6) in
order to measure and calibrate the measurands.
Force, load, pressure
or displacement Force, load, pressure
Force, load, pressure or displacement
or displacement
Fixed end
Terminal-1 Terminal-2
Strain
Strain gauge gauge
The principle of operation of strain gauge has been described in the previous section. The resistive
load cell design however, uses at least four strain gauges, which are adhered to a cylindrical tube as
shown in the Fig. 5.25. Four strain gauges are used to obtain higher sensitivity. Two of the gauges are
usually subjected to tension, and other two experience compression. The great advantage of strain
gauge based load cell is that the effect of temperature (the resistance of the strain gauge varies with
the temperature as well) can be compensated using electronic circuitry.
Force, load, pressure
5.21 DIAPHRAGMS
Diaphragms are thin circular plates broadly used for the measurement of both low and high values of
pressure, force or load. The principle is based on deflection (Refer Fig. 5.26). The displacement ‘d ’
is proportional to the applied pressure, force or load. Mostly the pneumatic and fluid applications use
diaphragms. The deflection can be written as follows.
cr 2 F
d= = kF (5.16)
t3
Here, k = cr 2 / t 3 ; F is the applied force, r and t are radius and thickness of the diaphragm
respectively, c is a constant which depends on Poisson’ ratio and Young’s modulus of the material,
from which the diaphragm has been made up.
Pressure, force or load
Diaphragm
k in the Eq. 5.16 can be defined as sensitivity of the transducer. In order to improve the sensitivity,
corrugated diaphragms, shown in Fig. 5.27 are designed. These are called capsules and bellows.
Bellows have more sensitivity than the capsules, although their application domains vary. The materials
used for diaphragms are nickel, phosphor and stainless steel. In many pressure sensors, strain gauges
are mounted on the diaphragm. These are called strain gauge based electrical output pressure
transducers. The change in pressure is related to the strain in the diaphragm. Sometimes the diaphragm
itself is made up of semiconductor and the strain gauge is doped within the diaphragm at the time of
manufacturing. Such types of transducers are intended for the measurement of absolute pressure
(pressure with respect to vacuum).
Pressure, force of load Pressure, force or load
Corrugated Corrugated
diaphragm diaphragm
Deflection, d
Deflection, d
Corrugated
diaphragm (a) Capsule
(b) Bellows
Object
holders
Movement
Switch
roller
Output
Switch
Conveyor
Fig. 5.28 A typical roller-based mechanical switch engaged for the detection of arrival of
object within a conveyor-based material handling system
Liquid flow
P1
P2
Orifice meters are used to determine a liquid or gas flow rate by measuring the differential pressure
(P1 – P2) across the orifice plate. Orifice plate is just a circular plate; typically diameters vary
depending upon the diameter of the pipe, installed in a straight run of pipe. It contains a hole smaller
than the pipe diameter. The flow squeezes, experiences a pressure drop, and then the differential
pressure is measured which is related to a flow. Venturi meters uses the same principle but special is
that some advanced design specifications are used in order to minimize the heat loss. Advanced flow
measurement technique uses various principles within the sensors. Most common flowmeters are
ultrasonic, magnetic, turbine meter, and Coriolis.
Ultrasonic flowmeter measures flow by detecting the frequency with an ultrasonic sensor. The
fluid velocity alters the transit time of an acoustic signal along a known path. By measuring the transit
times of signals sent in both directions along a diagonal path, the average path velocity can be
calculated. Then, knowing the path angle with respect to the direction of flow, the average axial
velocity can be computed.
In a magnetic flowmeter, the pipe is lined with a nonconducting material and two electrodes are
mounted with the non-conducting wall. Electromagnetic coils surround the flow path with a uniform
magnetic field. The voltage produced is directly proportional to the velocity of the fluid. This in turn
leads to measure the flow rate.
Turbine meters are displacement flow-measuring devices. A rotor is placed in the flow path. The
rotor is magnetically coupled so that each rotation produces a pulse. The speed of the rotor is
proportional to the velocity of the fluid.
The Coriolis meter uses a sine wave voltage, applied to a drive system, which produces an
oscillation of the tube carrying fluid. The amplitude of vibration is related to the mass flow and the
frequency is related to the density of the liquid.
Plate
Optical fibre
LED (light source) Photodetector
Metal rods
(a)
(b)
Fig. 5.30 A typical schematic diagram of Optical Fibre Transducer for the measurement
of load
The isolation feature of the fibre potentially makes it suitable for use as a sensor. The optical fibres
are immune to many kinds of external noise, electromagnetic interferences, cross-talk, aliasing,
atmospheric disturbances, vibration, and so on.
· Transducers are the basic elements that convert or transform one form of energy to another
form.
· Transducers are the physical element, which is a part of a sensor.
· Transducers are classified, based on whether they produce passive or active equivalence.
· Photoelectric transducers employs the principle of photoelectric effect.
· A thermistor is a piece of sintered semiconductor material, which exhibits a relatively large
change in resistance proportional to a change in temperature.
· Semiconductor based thermisters have negative temperature coefficients of resistance.
· Specially designed semiconductor diodes and transistors to meet the requirements of the tem-
perature measurement are individually called thermodiodes and thermotransistros respectively
and commonly called thermodevices.
· A thermocouple is a transducer that is employed for the measurement of temperature. The
variation of thermovoltage in response to the temperature variation is measured, calibrated and
interpreted as temperature.
· Any attempt to join any two dissimilar metals express a thermocouple. Alloys are usually used
for the construction of thermocouple.
183
Transducers and Sensors
This chapter emphasized the role of transducers in mechatronics engineering and technology
and discussed about the different types of transducers used. This chapter also explained the
basic difference between transducers and sensors. The basic principles of electrical
transducers such as photoemissive, photoconductive, photovoltaic, photoregistive,
thermoelectric, inductive, capacitive, pyroelectric, piezoelectric have been described. Some
other important transducer such as Burden tube, Strain gauge, Bimetallic, mechanical
switches which have long been in use in the industries have been illustrated lucidly.
LOOKING AHEAD
In most of the cases the output of the transducer, other circuits and even systems require
conditioning. Getting the output signal according to automation demands or requirement is
referred to as conditioning. For instance the output voltage level of a typical transducer is in the
order of mV. This level is not sufficient enough to deal with, for which the level must be boosted
up. An electronic amplifier can solve the problem. The amplifier can be defined as a kind of
signal conditioning circuits. Within mechatronic systems, many signals require signal
conditioning at the intermittent points. The requirements of signal conditioning circuits is found
in many places. Besides amplification other signal conditioning functions are rectification,
filtering, Analog to Digital Conversion (ADC), Digital to Analog Conversion (DAC), Isolation,
multiplexing to name a few. In summary, it can be stated that the sole purpose for signal
conditioning circuitry is to optimally modify some signal to a form desirable for use. Chapter
six deals with this topic.
EXERCISES
· To explain the signal conditioning process, signal conditioning circuits and their use.
· To study many of the important signal conditioning circuits which includes voltage divider circuit,
potentiometer, rectifier, voltage stabilizer, clipping circuit, positive and negative clamper, multi-
stage amplifier, adder, subtractor, integrator, differentiator, filter, instrumentation amplifier, com-
parator, zero crossing detector, oscillators, sample and hold circuit, etc.
· To discuss the applications of 555 timer in the industrial needs.
· To study analog to digital conversion process.
· To explain the typical galvanometer with a diagram and also explain how this can be converted
to ammeter and voltmeter.
· To draw the basic building blocks of a CRO and explain them.
187
Signal Conditioning Theory, Circuits and Systems
6.1 INTRODUCTION
Signal conditioning is a process of preparing the available signal into a desirable one. It was pointed
out in the Chapter 2 that mostly, the signals are generated by the transducers or signal generators.
Within mechatronic systems, these signals require some amount of signal conditioning or signal
processing, at the intermittent point of interaction. For instance, the signal needs conditioning in
between a transducer and display or data acquisition unit. In essence, signal conditioning transforms
a raw signal into a refined or robust signal that lends itself to be used as conveniently as desirable.
Some of the signal conditioning functions are rectification, amplification, filtering, Analog to Digital
Conversion (ADC), Digital to Analog Conversion (DAC), Isolation and Multiplexing to name a few
just for introduction.
Signal conditioning is achieved by using signal conditioning circuits, which are designed by the use
of basic electrical components and electronic devices discussed in Chapter 3. There are many uses of
signal conditioning circuitry depending on the application requirement. For example, it may require to
convert a voltage signal to a frequency equivalent and vice versa. In some other applications
sometimes there is no need to send the entire range of voltage signal from one point to other, instead,
only the existence of a signal level is sent. There a simple comparator type signal conditioning circuit
has to be used.
This chapter describes the fundamentals as far as signal conditioning theory, circuits and system
are concerned. In particular, the basic circuits such as voltage divider circuit, rectifiers, clipping
circuits, clamping circuits, bridge circuits, amplifiers, instrumentation amplifier, low-pass, high-pass
filters, oscillators, timers, sample and hold circuits which are mainly used for signal conditioning
applications, have been illustrated.
Further, the Chapter deals with the basics of measuring instruments and equipment such as
galvanometer, ammeter, voltmeter and CRO (Cathode Ray Oscilloscope). These instruments and
equipment are used for the measurement and display of electrical signal parameters such as amplitude,
frequency and phase.
R1
+ +
Vin
−
V0
R2
The areas of application of the voltage divider circuits are numerous. Most electrical and electronics
equipment use voltages of various levels for different circuitry. One circuit may require a supply
voltage of 24 volts, another 75 volts and even another 110 volts. By suitably calculating the values of
resistances a compound voltage divider circuit as shown in the Fig. 6.2 can be designed.
R1
V0_1
R2
+
Vin V0_2
−
R3
V0_3
R4
Potentiometer is a current or voltage dividing equipment. It incorporates a resistor, which has three
terminals; two end terminals, and one middle terminal (knob), as shown in the Fig. 6.3. The middle
terminal is movable. The extreme ends are connected to the external input voltage signal, and the
middle terminal along with one of the end terminal is taken as output. The potentiometer can provide
different ratios of input to output resistance, causing a proportionate division of input voltage for
various positions of the movable knob. The position of the movable terminal determines what
percentage of the input voltage will actually be applied to the output circuit.
189
Signal Conditioning Theory, Circuits and Systems
+
+ R1
Vin
− Knob
R2 V0
6.3 RECTIFICATION
The semiconductor diode uses two types of semiconductor materials (p-type and n-type) that readily
pass carriers from one type to the other across the junction but strongly oppose any flow in the
reverse direction. It is thus a simplest form of carrier-controlling device. The unidirectional flow
action is the basis of rectification, a process by which an alternating current (AC) is transformed or
rectified into a direct current (DC). The two terms, diode and rectifier, are often used interchangeably.
The conversion from AC to DC is required in many applications, including machine control systems.
The process of rectification is illustrated in Fig. 6.4. If an AC signal is inputted a DC signal is received
as output. Rectification by diodes can be achieved in two ways, namely half-wave rectification
(Fig. 6.4 (b)) and full-wave rectification (Fig. 6.4 (c)).
Figure 6.4 (d) illustrates a half-wave rectifier circuit. If the AC input signal voltage Vin (Fig. 6.4
(a)) is in a positive half-cycle, the diode junction is in forward bias and current flows through the
diode. If Vin is in a negative half-cycle, the diode junction is in reverse bias condition, so no current
flows through. Therefore, in Fig. 6.4 (b) there is no negative excursion of the output even if there
exists a negative half-cycle of the input signal. As you can see, the output of the half-wave rectifier
(i.e., Fig. 6.4 (b)) is DC in nature, i.e. only the positive portion exists. Since only half of the input
signal appears at the output the circuit is termed a half-wave rectifier.
On the other hand, the full-wave rectification circuit rectifies the negative portion of the input
signal along with the positive portion. All positive and negative cycles appear as positive at the output
(Fig. 6.4 (c)). Figure 6.4 (e) and Fig. 6.4 (f) illustrate typical full-wave rectifier circuits. In Fig. 6.4
(e), two diodes are used, whereas in Fig. 6.4 (f), four diodes are used. Figure 6.4 (e) also uses a
transformer. These two types of full-wave rectifier are specially named a center-tapped and bridge-
type rectifier, respectively.
In Fig. 6.4 (e), the secondary coil of the transformer has a centre point. Consider positive half-
cycle of the input signal which immediately appear at the secondary coil. Let A be positive, making
both B and C negative with respect to A (C also is negative with respect to B). As A is positive, diode-
1 will conduct and the current will pass through the load resistor (a load resistor is a resistor in which
voltage is forced to appear) to point B. Point B is termed a reference point and has to be grounded.
Now, consider the negative half-cycle of the input signal. In this situation, point A will be negative
with respect to B and even more negative with respect to C. That is, C is now positive. Diode-2 will
conduct the current, which will pass through the load resistor in the same direction as when diode-1
was conducting during the positive half-cycle. Thus, irrespective of whether the input signal is in
190
Mechatronics: Principles, Concepts and Applications
Input
voltage +
Vin V0_hw
- R
Time
Ground
(a) (d)
V0_hw
Output Diode-1
voltage
A
I R
Time
+
(b) Vin B
-
V0_fw
C
Diode-2
(e)
Time
(c) F
One cycle D
D-3 D-2
A
B I R
G
+ D-1 D-4
Vin
E
- C
H
(f)
Fig. 6.4 (a) AC input signal (b) Rectified output of the half-wave rectifier circuit (c) Rectified
output of the full-wave rectifier circuit (d) Half-wave rectifier circuit (e) Center-
tapped full-wave rectifier circuit (f) Bridge type full-wave rectifier circuit
positive half-cycle or negative half-cycle, the direction of flow of current through the load resistor
remains unchanged. As a consequence, the output voltage (current multiplied by the load resistance)
is positive for all times since the current is only unidirectional.
A similar phenomenon occurs in the case of bridge rectifier circuits. Consider the positive half-
cycle of the input signal. A will be positive and B will be negative. Current will flow through D-1 and
D-2. The current loop will be GACEFDBH. Similarly during negative excursion of the input signal,
191
Signal Conditioning Theory, Circuits and Systems
the current loop will be HBCEFDAG. Note that the current through the load register R is unidirectional
for both positive and negative cycles of the input.
In this example, the input signal is sinusoidal in nature. If the input is saw tooth, rectangular,
square-wave, or any other type of AC signal, the output is DC. The output of the diode rectifier circuit
is called a pulsative DC signal instead of simply DC because the DC output is in fact pulsating in
nature.
In many occasions, the pulsating output requires smoothing in order to get a constant DC signal. A
steady and constant voltage can be obtained by connecting a capacitor at the output of the rectifier
circuit. The capacitor smoothes down the output by filtering out the ripples. Usually a large capacitor
called a smoothing capacitor is employed, and it must be connected in parallel with the load.
The smoothing circuit works as follows. During the rising period of the output signal the capacitor
begins to charge, and it keeps on charging until the rectifier output is at the peak level, (i.e. maximum
value). During the falling period, (i.e. when the voltage drops), however, the capacitor holds the
maximum value and starts discharging through the load resistor, R. The value of the capacitor must
be chosen to circumvent quick discharge. Thus the voltage across the capacitor never falls to zero.
The discharging capability is rated by the time constant, which depends on the values of R and C.
Since the capacitor is not able to discharge quickly, during the next rising period of the output signal,
it again charges until the output peaks. This time, however, the capacitor begins to charge not from
the zero level but from a level at which the rising voltage equals the residual voltage of the capacitor.
Refer to Fig. 6.5. The residual voltage is the voltage across the capacitor that remains after
discharging. In general, a larger value capacitor will display a better smoothing effect.
V0_hw
Capacitor output
Time
+ Smoothed signal of the half-wave rectifier
Vin Rectifier
circuit R C (a)
-
V0_fw
- Capacitor output
(b) Time
Fig. 6.5 (a) The smoothed output of a half-wave rectified signal (b) The smoothed output
of a full-wave rectified signal
reverse breakdown voltage known as zener voltage. The voltage across the zener diode is reasonably
constant over a wide range of output current variations.
R +
+
D-1 D-2
Vin Vclipping
− V-1 V-2
−
D C
(a)
Input signal
+ve
V-1 Clipped V-1
signal
Time
V-2 V-2
−ve
(b)
Fig. 6.7 (a) A typical clipping circuit (b) The output of the clipping circuit subject to a
sinusoidal input voltage signal
193
Signal Conditioning Theory, Circuits and Systems
Let the input signal be a sinusoidal signal. Consider the rising period of the input signal. Diode D-1
will be forward biased and D-2 will be reverse biased. The diode D-1 will conduct only when the input
rising signal equals the DC voltage source V-1 (assuming the diodes are ideal diodes and the voltage
drop across the resistor R is small). Once the diode D-1 conducts, the output voltage will no longer
rise in synchrony with the input. During positive excursion of the input, the output of the circuit is
thus forcefully limited to a level that is equal to the voltage of the source, V-1. A similar situation
happens during the negative cycle, but now the diode D-1 will enter a reverse biased condition and
D-2 will conduct only when the negative excursion exceeds the DC voltage source, V-2.
Clamping circuit, on the other hand, shifts the input voltage levels without changing the shape of
the signal. Depending on the requirement, the input signal is shifted either up or down, keeping the
voltage range constant. Clamping circuits are of two types, namely positive clamper or negative
clamper. Figure 6.8 (a) and (d) shows the two circuits.
C C
+ + + +
Vin D R V0 Vin D R V0
− − − −
(a) (d)
Time Time
(b) (e)
Time
Time
(c)
(f)
Fig. 6.8 (a) A positive clamper (b) The input signal (c) The clamped output (+ve)
(d) A negative clamper (e) The input signal (f ) The clamped output (–ve)
194
Mechatronics: Principles, Concepts and Applications
Assume the diodes are ideal. Consider Fig. 6.8 (a). During the negative half-cycle the capacitor will
charge to a voltage equal to the negative peak of the input signal. The right side of the capacitor will be
positive. Thus, the output is positive when the input is doing negative excursion. Then the diode will
be reverse biased for a full cycle after it is charged. Now the output voltage is the summation of the
input voltage and the capacitor voltage.
6.6 AMPLIFIER
A circuit that accepts an input signal and produces an output signal in the same way as the input but
has a larger magnitude is known as an amplifier circuit. The input signal is either a voltage signal or a
current signal. The nature of the output signal is the same as that of the input but the amplitude is
higher. The important aspect of an amplifier is the gain, the ratio of the output to the input. Amplifiers
in their simplest form are built around a transistor. Transistors such as BJT, FET, and MOSFET can
be used for the design of the amplifier circuit (see Fig. 3.15). The schematic diagram of the amplifier
is given in Fig. 6.9 (a). In order to achieve the required gain, sometimes three or four stages of
amplifier circuits are designed. This kind of amplifier is referred to as a multistage or cascade
amplifier. In this design the output of the first stage is fed to the input of the second stage and so on.
The overall gain of such a multistage amplifier is approximately equal to the product of the individual
gains (Fig. 6.9 (b)).
G = G1 ´ G2 ´ L ´ Gn (6.3)
Where G is the overall gain, G1, G2, etc. are the individual gains.
+ +
v0
vin Input G= v Output v0
in
−
−
(a)
+ +
vin Input G1 G2 G3 G4 v0 Output
− −
v0
G= v
in
(b)
Fig. 6.9 (a) Single stage amplifier (b) Schematic diagram of multistage amplifiers
Presently the multistage amplifiers are available in the form of integrated circuits. OP-AMP is a
kind of multistage transistorized amplifier.
195
Signal Conditioning Theory, Circuits and Systems
R1 Rf R1 Rf
+
Input Vs − Output − Output
− + +
+ +
V0 V0
− + −
Input Vs
−
(a) (b)
Fig. 6.10 (a) Inverting configuration of Operational Amplifier (OPAMP) (b) Non inverting
configuration of OPAMP
The input impedance between the inverting and noninverting terminal of the OPAMP is very high.
In the inverting case, the input current Ii supplied by the input voltage Vs will pass through the
feedback register Rf . The voltage gain in this configuration is called the inverting voltage gain, which
is the ratio of output voltage to input voltage, and mathematically can be written as,
V Rf
Ainv = o = - (6.4)
Vs R1
The values of R f and R1 should suitably be chosen in order to determine the gain of the amplifier.
In noninverting configuration, however, the gain calculation draws attention in the sense that R f
and R1 form a voltage divider circuit. Because of the voltage dividing action the voltage Vf at inverting
terminal is
Vf =
F R IV 1
(6.5)
GH R + R JK
1 f
o
The differential voltage Vs – Vf is actually the input voltage to the OPAMP. After mathematical
treatment, the noninverting gain is found to be
V Rf
Anoninv = o = 1 + (6.6)
Vs R1
196
Mechatronics: Principles, Concepts and Applications
Figure 6.11 illustrates how OPAMPs can be realized for mathematical operations. These basic
circuits are also used for conditioning the signal within a mechatronic environment.
R
V1
R Inverting R
R terminal
V2
R
R - V1 -
V3 + +
+ V2 +
V0
R
- V0
Ground Non-inverting
terminal
-
Ground
(a) (b)
C R
R C
Vin - Vin -
+ +
+ +
V0 V0
- -
Ground Ground
(c) (d)
Fig. 6.11 (a) An adder (b) Subtractor (c) Integrator (d) Differentiator
Figure 6.11 (a) shows an adder circuit, an inverting-type amplifier. Since the input impedance of
the OPAMP is very high there is no current into the OPAMP. So almost all current supplied by the
inputs V1, V2 and V3 will pass through the feedback resistor, R. The sum of the three input currents
is
V1 V V (6.7)
I in = + 2 + 3
R R R
The output current is
V0
I0 = - (6.8)
R
Equating Eqs 6.7 and 6.8,
V0 = -( V1 + V2 + V3 ) (6.9)
So, the output voltage is equal to the sum of the input voltages.
197
Signal Conditioning Theory, Circuits and Systems
Subtraction is achieved by providing one voltage signal to the inverting terminal and another to the
noninverting terminal. The output voltage is proportional to the difference between the two inputs.
This configuration is termed a differential amplifier. Differential amplifiers are characterized by a
factor called the Common Mode Rejection Ratio (CMRR), which is the ratio of the open-loop
differential gain Aod, and open-loop common-mode gain, Aoc and is expressed in dB.
Aod
CMRR = 20 log10 (6.10)
Aoc
Vod _out Voc _ out
Where, Aod = and Aoc =
Vod _in Voc _ in
Vod_out and Vod_in are output and input voltages in an open-loop differential configuration as shown in
Fig. 6.12 (a). Voc_out and Voc_in are output and input voltages in open-loop common-mode
configuration as shown in Fig. 6.12 (b). High CMRR is always desirable.
− −
+ Vod_out Voc_out
Vod_in + +
− + +
− + −
Voc_in
−
(a) (b)
The integration operation is obtained by interchanging the the feedback registor with the capacitor
as illustrated in Fig. 6.11 (c). The gain in this case can be calculated as
V0 X 1
G( jw ) =- =- c =- (6.11)
Vin R jwRC
Vin 1
Therefore, V0 =-
jwRC
=-
RC
Vin dtz (6.12)
Where, Xc is the impedance of the capacitor and C is the value of the capacitor. Equation 6.12
implies that the output is proportional to the integration of the input signal. From Eq. 6.11, it is evident
that the gain is a function of w, the frequency (w = 2pf ). The frequency is in the denominator tells
that the gain decreases as frequency increases. Keeping all parameters constant (input voltage, R, and
C), if you vary the input frequency then the gain of such a circuit (integration) will vary as shown in
Fig. 6.13 (a). For low frequencies, the gain is high. As the integration circuit passes the low signals
containing low frequency components and attenuates the high frequency components, this circuit is
also referred to as a low-pass filter.
198
Mechatronics: Principles, Concepts and Applications
The differentiation circuit is shown in Fig. 6.13 (d). If Xc is the impedance of the capacitor, the
gain can be calculated as
V R
G( jw ) =- 0 =- =-jwRC (6.13)
Vin Xc
dVin
Therefore, V0 =-jwRCVin =-RC (6.14)
dt
Equation 6.14 implies that the output is proportional to the differentiation of the input signal.
From Eq. 6.13, notice that the the gain is a function of w, the frequency of the input signal. Keeping
all parameters constant (input voltage, R, and C), if you vary the input frequency then the gain of
such a circuit (differentiator) will vary as shown in Fig. 6.13 (b). The gain is propertional to the
frequency. For low frequency the gain is low. The gain is zero at zero frequency. This justifies that
the capacitor does not allow the DC signal (zero frequency signal) to pass through, as it has high
impendance to the DC signal. The gain increases as with frequency and becomes steady or constant
after a certain frequency. Since the differentiation circuit passes the high frequency components and
attenuates the low frequency components, this circuit is also called a high-pass filter.
Apparently, the integrator (low-pass filter) and differentiator (hogh-pass filter) circuits are
electronic filters because the circuits filter out some frequency components from the input signal. If
the input signal has all the frequency components, output will lack some frequency components.
There are numerous applications of filters which require some sort of filtering of even noise
frequencies.
− 3 dB
− 3 dB
Gain Gain
fu Frequency fL Frequency
Frequency response curve of a low-pass filter Frequency response curve of a high-pass filter
(a) (b)
Fig. 6.13 (a) Gain vs. frequency response curve of a typical low-pass (integrator) filter;
(b) Gain vs. frequency response curve of a typical high-pass (differentiator)
filter
Besides low-pass and high-pass filters, there are band-pass, band-reject, narrow-band, and notch
filters, whose frequency response curves are plotted in Fig. 6.14. A band-pass filter passes one band
of frequencies while rejecting both higher and lower frequencies. A filter that rejects one band of
frequencies while passing both higher and lower frequencies is called a band-reject filter. Narrow-
band filters have very narrow bandwidth. Notch filters pass almost every frequency except for a few
components. Band-reject filters and notch filters are synonymous, depending upon the frequency
range with which their names appear.
Power normalized to
zero dB (100% power)
Maximum gain
100% gain
71% gain
− 3 dB (50% power)
fL fu
(a) Frequency
Power normalized to
zero dB (100% power)
Maximum gain
100% gain
71% gain
− 3 dB (50% power)
fL fu Frequency
(b)
fL fu Frequency fL fu Frequency
(c) (d)
Fig. 6.14 Frequency response curve of various filters (a) Bandpass filter (b) Band-reject
filter (c) Narrow-band filter (d) Notch filter
200
Mechatronics: Principles, Concepts and Applications
Every filter has a BW. The bandwidth of a filter determines what frequency components it can
allow to pass through without attenuation. In practice, the bandwidth is defined as the difference
between the upper cut-off frequency, fU and the lower cut-off frequency fL , of the frequency response
curve. The frequency response curve is plotted in dB scale. When plotted in dB scale it is called a
Bode plot (See Chapter 11). The fU and fL are the frequencies at which the output power is 50 percent
of the maximum possible output power. These are the two frequencies at which the gain is
approximately 71 percent of the maximum gain. If the maximum gain is normalized to 0 (zero), then
the gain at these points would be –3dB. For this reason the lower cut-off and upper cut-off frequencies
are called –3dB points. The practical definition of the bandwidth of the filter becomes the frequency
range (two extreme points in the frequency domain) of the filter within which the output power varies
from 100 percent to 50 percent.
When the filters are designed using only passive elements such as capacitors and inductors, they
are referred to as passive filters. A smoothing capacitor at the output of the rectifier circuit can be
treated as a low-pass filter (Fig. 6.5). Filters that are designed either using a transistor or OPAMP are
called active filters. Low-pass and high-pass filters shown in Fig. 6.11 (c) and (d) using OPAMP are
typical active filters. A typical bandpass filter using OPAMP is shown in Fig. 6.15.
C1
R1
C2 R2
Vi −
V0
+
This circuit would attenuate low frequencies (i.e., fL<<1/R2 C2) and high frequencies (i.e., fU >> 1/
R1 C1). It passes all frequencies in between these two points. The gain of the filter is – R1/R2.
such circuit is one. This signifies that whatever signal strength is available at the input (i.e., from the
output of the circuit-1) it transforms the same signal to the circuit-2 without any attenuation. Since
the output impendence of the isolator is very high, in practice it makes next circuit electrically isolated
from the previous one.
+ + + + + +
− − − − − −
(a)
−
Output
Input +
(b)
Photodiode
LED
Optoisolator
(c)
Fig. 6.16 (a) An isolator in between two circuits (b) An isolator using OPAMP (Unity
follower) (c) The principle of optoisolation
The isolation can also be achieved by utilizing optical signals. The electrical signal at the output of
the previous circuit is converted to light signal by a Light Emitting Diode (LED). Then the converted
light signal again gets converted to get back the electrical signal by using a photodevice such as
photodiode or phototransistor as shown in the Fig. 6.16 (c) satisfying the sanctity of isolation. The
optoisolators are available in IC form, where the LED, photodevice and other necessary circuitry are
built into it.
202
Mechatronics: Principles, Concepts and Applications
+
R
−
+
V0
R
+
R
−
R −
V2 + R R
Ground
Instrumentation amplifier ICs include LM363 from National Instruments, INA148UA from Burr-
Brown, and INA321 from Texas Instruments. They usually operate with supply voltages from ±5V to
±15V, with a 1.5 mA current drain. The gain is very high (on the order of 10, 000) but can be
manipulated by designing the external circuits. Like other ICs their operating temperature ranges from
0°C to 70°C. The typical value of the CMRR of an IA is about 120 dB.
are for output measurement. The bridge is very reliable and is considered as a sophisticated and
precision signal-conditioning circuit. They are widely used as signal-conditioning circuits for
temperature and strain measurements. In many circumstances, like measurement of strain,
temperature, and other parameters, resistive transducers are used more frequently (Strain gauge, for
example, is a resistive transducer, see strain gauge in Chapter 5). In order to make use of such a
resistive gauge typically a change of resistance DR in the order of 0.0005 Ohm has to be measured.
It is not practicable to measure the change of resistance of the order mentioned above by any other
means. The measurement, i.e., the change of resistance is customarily carried out by the use of a
Wheatstone bridge.
R1
A D
+
+
+ Instrumentation
Excitation Output
R3 R4 amplifier
voltage -
-
-
C B
R2
A DC voltage source called excitation voltage is applied between two input terminals. The output
voltage is measured across the other two terminals, i.e. C and D. When the output voltage is zero, the
bridge is said to be in a balanced condition. One of the arms called the active arm itself constitutes a
resistive transducer, such as a strain gauge. The other arms of the bridge are simply resistors with
resistance equal to that of the strain gauge. When the resistance of the active arm changes in
accordance with the measurand (say, strain) the previously balanced bridge will be unbalanced. The
amount of unbalance is a measure of the measurand. The unbalance appears as a voltage across the
output terminals. The voltage is proportional to the change in resistance, which is again proportional
to the measurand (strain). The voltage is then amplified and calibrated to reflect the strain. The output
voltage Vout is
Vin DR
Vout = ´ (6.15)
4 R
where, Vin is the excitation voltage and R is the resistance of the arms and DR is the change in
resistance. Other arm resistors must be high-precision resistors with a desirable resistance tolerance
of ± 0.01%, temperature coefficient of resistivity of 1 ppm/°C, and stability of less than 20 ppm/year
drift. If the resistors have power-dissipation characteristics, instability in the circuit will arise. Because
of their sensitivity, Wheatstone Bridge Circuits are also very advantageous for the measurement of
inductance and capacitance.
204
Mechatronics: Principles, Concepts and Applications
6.10 COMPARATOR
Comparators are widely employed in many applications in which some sort of signal comparison is
required. It is an electronic circuit that typically contains a threshold or reference voltage level to
which the voltage level of another signal is compared. If the signal to be compared is greater than the
reference voltage setting then the comparator circuit provides an output in terms of a pulse or step
signal, say + V. In Fig. 6.19 a typical sensor signal is compared with the reference level of the
comparator, which provides a pulse when the sensor signal exceeds the threshold limit.
In some situation a sensor and the comparator circuit are integrated together. This kind of combined
circuit is mostly used in feedback control systems. For example, a thermostat, also called a
temperature regulator, uses the comparator circuit to control a system by driving a relay when the
temperature transducer (thermistor) reaches the setting temperature. The thermistor can constitute an
arm of the instrumentation amplifier (IA). The IA voltage is compared with the voltage of the setting
temperature using the voltage comparator. If the differential voltage becomes greater than the setting
voltage, the comparator provides a pulse or step output to drive the relay that makes it possible to
disconnect the burner from glowing.
Comparator circuits can be designed using diodes, transistors, and OPAMPs. Comparator ICs are
also available (LM311 is a comparator IC). The OPAMP-based comparators can be constructed in
205
Signal Conditioning Theory, Circuits and Systems
either inverting or noninverting mode. OPAMP characteristics recognize that the output transition
occurs according to the input terminal setting. The following four combinations are applicable with
regard to OPAMP transitions.
Inverting mode;
Vo = V+ saturation for Vin ñ 0 (6.16a)
Vo = V-saturation for Vin á 0 (6.16b)
Noninverting mode;
Vo = V+ saturation for Vin á 0 (6.17a)
Vo = V-saturation for Vin ñ 0 (6.17b)
−
Vo Vin
Vin +
(a)
Vo
+ Vcc V+saturation + Vcc
Vin −
V0 Vin
+
(b)
The two open-loop OPAMP circuits shown in the Fig. 6.20 can be used as comparators. The
transition occurs based on whether the reference voltage (Vref = Vin ) is less than zero or greater than
zero. Alternatively, it can be said that the transition points have been set at a voltage level of zero. The
“zero” reference voltage can be substituted with an arbitrary reference voltage, which could be the
threshold voltage for comparison.
Figure 6.21 illustrates a comparator circuit using an OPAMP in non-inverting mode. In the figure a
reference source, which is equal to the threshold level, has been connected to the inverting terminal.
The signal to be compared with the reference voltage is applied to the noninverting terminal. Whenever
the input voltage is greater than the reference voltage the transition occurs, providing an output pulse
or step.
206
Mechatronics: Principles, Concepts and Applications
+ Vcc
−
+ Vo
+
−
Vref
− Vcc
+
Vin
−
− −
Time
Time
Time Time
6.11 OSCILLATOR
Signal conditioning circuits include waveform generators. Within automation and control, various
types of oscillatory waveforms are required. The types of oscillatory waves are sinusoidal, triangular,
impulsive, square-wave, saw-tooth, staircase, and so on as illustrated in Figure 6.23.
Amplitude Amplitude
Time Time
(a) (b)
Amplitude Amplitude
Time Time
(c) (d)
Amplitude Amplitude
Time Time
(e) (f)
Fig. 6.23 Different types of waveforms. (a) Sinusoidal (b) Tringular (c) Impulsive
(d) Square-wave (e) Saw-tooth (f) Staircase
The waveform generator circuits are referred to as oscillators since the outputs are oscillatory-type
signal. Oscillators are electronic circuits that generate a changing output voltage that repeats regularly
at constant intervals. All oscillator circuits are positive feedback systems (Refer to Fig. 6.24), in
which the loop gain is “1”.
AB = 1 (6.18)
where A and B are the amplifier gain and the feedback gain, respectively. Another satisfactory
condition for oscillation is called phase condition, which implies that the phase shift around the loop is
0 or 360 degrees.
Depending upon the circuit configuration, different types of oscillators exist. They include the
Wien-Bridge oscillator, phase-shift oscillator, Colpitts oscillator, Clapp oscillator, Hartley oscillator,
and most versatile Crystal oscillators. Figure 6.25 illustrates an OPAMP-based Wien-Bridge oscillator.
208
Mechatronics: Principles, Concepts and Applications
Amplifier
Feedback circuit
R1
Voltage divider −
Vo
R2
+
C1 R4
R3 C2 Lead-lag circuit
Ground
The lead-lag circuit provides a positive feedback. When R 4 = R3 = R and C1 = C2 = C the frequency
of oscillation is
1
fosc = (6.19)
2 pRC
An OPAMP-based square-wave oscillator is shown in Fig. 6.26. The voltage across the capacitor
V1 is triangular in nature. If R3 = 0.86R2, then the frequency of oscillation is
1
fosc = (6.20)
2 R1C
The maxima and minima of the triangular wave are Vu = V+ saturation and Vl = V= saturation
respectively.
209
Signal Conditioning Theory, Circuits and Systems
R2
V0
R3 V+ saturation
Time
V− saturation
The OPAMP-based triangular wave oscillator is shown in Fig. 6.27. It uses two OPAMPs. The
first OPAMP is a comparator and the second is an integrator. The voltage at the output of the first
OPAMP is square-wave in nature. The integrator integrates the square-wave, producing a triangular
wave. The frequency of oscillation is
fosc =
1 FG R IJ
2
(6.21)
4 R1C HR K
3
The maxima and minima of the triangular wave are
Vu = V+ saturation
FG R IJ
3
(6.22a)
HR K 2
Vl = V= saturation
FG R IJ respectively.
3
(6.22b)
HR K 2
For getting stable and accurate oscillatory signal output, a piezoelectric quartz crystal is often used.
The property of the quartz crystal is that when a changing mechanical stress is applied to the crystal,
an oscillatory voltage is developed, whose frequency is the same as that of the mechanical stress
vibrations. The highest vibration occurs at the natural frequency of the crystal. The frequency
depends on dimensions, type of cut, thickness, temperature, etc. The quartz crystal has increasingly
become an essential component for modern electronics. It is mainly used for frequency generation,
synchronization, filtering, and precision time keeping. Quartz crystals find applications in control,
communications systems, microprocessors, computers, watches, and so on. The symbol and
equivalent electrical circuit of a crystal are shown in Fig. 6.28. The series circuit comprised of R, L,
and C constitute real mechanical resonance parameters. R implies the loss of energy within the crystal,
D denotes the elasticity of the quartz, and L is equivalent to mass. The two electrodes on the quartz
exhibit a parallel plate capacitor Co with quartz as dielectric material.
210
Mechatronics: Principles, Concepts and Applications
V1
R3 V+ saturation
Ground
Time
R2
+ V− saturation
+ R1 V0
−
− V1 V0
Ground C
Vu
Comparator Integrator
Time
V1
XTAL C0
L
Symbol C
Pin number 8 is always connected to the supply voltage, which ranges from +5 volts to +18 volts. Pin
1 is the ground terminal. Pin 2 is called the trigger terminal. It is the ON switch for the output pulse. The
terminal is activated by applying an active low signal. It is very common to see the active low signal for
many IC inputs because of the inverting behaviour of transistor circuits. The output is taken from pin
number 3. The output has two levels, ‘high’ Vu or ‘low’ Vl. When 0 volts is applied to pin 2, the IC
outputs Vcc on pin 3 and holds this voltage until pin 6 reaches 2/3 of the Vcc. Once pin 6 attends 2/3 Vcc
then pin 3 is “0” again. Thus, a pulse is generated. By applying trigger signals repeatedly, it becomes
possible to get pulses at the output. The reset pin is there to reset the output to “0’” irrespective of the
current status. Pins 5, 6, and 7 are called the control, threshold, and discharge terminals respectively,
which is described below along with an explanation of the internal basics of the IC.
Gnd 1 8 Vcc
Trigger 2 7 Discharge
Output 3 6 Threshold
R Comparator-1
Threshold
6 -
2/3 Vcc
5 +
Control
Flip-flop Transistor 2 Output
R
1/3 Vcc
(Active low) -
2 +
Trigger Comparator-2
R
Ground
1 7
Discharge
The internal basic building blocks of 555 are shown in Fig. 6.30. As you can see, there are two
comparators within the chip. The inverting terminal of comparator-1 is the threshold pin and the
noninverting terminal is the control pin. The voltage at the control pin is 2/3 of the Vcc, since Vcc has
been equally divided among three resistors connected in series. The voltage at the noninverting
terminal of comparator-2 is 1/3 of the Vcc and the inverting terminal of this comparator is identified
itself as the trigger pin. The outputs of the two comparators are connected to a flip-flop circuit that
outputs at pin number 3.
A typical configuration of 555 by the use of external components for the generation of rectangular
waves is shown in Fig. 6.31.
+ Vcc
Ra
3
V0
7 Output
555 5
Rb
6 0.01 µF
Vc(t) 1
2
A resistor is connected between the capacitor and the discharge pin (number 7). Pin 6 and pin 2 are
shorted. The capacitor is made to charge up through Ra and Rb. When it reaches 2/3 of the Vcc,
comparator-1 inputs will be the same and comparator 2 inputs will have different values (i.e., the
inverting terminal will be 2/3 that of the Vcc and noninverting terminal will be at 1/3 of the Vcc), forcing
comparator 2 to make a transition at the output. As a consequence, pin 3 and pin 7 will be set to “low.”
Now the capacitor will start discharging through Rb, since pin 7 is at ground. But it will take some
time to discharge because of the presence of Rb. The draining time depends on the value of Rb. The
more resistance Rb has, the longer it takes to discharge. As the capacitor is discharging, the voltage in
the capacitor gets lower and lower. When it reaches 1/3 of the Vcc, this triggers comparator 2 (note
that the two inputs of the comparator are not the same now; for more clarification refer to the
comparator description in the previous section), causing pin 3 to go to “high.” Now 555 disconnects
pin 7 from ground. The capacitor starts to charge up again through Ra and, Rb and the cycle repeats.
Eventually, at the output, i.e. at pin 3 a free-running rectangular wave is obtained. The following
formulas are used to control the length of the output pulses of the 555.
213
Signal Conditioning Theory, Circuits and Systems
T1 = 0.693( Ra + Rb )C
T2 = 0.693 Rb C
T = T1 + T2 = 0.693( Ra + 2 Rb )C (6.23)
1 1.44
f= =
T ( Ra + 2 Rb )C
Where T1 and T2 are the charge and discharge times. T is the pulse width and f is frequency of the
output waveform. Figure 6.32 illustrates the voltage waveforms across the output pin and the
capacitor.
Output
Vu
Time
Vcc
2/3 Vcc
1/3 Vcc
Time
T1 T2
Fig. 6.32 (a) Voltage waveforms across the output pin (b) Voltage waveforms across the
capacitor
The type of configuration shown in the Fig. 6.31 is called the free-running mode because the
triggering signal is captivated from the timer. That is the configuration is such that the trigger signal is
generated from the 555 itself. The free-running mode of operation of 555 is called the astable mode.
The circuit has the unique name of an astable multivibrator. The “astable” term comes from the idea
that the output is not stable to one level. That output transits as a result of which a stable state or level
(high or low) is not attained during the course of operation. Only the width of the pulse can be
controlled through the passive external elements such as resistors and capacitors as mentioned in the
above equation. If it is required to control the state or the level of the output according to our
requirement, we must deal with the monostable mode of operation of the 555. In the monostable mode
of operation, the output retains one state only (one shot), however, the current state can be changed
to another state by appropriately configuring the 555 with external components.
An astable multivibrator spontaneously switches from one state to another (low to high or high to
low). The time it stays high and the time it stays low are determined by the values of the external
214
Mechatronics: Principles, Concepts and Applications
components. A monostable multivibrator circuit, on the other hand, has an output that stays in a
given state (either low or high) until a separate signal triggers the timer. Usually the separate trigger
signals are provided externally. The monostable mode requires only two external components, R a and
C, as shown in Fig. 6.33. Time period is determined by
T = 1.1 Ra C (6.24)
+ Vcc
Ra
3
V0
7
Output
555 5
Rb
0.01 µF
Vc(t) 1
6
2 Trigger signal
C
There are thus two basic forms of timers, both of them multivibrators. In summary, a multivibrator
is a circuit that oscillates from one state to another over time, creating rectangular or square waves.
takes time, which depend on the value of R 1 and R 2. In order to follow the input signal, an appropriate
value for the capacitor must be chosen. For example, when the signal is decreasing past the capacitor
voltage, the capacitor has to discharge.
R1 E +
A
D-1 D-4
+
+ C D Output
Vin R2 Ch
Vout
- -
D-3 D-2
B
Vosc
+ -
Vin
Time
Vosc
Time
Vout
Time
6.14 CLOCK
The pulse or step signal happens only once. Conversely, an oscillator provides an endless series of
pulses. The output constantly goes from “ground” volts to Vcc and back to “ground” volts again.
Almost all digital circuits require some triggering signal which are oscillatory in nature. This stream of
oscillatory signal if often called a clock signal. The circuit that generate such clock signal is simply
called a clock. Remember that in sequential logic circuits the clock signal plays a very important role.
In a digital system everything has to be carried out in a timely synchronous manner. The sequential
digital circuit listens to the clock signal regularly and the action takes place in a precise timing
sequence. The smallest time at which all the components within a single unit or within the entire
circuits are triggered is determined by the period of the clock. Mostly quartz crystals are used for
providing clock signals. In some cases, where stability is less important, oscillator circuits using 555
timer or OPAMPs ICs or even using discrete components such as BJT, FET, etc. are designed to
generate clock signals.
Digital Q1 = 0110
Analog signal Binary signal Q2 = 1001
Sampler Quantiser
converter Q3 = 0110
Q4 = 0110
Q5 = 1110
Sample and hold
(a)
Amplitude
Sampling signal
Time
(b)
Sampled signal
S1 S2 S3 S4 S5 Time
(c)
Quantised signal Quantisation level-15
Quantisation level-1
signal. Sampled signals are forced to a pre-defined levels. These allowable pre-defined levels are called
quantisation levels. The sampled signal can take one of the nearest levels. The duration of the
quantiser output can be elongated by a hold. In effect, the combination can be referred to as sample
and hold (S/H) circuit, which you studied in the previous section. The binary converter or code
converter, generates a unique binary number or code according to the quantisation level of the
quantised signal.
The number of allowable pre-defined levels is important in the context of considering the resolution
of the conversion system. More the number within a given limit better is the resolution. As well, the
218
Mechatronics: Principles, Concepts and Applications
number of levels is always a power of 2, since the conversion employs binary coding. In this example,
sixteen quantisation levels have been chosen. Therefore, the length of the word (code) of each sample
would be 4. If it is required to produce a digital word with 8 bits, then the number of quantisation
levels should have been 28 = 256 levels. Consider a transducer output (analog signal), which produces
an electrical signal within the limit of 0.05 volts to 3.0 volts. The range of the transducer is thus 2.95
volts. If you adopt the analog to digital system with a 4-bit word length, then the resolution would be
2.95/24 = 184 mV. On the other hand, if you adopt an A/D with 8 bits of word length, then the
resolution would be 2.95/28 = 11 mV.
Higher resolution results in approaching the analog level, when the analog signal is reconstructed
from the digital equivalent. The reconstructed analog signal will more closely resemble the original
analog signal. In other words higher the number of bits, more accurate can the analog signal be
reconstructed from its binary or digital representation.
The quantised signal Q1 has a quantisation level of 6 (Note that the quantisation level starts from
“0” in a binary system). The binary equivalent of decimal number “6” is 0110. Other sampled and
quantised signals have been converted to their binary equivalents by the binary converter, which have
been shown as the output of Fig. 6.35 (a).
The error produced due to quantisation is called the quantisation error. Mathematically, the
quantisation error is given by
S2
eq = (6.25)
12
Where eq is the quantisation error and S is the difference between two consecutive quantisation
levels, called step size. Thus, higher resolution implies low quantisation error.
One of the important parameters of an analog to digital converter is the sampling frequency, which
is not actually taken arbitrarily. Fundamentally, there is a strict relationship between the sampling rate
and the signal frequency as far as exact recovery of the analog signal from the sampled signal is
concerned. This relationship is known as the sampling theorem and states that “the sampling rate
should be at least twice that of the highest frequency of the analog signal.” That is,
fs ³ 2 f M (6.26)
Where fs is the sampling frequency and fM is the maximum frequency possessed by the analog
signal. If this condition is satisfied there will be no aliasing. Aliasing entails the problem of overlapping
of signal in the frequency domain. This can be understood by analyzing the sampled signal that
appears at the sampler output.
A sampler is simply an electronic multiplier as shown in Fig. 6.36. It multiplies the analog signal
(Fig. 6.36 (a)) with a periodic pulsed signal with unit amplitude (Fig. 6.36 (c)). The frequency of the
pulsed signal is fs. Figure 6.36 (e) is the sampled signal in time domain, which is simply the
multiplication of the analog signal and periodic pulsed signal. Figure 6.36 (f), (g), and (h) shows the
amplitude of spectral density of the product (sampled) signal. The amplitude of spectral density is the
Fourier Transforms (FT) of the product signal (refer to Chapter 2). The FT of the product contains
the FT of the analog signal and the sidebands ((Upper Side Bands (USB) and Lower Side Bands
(LSB)) located around, fs, 2fs, 3fs, and so on, as shown in Fig. 6.36. Two sets of sidebands around fs
(LSB-1 and USB-1) and 2fs (LSB-2 and USB-2), have been shown, although theoretically, the numbers
of sidebands in the product are infinite.
219
Signal Conditioning Theory, Circuits and Systems
Analog signal
in time domain Pulsed signal
1
Time Time
(c)
(a)
Analog signal
in frequency domain
Multiplier
fM Frequency Time
(b) (d) (e)
Frequency
fs 2fs
(f)
Frequency
fs 2fs
(g)
Case-3 : fs > fM
Multiplied signal in the frequency domain
fs 2fs Frequency
(h)
Fig. 6.36 (a) A typical analog signal (b) The Fourier Transform (FT) of the analog signal
(c) A pulsed signal (d) Multiplier (e) Sampled signal (f) FT of the sampled
signal—Case-1, i.e., fs = fm (g) FT of the sampled signal—Case-2, i.e., f s < fm
(h) FT of the sampled signal—Case-3, i.e., fs > fm
220
Mechatronics: Principles, Concepts and Applications
Three cases have been shown. In case-1, the sampling frequency, fs is exactly twice that of the
maximum frequency, fM of the analog signal. In case-2, fs < 2fM and case 3, fs < 2fM. As you can see,
there is an overlapping among the sidebands of the product signal. The overlapping (aliasing) problem
can be solved if the sampling frequency is greater than or equal to twice the maximum frequency of
the analog signal.
Bearing in mind the above aliasing problems (i.e. fs should be greater than 2fM ), the analog to digital
converter (A/D) circuits are designed. There are various ways of realizing an A/D circuit. Basically,
two types of realizable circuits are encountered:
· Counter-based technique
· Successive approximation technique
Both counter-based A/D converters and successive approximation include a digital-to-analog (D/A)
converter circuit. For this reason, the D/A converter will be described first.
Rf
-
I0 I1 I2 I3 I4 I5 I6 I7
Vout
128R 64R +
Data bits 32R
S0 16R
D0 8R Ground
S1
D1 4R
S2 2R
D2
S3
D3 R
S4
D4
S5
D5
S6
D6
S7
D7
Vd
In Fig. 6.37, the voltage Vd is called a detrimental signal, which is kept constant. The switches S0
through S7 represent electronic switches, which can be realized using transistors. In order to avoid
221
Signal Conditioning Theory, Circuits and Systems
the complexity within the circuit, the detailed electronic circuit, with regard to switches, has not been
shown. However, bear in mind that the switches are operated (close and open) through 8-bit (a byte)
input digital data, which needs conversion. Switch, S0 is operated by the data bit D0, switch S1 is
operated by data bit D1 and so on. A “0” causes the switch to open and a logic “1” causes the switch
to close. As an example, a digital data “01011101” at the input of the summing amplifier makes, S0, S2,
S3, S4 and S6 to close and S1, S5 and S7 to open respectively. Note the values of the resistances, which
are in the binary order. When a switch is closed the current passes through the respective resistor.
The value of the current depends on the value of the resistance. Since the values of the resistance are
in binary order, so are the currents.
When all switches are open, no current passes through and the output is zero. That is Ii = 0. When
all switches are closed the current through the respective resistors are,
Vd Vd Vd Vd
I0 = ; I1 = ; I2 = ; I3 =
128 R 64 R 32 R 16 R
(6.27)
Vd Vd Vd Vd
I4 = ; I5 = ; I6 = ; I7 =
8R 4R 2R R
th
where Ii is the current through the i resistor.
If the value of detrimental voltage is 5 volts (most preferable value), then the binary weighted
currents due to the most significant bit and that due to least significant bit become,
I7 = 5 / R
(6.28)
I 0 = 5 / 128 R = 0.0390625 / R
Thus, the current through any resistor represents the weighted value of the bit position. For unique
combinations of input bits the summing circuits will produce a unique analog output, since the circuit
sums up input currents. The number of combinations in this case is 28, i.e. 128.
Figure 6.38 uses another technique called R-2R ladder method of Digital to Analog Conversion. In
this case, the detrimental signal is a current signal. The switch S0 through S6 are operated by the data
bits. Switch, S0 is operated by the data bit D0, switch S1 is operated by D1 bit of the digital data and so
on. A “0” causes the switch to open (X-position) and a logic “1” causes the switch to close. As an
example, a digital data ‘10100010’ at the input of the summing amplifier makes, S1, S5 and S7 to close
and S0, S2, S3, S4 and S6 to open respectively.
Notice the value of resistances and their connections. Vertical resistors have value twice that of the
horizontal resistors. Refer the solved example given in the Chapter 3. Because of R-2R configuration
the current is divided into two halves at each node, N. The current through any vertical resistor
represents the weighted value of the bit position. For unique combinations of input bits the summing
circuits will produce a unique analog output, since the circuit sums up input currents. For simplicity,
assume that the value of the detrimental current source is 256 mA. Now,
Id Id Id Id
I0 = ; I1 = ; I2 = ; I3 =
256 128 64 32
Id Id Id
I4 = ; I5 = ; I7 =
16 8 2
222
Mechatronics: Principles, Concepts and Applications
The R-2R ladder based D/A converter is reliable because there are only two values of resistances,
i.e., R and 2R, required for implementation. However, in former case (binary-resistor) eight resistance
values of binary order are required. In practice, such precise values of resistance are difficult to
obtain as compared to only two values as in case of R-2R implementation.
256 mA
R R R R R R R
I7 I6 I5 I4 I3 I2 I1 I0
2R 2R 2R 2R 2R 2R 2R 2R 2R
X X X X X X X X
S7 S6 S5 S4 S3 S2 S1 S0
D7
D6
D5
D4
D3
D2
D1
D0
Iout
Data bits
Output
D7 D6 D5 D4 D3 D2 D1 D0
Analog signal Only 24 levels out of 128 levels have been shown
0001 1000
0001 0111
0001 0110
0001 0101
0001 0100
0001 0011
0001 0010
0001 0001
0001 0000
Counter output 0000 1111
0000 1110
0000 1101
0000 1100
0000 1011
0000 1010
0000 1001
0000 1000
0000 0111
0000 0110
0000 0101
0000 0100
0000 0011
0000 0010
0000 0001
0000 0000
Initial point
Digital
Initial catching equivalent
Initially the circuit is in reset state, i.e., the output of the comparator, content of the buffer and
SAR and the output of the D/A converter are zero. When the analog signal is applied at the noninverting
terminal, the comparator provides a pulse. In response to this the Most Significant Bit (MSB) of the
SAR is set to ‘1’ (In counter based method the Least Significant Bit was set) and the output of the
SAR becomes a digital signal of value ‘1000 0000’ (in case of 8-bit A/D converter). This digital value
is converted to analog signal by D/A block for comparison. If the analog equivalent of ‘1000 0000’ is
lower than the input analog signal, then the MSB of the SAR will remain set, else it will be reset to ‘0’
and the next MSB will be set to ‘1’, i.e., the new SAR output will be ‘0100 0000’. The analog
equivalent of this new output will again be compared with the input analog signal, and if the analog
equivalent of ‘0100 0000’ is lower than the input analog signal, then this bit of the SAR will remain
set, else it will be reset to ‘0’. The setting or resetting process based on comparison continues for all
the bits. Once all the bits of the SAR are covered successively, the conversion is said to be completed.
Comparator
MSB
Digital to
analog
converter Buffer
(D\A)
LSB
Successive
approximation
register
D7 D6 D5 D4 D3 D2 D1 D0
display is considered as an indicator of the current to be measured. The conductor is placed within the
magnetic field, which is generated either by a permanent magnet or any other means. The external
conductor of which the current is to be measured is connected to the coil of the galvanometer. The
galvanometer coil becomes a circuit element. When the electric current passes through the conductor,
hence the coil, it exerts a force due to the presence of magnetic field. The coil and hence the pointer
then turns. The amount of turn, depends upon the strength of the current. The pointer passes over a
suitably calibrated scale. If no current flows through the coil, the pointer shows zero reading. A
current through the coil in one direction causes the pointer to move to one side and a current in the
opposite direction causes the pointer to move to the other side. Figure 6.41 shows a schematic
diagram of a galvanometer.
0
Pointer
Scale
− +
N S
Input terminal
The galvanometer is usually used to measure small currents. In order to measure higher values of
currents, some potentiometer type circuits are to be interfaced as heavy currents could damage the
galvanometer. The galvanometer can also be used to measure the voltage. Appropriate value of
resistances are connected in appropriate manner in order to convert the galvanometer to measure
higher values of current and voltages. When the galvanometer is converted to measure the current it
is called ammeter and when it is converted to measure the voltage it is called voltmeter.
The galvanometer is connected to a bypass or shunt resistor so that only a certain known
percentage of the current passes through the galvanometer (Fig. 6.42 (a)). The known percentage of
current corresponds to total current. The current is measured by connecting the ammeter through the
conductor (Fig. 6.42 (b)). Similarly, we can measure voltage by connecting a series resistance with
the galvanometer (Fig. 6.42 (c)). In order to measure the voltage between two points, the
galvanometer-converted voltmeter is connected across the circuit element of which the potential
difference is to be measured. The current through the galvanometer, and hence the pointer reading is
proportional to the voltage across the two points.
226
Mechatronics: Principles, Concepts and Applications
Galvanometer Galvanometer
Ammeter Voltmeter
(a) (b)
A
Circuit element
Ammeter
A B
Voltmeter
B
Ammeter connection Voltmeter connection
(c) (d)
Fig. 6.42 (a) and (b) Conversion of galvanometer into ammeter and voltmeter, (c) and (d)
Ammeter and voltmeter connections
such as the cathode and the grids is sometimes referred to as electron gun, whose main purpose is to
generate the electron beam and control its intensity and focus. There are two pairs of plates called
horizontal plates and vertical plates. The role of horizontal and vertical plate pairs are to modulate the
electron beam horizontally and vertically respectively.
(−) cathode
Accelerating grid
Cathode ray tube
If a positive voltage signal is applied to the upper plate of the vertical pair with reference to the
lower plate, then the electron beam flowing in a straight line and hitting at the centre, O will get
deviated from the original path and will hit the screen at the point y1. If the signal is disconnected the
beam becomes straight and the fluorescent point will appear at the centre again. The amount of
deflection depends on the intensity of the positive voltage signal applied to the vertical plate (Fig. 6.44).
If the same signal is applied to the lower vertical plate of the pair, the beam will hit at the point y2.
It is convinced that the flow of electron beam is getting modulated in accordance with the strength of
the vertical plate voltage. The beam path and hence the deflection is modulated by the signal voltage
(Not by the intensity of the electron beam).
The signal whose parameters are to be measured and displayed is fed to the vertical plates. Suppose
we are interested to measure the amplitude of a sinusoidal signal. If the signal would have been a DC
signal, we would have got a fluorescent point somewhere on the vertical axis of the screen. Since our
signal is a sinusoidal type, the point will fluctuate up and down vertically with a frequency equal to the
signal frequency. However, because of the property of the fluorescent screen, (i.e., once it appears,
the fluorescent point does not blank the screen immediately. It stays a while), you will see a straight
line instead of a sinusoidal movement of fluorescent point. The length of the line is the measure of the
peak amplitude of the input sinusoidal signal. This type of display would only provide the information
about the peak amplitude of the input signal. To know the frequency information of the signal, we
must have horizontal deflection plate pair. In fact, horizontal deflection plates make it possible to
provide this information only when a linear saw-tooth signal, as shown in the Fig. 6.46, is applied
across them. The saw-tooth signal is called sweep signal that pull or sweep the fluorescent point in
horizontal direction. The combination of these two deflections allows the beam to reach any portion
of the fluorescent screen. The saw-tooth signal is generated within the CRO by use of an electronic
circuit called sweep generator.
228
Mechatronics: Principles, Concepts and Applications
Vertical
Vertical plates axis
y1 y1
DC signal
Y = deflection
Horizontal
axis
Vertical plates
DC signal in
reverse direction
wrt above
0
Y = deflection
y2 y2
Vertical plates
Sinusoidal signal
0 Peak deflection
r
ea
Lin
Time
Application of one cycle of the sweep signal, which increases linearly with time, to the horizontal
plates, causes the beam to be deflected linearly with time across the screen. When the sweep signal
suddenly falls to zero, the beam flies back to its initial position. Application of second cycle of the
sweep signal causes the beam to start deflecting in the horizontal direction again. However, because
of the nature of the fluorescent screen and the other additional electronic circuitry, the fly-back part
of the return trace of the beam cannot be seen. The sweep signal repeats, drawing the beam
horizontally again and again in order to provide an illusion that the fluorescent point is not moving. The
persistence of vision in the human eye, and the glow of the fluorescent screen aids in producing a
stationary pattern.
A schematic and simplified block diagram of a typical CRO has been shown in Fig. 6.46. The signal
to be observed or displayed is amplified by the vertical amplifier and applied to the vertical deflection
plates of the CRT. A portion of the signal in the vertical amplifier is applied to the trigger generator in
order to provide triggering signal to the sweep generator. The trigger generator actually generates a
pulse coincident with a selected point in the cycle of the triggering signal. This pulse turns on the
sweep generator, initiating the saw-tooth waveform. The saw-tooth wave is amplified by the
horizontal amplifier and applied to the horizontal deflection plates.
Vertical plate
Vertical
amplifier
Horizontal plate
Trigger
generator
Screen
Sweep Horizontal
generator amplifier
· Signal conditioning is a process of preparing the available signal into a desirable one.
· A voltage divider circuit produces an output voltage, V0 that is proportional to the input voltage,
Vin .
· Potentiometer is a current or voltage dividing equipment.
· The unidirectional flow action is the basis of rectification, a process by which an alternating
current (AC) is transformed or rectified into a direct current (DC).
· Zener diodes, a specially designed diode, are used for stabilizing or regulating the voltage in a
circuit.
· A clipping circuit transmits an arbitrary signal within the limits. The signal above and below the
limits are suppressed. clipping circuits are also referred to as voltage limiters.
· Clamping circuit shifts the input voltage levels without changing the shape of the signal.
· A circuit that accepts an input signal and produces an output signal in the same way as the input
but has a larger magnitude is known as an amplifier circuit.
· The OPAMPs can be used for mathematical operations such as addition, subtraction,
multiplication, integration, and differentiation in analog computers.
· When the filters are designed using only passive elements such as capacitors and inductors,
they are referred to as passive filters.
· Filters that are designed either using a transistor or OPAMP are called active filters.
· The gain of the isolator or unity amplifier is unity.
· Zero crossing detector (ZCD) is a kind of comparator that provides a signal (pulse or step) at
the output when the input signal passes the zero level.
· Oscillators are positive feedback circuits.
· An astable multivibrator spontaneously switches from one state to another (low to high or high
to low). The free-running mode of operation of 555 is called the astable mode.
· In the monostable mode of operation, the output retains one state only (one shot), however, the
current state can be changed to another state by appropriately configuring the 555 with external
components.
· An S/H circuit is one that samples the analog signal at a particular instant and retains the value
for a specified time for subsequent use.
· A raw analog signal is converted into a series of samples by the process of sampling.
· Quantisation is a process of normalizing the amplitudes of the samples to its nearest
quantisation or discrete levels.
· The error produced due to quantisation is called the quantisation error.
· Aliasing cases the problem of overlapping of signal in the frequency domain.
· Mainly two techniques are employed as far as Digital to Analog Conversion is concerned,
namely binary resister-based and R-2R ladder-based D/A converters, respectively. The latter
one is better in terms of reliability.
· Galvanometer is an instrument that detects the presence, direction, and strength of an electrical
current in a conductor.
· When the galvanometer is converted to measure the current it is called ammeter and when it is
converted to measure the voltage it is called voltmeter.
231
Signal Conditioning Theory, Circuits and Systems
· The Cathode Ray Oscilloscope (CRO) is an instrument used to measure and display signal
parameters such as amplitude, frequency, and phase.
· Application of one cycle of the sweep signal, which increases linearly with time, to the
horizontal plates, causes the beam to be deflected linearly with time across the screen. The
sweep signal repeats, drawing the beam horizontally again and again in order to provide an
illusion that the fluorescent point is not moving.
· The signal whose parameters are to be measured and displayed is fed to the vertical deflection
plates.
This chapter started with basic need of a signal conditioning with it’s various circuits and
systems used to achieve this. Here, the rectification, stabilization, dividing the voltage, clippers
and clampers were discussed clearly to understand the basic application of those in signal
conditioning field. Also, the amplifier section including multi-stage, OPAMP, and
instrumentation amplifier gives the essence of it’s wide utility in industrial process. The filter
circuits as a frequency selective are the very useful one, were also discussed. The wide
versatility of oscillators & especially 555 timer were also discussed which is used frequently in
most important applications in electric industry. Further, in addition ADC & DAC were also
discussed.
LOOKING AHEAD
Sensors and actuators are the integral part of the automation and control systems. For
instance, in a closed-loop control scheme sensors passively observe the output and
subsequently inform the controller and actuator actively activates the command that is received
from the controller. Actuators are used in open-loop control systems. There are various ways of
actuating the system or process. Primarily, the technical design and principle of operation of
various types of actuators must be studied.
Mechanisms play important role in machine construction. The components, which are
designed to reflect the mechanisms and are used for construction of the machine systems are
called mechanical components. In many actuating devices the mechanical components are
also fitted into. Chapter 7 describes the principle of various mechanisms. The importance of
next chapter in this respect is therefore significant.
EXERCISES
6.1 With a neat diagram explain a voltage divider circuit. Draw the circuit diagram of a compound
voltage divider.
6.2 What is a potentiometer?
232
Mechatronics: Principles, Concepts and Applications
6.3 What do you men by rectification? Explain how the following circuits work.
· Half-wave rectifier
· Full-wave rectifier
· Centre-tapped full-wave rectifier
· Bridge type full-wave rectifier
6.4 What are the roles of clipping and clamping circuits? Draw the circuit diagrams. Explain the
principle of operation assuming a sinusoidal signal as the input signal.
6.5 What do you mean by a positive and negative clamper?
6.6 Define amplification. Write down the equivalent gain of the amplifiers in cascade.
6.7 Distinguish between inverting and noninverting amplifiers.
6.8 Derive the gain equation for an inverting amplifier.
6.9 Derive the gain equation for a noninverting amplifier.
6.10 An OPAMP inverting amplifier is to have an input of ±0.5 V and an output of ±10 V. Determine
component values.
6.11 Draw the circuit diagram of the followings by the use of OPAMP. Also discuss the principle of
operation.
· Adder
· Subtractor
· Integrator
· Differentiator
6.12 An integrator contains 100 K Ohm and 1 micro Farad capacitor. If the voltage applied to the
integrator input is 1 V, what voltage will be present at the output of the integrator after 1
second? Draw the output waveform if the input is a square wave.
6.13 What do you mean by Common Mode Rejection Ratio (CMRR)? Draw the circuit connection
for calculation CMRR.
6.14 Find out the expressions for the voltage gain in the common mode and differential mode
configuration.
6.15 The CMRR of an OPAMP is 60 dB. The inputs are v1 =1.0V and v2 = 1.01 V. Find the
percentage of error in the output due to the finite CMRR.
6.16 Plot the frequency versus gain curve of the low pass and high pass filters.
6.17 Define band-pass filter, band reject filter, narrow band filter and notch filter. Also plot the
frequency versus gain curve.
6.18 Draw the circuit diagram of a typical bandpass filter using OPAMP.
6.19 What is the function of an isolator? With neat diagram explain how a LED and photodiode can
in combination be used as an isolator.
6.20 Give an overview of the instrumentation amplifier.
6.21 Discuss the principle of operation of a bridge circuit.
6.22 Write notes on the following.
· Comparator
· Zero crossing detectors
· Oscillator
6.23 What are the types of signals the oscillator can generate?
6.24 Draw the schematic block diagram of an oscillator using OPMAP.
233
Signal Conditioning Theory, Circuits and Systems
6.25 Find out the output voltage waveform of the OPAMP circuit shown below.
100 K
3V 100 K
V1 −
V0
100 K
V2 +
1V
t
1 sec 2 sec
Fig. 6.47
6.26 Draw the block diagram of an OPAMP based When-bridge oscillator and explain the principle
of operation.
6.27 Draw the block diagram of a square wave oscillator using OPAMP. Explain the principle of
operation. Write down the frequency of oscillation.
6.28 Draw the block diagram of a triangular wave oscillator using OPAMP. Explain the principle of
operation. Write down the frequency of oscillation.
6.29 Explain a sign wave generator by drawing neat diagrams. Discuss the pulse and square wave
generators.
6.30 What do you mean by crystal oscillator? Give some applications of crystal oscillator.
6.31 Starting from pin out diagram, discuss comprehensively the principle of operation of 555 timer.
6.32 Sketch the circuit of a basic astable multivibrator using a 555 timer. Draw the capacitor and
output wave forms and explain how the circuit operates.
6.33 Design a 555 astable multivibrator to produce an output with frequency ranges of 100 Hz to
200 Hz continuously adjustable. Use Vcc =12 V.
6.34 Sketch the input and output waveforms for a one shot using a 555 timer triggered by a 10 kHz
clock for R = 5.2 K Ohm and C = 5 nano Farad.
6.35 Write notes on sample and hold circuit.
6.36 What is the function of a clock?
6.37 Discuss about the principle of Analog to Digital Conversion (DAC) process.
6.38 State and explain the quantisation error? Write the equation and define the terms.
6.39 What is aliasing? What is the condition of overcoming aliasing? Clearly explain by taking an
arbitrary signal.
6.40 What should be the minimum sampling rate for a bandpass signal of bandwidth 4 kHz, centred
around 1 MHz.
234
Mechatronics: Principles, Concepts and Applications
6.41 Draw the circuit diagram of a binary resistor based Digital to Analog Converter (DAC) and
explain how it works.
6.42 Draw the circuit diagram of a R-2R based DAC and explain how it works.
6.43 Draw the circuit diagram of a counter based DAC and explain how it works.
6.44 Explain the principle of operation of a successive approximation base DAC.
6.45 Write notes on the principle of operation of the following.
· Galvanometer
· Ammeter
· Voltmeter
6.46 Explain the principle and working of a CRO using a neat sketch. Explain each block.
6.47 Explain the principle of operation and voltage measurement using a CRO by deriving the
necessary equations. Draw neat diagrams.
6.48 Discuss in detail the method of measurement of frequency and phase angle through CRO.
7
Actuators and Mechanisms
7.1 INTRODUCTION
Physically, a mechatronic system is composed of four prime components. They are sensors,
actuators, controllers and mechanical components. Figure 7.1 shows a schematic diagram of a
mechatronic system integrated with all the above components. From control point of view, sensor
senses the signal, and actuator activates a control action. Depending upon the application requirements
sensors are chosen. The role of controller is to execute the control code for a given task. In its
abstract form, a simple but exemplar control code could be as follows:
‘Drive the actuator when an event has occurred’
The above piece of control code or algorithm can be realized in a variety of ways through a broad
range of microprocessors/microcontrollers and actuating systems.
Control code Mechanical
Command signal components
Sensing signal
Microprocessor
Sensors
or
Microcontroller
Actuator
PLANT
(Robot, Autonomous Guided vehicle, Numerical Controlled Machine,
Vehicle engines, Consumer products, Conveyor systems, Assembly systems,
Cranes, Defense equipments, Air craft engines, Other machines, consumer products, etc)
Actuation is the process of conversion of energy to mechanical form. A device that accomplishes
this conversion is termed actuator. Actuators play a very important role while implementing control.
The microcontroller provides command signal to the actuator for actuation. Various types of actuators
are used depending upon the load involved. The term, ‘load’ is associated with many factors including
force, torque, speed of operation, accuracy, precision and power consumption. This chapter
describes the fundamentals of various types of actuators and their principle of operation.
Moreover, in order to take mechanical advantage within the system, mechanisms are employed.
Mechanism is the heart of every machine construction. They are responsible for transmission of
237
Actuators and Mechanisms
power and motion from one place to another by the use of specially designed rigid bodies. These
specially designed rigid bodies are called mechanical components. These include bearings, gear, cam
and follower, rack and pinion, pulleys, etc. A detail description on commonly used mechanical
components has been provided at the latter part of the chapter. Learning the principles of mechanism,
gives the students ability to understand and design complex mechanical structures.
7.4 DC MOTOR
DC motor is the most versatile actuator and sometimes called rotating machine. The DC motor has
two parts, stator and rotor. The stator is the outer part of the motor which contains evenly spaced
magnetic poles as shown in the Fig. 7.2.
239
Actuators and Mechanisms
N Stator
S Rotor N
Magnetic poles
(a)
The stator is fixed. The rotor, on the other hand, rotates inside the stator. It consists of an
electromagnet with the poles (a magnet has two poles) facing toward the stator poles. The
electromagnet is formed by current carrying conductors (usually copper wire), which are wound
around the iron core (rotor). Collectively, the wounded wire is called armature coil or armature
winding. If more than one electromagnet is needed the cylindrical rotor is symmetrically partitioned
into segments to accommodate more number of wounds or windings. In fact, many rotors are
designed to have more one electromagnet. When a DC current is applied to the armature windings, the
rotor is immediately turned into a group of electromagnets. The current that passes through the rotor
winding is called armature current. The objective is to make the rotor rotate. This is achieved by
placing the armature winding in a magnetic field. The magnetic field is usually established by the use
of another magnet, which is a part of stator. A force is exerted on the current carrying conductor
when it is in a magnetic field. The magnetic field and armature current are always perpendicular to
each other. The interaction between the current-carrying armature windings and the electromagnetic
field of the stator produces a force called Lorentz force that makes it possible to rotate the rotor. In
summary, the direction of armature current, the direction of magnetic field and particularly the
construction of the whole stator-rotor assembly are such, based on governing fundamental law, that
the force exerted on the coil makes it possible the rotor to rotate. The force exerted is given by,
F = I a LB (7.1)
Where, Ia is armature current, B is magnetic field and L is the length of the conductor coil.
Depending upon the rotor’s physical characteristics and other load related design parameters, such
as rotational inertia, torque, speed, etc. the number of magnets to be put into place varies. Moreover,
the design parameters entail whether to design a permanent magnet type or electromagnet type stator.
DC motors are classified according to the way the magnetic field is established. The stator field is
established by either permanent magnets or by an electromagnet. Taking into account of this, two
types of DC motors are seen. They are:
· Permanent magnet type DC motors
· Electromagnet type DC motor or wound-field DC motor
Permanent magnet type motors have permanent magnet (s) in the stator. While small motors require
low amount of torque, large motors employed in many heavy-duty applications such as traction,
240
Mechatronics: Principles, Concepts and Applications
electric trolleys, locomotives, mills etc., require large torque. In the latter case, the electric field is
established by electromagnets.
Practically two windings are there within the electromagnetic type motor system, namely, stator
winding (s) and rotor winding (s). In some literature the stator winding (s) is called field coil or field
winding. The current through the field coil is called field current. Stator winding (s) develop
electromagnet (s) which in turn establish the magnetic field. Rotor winding (s) develop electromagnet
(s) which in turn rotates itself. The field winding (s) and armature winding (s) are connected in a
number of ways, leading to different types of electromagnet type DC motors.
When the field and armature windings are totally separated, the type of configuration is called
separately-excited field-wound DC motor. The current flows into the two windings from separate
external sources. Conversely, if the field and armature currents are provided by the same external
source, then the configuration is called self-excited wound-field DC motors.
The self-excited DC motors based actuators are of two types, shunt motor and series motor. In
self-excited wound-field shunt motor, the field and armature windings are in parallel, where as in self-
excited wound-field series motor, both the windings are connected in series. Figure 7.3 shows
different types of DC motor configurations.
Ia
Ra
Magnetic field
Vin
F
Ebemf
Vin = Input DC supply voltage
Ia = Armature current
If = Field current
Ra = Resistance of armature coil (rotor winding)
Rf = Resistance of field coil (rotor winding)
(a)
Iin
Ebemf = Back
Ia electromagnetic
If
force produced by
Ia Ra Ra armature winding
Rf
Shunt coil/winding
Vin Vin
Ebemf Ebemf
F Series coil/winding
Rf
(b) (c)
Fig. 7.3 (a) Separately excited electromagnetic DC motor (b) Self-excited wound-field
shunt configuration (c) Self-excited wound-field series configuration
241
Actuators and Mechanisms
The series motor has greater torque capabilities while the shunt motor has more constant and
controllable speed over various loads. These two desirable characteristics can be incorporated in the
same motor by placing both a series field and shunt field winding on the same pole. This in turn
termed as compound motor. Such motor responds better to heavy load changes because of the
increased current through the series field coils. This improves the field strength, providing added
torque and speed.
A DC motor converts the electrical energy to mechanical energy. The torque is produced due to
input current. In reverse situation, the torque, which is equivalent to mechanical energy, can produce
current that is equivalent to electrical energy. This reverse process is utilized for the design of DC
generator. Figure 7.4 illustrates schematic diagram of typical DC motor and DC generator.
DC motors are rarely used in common applications because available signals are mostly AC in
nature. However, in many heavy-duty applications such as traction motors, electric trolleys,
locomotives, mills etc. DC motors are chosen due to torque requirement and their inherent nature of
being controlled efficiently. The speed and torque can easily be varied. This basically means that the
motor can develop accurate torque at different speeds. The speed of the motor is controlled through
what are being called as
· Armature controlled
· Shunt controlled
Basic principle of operation remaining same, the DC motors can also be categorized under whether
it is brushed, brushless or coreless type.
242
Mechatronics: Principles, Concepts and Applications
Ia
Stator
N Brush
N S
S
Force
Force
Nextbrush
Commutator
N S N S
Ia Ic
(b) (d)
Ia (Current)
Commutator Ia
Conductor (coil)
Ia
Brush
N
N N S S
S
Brush
(c) Commutator
Ia
(e)
Fig. 7.5 (a) The rotor electromagnet at an instant (b) The rotor electromagnet before the
rotor current flips (c) The rotor electromagnet after the rotor current flips (d) A
simple brushed DC motor illustration (e) Commutator-brush arrangement
7.4.2 Brushless
A brushless motor operates much in the same way as a brushed motor. In a brushed motor, the
current is supplied to the rotating coil by a mechanical commutator (split-ring) and brush arrangement.
In a brushless motor, on the other hand the commutation is achieved electronically. The electronic
commutator can reverse the external connections at a high rate. The commutator and brushes are in
contact and during rotation both the elements rub against each other. The brushless DC motor is a
better construction because the commutation is achieved using electronic circuit that overcomes the
244
Mechatronics: Principles, Concepts and Applications
problem of wearing arising out of physical contact. A brushless motor is often used when high
reliability, long life and high speeds are required.
7.4.3 Coreless
Iron core construction has several major disadvantages. The core has relatively high inertia that limits
acceleration. They also own electrical inductances and core losses, which stay even with laminated
structure. To overcome these drawbacks many motors are designed without a core. These types of
motors are called coreless motors. Coreless motors depend upon the winding itself to provide
structural integrity for the armature.
7.5 AC MOTORS
AC motors consume alternating electrical power to produce mechanical actuation in terms of angular
movement. The principle of operation for all AC motors relies on the interaction of a revolving
magnetic field created in the stator by AC current, with an opposing magnetic field at the rotor. The
opposing magnetic field is originated by virtue of induction or by supplying an armature current by a
separate DC current source. The principle of operation of AC motor in relation to the origin of
opposing field differs. Accordingly, AC motors are of two types. These are:
· Induction motor
· Synchronous motor
AC motors are either single phase or multiphase, depending upon the input signal requirement and
internal construction.
AC motors differs in aspects, such as their winding types and number of phases. Accordingly, a
variety of different types of induction motors such as poly pole, split phase, capacitor start, split
capacitor type, two phase, three phase (star or delta) are seen.
microcontroller as it can responds to digital pulse trains. The rotor of the motor rotates a specified
number of degrees by each pulse the motor receives from its controller. The motion caused by one
pulse is called one step.
The rotor is considered as a multi-pole magnet. The stator has many poles and corresponding
windings. When the stator is excited with magnetic field, the rotor tends to re-align with a position
with respect to active stator poles. The electromagnetic multi-polarity behavior is ascertained through
two design methods leading to two basic types of stepper motors, which are:
· Variable reluctance (VR)
· Permanent magnet (PM)
Variable reluctance (VR) stepper motors are of two types, such as single stack or multi-stack. The
term phase is an important term, which basically implies the number of windings of the stator. Stator
phases and rotor poles are wound properly. The variable reluctance type stepper motor shown in the
Fig. 7.6 has four phases and two poles. No windings have been shown for clarity. When individual
stator phases is magnetized in sequence or in terms of switching the polarity, the rotor is made to
move.
The principle of operation of VR stepper motor is illustrated in the Fig. 7.7. In the first position
(Fig. 7.7 (a)), the rotor tends to orient with the N-S axis of the stator. The south pole of the rotor is
attracted towards the north pole of the stator field. When the stator phases are switched to a different
polarity, the rotor rotates 90o to align with this new N-S axis of the stator (Fig. 7.7 (b)). There are
only four possible positions (Fig. 7.7 (a–d)) of the rotor when all the phases are excited. In this typical
case, the step size is 90o.
In order to have better precision, the number of step size can be increased by building more
number of poles, phases and introducing proper control connections within the stator circuits. For
247
Actuators and Mechanisms
S N
S
N
S N S N
N
S
(a) (b)
S S
N
S
S N N S
N
(c) (d)
example, in order to get a step size of 45o, the control scheme as shown in Fig. 7.8 may be introduced
with the same construction. Multi-stack variable reluctance type stepper motor involves further
enhancement of resolution, step size. The motor consists of a series of stacks, each with its own
phase winding.
The permanent magnet (PM) stepper motors have stators similar to VR motors. The rotors are
made up of a permanent magnets. A comparison of variable and permanent magnet type stepper
motor is given in Table 7.1.
248
Mechatronics: Principles, Concepts and Applications
S N N
N S
S
S N S N S N S N
S N
N
N S S
N S S
N
S
N S N S N S N S
N S
S
S N S
Fig. 7.8 An alternative control scheme for the same construction; 45 degree step size
Table 7.1
Comparison between VR and PM type stepper motor
Variable reluctance type Permanent magnet type
· Step size relatively larger · Step size small
· Smaller rotor mass; more responsive · More sluggish
· Relatively high-speed applications · High precision application
· No retaining torque problem · Retaining torque due to the permanent magnet
section of the rotor
In a generalized sense, stepper motors fit into good replacement of normal DC motors. Stepper
motors can produce high torque at low speeds. They also characterize another feature of having the
holding torque that is responsible to allow a stepper motor to hold its position firmly when not
turning. This property is important in the applications, where the motor is forced to start and stop,
while the force acting against the motor remains present. This in turn sometimes eliminates the need
for a mechanical brake mechanism. The stepper motor is typically rated for a particular voltage. When
compared to a standard DC motor, a stepper motor has a more complicated hardware interface. For
applications not requiring precise speed or positional control, a DC brush motor has clear advantages.
The advantages of a stepper motor are clearer when some form of precision speed or positional
control is necessary. With the assumption that the stepper motor never stalls or slips, one can
accurately control both speed and positioning without a feed back mechanism. This feature is
significant because the feedback mechanism may cost as much, or more, than the motor to be
controlled. When positioning or speed control is necessary and the required torque and speed are
within the stepper motor limits, a stepper motor may present more economical solution than a closed
loop DC motor for lower torque applications. The stepper motors are very popular due to properties
such as:
249
Actuators and Mechanisms
· Precision incremental movement in steps, i.e. the position is proportional to the number of input
pulses sent to the motor
· Repeatability and precision in positioning
· A good accuracy of the steps is achieved for each step
· They are reliable as the design does not include the brushes, gearbox and backlash.
The disadvantages are that they cannot be used at high speed and resonances can occur if not
properly controlled. Some manufacturers design stepper motor for applications where the stepper is
connected to the load through a gearbox. Note that gearboxes are the primary sources for backlash
in mechanical systems.
The application of stepper motors are found in printers, NC equipment, scanner, disk drives,
machine tools, X-Y recorders, scientific instrumentation, and robotics.
To pressurized air
Movement
Cylinder
The basic operation of rodless actuators is similar to the standard cylinders. However, instead of an
extending rod, a rodless carriage is supported by bearings within the main cylinder. This gives the
rodless actuator the ability to guide and support load. The rodless type actuator does not have a rod
(Fig. 7.12). They are usually double acting type. As the internal piston moves, it drives the external
slide. Rodless cylinders have traditionally been for positioning light loads. A cross sectional view of a
typical rodless cylinder is shown in the Fig. 7.12 (c).
(a)
Load carriage
Chamber-1 Chamber-2
(b) (c)
Of the four actuator types mentioned above, single-rod double-acting pneumatic actuators are
commonly used in industrial systems requiring high pushing force. They inherited properties of having
more powerful push than the pull force. The double-rod double-acting actuator has equal push and
pull forces and can be used in the applications where simultaneous pull and push operations are
important. The rodless double-acting actuator has equal push and pull forces. Some rodless actuators
use magnetic coupling to eliminate the sealing problems, but are limited in force transmission capacity.
7.6.2 Valves
Valve is a device for closing or modifying the passage through a pipe, outlet, inlet in order to stop,
allow, or control the flow of a fluid or air. In case of pneumatic actuators valves act as the controlling
element to control the flow of air into the chamber of the cylinder. The opening and closing of hole
through which the compressed air passes into the chamber control the flow of air. The flow rate is
proportional to the opening area of the hole.
Valves can also be considered as actuators and they are electromechanical devices containing a
solenoid that works on the principle of operation of LVDT (linear Variable Differential Transformer).
252
Mechatronics: Principles, Concepts and Applications
Solenoids are electromagnets. When a current is applied through the solenoid coil, it magnetizes the
core which is a part of the spool as shown in Fig. 7.13. Because of magnetization, it pushes the core
against the spring, causing the hole to close or open. Depending upon the value of the current signal,
the magnetization varies, thus the force and hence the displacement of the spools and in effect the
flow of air. Figure 7.13 shows a solenoid valve controlling the flow of air into a pneumatic actuator.
In this figure, a single valve controls the actuator. The controller could be a microprocessor, PLC
(Programmable Logic Controller), PC (personal Computer) or IPC (Industrial PC). By controlling the
movement of the core (spool) the air can either enter in any of the chamber causing the piston to
move.
Inlet air pressure
Core movement
Controller Spool
VALVE
Load
Chamber-1 Chamber-2
Fig. 7.13 A Solenoid valve controlling the flow of air into a pneumatic actuator
Valves are of many types depending upon the way they work. Some valves are normally open and
some are normally closed. Normally open and normally closed valves remain open and closed until
acted upon by some force. Throttling valves are those that are opened or closed incrementally,
restricting flow. Some valves are used to redirect the flow. These fall under diverter types. Another
way of classifying the valves is based on whether it is 2-way, 3-way or 4-way valves. Two-way
valves are, in general, shut-off valves. They have only two positions, namely open or closed, and also
have two ports, the inlet and outlet. Three-way valves have three ports, an inlet, an outlet and an
exhaust port. They generally operate on two conditions: (i) the inlet open to the outlet with the exhaust
blocked, and (ii) the inlet blocked with the outlet connected to the exhaust port. A four-way valve is
actually two three-way valves operated by the same actuator. The inlet ports as well as the two
exhaust ports may be joined internally to give four ports such as the inlet, two outlets and an exhaust
port.
253
Actuators and Mechanisms
7.6.4 Comparison
Pneumatic and hydraulic actuating systems are compared while looking towards the application
domain and characteristic features. For a robot, most of the trade-offs favour pneumatics actuators
since pneumatic systems have low weight and leakage coefficient. The most significant difference
between hydraulic and pneumatic system is compressibility, which usually signifies disadvantage.
Further, the stiffness or impedance, of the pneumatic system can be controlled more easily than with
hydraulic counterpart. Moreover, a pneumatic system allows easy energy storage. That is, the
mechanical energy for the robot can be stored as compressed air at a high pressure. A regulator can
expand the stored air to the proper working pressure.
254
Mechatronics: Principles, Concepts and Applications
Rack Outlet
Pinion
SHAFT
Rack Inlet
(a)
Inlet
SHAFT SHAFT
Outlet
(b)
Fig. 7.14 (a) Rack and pinion type pneumatic actuator (b) Gear-motor pneumatic
actuator
Magnetic field and moving contacts are susceptible to interference and wear respectively.
Commonly available piezoelectric materials are quartz, tourmaline, Rochelle salt, etc. However, the
piezoelectric effect of such materials is very small. For these reasons, polycrystalline ferroelectric
ceramic materials such as BaTiO3 and Lead Zirconate Titanate (PZT) have been developed to improve
the sensitivity of the actuator.
The important features of piezoelectric actuators are
· Wide range of operation parameters (voltage, force, size), broad operating temperature range
and can also be at cryogenic temperatures
· High reliability, stability, resolution and fast response
· Relatively high energy conversion ratio and low power consumption
· No wear and tear, i.e. excellent durability and little change in piezoelectric characteristics from
aging effect
· Solid state, compact and light weight
· Linearity, i.e. displacement is proportional to applied voltage
These actuators are useful for many functions. The main applications are found for
· Nanometrology
· Optical device alignment
· Micro fan and pump
· Linear drives
· Piezo hammers
· Gene technology
· Auto focus systems
· Mirror positioning
· Holography
· Disk spin stands
· Interferometry
· Robotics and micro manipulation
· Micro dispensing devices
· Tool adjustment and control
· Microlithography, wafer and mask positioning
· VCR, CD-ROM head control
· Critical Dimensions measurement
· Inspection systems and scanning microscopes
· Nanopositioning, microalignment and micro correction system and so on
7.7.1 An Illustration
An example based on piezoelectric actuator is given in this section. The Robotics Research Group at
Tempere University of Technology, Helsinki, developed a microtelemanipulator that facilitates remote
handling of microscopic objects under computer-assisted human control. You can obtain visual
information about the end-effector and micro objects using a microscope and a CCD camera. The
micromanipulator can be controlled either using a joystick or a PC keyboard. Automatic operations,
such as automatic injections, can be activated using the keyboard. The actuation system consists of a
piezoelectric actuator, a small tank and a bellows, as illustrated in Fig. 7.15. The bellows is a spring
256
Mechatronics: Principles, Concepts and Applications
type of passive component. The force required to deform the bellows is directly proportional to the
displacement. The piezoelectric actuator is placed in the tank filled with hydraulic oil. When a voltage
is applied to the piezoactuator, it deforms. When the actuator buckles, oil flows from the tank to the
bellows, which elongates. When the actuator gets straightened, oil flows from the bellows to the tank.
Since the effective area of the bellows is smaller than that of the actuator, the displacement is
magnified. Micromanipulators can be applied in several application areas, such as biotechnology,
microsurgery, assembly and testing of micro devices. The principal applications of the
micromanipulator are in the areas where needs for precise and automatic operations is desirable.
Piezoelectric
End effector
Blow
Fluid
Moreover, magnetostrictive materials have a coupling effect like piezoelectric material, which
means that a change in one state produces a change in the other. Magnetic fields produce shape or
length changes and therefore can be used as actuators, while stress changes produce magnetic
changes, thus can be used as sensors. Magnetostrictive actuators can be used to build:
· Active vibration control devices
· Hearing aids and
· Active positioners
Practical devices normally require high magnetostriction and a small magnetic anisotropy. Large
magnetostriction signifies large range of motion. The power produced by the actuator depends on the
square of the magnetostriction. Therefore small improvements in the magnetostriction can produce
large improvements as far as output is concerned. A small magnetic anisotropy means that only a
small magnetic field is necessary to produce a relatively large change in length. New advances in the
processing of terbium-dysprosium have yielded a unique polycrystalline structure in the material that
significantly increases its potential availability while maintaining high magnetostrictive effect. The
magnetomechanical properties of the materials are dependent on temperature. Typical ranges of
operations are from –280 to +600 degree Celsius.
Presently, hybrid rotary motor incorporating piezoelectric and magnetostrictive actuators has been
forecasted. The novelty of this motor is the creation of an electrical resonant circuit, whereby reactive
power requirement on the power source is reduced. Apparently, the motor would be suitable for low
output speed, high torque applications.
7.12 MECHANISMS
The mechatronic systems are composed of basic mechanical components (Refer Fig. 7.1). The
components can be classified into two groups such as passive components and active components.
Passive components such as nut, bolt, washers, screws, etc., typically do not transfer mechanical
power. On the other hand, the active components help to transmit power in terms of motion and
torque. The active components are sometimes referred to as basic machines. These are responsible
for transferring action from one place to other by means of what is known as mechanism. For
instance, gears makes it possible for changing the rate of rotation of a machinery shaft. They can even
change the direction of the axis of rotation and can convert rotary motion to linear one. If a mechanism
puts out more force than is put in, the mechanism is said to have mechanical advantage. Mechanical
advantage can be calculated by dividing the load by the effort. In general, the mechanical advantage of
a mechanism is the ratio of the output and input forces and apparently is a number that is greater than
unity. The rest part of this chapter describes fundaments to mechanisms in relation to active
components.
7.13 BEARINGS
The bearing is an active component that reduces frictional losses as surfaces side past one another.
Technically, the function of a bearing is to reduce the friction between a fixed and a moving surface,
and also to carry a load. We distinguish mainly five important types of bearings. They are,
· Slide bearing
· Plain journal bearing
· Rolling element bearing
· Magnetic bearing and
· Modern molecular bearing
Load
Lubricating
material Movement
Sliding surface-2
Material-1 Material-2
(Alloy) (Metal)
Rotating shaft
Rotational axis
2-sets of
journal bearings
Treatment and sometimes coatings over the materials significantly improve their tribological
(Tribology is defined as the study of friction) properties. In many designs the dry bearing may adhere
a metal sheath that can be replaced as it wears out. Whitemetal (bronze, steel or cast iron), copper
260
Mechatronics: Principles, Concepts and Applications
based alloys such as copper tin, copper lead, phosphor bronze, etc. aluminium based alloys, sintered
bronze impregnated with oil and graphite, nylon etc. are commonly used as the bearing materials
(material-1). The design of these bearings is governed by the strength of the bearing material and it’s
ability to dissipate the heat generated due to the surface friction.
The journal bearings of second type use lubricant. The lubricants are oil, grease, jelly, gas film and
water. While in operation, the lubrication makes it possible to form a film between the sliding surfaces,
which in effect isolates the two surfaces considerably reducing friction. Various ways have been
devised to keeping a journal bearing lubricated. Three techniques are frequently applied; boundary
lubrication technique, hydrostatic lubrication technique and hydrodynamic lubrication technique.
Boundary lubrication technique simply wets the bearing surface boundaries. Typically, this kind of
lubrication is employed for low speed rotary applications. In a hydrostatic bearing, the load is carried
by fluid pressure generated outside the bearing. Fluid is pumped under pressure into the bearing. In a
hydrodynamic bearing on the other hand, a fluid is drawn into the region between the moving parts of
the bearing by the virtue of its adhesion to the surfaces of the bearing and its viscosity. When the
bearing has reached sufficient speed, the lubricant begins to lodge into the contact area and
hydrodynamic lift is attained. Because of the design and the shape of the bearing surfaces a pressure
is generated within the fluid which keeps the bearing surfaces separated. In fact, the pressure
necessary for the separation of the moving surfaces, is produced hydrodynamically as a result of the
motion of the fluid.
combination of both. The amount of the load usually determines the size and type of bearing to be
used.
Rolling elements
Inner ring
Outer-ring
Axis
Outer-race
Inner-race
There are many types of bearings as far as rolling element is concerned. The geometric shape of
these rolling elements define the classification. Commonly used rolling elements are,
· Balls
· Cylindrical rollers
· Needle type rollers
· Tapered rollers
Ball bearings use perfectly round balls as their rolling elements, cylindrical roller bearings use
cylindrical rollers, and so on. Figure 7.19 shows the geometric shapes of different types of rolling
elements. The example given in the Fig. 7.18 is an illustration of a ball bearing.
Ball bearings are the most common type of bearing. There are many different configurations of ball
bearings, each one having special load, assembly, or alignment characteristics. Although, ball bearings
are designed to carry primarily radial load, however, these bearings can handle both radial and thrust
load and are usually found in applications where the load is relatively small or moderate. In a versatile
ball bearing system, the load is transmitted from the outer race to the ball, and from the ball to the
inner race. The outer ring is normally tightened with the body of the system and the inner ring is
tightened with the shaft of the rotor or load as shown in the Fig. 7.20.
262
Mechatronics: Principles, Concepts and Applications
Body
Body
Radial load
All the balls contact the inner and outer race at a very small point, which helps it spin very smoothly,
however, since the contact area is very small, if the bearing is overloaded the balls can deform
rupturing the bearing. In deep groove ball bearing the balls run in comparatively deep grooved tracks,
which make the bearing suitable for both radial and thrust loads. Deep groove ball bearings are used
for high-speed applications. Single direction ball bearings can only accommodate loads acting in one
direction. A deep groove ball bearing may have two rows of balls within the rings. This provides
greater rigidity. For loads acting in both directions, double direction bearings are needed. Bearings
with two rows of balls are employed for heavy radial loads. Angular contact single row bearing gives
precise axial and radial location under load. Double row angular contact ball bearings take heavy thrust
in both direction and some radial load. During operation the bearing is usually preloaded, a technique
to remove all the clearances in the bearing and to provide uniform stiffness to the balls.
The friction in a rolling bearing is the determining factor where heat generation in the bearing
causes thermal deformation and is a great concern. The friction depends on the load and on several
other factors, the most important of which are the operating speed, the properties of the lubricant and
the quantity of the lubricant. Bearings with higher precision are required for applications like vehicles,
industrial machines, etc. as well as applications which require high running accuracy such as high-
speed spindling.
For a rolling element bearing, life refers to the number of revolutions before evidence of fatigue
develops in either of the rings or in any of the rolling elements. The reliability of the individual rolling
bearing is the probability that the bearing will attain or exceed its specified life. The basic rating life of
the bearing is denoted by the symbol L10. Mathematically the basic rating life for radial ball bearing is
written as,
3
L10
LC O
=M P r
Million revolutions (7.3)
NP Qr
where, Cr is a constant, called radial load rating. The bearing can sustain this load rating for one
million revolutions. The bearing manufacturers supply the value. Pr is called equivalent dynamic radial
load. For a bearing running a constant speed nRPM, the life in hours is,
3
L10 =
1.6 CrLM OP 10 4
(7.4)
n Pr N Q
263
Actuators and Mechanisms
Rolling element bearings are used in vehicles, bicycles, conveyor systems, robotics, industrial
rotary systems, hard drives, household appliances and so on.
Cylindrical bearings are used in applications like conveyer belt rollers, where load requirements are
high. They can hold heavy radial loads. Since the rollers are cylindrical in shape, the load bearing
capability is much higher as compared to ball bearings. Note that the contact between the inner and
outer race is a line unlike ball bearing, where the contact is considered as a point. Cylindrical bearings
are not good candidate for applications requiring axial loading.
Needle roller bearing provides a small diameter, light-bearing load for assemblies in which space
and weight is restricted. Tapered roller bearings can support large radial as well as large thrust loads.
Horseshoe magnet
(Electromagnet)
These bearings are used in lieu of journal and rolling element bearing and are essentially employed in
high performance turbomachinery applications. The bearing is distinguished from other types by an
almost complete absence of friction, since there is no mechanical contact. In addition, reliability is
increased because there is no mechanical wear. Besides the obvious benefits, magnetic bearings allow
some instability because any unbalanced magnetic field displaces the rotor position causing serious
problems to the system. The position of the rotor should be central to the geometrical axis of the
system for ever. Since the rotor shaft floats in the magnetic field, the effect of self weight of the shaft
must be considered while designing the electromagnets. Magnetic bearings are generally open-loop.
264
Mechatronics: Principles, Concepts and Applications
In order to keep the position of the rotor fixed active feedback control is required for the bearings to
operate stably. However, the requirement of feedback control sometimes brings inflexibility into the
dynamic response of the bearings.
Specific applications include precision spindle machines, flywheels for energy storage applications,
high reliability pumps, compressors and so on. Note that some of the flywheels run at speeds in
excess of 50,000 RPM. Normal bearings with rollers balls would explode at these speeds. The
magnetic bearing has no moving parts so it can handle these incredible speeds.
7.15 PULLEYS
The pulley is a simple component consists of a plain or grooved wheel and a rope or belt wrapped
around the wheel, mainly used to change the direction and the point of application of a pulling force.
Single or multiple pulleys in various combinations can be used to increase the applied force. They are
especially helpful for lifting heavy objects to the places hard to reach. They make the work of moving
heavy loads a lot easier by affording mechanical advantage.
One way of classifying the pulleys is based on whether it is fixed or movable. Fixed pulleys are the
pulleys, which are permanently fixed with the machines. The main benefit of a fixed pulley is that it
changes the direction of the required force. A fixed pulley provides no concrete mechanical advantage.
The same amount of force is still required, but may be applied in another direction. Movable pulleys
265
Actuators and Mechanisms
are the pulleys which move with the load. The wheel directly supports the load, and the effort comes
from the same direction as the rope attachment. A movable pulley reduces the effort required to lift a
load. A combined pulley includes fixed and movable pulleys. An arrangement including fixed and
movable pulleys is called a block and tackle. Depending upon the situation, a pulley system consisting
of a fixed pulley and a movable pulley would reduce the workload.
The pulley carry a flexible rope, cord, cable, chain or belt on its rim. In old days, pulleys were
referred to as simple machines, but presently they are being considered as the basic mechanical
components. Although, traditionally pulleys have been used mostly to lift the load vertically, their
applications are now found in many traditional and advanced machine systems enabling the
transmission of energy and motion. Pulleys are attached to shafts at their axes and power is
transmitted between shafts by belts or chains that run over the rim.
Depending upon the system requirements, design of several types of pulleys are considered. Pulleys
can be combined to form double pulleys, which have at least two wheels. There are various other
combinations, which can result in a triplex pulleys and complex pulleys. Figure 7.22 shows typical
arrangement of many pulleys and their direction of movements in a typical machine systems.
Pulley
Axle
Belt
Axle (a) (b)
Fig. 7.22 Typical pulleys (a) simple double-pulley (b) Complex pulley
Timing element
Axle
Axle
)
p view
Belt (to
Magnetic pulley
7.16 GEARS
Gears are another important mechanical component used in almost all machineries and they facilitate
mechanism in terms of transformation of power and motion from one rotating shaft to another. They
help to increase or decrease force, torque or speed and can change the direction of the axis of
rotation. They can also change rotary motion to linear motion. One of the most common examples is
the car gearbox.
Figure 7.25 shows a simple but a basic gearing integration. The integration consists of two gears.
One is larger and other is smaller in diameter. Each gear has been rigidly fitted with a shaft, to and
from which the power is transmitted. Eventually, the two shafts couple each other through the gears.
The gear has teeth around it. One of the characteristic features of the gears is the number of teeth they
have. The gear that is turning the other one is called the driver, and the gear being turned is called the
follower. Driving a small gear by turning a larger gear is called gearing-up, and driving a large gear
with a small gear is called gearing-down. The ratio between the gears provides control of the speed
and torque of the output shaft. On any gear, the ratio is determined by the distances from the centre
of the gear to the point of contact.
267
Actuators and Mechanisms
Gear-1
Teeth
Shaft
Axis
Shaft
Gear-2
The gears essentially work together at least in groups of two or more. A single pair may be
inadequate for certain sources and loads, in which case more complex combinations, are necessary.
More than two gears working together is called a gear train. They can mesh in many different ways
depending upon the application requirements. One gear turns another, which may turn another, and so
on (Fig. 7.26). The necessary gearing systems are designed to obtain the desired speed, direction,
motion, torque, etc. As before, the gear on the train to which the force/torque is first applied is called
the driver. The final gear on the train to which the force/torque is delivered is called the driven gear or
follower gear. Any gears between the driver and the driven gears are called the idlers.
Output
Idler
Input
The speed and torque relationship through gearing mechanism can be understood as follows. A
small electric motor, capable of rotating at high speed providing enough power, but not enough
torque. If such a motor is to be used for electric screwdriver, then gearing mechanism must be
incorporated into it, since driving the screw essentially requires high torque. The motor must have a
very large gear reduction because it would need high value of torque in order to turn round the
screws. In majority of applications, it is required to reduce the speed and to increase the torque. That
268
Mechatronics: Principles, Concepts and Applications
is the speed reducers are much more common than speed-up gear systems. The speed-torque
relationships are such that sometimes the speed reducers are referred to as torque amplifiers. With a
gear reduction, the output speed can be reduced while the torque is increased.
The way the teeth are designed classifies the gears. Basically, four types of gears are found in
engineering applications, however, some derivatives from these are also designed.
· Spur gears
· Bevel gears
· Helical gears
· Worm gears
Figure 7.27 shows various types of gears. A spur gear is one of the most important ways of
transmitting a motion between two shafts lying parallel to each other. The design is such that the teeth
in the respective gears are always definite and regular. Clearance is the distance from the tip of a tooth
to the circle passing through the bottom of the tooth space and measuring radial. In terms of load
bearing capability, the correct clearance is vital to the motion of gears. Spur gears are easy to find,
inexpensive and efficient. These gears generally cannot be used when a direction change between the
two shafts is required.
Bevel gears are the gears mainly used in applications where the direction of a shaft’s rotation needs
to be changed. They are usually mounted on rotating shafts that are placed at an angle of 90 degrees
to each other as illustrated in the Fig. 7.27 (b), but can be designed to work at other angles
conveniently. The teeth on bevel gears can be straight or spiral.
Helical gears (Fig. 7.27 (c)) are similar to the spur gear except that the teeth are at an angle to the
(a) (b)
(c) (d)
Fig. 7.27 Various types of gears (a) Spur gear (b) Bevel gear (c) Helical gear
(d) Worm gear
269
Actuators and Mechanisms
shaft, rather than parallel to it. The resulting teeth are usually longer than the teeth on a spur gear of
equivalent pitch diameter. Helical gears may be used to mesh two shafts that are not parallel, although
they are predominately used in parallel shaft applications. These gears can carry higher loads than
spur gears. Helical gears have the major disadvantage that the design cost is high.
A gear which has one tooth is called a worm gear. The tooth is in the form of a screw thread as
shown in the Fig. 7.27 (d). The worm wheel to some extend is a helical gear with teeth inclined. The
worm wheel may transmit torque and rotary motion through a right angle.
w2 = w3
w3 w4
w1 w2 w2
w1
2 w3
1
3
4
(a) (b)
Pinion
Rack
Lever
Primary pawl
Axle
Tooth
Wheel
Ratchet wheel Ratchet wheel
(a) (b)
The slider-crank mechanism is a very important mechanism as the concept is used for many
applications of which the Internal Combustion Engine (IC Engine) is a prime example. In a vehicle the
IC engine transforms the reciprocating motion of a piston to a rotary motion at the crank-shaft.
The process of determining the exact relation between the reciprocating motion of the piston and
the angular motion of the shaft for a given linkage mechanism is called slider-crank kinematic analysis.
Various types of motion transformation can be achieved through this mechanism by designing the link
properly. The slider-crank can also transform a rotation into a combined motion up and down and
from side to side.
Fuel
Crank
Piston
Cylinder (Slider)
Shaft
Follower
D
Follower
Translational
motion
Dwell C
E
O F
B
G A
Rise
D
(a) (b)
Dwell Dwell
O A B C D E F G O A
(c)
In some specific machines the mechanisms is used when it is desirable to have non-uniform or
intermittent movements. Although, the most common applications of cam-follower mechanism is to
convert rotational motion to translational motion but the mechanism may also be used to accurately
control the motion parameters such as the acceleration, velocity, or position of the follower.
For one typical revolution of the cam the follower accelerates, decelerates, dwells, accelerates,
decelerates and so on. The cam contour surface is shaped to provide the best follower positions,
velocities, accelerations, and dwells for a specific application. In some cases, the cam is defined as a
274
Mechatronics: Principles, Concepts and Applications
sequence of piecewise smooth functions describing different segments of the desired motion and
joined with continuous acceleration curves. In other cases, the cam profile is known and the follower
motion is desired. Cam devices are versatile, and almost any arbitrarily-specified motion can be
obtained.
The cam-followers systems are classified according to the
· Shape of the cam and the position of the axis of the cam-shaft.
· Shape of the follower edge
Axis Axis
Axis
Axis
Axis
Fig. 7.33 Classification of cams (a) Circular eccentric (b) Elliptical (c) Pear-shaped edge
(d) Heart-shaped (e) Cylindrical
275
Actuators and Mechanisms
A follower is inserted into the groove. As the cam rotates the follower moves in a straight line parallel
to the axis of the rotation.
Design requirements for the machine under consideration dictate the type of movement required in
the cam follower. The movement of the follower is then translated into the shape of a cam, which in
effect gives the follower the required motion.
Fig. 7.34 Shape of the followers (a) Pointed follower (b) Roller follower
(c) Mushroom follower
Unlike rack an pinion the back and forth motion of the follower cannot be used to rotate the cam.
The cam has a very important function in the operation of many classes of machines, especially those
of the automatic type, such as printing presses, food processing machines, internal combustion
engines, shoe machinery, control systems and devices, textile machinery, gear-cutting machines,
screw machines and many other automatic machines. For instance, the cam-follower mechanism can
be used to open and close valves in the engine cylinders.
rack and pinion drive. The difference is that the grooved teeth rack is replaced by a chain and the
grooved wheel pinion is replaced by a sprocket. The rack is a straight row of teeth, while the pinion
is usually a spur gear. The chain, on the other hand, is a length of loosely jointed links, while the
sprocket gear is similar to a spur gear. By similar analogy, the pulley can be thought of as a sprocket
and the belt or rope as a chain.
The primary design consideration in this drive is to avoid slippage between the devices. For
instance, pulleys and belts (also cables) are driven by friction, implying the possibility of slippage
between them, when subjected to higher load, speed, velocity or acceleration. The chain fits into the
teeth of the sprocket, to eliminate slippage. The drive can be utilized between two shafts belonging to
the same machine, or any other source of power. Electric motor or even hydraulic motor, depending
upon the load involved, can drive the chain-sprocket. In some chain-sprocket systems, the gear ratio
can be controlled and changed.
Chain
Sprocket
Chain
Sprocket
Upper wheel
Lower wheel
axis of rotation
Lower wheel
process of searching a mechanism type and specific link dimensions of that mechanism to accomplish
a desired task. The kinematics of a linkage is determined entirely by the shapes, sizes, material
properties, etc. of the links. Very complex input-output relationships can be realized with this
mechanism. A variety of useful mechanisms can also be formed from a four-bar mechanism through
slight variations of proportions of links. In fact, many complex link mechanisms are combinations of
such mechanisms.
· When the Shape Memory Alloy is heated above the transformation temperature, it undergoes a
change in crystal structure, which causes it to return to its original shape. This phenomenon
provides a mechanism for actuation.
· Mechanism, the heart of every mechanical construction is employed to take mechanical
advantage and transmission of power and motion from one place to another.
· The bearing is an active component that reduces frictional losses as surfaces side past one
another.
· In magnetic bearings, mechanical friction losses are eliminated.
· In some special pulleys, ball bearings are fitted into.
· The prime function of a magnetic pulley is for continuous extraction and separation of
contamination such as unwanted iron particles, piece etc. from the mixture in order to protect
the processing machinery such as crushers, grinders and other valuable equipment.
· Gears can help to increase or decrease force, torque or speed and can change the direction of
the axis of rotation.
· More than two gears working together is called a gear train.
· A small electric motor, capable of rotating at high speed providing enough power, but not
enough torque.
· With a gear reduction, the output speed can be reduced while the torque is increased.
· A gear ratio is the relationship between how often the drive shaft turns to complete one full turn
of the other or vice versa.
· The velocity ratio of the driver and follower does not change by putting any number of gears
between them.
· The slider-crank is a linkage that transforms linear motion to circular motion or vice versa.
· In a vehicle the IC engine transforms the reciprocating motion of a piston to a rotary motion at
the crank-shaft.
· A cam is defined as a machine element having a curved surface, which, by its rotational motion,
gives a predetermined specified motion to another element called the follower which always in
contact with the cam.
· Chain-sprocket offers the means of transmitting power between two or more rotating shafts.
The drive system is similar to the rack and pinion drive. The difference is that the grooved teeth
rack is replaced by a chain and the grooved wheel pinion is replaced by a sprocket.
· Geneva wheel based mechanism is used for achieving intermittent motions.
In this chapter, the introduction part provided for various useful definitions of actuators and the
block diagram concerned. Also, so many applications oriented examples also provided linked
to actuators. The idea of DC motor, DC generator, AC motors along with their suitability and
diagrams were presented in a nice manner. The stepper motor concept is very usefully
described with various pros and cons between PM & VR type. The details of mechanism &
classifications of actuators with their diagram were explained. In addition, different basic
mechanical components used in mechatronic systems were discussed along with their
specific application & classification.
280
Mechatronics: Principles, Concepts and Applications
LOOKING AHEAD
During early stage, most industrial control systems were relay-based. Control systems,
consisting of a group of relays, were capable of controlling machine tools, conveyor systems
and other mechanical components such as motors, industrial vehicles in the rugged factory-
floor. Latter on PLC based control implementation emerged. A PLC is a programmable
electronic device that controls machines and processes. It uses a memory to store instructions
and execute specific functions that include On/Off control, timing, counting, sequencing,
arithmetic and data handling. Functioning as relay replacements, the PLCs became more
reliable than relay-based systems, largely due to the robustness of their solid-state
components. They occupy less space and their ability to be re-programmed increase flexibility
and simplicity in changing control schemes. However, industrial automation and control
systems, in particular mechatronic systems require more throughput, sophistication,
openness, reliability, availability, safety, responsiveness, configurability in response to the
need to provide high productive systems. Benefits that have been achieved through the
implementation of traditional relay and PLC-based controlled systems are now being
significantly extended through microprocessors, microcontrollers, PCs (Personal Computer)
and IPC-based (Industrial PC) etc. These are also used to control the process. They perform
many of the functions traditionally done by simple logic circuitry, sequential control circuits,
timers or a small microprocessor conformant electronic circuits and sub-circuits. In the
following chapter detail architecture of commonly used microprocessors and microcontrollers
have been described with neat diagram and example.
EXERCISES
7.11 A 220 V DC shunt motor takes 10 kW at a speed of 700 rpm. The armature resistance is
0.50 Ohm, and the brush contact drop is 1.6 V mechanical and iron losses are 495 W. Calculate
the efficiency and net torque.
7.12 A 6 pole lap connected shunt generator has armature and field resistance of 0.05 W and 125 W
respectively. If it drives a current of 200 A at 500 V, calculate shunt field current, armature
current and generated emf.
7.13 Point out the motor and generator mode of rotary devices.
7.14 What are the characteristics of brushed DC motors? What is the function of commutator-brush
arrangement? Explain the principle of operation.
7.15 What are the characteristics of AC motors.
7.16 Identify two types of AC motors.
7.17 Write notes on
· Principle of operation of induction motor
· Principle of operation of synchronous motor
· Principle of operation of stepper motor
7.18 Explain the functioning of stepper motor and its control methodology.
7.19 Explain why a synchronous motor is not inherently self-starting? State methods used for
starting synchronous motor.
7.20 Compare the variable reluctance and permanent magnet type stepper motor.
7.21 What are the application areas of stepper motors.
7.22 In what way are the stepper motors advantageous than the DC and AC motors.
7.23 Comprehensively describe the characteristics of fluid power actuator.
7.24 Discuss about pneumatic actuator.
7.25 What are the various types of pneumatic actuators commonly used in the automation
applications?
7.26 Explain the following pneumatic actuators.
· Linear single rod single acting
· Linear single rod double acting
· Linear double rod double acting
· Linear rod less double acting
7.27 How does rotary pneumatic actuators work? With a neat diagram explain this in detail.
7.28 What is a valve? Describe the principle of operation of a solenoid valve.
7.29 Draw the schematic diagram of a solenoid valve controlling the flow of air into a pneumatic
actuator.
7.30 Explain the working principle and application areas of hydraulic actuator.
7.31 Write notes on piezoelectric actuator.
7.32 Write down the important features of the piezoelectric actuator.
7.33 What are the application areas of piezoelectric actuators?
7.34 Give an illustration of a piezoelectric actuator.
7.35 Define the following.
· Magnetostrictive actuator
· Piezoelectric motor
· Memory metal actuator
282
Mechatronics: Principles, Concepts and Applications
30° C
Fig. 7.38
283
Actuators and Mechanisms
7.52 A flat belt, 7 mm thick and 95 mm wide transmits power between two pulleys running at
1500 m/min. The mass of the belt is 0.85 kg/m length. The angle of lap in the smaller pulley is
155° and the coefficient of friction between the belt and pulley is 0.25. If the maximum
permissible stress in the belt is 2 MN/m2 find the maximum power transmitted and initial tension
in the belt.
7.53 Design a connecting rod for a petrol engine from the following data. Sketch the connecting rod
with appropriate dimensions.
Diameter of the piston = 115 mm
Weight of reciprocating parts = 20 N
Length of the connecting rod from centre to centre = 320 mm.
Stroke = 155 MN
RPM = 1500
Compression ratio = 4:1
Maximum exposure pressure = 2.45 N/mm2.
8
Microprocessors and Microcontrollers
8.1 INTRODUCTION
The implementation of control logic requires many common and basic electronic circuits, units and
subsystems. The basic circuits, units and subsystems are arithmetic unit, logic unit, temporary
memory, input and output unit, parallel-to-serial and serial-to-parallel conversion unit, transceiver,
and so on. They are individually realized using discrete components and logic gates, and once all the
circuits are designed, they are again interfaced to each other globally. A relatively small control
application, for example ‘an automatic door’, can be realized using the logic gates, but for relatively
bigger control applications, for instance robot control, engine control etc., the realization of control
through these discrete components invites complicacy because a very large number of gates would be
needed for the entire solution. Instead of designing the basic circuits by the use of available logic
gates, if we could fabricate all these basic circuits within one cabinet at the manufacturing time then
probably, the complexity involved in realizing the individual circuit as well as their interconnections
could be resolved. Indeed, it has been done through the design of microprocessors and the
microcontrollers. Microprocessor or microcontroller is digital device composed of millions of
transistors within a single wafer or single semiconductor piece. It is called a Very Large Scale
Integrated (VLSI) chip that represent the heart of all kind of control applications. The microprocessor
and microcontroller based control solution facilitate higher integration providing incredible
performance. They take less space and also consume low power.
In 1971, Intel Corporation introduced 4004, a 4-bit microprocessor, which is considered as the
world’s first commercial microprocessor. The basic circuits within 4004 microprocessor contained
approximately 2300 transistors, however, presently the microprocessor is considered as the most
complex semiconductor product ever with more than 5 million transistors within it, performing
incredible functions. At a first sight, the microprocessors are specified by:
· Number of bits it can handle for data processing
· The speed of operation.
Higher the bits microprocessor can handle for data processing, faster is the processing. The speed
of operation is estimated from the clock frequency of the microprocessor. Also, higher is the clock
frequency, faster is the processing. Applications of microprocessors include
· Actuator control systems; speed, velocity and acceleration control of electric motor, fluid power
actuators.
· Control system for home appliances; microwave oven, washing machine, refrigerator, heating
system, air conditioner (AC), and so on.
· Control systems for computer peripherals; Disk drives, printers, keyboard, modem, and so on.
· Automobile control systems; Engine control, locking system, monitoring system and so on.
· Traffic control systems; Road, air and ocean traffic, navigation, spindle machines, etc.
· Machine control systems; Robotics, mobile robotics, crane, Autonomous Guided Vehicle
(AGV), /Numerical Control (NC) machine, etc.
· Production lines; Assembly lines, packaging systems, bottling plant, etc. to name a few.
Several companies have already developed many types of microprocessors and microcontrollers
for general purpose to dedicated application. New and advanced versions of microprocessors and
microcontrollers are constantly being developed. Some of the leading companies that are developing
these devices are Intel Corporation, Motorola, Toshiba, Fairchild, Phillips, Cyrix, National
Semiconductor, Zilog, DEC, Texas Instruments, and Rockwell International, among others.
286
Mechatronics: Principles, Concepts and Applications
Motor
Digital to analog
converter
External memory
Pyroelectric
Limit switch 1 Limit switch 2
transducer
The output of the pyroelectric sensor is an analog signal and needs to be converted to its digital
equivalent by the analog to digital converter (A/D). The conversion is essential since the
microprocessor is a digital device. The converted digital signal is placed in the input port of the
microprocessor and then transferred to the temporary memory 1 (TM 1), a small memory block. The
microprocessor transfers the input data by means of executing the control code already stored in the
memory. The flow chart of the control code of this typical example is given in Fig. 8.2. The
microprocessor checks the content of the TM 1 if it is full. If yes, it implies that the person is
approaching. Then it provides a command signal to run the motor in such a direction that it should
open the door. The microprocessor checks whether the doors have already been opened fully by
comparing the content of the temporary memory 2 (TM 2). Note that the content of the TM 2 is a
signal received from one of the limit switch (limit switch 1). If it is full, it implies that the door has
been opened fully and the motor should be stopped and TM 2 should be reset for next operation.
Enough time has to be given to the person to pass the door. The duration may be five seconds. Once
the duration of five second is consumed, the microprocessor should rotate the motor in reverse
direction so that the driving system would be able to close the door. Limit switch 2 should be there to
inform the microprocessor when the doors are fully closed.
Workspace within the microprocessor is the main unit, where the microprocessor executes the
control code. This unit comprises of many basic building blocks which have been detailed out in this
chapter. Additionally, the important features of the control system based upon which the
microprocessor has been designed will be described in the following sections.
Start
Is temporary memory1
No full?
Yes
Turn on the motor
Reset the temporary memory 1
Yes
Is temporary memory 3
No full?
Yes
Fig. 8.2 Control code of a typical automatic door (in flow chart form)
289
Microprocessors and Microcontrollers
Transducer senses the signal and actuator activates once it is commanded to do so. For more
details about the transducers and actuators refer Chapter 5 and Chapter 7. For relatively large control
applications, more than a hundred sensors and comparatively less number of actuators are necessary.
This again depends on the type of control systems at hand. In some cases, equal number of sensors
and actuators are integrated. The number of processors (the short form of microprocessor) required
for a specific application, however, depends on many factors, including its execution speed, memory
addressing capability, control requirement, etc.
Analog to Digital Converters, Digital to Analog Converter, isolators, amplifier etc. are known as
signal conditioning circuits. Although interfaces and signal conditioning circuits are used
synonymously, there is difference between them in the sense that interfaces includes electrical and
mechanical components along with electronic circuits, whereas signal conditioning circuits refer to
only electronic circuits, which have been discussed in Chapter 6.
Fundamentally we will go ahead to study the architecture of one microprocessor such as Intel’s
8085A and one microcontroller such as Intel’s 8XC196KC. There is a basic difference between a
microprocessor and a microcontroller, which has been described in this chapter. The choice of
studying the above microprocessor and microcontroller is from the fact that these chips are
considered to be versatile, and in essence, they accommodate common features and terminology as
far as ‘microprocessor and microcontroller world’ is concerned. Without loss of generality, the
architectural study of the above chips can also be appraised as the basis of microprocessor synthesis.
Just as the ‘life-science’ people dissect frogs and cockroaches at the incipient stage in order to analyze
the human body at the latter stage, you would follow the same path in terms of dissecting the above
chips in first place in order to explore the sophisticated one later. Nevertheless, the above
microprocessors are also general purpose devices. They have already been implemented in millions of
control applications.
8.6 TERMINOLOGY
Almost all microprocessors share the common terminology, which have been described in this
section.
8.6.1 CPU
It is the abbreviation of Central Processing Unit. The microprocessor itself is called CPU. Some
microprocessors and microcontrollers contain more than one CPU in order to achieve faster
instruction processing.
D
03FA
E 03FB
R 03FC
Address lines/pins (Unidirectional) 03FD
03FE
RD CE WR 03FF
Microprocessor can store and retrieve data in and from the memory, respectively. When the
processor needs data from a specific location, it sends the address to the memory over the address
path. The decoder circuit within the memory device decodes the address (which has been sent by
other devices) in order to select a specific location. The data is read and sent back to the
microprocessor. A memory chip must have a data path and address path. Data path is bi-directional
and address path is unidirectional.
VCC is the DC supply signal, usually 5 volts, and VGG is ground terminal. RD input signal is essential
if the content of the specific location is needed to be read. RD goes high for data read operation. WR,
in similar context, goes high for data write operation. CE (Chip Enable) signal has to be given for chip
selection. The memory chip must be selected if read or write operations are to be carried out.
Memory space is the range of memory locations that a microprocessor can address. The number of
address lines determines the memory space. Microprocessors with 16 bit and 24 bit address lines
have 216 = 64K and 224 = 16M of memory space respectively (see Table 8.1).
Table 8.1
Kilobytes, Kilobits, Megabytes, Megabit, Gigabytes and Gigabits
One nibble = 4 bits
One byte = 8 bits
One Kilobyte = 1024 bytes (210 =1024), abbreviated KB (Kb is Kilobits)
One Megabyte = 1024 KB = 1,048,576 bytes, abbreviated MB (Mb is Megabits)
One Gigabyte = 1024 MB = 1,073,741,824 bytes, abbreviated GB (Gb is Gigabits)
8.6.4 ALU
It is the abbreviation of Arithmetic and Logic Unit. Every CPU must have an ALU in it. As the name
implies, this basic block contains electronic circuits, using which all the arithmetic and logic functions
are performed. It contains the logic circuits like full-adder, AND, OR, and NOT, EX-OR, etc.
(H stands for hexadecimal), then the microprocessor addresses the locations and fetches program
codes from the memory, one by one.
Memory
Holding the program Address
2000
Address path 2001
2002
2003
2004
2005
2006
Microprocessor 2007
(µP) Data or 2008
Instruction path 2009
200A
200B
200C
200D
200E
200F
The microprocessor thus executes a collection of sequentially and logically arranged machine
instructions that tell the processor what to do next. Based on the instructions, a microprocessor does
mostly three basic things:
· It uses its ALU to perform mathematical operations like addition, subtraction, multiplication and
division and other sophisticated operations on floating-point numbers.
· It can transfer data from one memory location to another.
· It can also make decisions, and jump to a new location, in order to execute another set of
machine instructions based on the current decisions.
Instructions are the meaningful logic elements of a set. They are used for writing/developing the
control program. Instructions are formulated in three ways such as:
· High-level formulation
· Assembly-level formulation and
· Bit-level formulation
High-level formulation based instruction uses high-level languages resembling English-like words.
Assembly-level formulation also uses high-level language structure, but in an abbreviated form. On the
other hand, in bit-level formulation, only binary bits such as ‘0’ and ‘1’ are used. For example, for
comparison purpose, a high-level formulation based instruction could be ‘COMPARE’. In assembly
level formulation the comparison instruction could be ‘CMP’ and in bit level it could be ‘11001001’.
293
Microprocessors and Microcontrollers
8.6.6 Assembler
In many situations, the programmer enters the programs into the memory of a microprocessor-based
system in assembly language. Since the microprocessor only understands machine language, the
assembly language has to be converted to machine language through a language converter. The
language converter is known as assembler. An assembler may be realized with hardware or software.
Sometimes the conversion is achieved instruction-wise, i.e. the conversion is carried out one
instruction after other or program-wise, i.e. the entire program (assembly language) is converted to
machine language in one go. The instruction-wise conversion is specified as interpreter, another name
of assembler.
8.6.7 Data
Data refers to DNS (Digital Number System; refer Chapter 3). A bit is the smallest unit of data. At the
micro-level, data and instructions are represented using bits. However, there is a difference. Data
usually refers to value, whereas instructions are coded form of functions, using which the
microprocessor executes. Instructions are operation codes or OPCODES (See below). The
instructions are unique to the microprocessor architecture. Therefore, microprocessor can distinguish
between ordinary data and the unique instructions. Although, data and instructions are just
combinations of bits, the same is difficult for us to distinguish. The microprocessor relies solely on
the order in which data and instructions enter into it. As a thumb rule, the first program byte entering
into the microprocessor is always instruction.
294
Mechatronics: Principles, Concepts and Applications
8.6.9 Registers
In the example given at the beginning, you have perceived that data flows in and out of the CPU. The
data may come from the A/D converter (which might have been obtained from the transducer or
sensor device) or from some other locations. Similarly, data may go out from the CPU to the D/A
converter or to some other locations within the microprocessor-based systems. This is called data
transaction. The CPU require some temporary storage cells so that intermediate data can be stored
temporarily, either for data transaction or for latter use. The temporary storage cells are called
temporary registers. Figure 8.5 describes some of the temporary registers within the microprocessor.
The registers (see Chapter 4) are 8-bit, 16-bit or more. While internal circuit design of all the registers
within the microprocessor remains same, several registers have been built into it adhering different
names. In fact the nomenclature of registers is based on the type of data they store. Some of the name
of important registers are Data Register (DR), Instruction Register (IR), I/O ports, Accumulator
(ACC), Program Counter (PC), Memory Address Register (MAR) and Flags.
Data Register Data Register is a special register, which holds data when they are fetched from
the memory or input devices (Fig. 8.6). As you know, data and instructions are said to be different.
Data from the outside world comes to the input buffer, then it is transferred to the Data Register.
Instruction Registers This is a register or group of registers, and only accommodates
instructions. The user written program (OPCODE) flows from the memory into the microprocessor
in sequence. After being fetched from the memory the OPCODE is placed in the Instruction Register
295
Microprocessors and Microcontrollers
(IR) as shown in Fig. 8.7. In this typical example, the OPCODE 59 (‘01011001’) located at memory
location 0002H has been fetched and placed in the IR of the microprocessor. The OPCODE is then
transferred to the instruction decoder.
1 0 0 1 1 1 0 0
Data register
Instruction OPCODE = 59
(mP) FD 0000
D 3C 0001
Instruction 59 E
59 0002
register C
O 76 2003
Instruction decoder D
E Address
R
Control signals
Memory
Address = 0002
I/O Buffers Buffers are another kind of registers, which hold data or address those come in and go
out of the microprocessor. The theoretical difference between the buffer and other registers in the
microprocessor is that the data or address is first entered into the input buffer and subsequently are
transferred to a specified register. Similarly, the data are sent out from any register(s) to the outside
world via output buffer. The buffers are apparently some sorts of I/O (Input/Output) ports. A port is
a place where data are loaded and unloaded. Buffers are either only-input, only-output or both input/
output. Figure 8.8 illustrates the I/O buffer within the microprocessor.
Accumulator Accumulator (ACC) is a register (8-bit, 16-bit or 32-bit) that primarily stores the
result of mathematical, logical and other operations. ALU does the operation, and ACC stores the
result.
296
Mechatronics: Principles, Concepts and Applications
(µP)
Input buffer
Internal
registers
Output buffer
Program Counter Program Counter, called PC, is a register that holds the address of the next
instruction. At the end of the execution of the current instruction, the content of the PC (the next
address) is transferred to the memory and decoded in order to get the next item of the executable
code. The next item could be a data or an instruction. PC is the main functional unit of the
microprocessor. If the entire program (executable code) is 16 bytes long and is stored in a location
starting from 2000H to 200F, then the PC starts addressing 2000H to 200F sequentially in order to
make it possible to fetch program bytes from these locations one-by-one. The address of the next
location of the memory location is being addressed at the end of the current cycle. Currently, the
microprocessor has just completed the execution of the program byte located at 200B, while the PC
at this instant holds the address of the next location, which is 200C as shown in Fig. 8.9 via the output
buffer.
2000
2001
2002
(µP) 2003
Program counter 2004
D
E 2005
0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 2006
C
2007
O 2008
Memory address register D 2009
E 200A
0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 R 200B
200C
200D
200E
200F
Decoder selects location 200C Memory Address
Holding the program
Fig. 8.9 Program counter holding the address of the next instruction
297
Microprocessors and Microcontrollers
Memory Address Register The content of the Program Counter is placed on the Memory
Address Register (MAR) before the address is transferred to the decoder of the memory device
(Refer Fig. 8.9).
Flags The flag register in the microprocessor is a special purpose register in which the individual
bit values represents the standing of a result byte. The flag bits are automatically modified in
accordance with the result and the type of operation performed. The result byte could be a positive or
negative number (after mathematical operation is over), and a dedicated flag bit implies this piece of
information, i.e. whether the result is positive or negative. In another situation, the result byte could be
a result of some mathematical or logical operation and resulted as zero. A corresponding flag bit
indicates this information, i.e. whether the result is zero. The microprocessor tests the result of the
operation, and the test result is thus stored in the flag register. The flag bits in many situations are
more important than result itself. The programmer, when necessary, uses the tested and recoded flag
bits. Following flag bits are common within the design and construction of most of the
microprocessors and microcontrollers.
· Carry bit: If there is a carry during operation, then the carry bit is set to ‘1’.
· Parity: The microprocessor checks the even or odd number of ‘1’ in the result. If the number
of ‘1’s in the result is even, then the parity bit of the flag is set to ‘1’.
· Zero: Following the execution of the operation, if the result is zero, then the zero bit of the flag
is set to ‘1’.
· Sign bit: The microprocessor checks the most significant bit of the result. If the result is
negative, the sign flag bit is set to ‘1’.
In the Fig. 8.10 (b), the flag bits parity and zero have been set to ‘1’ (by the microprocessor) as the
number of ‘1’s in the accumulator are even and the content of the accumulator had been resulted zero
because of some operation.
(mP)
Sign bit
C = Carry bit
C P Z S X X X X P = Parity bit
Z = Zero bit
Flag register S = Sign bit
Flag bits X = This bit not in use (don't care)
(a)
(mP)
Accumulator (ACC) Flag register
0 0 0 0 0 0 0 0 0 1 1 0 X X X X
(b)
8.6.12 State
The microprocessor processes data at a rate, which is determined by the clock signal (crystal output)
it has been interfaced with. The time required to complete a read (fetch) and write cycle is measured
in terms of state. The state is related to the clock frequency of the microprocessor. Some
microprocessors operate at higher clock frequency and some at lower clock frequency. Usually it is
operated with a frequency, which is half of the crystal frequency, fOSC as shown in the Fig. 8.11.
Crystal frequency
fosc
fosc
2
If the crystal frequency is 10 MHz, then the frequency with which the microprocessor processes
is 5 MHz. The ‘state’ can be calculated as,
1
Tstate = = 200 Nanosecond
( fosc / 2)
Some microprocessors require three states (three-clock period) to complete a fetch cycle and
some require more. A three-state time fetch cycle would be completed in 600 nanoseconds if the
crystal frequency is 10 MHz.
8.6.13 Bus
OPCODE, operands and address bytes are transferred through bus. A bus is a transmitting media
consisting of group of lines. The number of lines are usually 8, 16, 32, etc. They connect each and
every unit within the microprocessor (Refer Fig. 8.12). Some buses are bi-directional and some are
unidirectional, meaning the bi-directional buses transfers data in both directions, where as
unidirectional buses carries data in only one direction. Buses, which carry address and data are called
address-bus and data-bus, respectively. They may be external or internal. Some buses are used in
multiplexed mode. For example, in one occasion they are used as address bus, and in another occasion
they are used as data bus. Time Division Multiplexing (TDM) is used with regard to multiplexed mode
of operation.
(µP)
Internal bus
Bi-directional External
bus
Another A typical unit within
unit the microprocessor
Unidirectional bus
must be decoded in order to generate control signals for ‘what to do next’. A unique set of control
signal is generated according to the instruction types. For instance, if it is an instruction (OPCODE)
for addition, then addition related control signals are produced. If the OPCODE is a comparison
instruction, then comparison related control signals are produced. The decoder decodes the OPCODE
and produces the necessary control signals as illustrated in Fig. 8.13. The instruction decoder is also
called microcode engine. It is really an engine (checks its own for what to do next) that drives all
other units in order to perform the desired task based upon the decoding result.
OPCODE from memory
(mP)
Instruction register
8.6.15 Interrupts
In a typical microprocessor-based control implementation usually the external input devices such as
sensors, A/D converters, Input ports, Programmable Interrupt Controller (PIC), Direct Memory
Access Controller (DMAC), etc. are interfaced with the microprocessor through some special lines
called interrupt lines or interrupt pins, and these lines are input lines (Fig. 8.14). Generally, the data
transaction from the external devices into the microprocessor is not implicit for which a request and
acknowledgement type signal is needed. The external device sends an interrupt signal to the
microprocessor when it wants to establish a dynamic link for data transaction. For example, when an
A/D digital converter completes its conversion process, (i.e. analog signal to its digital equivalent), it
can request the microprocessor in terms of interrupting it to accept the digital data for use. A/D
converter interrupts the microprocessor informing that it is ready to transfer the digital data. The
microprocessor then sends an interrupt acknowledgement signal to the A/D converter. Then only data
transaction takes place. This is a typical example. In order to handle several devices, more numbers of
interrupts lines are required. A microprocessor must have adequate number of interrupts lines in order
301
Microprocessors and Microcontrollers
to deal with acceptable number of devices. When the number of interruptible devices are more than
the number of interrupt lines a microprocessor has, the situation could be solved through a technique
which is called as vectored interrupts. Vectored interrupt is a nested scheme, and polling methods are
employed for device identification. Polling is a technique to identify a device among many that has
interrupted. Polling can be implemented through hardware, software or combination of both.
Interrupt pin-2
Interrupt acknowledge pin of Analog to
the microprocessor digital SENSOR
converter
Interrupt line
BEFORE INTERRUPT
(mp) PC A Register
200C 8D
SP
3000
2000 5000
2001 5001
300A
2002 5002
D 3009 D
2003 5003
D 3008
E 2004 E 5004
E 3007
2005 5005
C C 3006 C
2006 5006
O 3005
2007 5007
O D 3004 O
2008 5008
E 3003
D 2009 D 5009
R 3002
200A 500A
E 3001 E
200B 500B
3000
R 200C R 500C
200D Stack Address 500D
200E 500E
200F 500F
Memory Address Interrupt Address
holding the subroutine
main program (a)
AFTER INTERRUPT
(mp) PC A Register
5000
SP
3002
2000 5000
2001 5001
300A
2002 5002
D 3009 D
2003 5003
3008
E 2004 D E 5004
3007
2005 E 5005
C 3006 C
2006 C 5006
3005
2007 O 5007
O 3004 O
2008 D 5008
3003
D 2009 E D 5009
8D 3002
200A R 500A
E 20 3001 E
200B 500B
0C 3000
R 200C R 500C
200D Stack Address 500D
200E 500E
200F 500F
Memory Address Interrupt Address
holding the subroutine
main program (b)
simplicity this example has considered the content of only one register, however, there could be many
registers involved while the microprocessor executing the current task). At this moment let the
interrupt occur. Then the microprocessor has to store the content of the PC and the content of the
register A in the stack prior to attending the Interrupt Service Subroutine (ISS), which has been
stored in another memory block starting from the location 5000H to 500FH. Figure 8.15 (b) shows
the contents of the microprocessor after the interrupt has occurred. As you can see that the empty
stack has been filled with 0C, the 8 Least Significant Bit (LSB) of the PC, at the stack location 3000H.
The stack location 3001H stores the 8 Most Significant Bits (MSB) of the PC and finally the location
3002H holds the content of the register A, which is 8D. Notice the order of the stack locations. The
LSB bits of any address are placed at the lower order location. The content of PC has been changed
to 5000H, the address location from which the interrupt service has to be executed. Also notice the
content of the SP. It is 3002H, the new stack top. SP always points to the most recently filled location
in the stack. SP is initialized at the bottom of the stack space, and as data bytes are added to the stack,
the stack fills up the stack space.
(mP)
RD
Flag bits Instruction Register (IR) Data Register (DR)
Bi-directional
Bus
Microcode
Engine Register set
Stack pointer
Control signals
Program counter
Bus
Unidirectional
bus
Accumulator
Address path
RD WR to memory and output Ground VCC
decodes the OPCODE and activates the Timing and Control Unit to generate control signals such as
Clock out, RD (Read), ALE (Address Latch Enable), RESET OUT, S0, S1, IO / M , HLDA, etc. for
further action to take effect. If the OPCODE is an instruction for addition operation, then Timing and
Control Unit generates addition related control signals, and if the OPCODE is a comparison instruction,
then comparison related control signals are generated.
B, C, D, E, H, and L are six general-purpose 8-bit registers. These are used for temporary storage
of 8-bit intermediate-data, results, constants etc. BC, DE registers are used as pairs to hold 16-bit
data. H and L registers, in combination, are used to hold the address locations temporarily whenever
necessary. Only these combinations are possible. Program Counter (PC) of 8085A holds the address
of the next instruction. Stack Pointer points the stack-top. Incrementer and Decrementer Unit
increments and decrements any digital data (value), and can be used for counting purpose.
Within 8085A, data are processed 8-bit wide. In every situation, data transaction between the
external (Memory, I/O devices) and even internal units (Accumulator, Registers, etc.) takes place
306
Mechatronics: Principles, Concepts and Applications
TRAP RST 7.5 RST 6.5 RST 5.5 INTRA INTR SID SOD
Temporary Accumulator
register (ACC) Instruction
register C B
E D
L H
ALU PC
Instruction SP
Decoder
Incrementer/Decrementer
8-bit (one byte) wide. However, some external devices input and output data in serial manner. It is
thus required to convert the parallel data into serial form. 8085A has a unit called Serial I/O control
Unit, which converts 8-bit length parallel data into a 8-bit serial data. Serial data are outputted from the
microprocessor through SOD (Serial Output Data) pin, and serial data are input into the
microprocessor through SID (Serial Input Data) pin.
8085A facilitates interrupt service by providing five numbers of dedicated interrupt lines (pins).
They are called INTR, RST 7.5, RST 6.5, RST 5.5 and TRAP. INTR is one of the interrupt lines.
When this is high (the interruptible device drives it to high) 8085A suspends its main task and attends
the subroutine written for INTR line. The content, or the present status of the microprocessor, is
stored in the stack prior to switching the control to attend the INTR subroutine. The programmer
defines the address of the interrupt subroutine. On the other hand, the interrupt lines RST 5.5 to 7.7
307
Microprocessors and Microcontrollers
have fixed address locations. Whenever these lines are high, the 8085A passes the control to fetch the
instruction from the location corresponding to RST 5.5, RST 6.5 and RST 7.5. TRAP is a special
interrupt pin/line mostly used for attending the service relating to power signal interruption. That is, if
main power supply fails, the microprocessor is informed through this line. The microprocessor
executes the TRAP subroutine. In effect, the VCC is connected to the battery.
8085A can address up to 216 = 64K locations. The address and address/data buffers are some sorts
of ports where address and data are placed. These are also 8-bit registers. The 16-bit address is
transferred from the PC to the Memory Address Register (MAR) and placed on both the buffers
(address and address/data) and then transferred to the memory. The lower byte of the address is
placed on the address/data buffers, where as the upper byte is placed on the address buffer. Eight
Least Significant Bit (LSB) of the address are sent to the memory decoder through AD0 – AD7 lines
and other eight Most Significant Bits (MSB) of the address are sent through A8 – A15 lines. Data are
transferred from and into the microprocessor through 8 lines, i.e. through AD0 – AD7 pins. Thus
AD0 – AD7 are used in multiplexed mode, they carry both data and address. Within a fetch cycle the
address is sent during the first state of the cycle. During the second state the content of the specified
memory location is read and during the third state the content is transferred into the microprocessor
through the same AD0 – AD7 lines/pins (Fig. 8.18). The address/data bus, AD0 – AD7, is bi-directional
where as the address bus A8 – A15 is unidirectional.
fosc
2
Fetch cycle
8.11 MICROCONTROLLERS
Microcontroller is a digital integrated circuit, signifying the heart of any modern control applications.
The microprocessors and microcontrollers are similar, but as far as application domains are
concerned, their architectures differ. Microprocessors, or CPUs, are mainly employed for high-speed
computing applications such as mini, mainframe, PC, super computer design. On the other hand,
microcontrollers are employed in automation and control applications. However, presently the
application domains of microcontrollers have been expanded into computing sectors. For example,
308
Mechatronics: Principles, Concepts and Applications
many embedded microcontrollers are used for modem, disk drives, floppy drives, etc. Before the
advent of microcontrollers, microprocessors had been the only choice for realization of control
system. Although microcontrollers are considered to be the replacement of microprocessors, in
industry still the microprocessors are being used because of their adaptability, versatility, flexibility,
compliance, low cost, and ease of writing and handling the codes. In order to go ahead for
understanding microcontrollers, prior study on microprocessors was essential.
ALU
Register set
buffers
Instruction decoder
CPU Control Unit
PC, SP
Interrupt controller
SID/SOD Unit
Buses
(a)
CPU CPU
(b) (c)
Fig. 8.19 (a) Microprocessor with one CPU (b) with two CPUs (c) with three CPUs
ALU
A/D converter Register set
Memory controller Buffers
Programmable timer CPU Instruction decoder
Pulse width modulator Control Unit
Digital I/O PC, SP
Phase locked loop Interrupt controller
Memory controller SID/SOD Unit
EPROM, ROM Buses
(a)
CPU CPU
(b)
The target platform for which the control system is designed is called process or plant. A plant can
be controlled either using a microprocessor, or using a microcontroller. The plant may be a machine
such as Robot, AGV (Autonomous Guided Vehicle), NC (Numeric Control), etc. or a production line
such as conveyor system, packaging and assembly station, etc. All such machines and lines have to
be equipped with sensors and actuators which are logically linked through microprocessors or
microcontrollers to perform the global task. In a microcontroller based control design, the requirement
of number of external circuitry such as signal conditioning circuits and peripheral units are less as
compared to its counterpart, i.e. microprocessor based control design. This can be noticed from the
Fig. 8.21, in which no circuits or a relatively less number of circuits and units are required to control
a pick-and-place type robot if microcontrollers are used. In summary, microcontroller-based control
design is robust and reliable due to the following reasons.
In microprocessor-based solution the external units have to be integrated or interfaced, requiring
additional task and connectivity. On the other hand microcontroller-based control design does not
require additional peripheral units since they have been built into the processor chip. They are more
reliable, since little or fewer additional connections and interfacings are required thus reducing part
size and enhancing real-time performance and efficiency. The overall implementation cost is also low.
Microprocessor
PLANT PLANT
· Mathematical operations
· Real-time operations and context switching
· Communication
· Relatively higher sampling rate
In order to handle several interruptible devices, more interrupt lines are required. A microcontroller
must have adequate numbers of interrupt lines in order to deal with multiple number of devices.
Interrupt priority among the devices is necessary for handling interrupts. For this, interrupt
management mechanism must be incorporated. In interrupt management, schemes such as hardware
polling and software polling are in fact, implemented within the microcontroller architecture. Latency
is one of the characteristics of real-time operations. Latency is defined as the time delay between the
interrupt request and the start of the service routine. Latency has to be small.
Context switching is an important operation in which the current action switches to another sub-
action because of interrupt. This is a sort of multitasking control operation where the control changes
the tasks according to operation conditions, and the control strategy. In order to realize the concept of
context-switching, the microcontroller includes Program Counter, Stack Pointer, register set, etc. in
conjunction with context switching instructions such as PUSH, POP, CALL, RET, etc. Mainly, the
role of SP is important in context switching activities. The microcontroller must be able to handle
context switching with minimum delay to avoid performance degradation.
Other facilities that the microcontroller support for real-time operations are timer provision, A/D
converter, high-speed I/O, ports/buffers, acceptable number of registers and internal memory and
communication capability. Timers are needed for different time related operations such as signal
generation, period measurement, delay generation, etc. In many control applications, oscillatory
signals such as square wave, triangular wave, PWM (Pulse Width Modulated) signal, etc. become a
requirement. For example, the speed of an induction motor can be controlled by suitably controlling
the input power (see Chapter 2). A PWM signal could be required to do the control function, i.e. speed
control. The microcontrollers can generate such signal when programmed. A/D converter converts
analog to the digital signal. High-speed I/O ports/buffers are required for communication with external
devices such as sensors, display unit, etc.
8.12.3 Communication
Communication capability is essential in most control systems to operate under the coordination of
other devices and controllers. Standardized physical layer model is the preferred choice in order to
establish coherent communication (see Chapter 12 and Chapter 13). The solution to effective
communication among the components is to abide by some common set of data-format and data-
exchange rules. The coherent and unified communication standard is referred to as open system
standard. The standards define the format in which data is exchanged, systems are accessed, and
services are involved. An open system enables end-user to buy off-the-shelf products to achieve
coherent communication. Many microcontrollers facilitate standardized physical layer model for
unified and coherent communication.
all performance specifications [18]. You have encountered in Chapter 2 that theoretically, the sampling
rate of a system should be twice the bandwidth of the signal. But in practice, 20 to 30 times the
desired bandwidth is typically required.
8.13 CLASSIFICATIONS
Microcontrollers are classified mainly in four ways such as,
· By the semiconductor technology of their design
· The width of the data format
· Their instruction set
· Data types they handle
With regard to semiconductor technology of their design, mostly TTL (Transistor-Transistor
Logic), CMOS (Complementary Metal Oxide Semiconductor) and ECL (Emitter Coupled Logic)
based fabrications are observed. CMOS consumes low power because of high input impedance of the
basic devices built into it while TTL technology is commonly in use. Faster processors are designed
based on ECL technology.
The width of the microcontroller represents the size of the operand upon which the processor can
operate. Microcontrollers characterizing 4-bit, 8-bit, 16-bit and 32-bit width data format are designed.
8-bit devices are mostly used. These are inexpensive and good enough for the realization of simple
control applications. In general, the wider the data format, the faster, and more expensive, are the
devices.
Microcontrollers are also classified under whether they are CISC (Complex Instruction Set
Computing) or RISC (Reduced Instruction Set Computing). CISC processors are slower as compared
to RISC. CISCs are easier to program as compared to RISC.
Further, there are two types of microcontrollers such as floating-point and fixed point, i.e.
according to the nature of data they handle. The main difference in this respect is their architecture of
arithmetic and logic units. The floating-point microcontroller directly operates on data, using floating-
point format. A fixed point microcontroller, on the other hand, deal with fixed point data. Such
microcontrollers can also handle floating-point numbers, but by the use of software, thus requiring
increased processing time.
· Engine control
· Modem
· Mid-range digital signal processing
· Airconditioner control
· Printer control
· Disk drive control
· Photocopier control
· Any kind of closed loop control such as robotics, and so on.
MUX
Instruction register
A B
SFR
PSW control ALU
Microcode engine Interrupt
Controller
CPU Control
and status signals
16
CPU BUSES
8
8.14.3 Queue
Queue is a type of register, which holds the instructions. It is located within the memory controller.
The instructions flow into the queue in the first place, and then transferred into the instruction register,
before decoding takes place. The microcode engine then decodes the instruction and generates control
signals so that the desired functions can be performed.
8.14.5 RALU
Register/Arithmetic and Logic Unit (RALU) is the main functional unit that includes:
· Arithmetic and Logic Unit (ALU)
· Master Program Counter (PC)
· Program Status Word (PSW)
· Instruction register
· Microcode engine
· Constant register
· 3-bit select register
· Loop counter
· Upper word temporary register
· Lower word temporary register
· Second operand register
ALU performs arithmetic and logic functions. Words enter the ALU through A and B inputs. PC
points the address of the next instruction. It includes incrementing circuitry. PSW register bits are
used for two purposes: (i) six bits are used as flags to reflect the status of the program, and (ii) some
bits are used to enable and disable some peripheral units. For example PSW.1 (first bit of PSW) is
used to globally enable and disable servicing of all interrupts, and PSW.2 is used to enable or disable
the Peripheral Transaction Server (PTS). When interrupt occurs, the control passes to another
location. The interrupts are handled by jump, call, and return type instructions. The upper and lower
registers are mainly used for 32-bit instructions. They are also used as temporary registers for other
instructions. The 6-bit loop counter register is used to count the number of left or right shifts,
whenever required. The second operand register stores the second operand when the microcode
engine executes a two-operand instruction.
service options. It facilitates software scheme through interrupt controller and hardware-implemented
services through PTS (Peripheral Transaction Server). The interrupts are services by user-written
interrupt service routines. PTS is an embedded hardware interrupt handler. The PTS responds to
interrupts with a fixed set of actions, such as transferring data, starting a A/D conversion, reading
High-Speed Input (HSI) and loading events into the High-Speed Output (HSO) modules. PTS has
higher priority over software interrupts.
Addressing modes are the ways of accessing the operands. KC/KD uses six addressing modes
such as:
· Register-Direct
· Indirect
· Indirect with auto-increment
· Immediate
· Short-indexed
· Long-indexed
When operands are within the register, it is called register addressing. Operands can be addressed
indirectly. In this mode of addressing, the real address of the operand is within the Register File. That
is, the content of the register is the address of the operand. Indirect with auto increment addressing
mode is similar to indirect addressing mode, except that the content of the register (which is the
address of the operand) is incremented automatically after it is used to address the operand. When the
operand is within the instruction itself, then it refers to as immediate addressing. Short and Long-
indexed addressing is a technique, in which a calculated value is added with the address to the target
location where the operand resides. One 8-bit field in the instruction selects a WORD variable in the
Register File, which contains an address. In case of Short-Indexed addressing, the second 8-bit field
in the instruction stream is sign-extended and summed with the WORD variable to form the effective
address of the operand. The Long-Indexed addressing mode is like the Short-Indexed mode, except
that a 16-bit field is taken from the instruction and added to the WORD variable to form the address
of the operand. No sign extension is necessary.
relays and output relays. The field relays are realized by the use of transistors and thus physically
exist. They are connected to the field devices such as sensors, switches etc. The signals from the
outside world are fed to the field relays. The output relay are responsible to send on/off signal to the
outside world such as solenoid, LED, gizmo, etc. They are also made up of transistors. The interior
relays, counters and timers are realized by simulation. The register bits are used to realize the
simulation. Some of the interior relays are ON state while some are OFF state. They are usually used
for initializing data that was stored. The counters do not physically exist. They are called simulated
counters or software counters. Through programming the counter can count the input pulses.
Essentially the software counters can count up or down. In many PLC hardwired counters are also
seen. Hardware counters can provide faster counting operation.
Input Output
CPU
Module Module Output
Input (ON / OFF)
The PLC works by repeatedly looking into the program. This repetition cycle has three steps,
namely sense, decide and act. During the sense phase of the cycle the PLC looks the current state of
the process under its control in terms of looking at each field devices to conclude if it is ON or OFF
state. In deed the status of the first input, second input, third input and so on are sensed cyclically.
Then it transfers the sensed data to the storage cells and records. The stored data are used during the
next step during which the PLC executes the program. The programs are executed one instruction at
a time, sequentially. In response the execution of the program it turns ON or OFF the outputs of the
corresponding inputs. It then stores the results of the execution for subsequent use and at the end the
PLC always updates the status of the outputs. Thus it updates the outputs based on which inputs were
ON or OFF during the first step and the results of executing the program during the second step.
Once the final step is over the PLC goes back to step one and repeats the steps endlessly. One scan
time is defined as the time it takes to execute the 3 steps listed above.
Fundamentally, the following processes are involved in order to implement a PLC based process
control system. Firstly the components used in a traditional relay-based control system are translated
into symbols that the PLC understands. All the devices are assigned with unique addresses. Various
addressing schemes are usually used. There is a requirement to create a ladder diagram because a PLC
does not understand the schematic diagram. In the final process the schematic diagram is converted
into a logical sequence of events. Most PLCs, have software, which convert ladder diagrams into
code. The PLCs have been popular because of their advantages as follows.
320
Mechatronics: Principles, Concepts and Applications
· PLC can work in rugged environment and can work in the factory floor.
· They can operate in the adverse condition of the factory floor.
· They can withstand vibrations, interference, transients, noise etc.
· They can work from zero degree centigrade to above forty degrees centigrade.
· PLC can replace hundreds of relays and occupy significantly less space.
· The circuit logic can be easily altered without rewiring.
· It has no moving parts or contacts to wear out.
· The down time is less than the relay circuit.
· The implementation is flexible and scalable.
· Faster response time
· Workspace within the microprocessor is the main unit, where the microprocessor executes the
control code.
· A microprocessor generally means a Central Processing Unit (CPU) on a single semiconductor
chip.
· Microprocessor is just an electronic device, composed of only combinational and sequential
circuits.
· The internal infrastructure of the microprocessor is universally known as microprocessor
architecture.
· Some microprocessors and microcontrollers contain more than one CPU in order to achieve
faster instruction processing.
· A memory is a physical device where program, data etc. are stored. A memory device contains
many memory locations.
· A memory chip must have a data path and address path. Data path is bi-directional and address
path is unidirectional.
· ALU contains electronic circuits, using which all the arithmetic and logic functions are
performed.
· A program is a logical sequence of instructions that directs the microprocessor to perform a
desired task.
· The microprocessor executes a collection of sequentially and logically arranged machine
instructions that tell the processor what to do next.
· Accumulator is a register that primarily stores the result of mathematical, logical and other
operations.
· Program counter, called PC, is a register that holds the address of the next instruction.
· The flag register in the microprocessor is a special purpose register in which the individual bit
values represent the standing of a result byte.
· Writes cycle is one that interprets writing operation.
· A bus is a transmitting media consisting of group of lines.
· When the number of interruptible devices are more than the number of interrupt lines a
microprocessor has, the situation could be solved through a technique what is being called as
vectored interrupts.
321
Microprocessors and Microcontrollers
· Stack is a user defined memory space, which includes many locations within the memory space
of the microprocessor. When interrupts occur, the microprocessor stores the currents of the
various registers and flags in the stack and attend the interrupt(s).
· Stack Pointer is a register located within the microprocessor that holds the address of the stack
top.
· 8085A facilitates interrupt service by providing five numbers of dedicated interrupt lines (pins).
They are called INTR, RST 7.5, RST 6.5, RST 5.5 and TRAP.
· Microcontroller is a digital integrated circuit, signifying the heart of any modern control
applications.
· Microcontroller contains many additional peripheral units such as A/D converter,
Programmable timer, Pulse width modulator, Phase locked loop, Memory controller,
EPROM, ROM , etc.
· Microcontroller-based control design does not require additional peripheral units since they
have been built into the processor chip.
· Context switching is an important operation in which the current action switches to another
sub-action because of interrupt.
· Standardized physical layer model is the preferred choice in order to establish coherent
communication.
· An open system enables end-user to buy off-the-shelf products to achieve coherent
communication.
· Sampling rate of the microprocessor or microcontroller is the rate at which the
microcontroller processes and manipulates the data.
· 8XC196KC and 8XC196KD are high-speed microcontrollers from Intel Corporation.
This chapter has been designed to have the basic idea about the control logic system. Hence
the basic elements of a control logic system have been described. The microprocessor is the
heart of any control logic system. Hence the minimum configuration of a typical
microprocessor has been explained. In addition to this the internal architecture of 8085A (Intel
microprocessor) has been discussed with the help of block diagram and also the functions of
each block have described. Since the microcontroller, which is a digital integrated circuit, is
the heart of any modern control application, hence its concept has been described and also
discussed is the difference between microprocessor and microcontroller.
LOOKING AHEAD
Modeling is another domain in which the systems are described, represented and viewed from
various prospectives such as design, control, estimation, manipulation and so on. Chapter 9,
Chapter 10 and Chapter 11 explain how the systems are described, represented and viewed
respectively.
322
Mechatronics: Principles, Concepts and Applications
EXERCISES
8.20 Draw the schematic block diagram of a minimum configuration of a typical microprocessor
and explain the blocks.
8.21 Discuss the architecture of Intel’s 8085 microprocessor.
8.22 What are the additional building blocks that microprocessor should have?
8.23 Draw schematic block diagram of a microcontroller showing peripheral units. Figure out a
typical microprocessor and microcontroller based control design.
8.24 What do you mean by real-time operation and context switching?
8.25 Define sampling rate in the context of microcontroller.
8.26 On what basis are microcontrollers classified?
8.27 Comprehensively narrate the architecture of Intel’s 8XC196KC/KD microcontroller.
8.28 A system is designed to monitor the temperature of a furnace. Temperature ratings are recoded
in sixteen bits and stored in memory locations starting at XX60H. The high order byte is stored
first and the lower order byte is stored in the next consecutive memory locations. However the
high order byte of all the temperature reading is constant. Write a program to transfer low order
readings to consecutive memory locations starting at XX80H and discard the high order bytes.
Temperature readings (H) 0581, 0595, 0578, 0574, 0598.
9
Modeling
9.1 INTRODUCTION
System modeling is about solving practical problems by creating mathematical models, called model
equations, which can be manipulated and optimized during the process of system design. Modeling
allows us to learn a great deal about the system in terms of understanding and predicting their
behaviour. Principle of law of conservation of energy takes part in the modeling process.
The mechatronic system is designed and its performance is analyzed using model equations. The
result of the analysis help to show how well the system met the design parameters and how best to
alter and modify the design as needed. The analysis and design procedure can be summarized as
follows:
· Identification or description: The physical system is usually described in terms of basic
modeling elements.
· Formulation of a mathematical model: This is also called dynamic modeling
· Analysis of the model: Iterative evaluation in terms of achieving effectiveness of the system
· Interpretation, confirmation and verification: That is whether all the functional design
specifications are met
· Practical behaviour study: Propose modifications for improving the manufacturability.
As you can see that the important phases of analysis and design always starts with the identification
and description of the physical systems and then formulation of a mathematical model. This chapter
deals with the identification of the physical system and formulation of a mathematical model. The
basic modeling elements depict a system completely. Once the system is fully described, it becomes
easier to study, analyze, evaluate, and predict its behaviour and performance to meet the design
requirements.
9.2 SYSTEM
Within the engineering arena the word system is being used frequently. In some generalized sense a
system is defined as a group of properly arranged elements those when act together provides the
desired output with respect to available inputs. Evidently, a system takes some inputs and provides
some outputs while satisfying the law of conservation of energy.
A general way of classifying the systems is based on their input and output strength. For instance,
when the number of input to the system is one and the number of output is also one then such system
is called Single Input and Single Output or simply SISO system. Systems with other combinations
such as Single Input Multiple Output (SIMO), Multiple Input Single Output (MISO) and Multiple
Input Multiple Output (MIMO) also exist (Fig. 9.1). The inputs and outputs can be in different form
(For example the input to an electric motor is voltage where as the output is angular displacement),
however as far as energy is concerned, the input energy is equal to the output energy (also called
stored energy) provided that the system is an ideal one. In ideal system, no losses are encountered.
Keeping in view of the law of conservation of energy all systems are categorized under four main
basic or elemental systems, namely:
· Mechanical system
· Electrical system
· Fluid system
· Thermal system
326
Mechatronics: Principles, Concepts and Applications
(a) (b)
(c) (d)
Mechatronic systems are not elemental system rather they are hybrid type. For instance, the
electric motor can be considered as either an electro-mechanical system or even thermo-electro-
mechanical system.
The inputs are the sources of energy, which are available. The noise is the unwanted energy that
enters into the system at any time. The noise energy is considered as the unwanted available input
energy. So the total input energy is the available input energy plus unwanted available input energy.
The output energy is the difference between the total input energy and the loss. Figure 9.2 illustrates
a schematic diagram of a system, taking into account of all energies. Various energy sources of the
above mentioned systems are described in the Table 9.1.
Noise
Input domain
Input energy
SYSTEM Output
source
Output domain
Table 9.1
System and their energy sources
Systems Energy sources
Mechanical Force
Velocity
(Contd.)
327
Modeling
9.3 MODELING
Consider an automated motorized spindle system. Especially, spindle systems are employed for
machining, micromachining, milling, drilling and data reading/recording applications in aerospace,
heavy industry, consumer industry, and in many manufacturing sectors. The spindle system is a
mechatronic system because they are integrated with electric motor, electronic interfacings and
control systems. The electrical motor is an electromechanical device which contains mechanical and
electrical parts. The mechanical parts are the shaft of the motor, the stator body, the armature core
etc. The electrical parts are armature coils and field coils.
There are many issues to be encountered while designing the mechanical and electrical parts. While
designing the shaft of the spindle, for instance, the specification parameters such as stiffness,
damping, inertia, etc. are to be considered in order to deal with the risk factors such as vibration,
loading effect, possibility of failures (crack and bending), etc. Even the geometry of the shaft is
considered as one of the design parameter since a small deviation could cause a large vibration effect.
Similarly, optimal design is necessary as far as electrical parts are concerned.
What is convincing is that in order to design a performance driven system the fundamental is
always linked with the modeling. Modeling is nothing but a mathematical description of the physical
system. It governs the fundamental physical laws associated with the system. During the design
process, the laws in terms of mathematical model are exploited to meet the desirable design
specifications. In effect, modeling helps us to provide sufficient and necessary information to deal
with the issues as far as optimization of the system design is concerned. This phase is called analysis.
The results of the analysis help how well the system met the design parameters and how effectively to
alter them to get best design requirement. Then another model is developed for analysis for improved
performance. The process continues to iterate the analysis until we have a specification that satisfies
the application parameters.
inertia (when it rotates it exhibits inertia) property that determines how much acceleration it would
produce when exerted by the force.
Irrespective of whether it is a mechanical, electrical, fluid or thermal system, they can be depicted
with these three types of pure elements which are collectively responsible for governing the ‘principle
of conservation of energy’. These three elements are fundamental because each element characterizes
three types of energies, which are encountered within the systems. The spring element stores potential
energy, the damper represents the dissipating energy or loss in the system and the inertia element
stores kinetic energy. Sometimes, one of these storing phenomena predominates over the others.
Then only one of these elements might be sufficient for modeling such a system. In other instances,
two or all three phenomena must be taken into consideration and in some systems several elements are
combined together in order to form the model of the system.
9.4.1 Spring
Spring element stores potential energy. The law that a spring is being described with regard to the
storage of potential energy is based on Hook’s law. If a force, F (Newton; kg ´ m/s2 ), is applied on
the spring as shown in the Fig. 9.3, then the spring elongates and the amount of elongation is
proportional to the applied force. The mathematical model equation that describes the basic modeling
element is called elemental equation.
F
F = kx Þ x= (9.1)
k
Equation 9.1 is called the elemental equation of the spring element. Where, F is the applied force or
more appropriately the force exerted by the spring element, x is the change in length or displacement
(Meter) caused by force and k is a proportionality factor called spring constant or stiffness. This
implies that if the input to a spring element is force then the output is displacement. The spring
element is sometimes referred to as stiffness element. Stiffness is a kind of transfer function. The
value of output depends on the transfer function. The relationship between input force and output
displacement for spring depends on the geometry and property of the material. The unit of stiffness is
Newton/metre. The reciprocal of the stiffness is called mechanical capacitance or compliance.
F
F F
x0 x0 x
Ideal/Pure spring
Force Displacement
(k)
The potential energy (Joules) that the spring element stores is given in the following equation.
x
1 2
0
z
E = Fdx =
2
kx (9.2)
The energy can also be expressed in terms of force, as shown in the following equation.
1 2
E= F (9.3)
2k
A mechanical structure shown in the Fig. 9.4 has been modeled using spring element.
Force = F
Mechanical structure exerted by force
x x
F
Spring model of the
mechanical structure
Fig. 9.4 A typical simple example of modeling a mechanical structure using spring
element
The spring element we considered is a translational spring in the sense that the input is a force not
torque. Equally, we have rotational spring in which the input is torque. Accordingly, the rotational
spring constant (or rotational stiffness) has been defined. In this situation, if a torque, T (N-m) is
applied, the rotational spring makes angular displacement, q. That is,
T
T = kaq Þ q = (9.4)
ka
Equation 9.4 is the elemental equation of the rotational spring element. Where, k a is the rotational
stiffness (Newton-metre/radian). The energy stored in a rotational spring is,
1 1 2
E = ka q 2 = T (9.5)
2 2 ka
Loss
(Resistance)
v
Force
(a) Force
Damper System No output
Torque
w
Torque
(b)
J = Moment of inertia
Mass Force
w = Angular velocity
J
Input-output relationship
If the body is constrained to rectilinear translation, its body can be considered as a mass point. The
principle of compatibility is usually applied. Under this situation, the effect of external forces applied
to the body is opposed by the body mass and is proportional. Newton’s laws of motion are applied
while formulating the elemental equation. Newton’s second law of motion states the following.
dv
F = ma = m (9.10)
dt
Where F (Newton) is the input force acting on the mass point, m (kg) is the mass, and a = dv/dt is
acceleration (m/s 2 ), v is velocity (m/s) with respect to a non-accelerating reference frame. The
kinetic energy, Ek stored in the element is,
1
Ek = mv 2 (9.11)
2
Similarly, with regard to inertia element, the source input torque, T is involved in formulating the
elemental equation.
dq
T = Jw = J (9.12)
dt
Where, J is called moment of inertia, w = dq/dt, is the angular velocity, q is angular displacement.
Kinetic energy stored in the element when it is rotating with an angular velocity w is,
1
Ek = Jw 2 (9.13)
2
System model based on the elements described above (spring, damper and mass/inertia) is referred
to as lumped-parameter model due to the reason that each element is basic and independent of other,
i.e. pure. Lumped parameter modeling concept signifies that the system is made up of discrete but
pure components. For instance, when the spring is stretched every bit of ingredient in the spring gets
deformed and collectively they (every bit) give the displacement ‘x’. The spring is seen as a single
unit, a ‘lump’. It is not cared how much each part of the spring is stretched due the applied force and
how all those every bits add up to the total amount ‘x’.
Fig. 9.7 Basic modeling elements of electrical systems (a) An inductor (b) A resistor
(c) A capacitor
332
Mechatronics: Principles, Concepts and Applications
The stored magnetic energy, the loss dissipated and the stored electrical energy in the respective
basic electrical elements are expressed in Eq. (9.14) through (9.16), respectively.
F F
1 1 2 1
z
E = idF =
0
L0zFd F =
2L
F = Li 2
2
(9.14)
v2
P= = i2 R (9.15)
R
q q
1 1 2 1
0
z
Ek = vdq =
C0
qdq = z
2C
q = Cv 2
2
(9.16)
Where,
E = Magnetic energy
i = Current in Ampere
F = Flux linkage in Weber
L = Inductance in Henry
v = Voltage across the terminal in Volt
R = Resistance in Ohm
Ek = Electrical energy
C = Capacitance in Farad
q = Electric charge in Coulomb
The values of L, R and C are associated with geometry of the system (Refer Chapter 2 for detail
description with regard to elements of electrical systems).
9.6.1 Inertance
The governing law (Elemental equation) with respect to inertance is that the pressure momentum is
the function of flow rate. The inertance is represented as;
D = GQ (9.17)
Where, D is pressure momentum, G is fluid inertance or simply inertance and Q is flow rate. The
element possessing inertance is known as inertor. The energy stored in the inertor is given by,
1
E = GQ 2 (9.18)
2
The value of inertance depends on the geometry of the inertor. An ideal inertor characterizes
frictionless incompressible flow in a uniform passage. The fluid inertance of such ideal inertor is given
by,
rL
G= (9.19)
A
Where, r is the density of the fluid, L is length of the inertor and A is the passage. Figure 9.8
describes the symbol of the fluid inertor.
Q Area = A
Length
Area = A
r = Fluid density
g
Thermal systems are characterized by heat and temperature. Conventionally, the energy within the
system is referred to as thermal energy, which is stored, dissipated and transferred across the system.
Heat is transferred by conduction, convection and radiation. The governing law for balancing the
thermal energy is based on rate of energy flow into the system, rate of energy stored in the system and
the rate of loss within the system. One fundamental law with regard to thermal system is that at
absolute zero temperature the kinetic energy of the thermal system is zero. The basic modeling
elements of thermal systems are:
· Thermal capacitance
· Thermal resistance
No thermal inductance exists. From a thermal point of view, a modeling is a network of thermal
resistances and capacitances linking different regions of thermal system and representing conductive,
convective, and radiative and heat storage processes.
= Ct dk
dH q
Þ Ct = (9.27)
dt dt t
The left hand side of the above equation is the rate of change of heat flow or rate of energy storage
(q), t is the rate of temperature. The equation signifies that if the thermal capacitance of the thermal
system is large, the rate of temperature change due to heat is low.
R1
K1 K2
A transfer of heat energy occurs when the system having different temperatures are allowed to
mix. By this process the total amount of energy remains constant. The quantity of heat given off is
equal to the quantity of heat energy gained. The transfer of energy will continue in this way until the
system of substances reach the same temperature. The flow can be controlled by suitably establishing
the system parameters and variables, which is optimized through modeling.
Table 9.2
Basic modeling elements of the systems
Basic engineering Energy source Basic modeling Energy stored/Power loss
systems elements
Mechanical · Force Translational/
1 2
· Velocity Rotational Spring Translational = kx
2
1 2
Rotational = T
2 ka
Damper Power loss = Rv 2
1
Mass/inertia Translational = mv 2
2
1
Rotational = Jw 2
2
1 2
Electrical · Current Inductor Li
2
v2
· Voltage Resistance Power loss =
R
1
· Capacitance Cv 2
2
1
Fluid · Fluid flow Inertance GQ2
2
1 2
· Pressure Fluid resistance P
Rf
1
Fluid capacitance P2
2C f
Thermal · Heat flow
· Temperature Thermal capacitance Ct k
Thermal resistance
337
Modeling
Basic modeling elements and basic engineering systems are pure. A system could either be a pure
mechanical system, pure electrical system, pure fluid system, pure thermal system or any
combinations of these. A real system may either contain one or more basic system. The combined or
hybrid systems are referred to as engineering systems. Almost all mechatronic systems are engineering
systems and thus are hybrid types. In order to model the mechatronic system, fundamental knowledge
as to how the engineering systems are built plays important role. The rest of the chapter deals with the
build up process in relation to the modeling of the engineering systems.
k
k
m F m F
R
(a) (b)
Fig. 9.11 Translational mechanical system with spring, damper and mass
When a force is applied to the mechanical system shown in the Fig. 9.11 (a), energy is stored in the
spring as well as in the mass elements. Energy/power is dissipated/lost in the damper or dashpot
element. If multiple forces act on the system the resultant force has to be calculated. As before, the
energy balance equation is developed based on law of conservation of energy.
Let ,
F = The applied force,
x = The resulting displacement,
dx
v= = resulting velocity,
dt
dv d2 x
a= = 2 = resulting acceleration,
dt dt
m = mass of the mechanical system,
k = translational spring constant or stiffness,
R = translational damping constant,
The potential energy stored in the spring is:
1 2
E=
kx (9.31)
2
The equivalent force required to store the above potential energy is:
Fp = kx (9.32)
The kinetic energy stored in the mass is:
1
Ek = mv 2 (9.33)
2
The equivalent force required to store the above kinetic energy is:
d2x
Fk = ma = m (9.34)
dt 2
The loss in the damper is:
Rv 2 (9.35)
The equivalent force (called damping force) required for the above loss is:
dx
Fl = Rv = R (9.36)
dt
339
Modeling
At any point of time the sum total of the energy is balanced by the elements. Alternatively, the sum
total of equivalent forces is equal to the force applied to the system. That is,
F = Fp + Fk + Fl (9.37)
Substituting Eq. (9.32) through Eq. (9.34) in the Eq. (9.36),
d2 x dx
F=m 2
+ R + kx (9.38)
dt dt
The above equation is called the model equation of the mechanical system described in the
Fig. 9.11 (a). The modeling equation of the spring-mass type mechanical system, shown in the
Fig. 9.11 (b), with applied force zero, can be written as,
d2 x
+kx = 0
m (9.39)
dt 2
The above two mechanical systems are called second order systems due to the appearance of the
second derivative term, d 2/dt 2.
q = angular displacement
k = rotational spring
Torque = T
Fig. 9.12 Rotational mechanical system with spring, damper and mass element
Let,
T = The applied torque,
q = The resulting angular displacement,
dq
w= = resulting velocity,
dt
dw d 2q
a= = 2 = resulting acceleration,
dt dt
J = Inertia of the mechanical system,
k = Rotational spring constant or stiffness,
R = Rotational damping constant.
340
Mechatronics: Principles, Concepts and Applications
By similar approach the model equation of the rotational mechanical system can be written as
d 2q
+ R q + kq
d
T=J 2
(9.40)
dt dt
B=
F
is the average magnetic flux density,
A
F = is magnetic flux per pole,
2 pRl
A= is the area per pole,
P
R = Radius of the stator,
P = The number of poles in the stator,
l = The length of the coil,
Ia
Is = is the current through a single conductor,
n
Ia = Total armature winding current,
n = The number of conductors in the armature winding (a coil has two parallel conductors),
Ts = The torque generated on only one conductor.
If there are N coils then the number of such conductors will be 2N. Therefore, the total torque Tt,
generated is:
341
Modeling
PNFIa
Tt = = K a FIa = kt I a (9.43)
pn
Where, PN / pn = K a is a constant describing armature and flux-winding parameters such as P, N,
and n. Ka is dimensionless. kt = K a F is called torque constant. If the rotor rotates at a speed of w
(Rad./second) because of generation of torque described in the Eq. (9.43), then the mechanical power
generated at the rotor shaft is (refer Eq. (9.9))
Pm = Tt w Þ Pm = K a FI a w (9.44)
When the armature of a DC motor rotates in the stator field, a back emf (Electro-motive Force) is
induced in the armature winding. The back emf is calculated by using Faraday’s law. The induced
back emf across a single conductor is given by,
Eb = 2 BLRw (9.45)
Replacing B in terms of magnetic flux the above equation can be written as,
PFw
Eb = (9.46)
p
The total back emf is given by,
E b _ total = K a Fw (9.47)
The equivalent electrical circuit of a DC motor is illustrated in Fig. 9.13. In the Fig. 9.13, Vs is the
supply voltage across the armature, Ia is armature current, Ra is total armature resistance, La is the
total armature inductance, Eb_total back emf (that opposes the input voltage). As already stated the
induced voltage is generated by the rotation of the electrical coil through the flux lines.
A model equation for the above equivalent circuit can be derived by using Kirchhoff’s voltage law
around the loop. According to the law the sum of all the voltages around a loop must be equal to zero.
Mathematically this can be written as,
342
Mechatronics: Principles, Concepts and Applications
Vs - VR - V L - Eb _total = 0 (9.48)
Vs = VR + V L + Eb _ total (9.49)
Where, VR is the voltage drop across the armature coil, Ra. VL is the voltage across the inductor
which is proportional to the change of current through the coil with respect to time. But VR and VL
can be written as,
VR = I a Ra (9.50)
dI a
VL = La (9.51)
dt
Substituting the above equations in the Eq. (9.49), we get:
dI a
Vs = Ra I a + La + Eb _total (9.52)
dt
Substituting Eq. (9.47) in the Eq. (9.52), we get:
dI a
Vs = Ra I a + La + K a Fw (9.53)
dt
Let us define various components of torques keeping in view of energy balance principle. Since
motor is a rotational mechanical system, it inherits rotational spring element, damper element and
inertia element.
Tl = Torque due to mechanical load (spring)
dq
Tv = Rw = R ; Torque due to velocity of the rotor (damper)
dt
d2
= J 2q ; Torque due to rotational acceleration (inertia)
dw
Ta = J
dt dt
Where, J is the inertia of both rotor and mechanical load, R is the damping coefficient associated
with the mechanical rotational system of the motor. The sum of the torques acting on the motor must
be equal zero. Therefore,
Tt - Ta - Tv - Tl = 0 (9.54)
Tt = Ta + Tv + Tl (9.55)
Substituting appropriate values of various torque components, in the Eq. (9.55) (also refer
Eq. (9.43)),
d 2q dq
kt I a = J 2 + R + Tl (9.56)
dt dt
dw
or, kt I a = J + Rw + Tl (9.57)
dt
For simplicity, neglecting the value of inductance, Eq. (9.53) can be rewritten as,
Vs = Ra I a + kt w (9.58)
or, I a = ( Vs - kt w ) / Ra (9.59)
343
Modeling
Tt = kt
FG V - k w) IJ
s t
(9.62)
H R K a
In terms of speed the Eq. (9.62) can be written as,
Vs Ra
w= - Tt (9.63)
K a F ( K a F) 2
The above equation suggests that, the speed of a DC motor can be controlled either by changing
the armature voltage, the magnetic flux, the armature resistance or combinations of these.
V V
1 1 1
z
E = PdV =
0
z
0
Cf
VdV Þ E=
2C f
V2 =
2C f
P2 (9.68)
Q Pressure
Regulator
Solenoid valve
Spool x
Chamber-2 P2
Area Chamber-1 Load
Piston Piston
P1 y Rod
Cylinder
The incompressible component can be derived from the motion equation. Let the displacement
parameter be y. Then the motion equation can be written as,
dy
Qeff = K y (9.70)
dt
Where Ky related to the inertance of the air (Refer Eq. 9.17).
The leakage is loss and thus related to the fluid resistor (Refer Eq. 9.20). Mathematically the
leakage component can be written as,
Ql = K l Pdiff (9.71)
Kl = Leakage coefficient of the system that relates Gf or Rf , Refer Eq. (9.17).
The compressible component is derived from the principle of compressibility. The compressibility
depends on the bulk modulus. The bulk modulus is the ratio of stress to strain, which can be expressed
as,
Kb =
dPdiff
Þ dV =
VdPdiff
Þ dV = V
FG IJ dP diff
(9.72)
dV Kb dt Kb H K dt
V
346
Mechatronics: Principles, Concepts and Applications
Where,
Kb = Bulk modulus of the air
Pdiff = P1 – P2 = The pressure difference between two chambers of the cylinder; P1 and P2 are the
pressures in the Chamber-1 and Chamber-2 respectively, (Refer Fig. 9.14)
dPdiff = The incremental pressure
dV = Change in volume
V = Original volume, i.e. when the piston was in the original position
dV
= The compressible component.
dt
Therefore,
Qc =
FG V IJ dP diff
(9.73)
H K K dt
b
Substituting Eq. (9.70), (9.71) and (9.72) in the Eq. (9.69), it yields,
Qtotal = K y
dy
+ Kl Pdiff
FG V IJ dP diff
(9.74)
dt H K K dt
b
The pneumatic actuator in its basic nature is simply a load consisting of a point mass M and a
dashpot with damping constant B. From this consideration the motion equation can also be derived.
Let F is the force applied to the piston because of flow of air into the chamber. Then the motion
equation becomes,
d2y dy
F =M 2 +B + Ky (9.75)
dt dt
Where,
y = Displacement of the piston,
dy
= Velocity,
dt
d2y
= Acceleration.
dt 2
Neglecting the effect of spring element, Eq. (9.75) can be reduced to,
d2y dy
F=M 2
+B (9.76)
dt dt
Since F is equivalent of the force developed by the piston due to flow of air into the chamber, it can
be written as,
F = Kf APdiff (9.77)
Where,
K f = A constant called force efficiency factor,
A = Area of the cylinder bore or the piston.
From Eqs (9.76) and (9.77),
347
Modeling
d2y dy
K f APdiff = M 2
+B (9.78a)
dt dt
Þ Pdiff =
F M I d y + F B I dy
2
(9.78b)
GH K A JK dt GH K A JK dt
f
2
f
Mostly the inlet pressure is maintained constant. Then the flow rate of the air into the cylinder
chamber is the function of two parameters such as the displacement of valve spool, x and differential
pressure between the chambers, Pdiff.
Qtotal = f (displacement, differential pressure) = f (x, Pdiff ) (9.79a)
Now, dQtotal = FH ¶f IK dx +
FG ¶f IJ dPdiff (9.79b)
¶x Pdiff = constant H ¶P Kdiff x = constant
Usually, the partial derivatives ¶f/¶ x and ¶f/¶Pdiff do not change over the operating range. They can
be assumed as constants. Let, ¶f/¶ x = Kx and ¶f/¶Pdiff = KP. Equation (9.79c) becomes,
Qtotal = K x x - K p Pdiff (9.80a)
The negative sign appears due to the fact that the flow rate decreases as pressure difference
increases. From Eq. (9.80a),
K x x = Qtotal - K p Pdiff (9.80b)
Substituting Eq. (9.74) in the Eq. (9.80b), we get,
b
K x x = K P + Kl Pdiff + K y g dy
+
FG IJ
V dPdiff
(9.81)
dt Kb dt H K
Substituting Pdiff (From Eq. (9.78b)) in the Eq. (9.81), and rearranging, we get,
Kx x =
F MV I d y + F BV
3
+
M
( Kl + K p )
d2 y I
+ Ky +
B F
( Kl + K p )
dy I (9.82)
GH K AK JK dt GH K AK
f b
3
f b Kf A dt 2 JK Kf A GH dt JK
The above equation is the input-output model equation of the considered pneumatic actuator. The
above equation can be written in a standard form as follows.
u = x,
b0 = K x ,
MV
Let, a2 = ,
K f AKb
BV M
a1 = + ( Kl + K p )
K f AKb K f A
B
a0 = K y + ( Kl + K p )
Kf A
348
Mechatronics: Principles, Concepts and Applications
Equation (9.82), which is the model equation of the pneumatic actuator can then be written as,
y + a1 &&
a2&&& y + a0 y& = b0 u (9.83)
The above equation is a third order differential equation as it contains the term &&&
y.
· System modeling is about solving practical problems by creating mathematical models, called
model equations, which can be manipulated and optimized during the process of system design.
· A system is defined as a group of properly arranged elements those when act together provides
the desired output with respect to available inputs.
· Mechatronic systems are not elemental system rather they are hybrid type.
· The noise energy is the unwanted available input energy.
· Distinguishably three basic modeling elements are earmarked for the mechanical systems.
· Spring element stores potential energy.
· The reciprocal of the stiffness is called mechanical capacitance or compliance.
· Damper element does not store any energy. It consumes energy, which cannot be recovered.
Other name of the damper is dashpot that symbolizes resistance, more appropriately mechanical
resistance.
· System model based on the elements such as spring, damper and mass/inertia is referred to as
lumped-parameter model due to the reason that each element is basic and independent of other.
· The element possessing inertance is known as inertor.
· A fluid resistor dissipates energy.
· An element in which the stored energy is a function of fluid pressure is defined as fluid
capacitor.
· Thermal systems are characterized by heat and temperature.
· Thermal deformation is the increase of dimension of the mechanical part because of heat
generation.
· Heat is transferred by conduction, convection and radiation.
· One fundamental law with regard to thermal system is that at absolute zero temperature the
kinetic energy of the thermal system is zero.
· The capacity of the thermal system to store the thermal energy is reflected by the thermal
capacitance.
· Pure thermal resistance neither characterizes loss nor stores any energy.
· When the system parameters change with respect to time it is called dynamic system.
· The speed of a DC motor can be controlled either by changing the armature voltage, the
magnetic flux, the armature resistance or combinations of these.
· Closed pressurized chamber with rigid wall uniformly filled with compressible fluid exhibit fluid
capacitance.
· The pneumatic actuator in its basic nature is simply a load consisting of a point mass and a
dashpot with damping constant.
349
Modeling
This chapter described the need for modeling a system and listed the analysis and design
procedure. But we must be able to understand “what a system is”. Hence the word “system”
has been defined. Various types of system such as SISO, SIMO, MISO, and MIMO has been
discussed. Also the system has been classified, according to the law of conservation of
energy, as mechanical electrical, fluid and thermal system. Basic modeling elements of the
basic systems have been discussed and finally it has been summarized in Table 9.2 finally the
modeling of pneumatic actuator has been discussed with the help of its major components
such as compressor, main tank, coarse regulator, control valve, piston-cylinder and the load.
Pneumatic actuating systems are very attractive to industrial application because they are
cheap, light weight and provide relatively good force to weight ratio.
LOOKING AHEAD
Once the system is modeled the output response to the given input must be studied.
Eventually, the study opens up the behaviour and intrinsic transient characteristics of the
system. Once the behaviour is well understood, the output response can be modified to get the
desired one by the process of what is known as compensation. Although compensation theory
and techniques are being taught in the higher levels, the perception of the behaviour and
intrinsic characteristics of the system in response to known inputs are of paramount
importance. Chapter 10 comprehensively deals with the topic as far as response of the first and
second order systems are concerned.
EXERCISES
10.1 INTRODUCTION
A dynamic system has input (s) and output (s), which are largely related. For a given input (s), some
output (s) is (are) produced. The response at the output depends on two parameters, such as,
· The input
· The nature of the system
By applying a known input and studying the response at the output, one can observe the
characteristics of the system very closely. Once the characteristics of a system are known, its
behaviour can be predicted for other type of inputs. The extent to which the input (s) and output (s)
of a system are related is the subject of study.
System response deals with studying the behaviour of the system in which changes occur and in
which predictions are desirable. The type of dynamic systems we will be dealing with are linear and
time-invariant, which could either be a first order or second order system. The input-output
relationships of such systems are governed by the ordinary differential equations, for which the topic
of differential equations is extremely important in the engineering field.
This chapter deals with describing the systems by the use of input-output model equations and
state-space model equations. The transient and steady state behaviour of first and second order
systems are studied by applying test signals such as step, ramp and sinusoidal signals as the inputs.
the effect is the difference between the temperature of the human body and the temperature of the
thermometer. This driving force decreases to zero as the thermometer heats up. Equation (10.3) can
be written in a standard form as given below.
a1 y& + a 0 y = b0 u ( t ) (10.4)
Where, y and u represent output and input of the system, respectively. y& is the first derivative of
output function y. The coefficients a1, a0 and b0 are the constants characterizing the system.
Similarly, by applying fundamental laws to the hybrid type systems such as DC motor
(electromechanical systems), the input-output model equation can be written as,
d 2q q
J + R d + kq = kt I a (10.5)
dt 2 dt
Where, J is the moment of inertia of the rotor, R is the rotational damping constant, k is the
rotational spring constant or stiffness, kt is the torque constant; and Ia is the armature current.
Equation (10.5) can also be written in the standard form as follows.
y + a1 y& + a 0 y = b0 u ( t )
a2 && (10.6)
As before, the coefficients a2, a1, a0 and b0 are the constants characterizing the system. &&
y and y&
are the second and first derivatives of the output function, respectively. In Eq. (10.1), input is the
voltage, output is the current; in Eq. (10.3), the input is the difference in temperature, output is the
rise in temperature, (i.e. the temperature change). On the other hand, in Eq. (10.5) the input is the
armature current, (Ia ) and the resulting output is the angular displacement (q). System representing
Eq. (10.1) bears a linear relationship between the input and output and it does not utilize ordinary
differential equation. On the other hand, Eq. (10.3) and Eq. (10.5) utilize ordinary differential
equations in order to describe the system’s input-output relationships.
derivatives. In most practical situations, usually k < n. By the use of n initial conditions of
y .......... y n-1 , y n at t = t0 (t0 could be zero) and the input u for t ³ t0 , the model equation can be
y, y&, &&,
solved for y, called the output response of the system, for t ³ t0 . Initial conditions provide a summary
of the history of the system up to the initial time. To solve such differential equation we need, the
system input u(t) for the period of interest and a set of constant initial conditions.
Where, u$ is called normal operating point with regard to input and its corresponding output is y$ .
df / du , d 2 f /du 2 , etc, are estimated at this normal operating point. Equation (10.13) can be linearised
by neglecting the higher order terms. The linearised model of the above nonlinear system can be
written as,
df
y = f ( u$ ) + ( u - u$ ) (10.14)
du
Input
(a)
Time
Y
Instantaneous response
y(t) = au(t) + a0
(b)
Time
Lagging response
dy(t) 1
= t [{au(t) + a0 - y(t)}]
(c) dt
Time
Y
T Delayed response
y(t + T) = u(t)
(d)
Time
· Rise-time
· Peak-time
· Settling-time
· Steady-state value
· Maximum overshoot
The above terminology is based on a step input to the system. Figure 10.2 illustrates the transient
response corresponding to a step input signal.
Output response
Output response, y(t)
Input step signal, u(t)
Overshoot
100%
80%
60%
40%
20%
0% Time
Rise-
time
Peak-time
Settling time
Rise-time is the time required to the output to reach 90% from 10% of the input value. Peak-time
is the time required to reach the peak overshoot value. Settling-time is the time at which the response
attends within 98% of the final value. An error limiting 2% is called tolerance. The output response,
settles within this tolerance band only after the settling time is reached and the level of output is
referred to as initial steady-state value. Initial steady-state value starts at t = ts. The final steady state
value refers to the response value at time t = ¥. The maximum overshoot is the difference between
the maximum peak and the input value. It is usually expressed in percentage.
= u0 t for t ³ 0
Sinusoidal (sine): v( t ) sine = 0 for t < 0 (10.21)
= u0 sin( w0t ) for t ³ 0
Sinusoidal (cosine): v ( t ) sine = 0 for t < 0 (10.22)
= u0 cos( w0t ) for t ³ 0
u0
u 0t u0
Time
(a) Time (b) Time
(c)
Fig. 10.3 Test signals (a) A step signal (b) Ramp signal (c) Sinusoidal signal
So, the solution to the Eq. (10.23) (i.e. the output response of the system) is,
t
-
y ( t ) = y0 e t (10.25)
–
Figure 10.4 (a) illustrates the output response, y(t). Note that when t = 0 , or simply t = 0, the
output is y0. At t Þ ¥ or when t is very large, i.e. at steady state, the output is 0 or approximately
zero. The output decays exponentially. Figure 10.4 (b) illustrates the normalized output response
(y/y0). The quantity t is called the time constant of the system. The time constant determines the
speed of the system. Going back to the original equation (Eq. (10.4) it can be noticed that t in Eq.
(10.23) has been substituted in place of a1 and a0. Since a1 and a0 are read out as physical parameters
of the system, the time constant is therefore solely depends on the system’s physical parameters.
Fig. 10.4 (a) Output response of a first order system with input zero and with initial
condition, y0 (b) Normalized output response
Output response
u0
Input signal
1.0
0.8
0.6
0.4
0.2
0.0
t
(c) Time t
Fig. 10.5 (a) The input signal (b) Output response of a first order system
(c) Normalised output
If the input function is a unit ramp, then the response is (with zero initial condition),
t
-
y ( t ) = t - t (1 - e t ) (10.37)
amount of change depends on the system types. Based upon the fact let us assume that the phase
discrepancy between the input and the output is Df. Since the frequencies of the input and output
remain same, one can think of a particular solution of the type given in Eq. (10.39).
y particular ( t ) = X cos( wt +Df) (10.39)
Where, X is called the steady state (t Þ ¥) output (amplitude) of the system and can be found out.
Substituting Eq. (10.39) in the Eq. (10.38) then expanding and subsequently rearranging, we get the
following:
( X cos Df - w tX sin Df) cos wt - ( X sin Df + wtX cos Df)sin wt = u0 cos wt + 0 (10.40)
Equating both sides of the Eq. (10.40, following two equations can be obtained.
X cos Df - wtX sin Df = u0 cos wt (10.41)
X sin Df + wtX cos Df = 0 (10.42)
From the Eq. (10.42) it can be found out that, sin Df = - wt / D and cos Df = wt / D , where
D = 1 + w 2 t 2 . Substituting these values in the Eq. (10.41) and solving for X, we have,
u0
X= (10.43)
D
Substituting Eq. (10.43) in the Eq. (10.39),
u0
y particular ( t ) = cos[ wt + tan -1 (-wt )] (10.44)
D
As, Df = tan -1 (-wt ) . Now, the complete solution can be written as,
t
- u0
y ( t ) = Ye t + cos[ wt + tan-1 (-wt )] (10.45)
D
t
-
In the above equation, there are two parts. The first term, i.e. Ye t corresponds to the transient
-1
part of the response and the second term, i.e. u0 / D{cos[ wt + tan (-wt )]} represents the steady-
state part of the response. The transient term decreases exponentially and dies at t Þ ¥.
In order to find out the constant Y in the Eq. (10.45), initial conditions are to be applied. If at time
t = 0– the output is y0 (initial condition), then
0 u u
y0 = Y + Þ Y = y0 - 02 (10.46)
D2 D
Hence, the complete solution for the first order system with sinusoidal excitation and initial
condition (i.e. at t = 0- , y = y0 ), is given by,
y ( t ) = y0 e
-
t
t +
LM 1 cos(wt + tan -1
(-wt )) -
1 -t
e
t
u0
OP (10.47)
ND D2 Q
Figure 10.6 illustrates the input sinusoidal signal as well as corresponding output normalized
response satisfying the Eq. (10.47). As you can notice that the output lags the input, by an amount
Df.
363
System Response
Input and response
Input Output
1.0
–1.0
Fig. 10.6 Output response of a first order system with sinusoidal excitation
If the initial condition is zero, and the peak amplitude of the cosine signal is unity then, the
Eq. (10.47) becomes,
y(t ) =
1 LM 1 -
cos( wt + tan -1 (-wt )) - e t
t
OP (10.48)
D N D Q
10.7 OUTPUT RESPONSE OF THE SECOND-ORDER SYSTEMS
Mostly practical systems are second order systems. The governing equation, (i.e. input-output model
equation) for the second order system, which could take a form as given below:
y&& + a1 y& + a2 y = bu ( t ) (10.49)
where, the coefficients a1, a2 and b are the constants, u(t) is the input and y(t) is the output, &&
y and y&
are the second and first derivatives of y(t). u(t) could be an arbitrary function or a test signal such as
a step function, ramp function, a sinusoidal function and so on. In order to get the output response of
the second order system the input-output model equations have to be solved. This needs the
knowledge of solving the second order differential equations.
Here, the constant wn is defined as the natural frequency of the system and the term z is defined as
the damping ratio. The natural frequency and damping ratio influences the output response of the
system. In order to observe their effect on the output response the concentration is given to studying
the roots of the characteristic equation, which has to be derived from the homogeneous equation.
The characteristic equation can be written by substituting r n for the nth derivative in the
homogeneous equation. The characteristic equation for Eq. (10.51) is, therefore,
r 2 + 2 z w n r + w n2 = 0 (10.52)
th
The two roots of the characteristic Eq. (10.52) are (Note that there are n roots for n order
characteristic equation) found to be,
Response
Time
Time Time
(a) (b) (c)
When the roots are real and distinct or alternatively if z > 1, (corresponding to Eq. (10.54), the
situation signifies that the system is said to be overdamped, in the sense that, given an initial value the
system returns to its initial state without any oscillation. Damping is referred to as the decrease in
amplitude with time due to the resistance of the system. Damping occurs progressively as energy is
taken out of the system by another force, which could be the friction. Note that the term z 2 – 1 in the
Eq. (10.53) is positive. Other two cases are called critically damped and underdamped situations or
conditions, respectively (Eq. (10.55) and Eq. (10.56) respectively). In critically damped situation the
term z 2 – 1 in the Eq. (10.53) is zero, z = 1, and the two roots are equal. In underdamped situation
0 < z < 1, the term z 2 – 1 is negative. The system having z < 0 is unstable.
For z > 1 the roots are negative numbers and the output consists of two decaying exponentials
(Eq. (10.54), Fig. 10.4 (a)). For z = 1, two roots are equal and the response contains the term e-wnt
and te-wnt (Refer Fig. 10.4 (b)). For, z in between ‘0’ and ‘1’ the two roots r1 = a + js = wn
(-z + j 1 - z 2 ) and r2 = a - js = wn (-z - j 1 - z 2 ) are complex and the system oscillates. The
envelope of the oscillation peaks follows the path e–a t as shown in the Fig. 10.4 (c).
10.7.2 Overdamped
Applying the initial condition to the Eq. (10.54),
y(t ) t =0 = y(0 ) = y0 = Y1 + Y2 and y& (t ) t =0 = y& ( 0) = y&0 = r1Y1 + r2 Y2 (10.57)
Solving for Y1 and Y2 we have,
r2 y0 - y& 0 r y - y& 0
Y1 = and Y2 = 1 0 (10.58)
r2 - r1 r1 - r2
Substituting these values in the complete solution (Eq. (10.54)), we have,
y0 r2 t y& 0
y(t ) = br e
1 - r2 e r1t +
g be r1t
- e r2t g (10.59)
r1 - r2 r1 - r2
If the initial conditions such as y ( 0 ) = y0 = 1 and y& ( 0) = 0 , then the response becomes,
1
y(t ) = r1e r2t - r2 e r1t
b g (10.60)
r1 - r2
10.7.4 Underdamped
Let us define a term called damped natural frequency wd, which is expressed as follows:
wd = wn 1 - z 2 (10.64)
If the roots are complex, they can be written in terms of wd as follows:
r1 , r2 = a ± js =- zw n ± jw d (10.65)
Eq. (10.56) can be written as,
y ( t ) = e-wn z t [Y1 cos wd t + Y2 sin wd t ] (10.66)
Applying initial condition to the Eq. (10.66),
z wn y0 + y&0
y(t ) t =0 = y( 0 ) = y0 = Y1 and y& ( 0 ) = y& 0 = -z wn Y1 + wd Y2 Þ Y2 = (10.67)
wd
Substituting the Y1 and Y2 in Eq. (10.66), and rearranging, we have,
LM
y ( t ) = e-z wn t y0 {cos( wd t ) + V sin( wd t )} +
y& 0
sin( wd t )
OP (10.68)
N wd Q
z
Where, V =
1- z 2
If the initial conditions such as y(0) = y0 and y& ( 0 ) = 0 persists, then the response becomes,
y ( t ) = {cos( w d t ) + V sin( w d t )}e-z wn t (10.69)
Figure 10.8 shows the output response for the three cases such as overdamped (z > 1), critically
damped (z = 1) and underdamped (z < 1) with initial conditions y(0) = y0 and y& ( 0 ) = 0 .
y(t)
y(0) = y0
z>
1
Response
Assume y (0) = 0
z=1
Time
0<z<1
Fig. 10.8 Typical output free response curves of the second order system
367
System Response
10.8.1 Overdamped
The output response is the sum of the responses of homogeneous solution and the particular solution
(Refer Eq. (10.27) and Eq. (10.54)), which can be written as,
y ( t ) = Y1e r1t + Y2 e r2 t + yparticular ( t ) (10.71)
where, Y1 and Y2 are the constants, which are to be found out; r1 and r2 are the roots of the
characteristic equation r 2 + 2 z w n r + w n2 = 0 , corresponding to homogeneous equation
y&& + 2 zw n y& + w n2 y
= 0 . The above equation essentially describes a solution when the roots are real and
distinct. Note that the particular solution is a constant, since the output at steady-state would become
close to the input, which is nothing but a constant. Thus,
y particular ( t ) = C (10.72)
Since, y(t) is a constant, y& and &&
y are zero. Substituting Eq. (10.72) in Eq. (10.70) we have,
u0
wn2 C = u0 Þ C= (10.73)
wn2
Now, the Eq. (10.71) can be written as,
u0
y ( t ) = Y1e r1t + Y2 e r2 t + (10.74)
wn2
Applying the initial condition to the Eq. (10.74), we can get,
u0
y ( t ) t =0 = y ( 0 ) = y0 = Y1 + Y2 + and y ( t ) t =0 = y& ( 0) = y& 0 = r1Y1 + r2 Y2 (10.75)
wn2
Solving for Y1 and Y2 we have,
y0 w n2 r2 - u0 r2 - y& 0 w n2 y0 w n2 r1 - u0 r1 - y& 0 wn2
Y1 = and Y2 = (10.76)
w n2 ( r2 - r1 ) wn2 ( r1 - r2 )
Substituting these values in the Eq. (10.71) for the complete solution, we have,
y0 w n2 r2 - u0 r2 - w n2 y& 0 r1t y0 wn2 r2 - u0 r2 - w n2 y& 0 r2 t u
y(t ) = 2
e + 2
e + 02 (10.77)
wn ( r2 - r1 ) wn ( r1 - r2 ) wn
368
Mechatronics: Principles, Concepts and Applications
The output response of second order system for values of z ³ 1 (overdamped situation) is shown
in the Fig. 10.9
1.0
0.9
z = 1.0
0.8
y(0)
y(t)
z = 5.0
0.7
Normalised response
0.6
z = 10.0
0.5
0.4
0.3
0.2
0.1
0.0
0 2 4 6 8 10
Normalised time, wd t
Fig. 10.9 Output response of second order system (overdamped situation: z > 1)
If initial conditions are zero, i.e. y ( 0) = y0 = 0 and y& ( 0) = y& 0 = 0 ; The step input being an unit
step, i.e. u 0 = 1 , then Y1 and Y2 in Eq. (10.76) becomes,
r2 -r1
Y1 = ; Y2 =
wn2 ( r1 - r2 ) wn2 ( r1 - r2 )
and the Eq. (10.77) is reduced to,
1
y(t ) = 1 + rx e r1t + ry e r2 t (10.78)
wn2
r2 r1
where, rx = and ry =
r1 - r2 r2 - r1
Applying initial condition to the Eq. (10.80), Y1 and Y2 can be found out.
u0 u0
y ( t ) t =0 = y ( 0) = y0 = Y1 + Þ Y1 = y0 - and (10.81)
wn2 wn2
y ( t ) t =0 = y& ( 0 ) = y& 0 =
d
t =0
LMY e
1
rt
+ Y2 te rt +
u0 OP Þ Y2 =
y& 0 w n - y0 w n + u0
(10.82)
dt N w n2 Q wn
Substituting Y1 and Y2 in the Eq. (10.80), we have,
y0 wn2 - u0 -wnt y& 0 wn2 - y0 wn2 r + u0 r -wn t u
y(t ) = 2
e + te + 02
wn wn wn
(10.83)
= 12 {( y0 wn2 - u0 ) + ( y&0 wn2 - y0 wn2 r + u0 r )t}e-wnt + u0
wn
Assuming initial conditions zero, and the step input being an unit step, Eq. (10.83) is reduced to,
1
y(t ) = 1 - e-wn t - wn te-wnt (10.84)
wn2
10.8.3 Underdamped
By similar approach, for step input we can write the complete solution as (Refer Eq. (10.56) and
Eq. (10.71)),
u0
y ( t ) = e-wm z t [Y1 cos wd t + Y2 sin w d t ] + (10.85)
wn2
Applying initial condition to the Eq. (10.85),
y(t ) t =0 = y(0 ) = y0 = Y1 + u0 Þ Y1 = y0 - u0 (10.86)
z wn y0 + y& 0 + zwn u0
and y ( t ) t =0 = y& ( 0 ) = y& 0 = -z wn Y1 + w d Y2 Þ Y2 = (10.87)
wd
Substituting the Y1 and Y2 in Eq. (10.85), and rearranging, we have the complete solution as given
below,
LM
y ( t ) = e-z wn t y0 {cos( wd )t + V sin( wd t )}+
y& 0 OP
sin( wd t )} +
N wd Q (10.88)
u0
+ 1 - e-z wn t {cos( wd t ) + V sin( wd t )}
wn2
z
where, V = and wd = wn 1 - z 2
2
1- z
If the initial conditions are assumed to be zero, and the step input being an unit step, Eq. (10.88)
becomes,
370
Mechatronics: Principles, Concepts and Applications
1
y(t ) = 1 - {cos( w d t ) + V sin( w d t )}e-z wn t
w n2
(10.89)
= 12 1 - e
LM
-z wn t
cos( w d t - q )
OP
wn MN
1- z 2 PQ
z
where, q = tan -1
1- z 2
The output response of second order system for values z < 1 (underdamped situation) is shown in
the Fig. 10.10.
2.0
1.8
y (0)
y (t)
1.6
Normalised response
1.4 z = 0.01
1.2 z = 0.1
z = 0.5
1.0 z = 1.0
0.8
0.6
0.4
0.2
0.0
0 2 4 6 8 10
Normalised time, wd t
Fig. 10.10 Output response of second order system (underdamped situation: z < 1)
If the roots of the characteristic equation are distinct and real, we can derive the complete solution
from the Eq. (10.85) as follows. Let the complete solution be represented as,
y ( t ) = e-wm z t Y1 cos wd t + Y2 sin wd t + yparticular (t ) (10.92)
The particular solution can be formulated by the linear combination of the excitation signal and its
derivative as given below.
y particular ( t ) = Y3 cos wt + Y4 sin wt (10.93)
where, Y3 and Y4 are constants which can be obtained as follows. Substituting the particular solution
i.e. Eq. (10.93) into the original differential equation, i.e. in the Eq. (10.91) and rearranging, following
equation is obtained.
( wn2 Y4 - w 2 Y4 - 2zwn wY3 )sin wt + ( wn2 Y3 - w 2 Y3 + 2zwn wY4 )cos wt = u0 cos wt (10.94)
Equating both sides of the above equation, we get:
w n2 Y4 - w 2 Y4 - 2 zwn wY3 = 0 and (10.95)
wn2 Y3 - w 2 Y3 + 2 zwn wY4 = u0 (10.96)
Thus,
w n2 - w 2 2 zww n
Y3 = u0 , and Y4 = u0 (10.97)
2 2 2 2
a w n2 -w f + 4z 2
w n2 w 2 a wn2 -w f + 4 z 2 wn2 w 2
Substituting Y3 and Y4 in Eq. (10.93) and combining sine and cosine terms, the resulting particular
solution becomes,
w n2 - w 2 2zw n w
y particular ( t ) = u0 cos wt + u0 sin wt (10.98)
2 2 2 2
cw n -w h + 4z 2 wn2 w 2 cw 2
n - w2 h + 4z 2 wn2 w 2
- wnzt
\ y (t ) = e ( Y1 cos wd t + Y2 sin wd t )
wn2 - w 2
+ 2
u0 cos wt (10.99)
bw 2
n - w2 g + 4z 2 wn2 w 2
2zwn w
+ u0 sin wt
2 2
b wn2 -w g + 4z 2 wn2 w 2
Applying initial condition to the Eq. (10.99), i.e.
~2 )
u (1 - w - ~2
y ( t ) t =0 = y ( 0 ) = y0 = Y1 + 0 2 2 Þ Y1 = y0 - (1 2 w 2 ) u0 (10.100)
wn Q wn Q
2 2 ~ 2
w Q ( y& 0 - y0 wnz ) - (1 + w )( wnz u0 )
and Y2 = n (10.101)
wn2 Q 2 wd
~ = w and Q = (1 - w
where, w ~ 2 ) 2 + 4z 2 w
~2
wn
372
Mechatronics: Principles, Concepts and Applications
Substituting Y1 and Y2 in Eq. (10.99), and rearranging, we have the complete solution as given
below,
y& 0 e-z wn t
y ( t ) = y0 e-z wn t cos( wd t ) + V sin( wd t ) + sin( wd t )
wd
(10.102)
u
+ 02
LM cos( wt - f)
+ e-z wn t ( P )
OP
wn MN ~ 2
(1 - w ) + 4 w
z 2 ~2
PQ
~ 2 - 1)cos( w t ) - V w
(w ~ 2 + 1 sin( w t )
b g
d d z
where, P = ~ ) 2 + 4z 2 w
~2 ,V= and wd = wn 1 - z 2
(1 - w 1- z 2
If the initial condition is zero, and the peak amplitude of the cosine signal is unity then, the
Eq. (10.102) becomes,
y(t ) =
u0 LM cos( wt - f)
+ e-z wn t (P )
OP (10.103)
wn2 MN ~ 2
(1 - w ) + 4z w2 ~2
PQ
10.10 STATE-SPACE MODEL
Without loss of generality, it can be stated that there are several ways of describing the systems by the
use of mathematical model equations. One such approach of system description is achieved through
the input-output relationship, which was presented in the previous section.
Predominantly, there exist another approach of system description, which is based on the state of
the dynamic system, popularly known as state-variable or state-space approach. The definition of
state will be given shortly, however, at first sight you should be aware of that the state-variable model
based system description and analysis is considered as a powerful and dominant technique for solving
the system response and therefore, has been gaining momentum in the field of control engineering
since long. The potential advantage of state-variable approach can be abridged that it uses a great deal
of matrix algebra in order to achieve computational advantage for analysis by the use of digital
computers. Moreover, the approach is suitable for the analysis of the systems of complex nature such
as multi-input-multi-output (MIMO) systems and also nonlinear systems. Input-output model based
analysis (solving high-order nonlinear differential equations with initial conditions, for instance) require
more computational involvement compared to the state-variable approach.
The use of word ‘state’ comes from the fact that a dynamic system can be described by a smallest
set of variables, called state-variable, to represent the state of the system. The choice of state variables
is not unique. The same system can also be described by another set of state-variables. From
mathematical point of view, a state is the smallest set of numbers {xi (t), i = 1, 2,..., n}, needed
together with the input u(t), t Î [t1, t2] to uniquely determine the behaviour of the system in the
interval [t1, t2]; n being the order of the system. In other words, the state of the system can be defined
by a minimal set of variables such that the information on these variables at time t = 0 in conjunction
with that of the input for t > 0 totally determines the behaviour of the system for time t ³ 0.
Mathematically, state models take the form of a set of first order differential equations. State variables
are independent and therefore, they do not have algebraic relationship with the other variables and
even with the inputs. The state equation, which is a set of first order equations governing the state
373
System Response
variables is essentially derived from the input-output differential equation and from the definitions of
the state variables. In broader sense, the approach is just to transform a system representing high-
order equation into an equivalent of first order equations. In general, there are n state equations for an
nth order system. Note that the set is not unique, but the number n is unique. The form of the state
equations depends on the nature of the system in the sense that the time-varying state-model is
generated from time-varying systems and like wise nonlinear for nonlinear systems, etc.
10.10.1 Theory
Let us consider a system, which has n state variables, k inputs and l outputs. Let us define,
State variables = x1 , x 2 ... x n
Inputs = u1 , u2 ... uk
Outputs = y1 , y2 ... yl
At first, derive a set of first order differential equations. Each differential equation is actually the
derivative of one of state variable and is expressed as the function of all the state variables and inputs.
Similarly, the output is expressed as the function of all the state variables and inputs. Mathematically
these can be written as:
State equations are:
x&1 = f1 ( x1 , x 2 , x 3 ... x n ; u1 , u2 , u3 , ... u k ) (10.104a)
x& 2 = f2 ( x1 , x 2 , x 3 ... x n ; u1 , u2 , u3 , ... uk ) (10.104b)
... = ................................................
x& n = fn ( x1 , x 2 , x 3 ... x n ; u1 , u2 , u3 , ... uk ) (10.104n)
Output equations are:
y1 = f1 ( x1 , x 2 , x 3 ... x n ; u1 , u2 , u3 , ... uk ) (10.105a)
y2 = f2 ( x1 , x 2 , x3 ... x n ; u1 , u2 , u3 , ... uk ) (10.105b)
... = ................................................
yl = fl ( x1 , x 2 , x 3 ... x n ; u1 , u2 , u3 , ... uk ) (10.105l)
Note that we are discussing about the systems, which are linear and time-invariant. Equation
(10.104) is called state equation and Eq. (10.105) is called output equation in the state-space form of
system representation. Since the state equations and output equations are the algebraic function of the
state variables and inputs, the above two equations can also be written in the following manner.
State equations as,
x&1 = A11 x1 + A12 x 2 + ... + A1n x n + B11u1 + B12 u2 + ... + B1k u k (10.106a)
x& 2 = A21 x1 + A22 x 2 + ... + A2 n x n + B21u1 + B22 u2 + ... + B2 k uk (10.106b)
... = ..................................................................................
x& n = An1 x1 + An 2 x 2 + ... + Ann x n + Bn1u1 + Bn 2 u2 + ... + Bnk uk (10.106n)
Output equations as,
374
Mechatronics: Principles, Concepts and Applications
MN y PQ MNC + C + C + ... + C PQ
l l1 l2 l3 ln
MN x n
PQ MN D + D + D + ... + D
l1 l2 l3 lk
PQ MNu PQ
k
LM y OP = L1 0 O LM x OP
1 1
(10.114)
N y Q NM0 1QP N x Q
3 2
The matrix D is zero and the input and output matrices are constant. The system is time-varying
because the state matrix has some entries such as cos(t), sin(t), etc., that are functions of time.
MM.x& PP = MM....................................
2 0 0 1 . 0
PP MM.x PP + MM.0 PP
2
u (10.119)
MN x& PQ MMN-A - A - A .
n 0 1 2 - An-1 PQ MN x PQ MMN B PPQ
n 0
The state output equation is (Refer Eq. 10.110a),
LM x OP
1
y = [1 0 . 0] MM.x PP
2
(10.120)
MN x PQ
n
Consider a second order SISO systems described by y&& + A1 y& + A0 y = B0 u , which is an input-
output model equation. By similar procedure the state-space model equations can be written as,
LM x& OP = LM0
1 1 OP LM x OP + LM0 OP
1
u (10.121)
N x& Q N-A
2 0 - A1 Q Nx Q NB Q
2 0
and,
0 ]L O
x 1
y = [1 (10.122)
MN x PQ
2
Solution to the state variables is called the state-variable response of the system. If the input is
zero, then the set of homogeneous first order differential equations (Eq. (10.108) are,
x& ( t ) = Ax ( t ) (10.123)
376
Mechatronics: Principles, Concepts and Applications
where, x& ( t ) is the set of first order differential equations, A is the system matrix, and x(t) is called the
state variable vector, and the solution is given by,
FG A2 t 2
x( t ) = e A t x ( 0 ) = I + A t + +
A 3t 3
+ ... +
A pt p
+ ... x (0 )
IJ (10.124)
H 2! 3! p K
where, x(0) is called the initial state or initial condition of the state variables and I is the unit matrix.
If the input is nonzero positive, then the state-variable response is referred to as forced state
variable response, which is given by,
t
z
x( t ) = e At x( 0 ) + e At e-Al Bu(l ) dl
0
(10.125)
For a system of order n and with k inputs, the matrix eAt is n ´ n; B is n ´ k and u(t) is a k ´ 1
column matrix.
The solution to the Eq. (10.110) is called the output response of the system in the state-space
domain. In case of zero input, the output is referred to as free response. Free response is nothing but
the homogeneous solution. The homogeneous output response is given by,
y( t ) = Ce At x( 0 ) (10.126)
The forced output response is given by (Substituting Eq. (10.125), in the Eq. (10.111)
t
At
y ( t ) = Ce x ( 0 ) + Ce At
z
0
e-Al Bu(l ) dl + Du ( t ) (10.127)
· A dynamic system has input (s) and output (s), which are largely related.
· The systems are modeled by virtue of governing laws.
· One of the ways the systems are modeled is based on the input–output relationships.
· Initial conditions provide a summary of the history of the system upto the initial time to (to
could be zero).
· The MIMO systems are described in terms of multiple inputs and multiple outputs differential
equations.
· Nonlinear systems include nonlinear terms. The basic difference between a linear and non-
linear system is that the superposition principle is applicable only to the former one. The
nonlinear function can be expressed by Taylor series expansion.
· If the process of linearization eliminates all the nonlinear terms, then the derived system is said
to be perfectly linearised.
· In practice the system takes time to produce the output.
· Commonly used test signals are step, ramp and sinusoidal signal.
· There are several ways of describing the systems by the use of mathematical model equations.
One such approach of system description is achieved through the input-output relationship.
There exist another approach of system description, which is based on the state of the dynamic
system, known as state-variable or state-space approach.
· The state variable approach is just to transform a system representing high order equation into
an equivalent of first order equations.
377
System Response
The chapter at the beginning introduces the Input–Output Model equation of various types of
systems such as linear, nonlinear, timevariant, timeinvariant, SISO and MIMO systems. The
features such as instantaneous, lagging and delay response of the system has been
presented. Moreover, transient response specification has been defined. In particular, rise-
time, peak-time, settling-time, steady-state value and maximum overshoot of the transient
response specification have been defined. The next part of the chapter defines various types of
test signals used for testing the system in order to know the behaviour of the system. The third
part of the chapter studies the output response of first-order and second order systems in
response to zero excitation, ramp, step and sinusoidal signal. In this part underdamped,
state-space model have been defined and a discussion about the state-space model of the n
order SISO system has been presented.
LOOKING AHEAD
In generalized sense system response refers to study of transient behaviour of the system.
There is a requirement to study the behaviour of the system with respect to frequency variation.
The first step to study the frequency response is to define the system in a frequency domain.
The commonly employed approach is to define the transfer function of the system. It can be
argued that the transfer function of the system is the system by itself. Once the transfer
Moreover, the frequency response can be understood. The next chapter details out the transfer
function and frequency response of the first and second order systems.
EXERCISES
10.18 If A = LM0 20 OP
, B=
0 FI
, C = [ 0 1]
N1 0 Q 1 HK
Give a block representation of a full order state observer.
10.19 Consider the SISO system governed by the state variable equation
x ( k + 1) = Ax ( k ) + Bu( k )
y ( k ) = Cx ( k )
with A = LM
0 1 OP LM OP
,
0
, C = [1 0]
N
-3 - 4 Q NQ1
If the input is zero and
· To define transfer function and frequency response of the first and second order engineering
systems.
· To solve for the output response of the first and second order system in response to input
signals by using Laplace transformation.
· To define, understand and draw Bode plot of first and second order systems.
· To define break frequency.
· To study pole-zero plot and its application.
380
Mechatronics: Principles, Concepts and Applications
11.1 INTRODUCTION
System response provides useful information about the transient and steady state properties of the
system. Chapter 10 dealt with system response of first and second order systems with respect to test
signals such as step, ramp and sinusoidal signal. This chapter describes transfer function and
frequency response of the systems. Transfer function is defined as the ratio of Laplace transform of
the output to the Laplace transform of the input. With regard to frequency response, it characterizes
the response of the system with respect to the input frequency.
Control systems are characterized by their frequency response functions for which mostly they
are treated as frequency selective components. Frequency response is a means to estimate the system
performance in terms of determining the bandwidth of the system and the disturbance rejection of the
system.
This Chapter deals with the behaviour of the system with respect to frequency. In particular, the
definition of the transfer function and its usefulness and the frequency response curve and its
applicability has been described.
Time
Time
G(s)
Input (sinusoid) Output
Transfer function
from zero to infinity (Stop! You cannot go up to infinity). Anyway, let us increase the frequency as
much as we can. Calculate the output to input ratio for each frequency. This ratio is called gain of the
systems. Now we have many gain values corresponding to each frequency. If we plot this curve, i.e.
frequency versus gain curve, then the resulting plot provides much information about the system.
Figure 11.2 shows the frequency versus gain curve of the considered SISO system, which is an
electronic amplifier. As you can see that for some values of frequencies the response (gain) is
approximately constant, for some values the gain is linear, for some values the gain is non-linear and
for some values the gain is approximately zero.
That is the portion;
a1 and a9 Þ Gain is zero
a2, a4, a6 and a8 Þ Gain is nonlinear
a3 and a7 Þ Linear
a5 Þ Constant
Gain
Frequency
a1 a2 a3 a4 a5 a6 a7 a8 a9
f1 fh
are very close to each other in the sense that one can say that the ‘frequency response curve
represents the gain of the system’, ‘the gain depends on the transfer function’, ‘transfer function
makes gain’, ‘the gain and transfer function of the system are similar!’
What information do all these frequency responses provide us? All provide the same information
about how the system works with frequency. Engineers very often, design systems for automation
and control applications. Systems for automation and control applications are characterized by their
frequency response functions for which mostly they are treated as frequency selective components.
In order to operate or use the system at a particular frequency zone of interest, the engineer has to
study the frequency response of the system. In summary, frequency response is a means to estimate
the system performance in terms of determining the bandwidth and the disturbance rejection of the
system.
Frequency response curves of many practical systems are shown in the Fig. 11.1 and in the
Fig. 11.3 (a-e).
Gain Gain
Maximum gain Maximum gain
- 3dB Gain
- 3dB
fU Frequency fL Frequency
(a) (b)
Gain
Maximum gain
- 3dB
fL fU Frequency
(c)
Gain Gain
Maximum gain Maximum gain
- 3dB - 3dB
fL fU Frequency fL fU Frequency
(d) (e)
Fig. 11.4 A schematic diagram of a first order system showing transfer function
y + a1 y& + a 0 y = b0 u ( t )
a2 && (11.4)
where, the coefficients a2, a1, a0 and b0 are constants. u(t) and y(t) are input and output respectively.
y& and &&
y is the first and second derivatives of y(t), respectively. Equation (11.4) can also be written in
the standard form as follows.
y + 2 z w n y& + wn2 y = Gu ( t )
&& (11.5)
If the Laplace transform of the output y(t) is Y(s) and that of the input u(t) is U(s), then by taking
the Laplace transform of both sides of the Eq. (11.5), we have,
y + 2z wn y& + wn2 y ]+ = L{Gu(t )]
L[ &&
Þ s 2 Y ( s ) + 2 z wn sY ( s ) + wn2 Y ( s ) = GU ( s )
Þ [ s 2 + 2 z wn s + wn2 ]Y ( s ) = GU ( s ) (11.6)
Y (s) G
Þ G( s ) = = 2
U (s) s + 2 z wn s + wn2
Fig. 11.5 A schematic diagram of a second order system showing transfer function
y (t ) = L-1 F G U ( s )I (11.8)
H t s +1 K
385
Transfer Function and Frequency Response
Gu0 1 t
LM
t
OP
Y (s) = 2 =U 2 - + (11.11)
s ( t s +1) s s s+
MM1 PP
Nt Q
2
Since the Laplace transform of a ramp function is u0 / s . U = Gu 0 .
Taking the inverse Laplace transform of the Eq. (11.11), the time domain output response, y (t) can
be obtained. Thus,
LM R| 1 U|OP -
t
-1 -1
y ( t ) = L [Y ( s )] = L MMU S| s -t + t V|P = U(t - t - t t ) (11.12)
2
s 1
N T s+
t WPQ
Example 11.1 The transfer function of a first order system is given by,
10
G( s) =
s +2
Find out the output response by using Laplace transform method if the following signals are applied
at the input.
(a) A step signal of 5 units
(b) A ramp signal with slope 5.
Solution
(a) Let y(t) be the output response in time domain. Let Y(s) be its Laplace transform. Let the input
be denoted as u(t) and its Laplace transform be as U(s). Since the input is a step signal of
5 units, its Laplace transform becomes, 5/s.
386
Mechatronics: Principles, Concepts and Applications
(b) The Laplace transform of the ramp input with slope 5 is given by 5/s 2. Now, the output response
is,
300
200
Time
Y ( s ) = G ( s )U ( s ) =
G FH u IK = Gu
0
0
1
(11.13)
s + 2 z w n s + w n2
2
s s ( s + 2 z wn s + wn2 )
2
387
Transfer Function and Frequency Response
1 = A( s + x1 )( s + x 2 ) + Bs( s + x 2 ) + Cs( s + x1 ) s=
s 0
=- x1
s=- x2
1 1 1
This gives, A= , B= and C = (11.15)
x1 x 2 x1 ( x1 - x 2 ) x 2 ( x 2 - x1 )
Eq. (11.13) can, thus be written as,
RS 1 +
Y ( s ) = Gu0
1
+
1 UV
T x x s x
1 2( x - x )( s +
1 x ) 1x (2x - x )(1s + x ) W2 2 1 2
(11.16)
=
Gu R 1
S - x
0 1 2
-
x 1 UV 1
x x T s ( x - x ) (s + x ) ( x - x ) (s + x ) W
1 2 2 1 1 1 2 2
Taking the inverse Laplace transform of the Eq. (11.16), the time domain output response, y(t) can
be obtained. Thus,
y ( t ) = L-1 [ Y ( s )] =
Gu0 RS
1-
x2 -
e x1t -
x1 -
e x2 t
UV (11.17)
x1 x 2 T( x 2 - x1 ) ( x1 - x 2 ) W
11.5.4 Ramp Input to the Second Order System
If a ramp input u0 t is given to the second order system, the output response is given by,
G u0
Y ( s ) = G( s )U ( s ) = (11.18)
s + 2z wn s + wn s 2
2 2
By similar approach, the time domain output response, y(t) ramp input can be derived (left to the
students), which is,
RS
y ( t ) = L-1 [Y ( s )] = Gu0 t -
x2 -
e x1t +
x1 - x + x2
e x2 t - 1
UV (11.19)
T x1 ( x 2 - x1 ) x 2 ( x1 - x 2 ) x1 x 2 ) W
11.6 FREQUENCY RESPONSE OF THE SYSTEMS
The behaviour of the system can be studied by knowing the frequency response of the system. In
fact, frequency response is the behaviour of an output of a system to a sine variation input. The
frequency response is used to know how the dynamic behaviour and hence the system variables
depend on the frequency of the periodic input variation. Precisely, it is necessary to know at which
frequencies the system gets disturbed. Frequency response based analysis method is mainly employed
for steady state analysis of the system. The method is important because, if we know the frequency
388
Mechatronics: Principles, Concepts and Applications
response then it is reasonably easier to predict the response of the system to any input due to the fact
that the excitation signal which is a sinusoidal waveforms have the elegant property that they can be
combined to form other (non-sinusoidal) waveforms. Moreover, engineers often design systems with
particular frequency characteristics. There, they need a system that is capable of handling certain
frequencies of the input signal.
Frequency response is defined as the ratio of the steady state phasor output to the phasor input
where the output and input may either be a voltage or a current signal. Mathematically, the general
form of frequency response is written as,
vout
H ( jw ) = (11.20)
v in
H ( jw ) is referred to as the frequency response of the system and it is a complex function. Since
H ( jw ) is a complex function or phasor, conveniently it can be written as,
H ( jw ) = H ( jw ) e f ( jw ) (11.21)
where, H ( jw ) = [ H R ( jw )]2 + [ H I ( jw )]2 , called the magnitude of the frequency response in which,
H R ( jw ) and H I ( jw ) are the real and imaginary parts of the complex function H ( jw ) respectively.
f( jw ) is referred to as the phase angle, which is given by,
f( jw ) = tan-1
FG H ( jw) IJ
R
(11.22)
H H ( jw) K
I
If the phase angle is negative then it implies that the output lags behind the input. Eq. (11.21) is
referred to as what is called the general form of representation of the frequency response.
Compare the Eq. (11.1) with the Eq. (11.20). The relationship between the frequency response and
the transfer function is,
Y ( jw )
H ( jw ) = G( s ) s = jw = (11.23)
U ( jw )
Earlier it was mentioned that, the input test signal is always sinusoidal in nature. Under this
circumstance the frequency response is referred to as ‘sinusoidal frequency response’ or simply the
frequency response.
Now, the magnitude H ( jw ) , and the phase angle f ( jw ) , of the frequency response can be found
out to be,
2 2
H ( jw ) = G F 1 I + F wt I = G
(11.26)
H 1+ w t K H 1+w t K
2 2 2 2
1 + w2t 2
f( jw ) = tan -1 (-wt ) = -tan -1 ( wt ) (11.27)
Since the angle is negative the output signal lags behind the input with an angle tan-1 ( wt ) . This is
represented in Fig. 11.8.
vi (t) = sin (2πft) v0(t) = H ( jw) vi (t)
Input Output
Equation (11.26) and Eq. (11.27) states that if the input to a first order system, described by the
transfer function, given in Eq. (11.24) (or corresponding frequency response function given in Eq.
(11.25)), is sinusoidal signal with peak amplitude unity, i.e. u( t ) = sin( wt ) , then at steady state the
output becomes,
G
y ( t ) = H ( jw )u( t ) =
2 2
k
sin wt - tan -1 ( wt ) p
(11.28)
1+ w t
It is observed that both magnitude and the phase angle (given in the Eq. (11.26) and in Eq. (11.27)
respectively) of the output (given in Eq. (11.28)), is a function of the input frequency, w.
The frequency is normally expressed in radians/sec (w) rather than cycles per second (f ). The gain
and the phase are plotted linearly along the y axis on graph paper that has several cycles of a log scale
on the x axis. Each cycle represents a factor of ten in frequency. This special paper is known as
semilog graph paper. Bode diagrams are also plotted on log-log graph paper so that a wide range of
frequencies and amplitude levels can be diagrammed.
The Bode diagrams of the above first order system can be derived as follows. The log of the
magnitude of the frequency response is,
20 log( H ( jw ) ) = 20 log
FG G IJ = 20 log(G) dB - 20 logd i
1 + w 2 t 2 dB (11.29)
H 1 + w2t 2 K
For simplicity, assume G = 1, then the Eq. (11.29) is reduced to -20 log 1 + w 2 t 2 dB . For the d i
values of the frequencies w = 1 / t , 10 / t , 100 / t and so on, the log of magnitude of the system
becomes, 0 dB, - 20 dB, - 40 dB , and so on. This signifies that for every decade of w the magnitude
decreases by 20 dB.
The sole parameter characterizing this system is its time constant t. At low frequencies the gain is
flat and unity, or 0 dB. As frequency increases the gain rolls off inversely with frequency, decreasing
20 dB per decade (a factor of 10 in frequency), which results in a straight line on semilog graph paper
with a slope of –6 dB per/octave. The frequency w = 1/t is called the break frequency of the system
described by 1 / ( jtw + 1) . Qualitatively the break frequency is defined as the point of interaction of
the two asymptotes as described in the Fig. 11.5. Similarly, the phase angle versus excitation
frequency curve can be plotted. From the Eq. (11.29), for frequencies w = 0 , 1 / t , and ¥, the phase
angle becomes 0, – 45° and 90°. A typical bode plot of the first order system has been illustrated in
Fig. 11.9.
For simplicity, assume G = w n2 . From Eq. (11.23), the frequency response of the second order
system can be written by substituting jw in place of the complex variable ‘s’, thus,
1 1
H ( jw ) = = (11.31)
FG j w IJ 2
F w IJ +1
+ 2z G j
LM1- FG w IJ 2
OP + 2z FG j w IJ
H wKn H wK n MN H w K
n PQ H w K n
Now, the magnitude H ( jw ) , and the phase angle f ( jw ) , of the frequency response can be found
out.
391
Transfer Function and Frequency Response
Fig. 11.9 Typical Bode Diagram of a first order system (a) Frequency versus gain curve
(b) Frequency versus phase angle curve
1 1
H ( jw ) = 2
= (11.32)
FG j w IJ F w IJ +1 F1- w I + F 2z w I
+ 2z G j
2 2
H wKn H wK
n
GH w JK GH w JK
n n
F 2z w I
G w JJ
f( jw ) = tan G -
-1 n
(11.33)
GG 1- FG w IJ JJ
2
H Hw K K
n
Since the angle is negative the output signal lags behind the input by that angle.
392
Mechatronics: Principles, Concepts and Applications
Equation (11.32) and Eq. (11.33) states that if the input to a second order system, described by the
transfer function, given in Eq. (11.30) (or corresponding frequency response function given in
Eq. (11.31)), is sinusoidal signal with peak amplitude unity, i.e. u( t ) = sin( wt ) , then at steady state the
output becomes,
R| F 2z w I U|
1 | -1
GG w JJ |
sin S wt - tan
JJ V|
n
y ( t ) = H ( jw )u( t ) = (11.34)
FG1- w IJ + FG 2z w IJ ||
2 2 GG 1- FG w IJ 2
H wK H wK T
n n
H Hw K n K |W
It is observed that both magnitude and the phase angle (given in the Eq. (11.32) and in Eq. (11.33)
respectively) of the output, is a function of the input frequency, w. The Bode diagram may be plotted
for the second order system. The log of the magnitude of the frequency response is,
1
20 log( H ( jw ) ) = 20 log
FG1 - w IJ + FG 2z w IJ
2 2 2
H wK H wK 2
n n
2 2
F w I F wI
= -20 log G 1 - J + G 2z J
2
(11.35)
H wK H wK 2
n n
LF w I F w I O
2
= -10 log M G 1 - J + G 2z J P
2 2
MNH w K H w K PQ
2
n n
The above equation suggests that at low frequencies the asymptote is a horizontal line with
magnitude 0 dB. At higher frequencies, the ratio w/wn is considered large. The term w2/w 2n is therefore,
considered as the dominant term in the log-magnitude Eq. (11.35). Preserving this term the log-
magnitude equation can be approximated to,
w4 w
20 log( H ( jw ) ) » -10 log = -40 log (11.37)
wn4 wn
The above equation implies that at high frequency the slope of the asymptote is –40 dB per decade.
The two asymptotes (low frequency and high frequency) intersect at a break frequency of w/wn.
Taking the damping ratio z as parameter, the Bode diagrams, i.e. the gain versus frequency and
phase angle versus frequency of a typical second order system has been plotted in the Fig. 11.10 and
in the Fig. 11.11, respectively.
393
Transfer Function and Frequency Response
20
Asymptotes
10 1
Gain in dB
−0
2
3
4
− 10
− 20 1; ζ = 0.1
2; ζ = 0.5
− 30 3; ζ = 1.0
4; ζ = 5.0
− 40
− 50
− 60
0.05 0.1 1 w 10
Normalised frequency
wn
Fig. 11.10 Bode Diagram (Frequency versus Gain) of a typical second order system
At low frequencies, the log-magnitude (gain) is zero. For overdamped situation, i.e. for values
z > 1, the log-magnitude decreases with frequency. For the values z < 1, on the other hand the gain
has peaks, which are referred to as resonant peak around w / wn = 1 or w = wn . The frequency at
which resonance occurs is called resonant frequency. The gain then, decreases (for z < 1) to zero at
higher frequencies. The resonant peaks are greater for lower values of z. Some systems such as
electronic filters, tuners, etc. are designed around the resonant frequencies to take some frequency
matching advantage, but in some applications such as in mechanical systems, the resonance is mostly
prevented.
90
45
−0
1
2
Phase angle in degrees
− 45 4
− 90 1; ζ = 0.1
2; ζ = 0.5
− 135 3; ζ = 1.0
4; ζ = 5.0 3
− 180
− 50
− 60
0.05 0.1 1 10
w
Normalised frequency
wn
Fig. 11.11 Bode Diagram (Frequency versus phase angle) of a typical second order
system
replacing the derivatives of the input-output equation with the corresponding power of s, we can form
the polynomials. It is essentially convenient to factorize the numerator and denominator polynomial in
order to visualize the poles and zeros of the system. The system’s transfer function represented in the
Eq. (11.40) can therefore, be written as,
( s - z1 )( s - z2 ) ... ( s - zk -1 )( s - zk )
H (s) = G (11.41)
( s - p1 )( s - p2 ) ... ( s - pn -1 )( s - pn )
where, G = bk / a n ; z1 , z2 ... zk are called the zeros of the system, which are the roots of the equation
bk s k + bk -1 s k -1 + ... b1 s + b0 = 0, derived from the numerator polynomial and p1 , p2 ... pn are called the
poles of the system, which are the roots of the equation an s n + an -1s n -1 + ... + a1s + a0 = 0, derived
from the denominator polynomial. As already stated poles and zeros make the overall gain of the
system to infinite and zero respectively, i.e.
lim s®zi H ( s ) = 0 ; and lim s®pi H ( s ) = ¥ (11.42)
Pole-Zero plot is a plot of poles and zeros in the complex s-plane. A complex plane is a plane whose
axes represent the real and imaginary part. Usually, the pole and zero are represented by small circle
(O) and cross (X) respectively. Figure 11.12 illustrates the poles-zeros plot of a typical third order
system with transfer function given by
H ( s ) = { ( s - 4 )( s -1) } / { ( s - 2 )( s - (-1 - 3 j )( s - (-1 + 3 j ) }.
The system has two real poles at –1 and –4, three zeros at –2, –1 –3j and –1 +3j. Note that two of
the zeros are complex and conjugate to each other. Bear in mind that pole-zero plot is the another way
of representing the system, since the plot has been obtained from the transfer function, which in turn
derived from the input-output relationship. Thus the pole-zero plot can provide information about the
396
Mechatronics: Principles, Concepts and Applications
system. Depending upon the nature of the system, and hence the transfer function, the poles and
zeros can appear at any point of the s-plain. The poles and zeros could be real or complex. The
important information that can be obtained from the pole-zero plot is as follows.
Poles appearing in the right half of the s-plane signifies that the output response would contain a
component of exponentially increasing oscillatory signal and the system becomes unstable. That is if
a system has a positive real pole (right half of the s-plane) then there is a component at the output,
which increases with time causing the system unstable. On the other hand, a pole appearing in the left
half of the s-plane signifies stable system. If the poles are far from the origin in the left half of the
s-plane, the output decays rapidly.
· Control systems are characterized by their frequency response functions for which mostly they
are treated as frequency selective components. That is the output of the system depends on the
frequency of the input signal.
· The relationship between the outputs with respect to frequency-varying input is represented as
a plot, which is commonly known as the frequency response plot.
· More appropriately, frequency response is the behaviour of an output of a system to a sine
variation input. It is the ratio of the steady state phasor output to the phasor input where the
output and input may either be a voltage or a current signal.
· Frequency response is a means to estimate the system performance in terms of determining the
bandwidth of the system and the disturbance rejection.
· The transfer function is a ratio of Laplace transform of the output to the Laplace transform of
the input, assuming initial conditions are zero.
· From engineering point of view most of the system’s input-output relationships are expressed
utilizing the differential equations.
· A Bode diagram, helps to quantify how well the output, follows the input by showing the
relationships between input and the output. The magnitude is plotted as gain and is normally
expressed in decibel, abbreviated as dB, where each 20 decibel increment represents a factor of
10 in amplitude ratio. The phase is plotted in degrees.
· Poles are defined as the complex frequencies that make the overall gain of the system to infinite.
Zeros are complex frequencies that make the overall gain of the transfer function zero.
· Poles appearing in the right half of the s-plane signifies that the output response would contain
a component of exponentially increasing oscillatory signal and the system becomes unstable.
Control systems are characterized by frequency response functions. This chapter deals with
the performance of the system with respect to frequency. This suggests the study of transfer
function in first place. The first part of the chapter describes about the transfer function of the
first and second order systems. Although higher order systems are seen, in most practical
397
Transfer Function and Frequency Response
cases first and second order systems are common. For this reason, we have limited out study
within first and second order systems. At the beginning of the chapter the definition of the
transfer function and its usefulness and the frequency response curve and its applicability has
been described. The second part deals with frequency response of such systems.
LOOKING AHEAD
The theoretical base of the control systems includes the following topics.
· Modeling
· System response
· Transfer function
· Frequency response
· Feedback control
· Soft computing tool based intelligent control
The first four topics have already been covered in the previous chapters. A complete theoretical
grasp will enable the readers to fully widen their knowledge. Moreover, it can be ascertained
that the feedback control and soft computing based intelligent control designs are the core
subject areas as far as advanced control designs are considered. Chapter 12 defines, explains
and introduces many terms, techniques and concepts in light with the points mentioned. In
particular, it describes feedback control, Artificial Neural Network (ANN), Fuzzy Logic (FL),
Fault Detection and Isolation (FDI) methods and digital control scenario.
EXERCISES
11.1 Define frequency response of a system. Draw some typical frequency response curves of
various systems.
11.2 What do you mean by transfer function.
11.3 Solve the equations.
dx dy
3 + +2x =1
dt dt
dx dy
+4 + 3y = 0
dt dt
Given x = 3, y = 0 when t = 0 by using Laplace transform.
11.4 Write the transfer function of first and second order system.
11.5 Derive the transfer function of an armature controlled DC servomotor and justify its
resemblance with an integrator.
11.6 Derive the expression for obtaining the output response of a first order system from the transfer
function.
398
Mechatronics: Principles, Concepts and Applications
11.7 Derive the output response if a step input is applied to a first order system.
11.8 Derive the output response if a ramp input is applied to a first order system.
11.9 A condenser of capacity C discharged through an inductance L and resistance R in series and
the charge q at time t satisfies the equation
d 2q dq q
L +R + =0
dt 2 dt c
Given that L = 0.24 H, R = 240 ohms, C = 2*10–6 farad, and that when t = 0, charge q = 0.002
coulombs and the current dq/dt = 0, obtain the value of q in terms of t.
11.10 Derive the expression for obtaining the output response of a second order system from the
transfer function.
11.11 Derive the output response if a step input is applied to a 2nd order system.
11.12 Derive the output response if a ramp input is applied to a 2nd order system.
11.13 Derive the expression for showing frequency response of a first order system.
11.14 Derive the expression for showing frequency response of a second order system.
11.15 Explain bode plot.
11.16 Draw the Bode diagram of a typical first order system.
11.17 Draw the Bode diagram of a typical second order system.
11.18 The open loop transfer function of a unit feedback control system is given by,
K
G(s ) =
s(1 + 0.1s )(1 + s )
Using Bode plot with K = 1, find (i) The gain margin and the phase margin. (ii) Determine the
value of K so that the gain margin is 20 dB. (iii) Determine K, so that the phase margin of the
system is 60°.
11.19 What do you mean by phase margin and gain margin.
11.20 Define break frequency.
11.21 Define pole-zero plot.
11.22 What is the utility of pole-zero plot?
11.23 Obtain the root locus for a unit feedback system with open loop transfer function,
K
G(s ) =
s( s 2 + 6 s + 10)
11.24 The transfer function of the forward path of a unity feedback system is
K (s + 2)
G(s ) =
s 2 ( s + 4)
(i) For K = 8 determine the stead state error when the input to the system is
r (t) = 4 – t – 2t 2 for t ³ 0.
(ii) What will be the change in steady state error if there is a +5% change in the value of K?
(iii) What will be the change in steady state error if there is a +5% change in the location of the
zero at s = –2?
12
Principles of Feedback and
Intelligent Control
· To distinguish between open-loop and closed-loop control scheme and to draw their relative
merits and demerits.
· To define various control methods such as PID Control, adaptive control, robust control, predic-
tive control and optimal control.
· To explain intelligent control in terms of soft computing tools such as Artificial Neural Network
(ANN).
· To discuss about the Fuzzy Logic (FL) and its implementation scenario.
· To define and describe various Fault Detection and Isolation (FDI) schemes and methods keep-
ing view of a step forward to intelligent control for the mechatronic systems.
· To discuss the relative merits and demerits of digital control implementations.
400
Mechatronics: Principles, Concepts and Applications
12.1 INTRODUCTION
Mechatronic systems are controlled by implementing open-loop or closed-loop control strategy. In
open-loop strategy, the control action is carried out with respect to given input called setpoint without
using any feedback from the output. Theoretically, the equivalence of the setpoint should appear at
the output, however, in practice because of the dynamic nature of the real systems, discrepancies or
deviations are seen at the output. In many systems, corrections on the discrepancies are evident.
There comes closed-loop control strategy. Closed-loop control strategy constantly monitors the
output consequences with respect to input setpoint. Consequences are measured and then corrections
are made on the basis of the difference between the system’s current state, and the desired state. The
closed-loop control method is also called feedback control.
Many fundamental methods exist in order to realize the feedback philosophy. The existing methods
are, proportionate, integral, derivative, PID (Proportional plus integral plus derivative) control,
adaptive control, robust control, predictive control, and so on.
This chapter describes principles of feedback and intelligent control. Control action such as on-off,
proportional, derivative, integral, proportional plus integral (PI), proportional plus derivative (PD) and
proportional plus derivative plus integral (PID) has been presented. The chapter also defines adaptive,
robust, predictive and optimal control methods. Intelligent control includes Artificial Neural Network
(ANN) control and Fuzzy Logic (FL) control. Introduction to ANN and FL has been given.
In order to improve the productivity and safety diagnostics and prognostics (DAP) methods have
progressively been employed within the system. In this context the chapter describes principles of
various diagnostic methods, which is also considered as a step forward to intelligent control. Further,
the chapter ends in describing the advantages of digital control strategy.
plant. The relationship between the input and output are mentioned in terms of transfer function,
which is defined as the ratio between the Laplace transform of the output and the Laplace transform
of the input. If the output is proportional to the input, the plant is called a linear system.
System /Plant/Process
U(s) (Transfer function) Y(s)
Input Output
Y(s)
G(s) =
U(s)
Controller
output
Input Open-loop Plant
PLANT/PROCESS
controller output
(Setpoint or
reference value)
G1(s) G2(s)
Plant-1 Plant-2
G(s) = G1(s)G2(s)
Because of feedback action, the plant produces stable output. How the stability is maintained
through feedback will be explained shortly. Prior to that, it is essential to know the terminology in
terms of block diagram of a closed-loop control system.
12.4.1 Notations
Certain features are common to all types of closed-loop control systems. These are illustrated in the
Fig. 12.5. The figure is the block diagram of a typical closed-loop control system. Every closed loop
system outputs a controlled variable y(t), which is close to some reference input value u(t). The
interference due to external load, however, will not allow to produce the desired value. This is the
inherent feature (dynamic properties) of the plant or process. In order to achieve the desired output,
the control system has to generate an error signal e(t). This error signal actually regulates the flow of
appropriate input (energy) into the controlled system in terms of yc (t) or cy (t), so as to enable the plant
to minimize the error, and thereby tries to compensate the effects of the external load or disturbances.
403
Principles of Feedback and Intelligent Control
Load or disturbance
Control system
Controlled system
The closed-loop control system must have a plant which is to be controlled. The plant is referred
to as the controlled system. The block that controls the plant (i.e. the controlled system) is called the
controller. The controller is not a physical controller that you studied in the Chapter 8. It is a
manipulation method that controls and regulates the output through feedback or closed-loop action.
The algorithm of the manipulation can be implemented in a physical controller in order to achieve the
objective, i.e. to regulate the output.
12.4.2 Reachability
Mostly automatic control systems are based on feedback model. Feedback principle suggests that the
output has to be compared to the input to produce the error signal, so that reachability can be
achieved. Reachability is the desirable or wanted output. Reachability is not guaranteed in open-loop
configuration. For which we go for implementing closed-loop or feedback control scheme.
An example is as follows. To operate an electric motor precisely at an achievable speed of r RPM,
we have to provide input signal (setpoint) of say, u units. Under every circumstance, we expect that
the motor should reach the speed r for same value of setpoint without any ambiguities or uncertainty.
However, because of the dynamic nature of the system the reachable speed may not be attended with
the same input resulting reachability problem. Dynamic behaviour refers to time-varying property of
the system. (Here the system is the motor.) In order to deal with such problems, the application of
automatic control is called for. The conventional form of automatic control is the feedback control.
The principle of feedback control is based on ‘reachability’ test. The feedback system tests the
output, i.e. if it is not the desired value (it could be either positive or negative compared to desired
value), then the error signals are generated and is fed to the system to achieve the reachability level.
When the feedback loop is added to the control system, the controller gains the ability to react to the
quality of the response of the plant output. In this way the system can have better chance of
performing as desired. This is the reason why the feedback control systems are more stable than
open-loop control system. Note that the feedback concept is fundamental to all sorts of conventional
automatic control system.
404
Mechatronics: Principles, Concepts and Applications
Gp(s)
Gp(s)
U(s) Y(s) U(s) Y(s)
Plant 1 + Gp(s)Gf (s)
(b)
Gf (s)
Feedback loop
(a)
Fig. 12.6 (a) Typical feedback (closed-loop) control system (b) Overall transfer function of
the closed-loop system
designing appropriate controllers among the list. The selection of the right controller for the application
depends on three factors such as,
· The degree of control required by the application
· The individual characteristics of the plants
· The desirable performance level including required response, steady-state deviation and
stability.
There is a strong need to understand the characteristics and behaviour of the above controllers in
first place.
CON y
u e(t) yc
Plant
COFF
ON-OFF controller
Mostly, thermostat-based heating system uses an ON-OFF type controller. When the output is
lower than the setpoint the controller is turned on (i.e. provides an ON output), and once the output is
more than the setpoint the controller provides OFF output. The turn-ON and turn-OFF in many
situation are deliberately made to differ by a small amount, known as the hysteresis or dead-band,
Dead-band
CON
e(t) yc
COFF
(Fig. 12.8) to prevent noise from switching the controller unnecessarily when the output is nearly the
setpoint. The hysteresis is designed into the control action between the points at which the control
output switches from OFF to ON. This designed in hysteresis prevents the output from switching
from OFF to ON too rapidly. If the hysteresis is set too narrow, rapid switching will occur.
Therefore, the hysteresis should be set so that there is sufficient time delay between the ON and OFF
modes of the outputs. The sensitivity of the ON-OFF controller depends on the hysteresis.
Desired speed
(set-point) Error Proportional Controller output Output speed
controller Plant Y(s)
U(s) E(s) (Kp)
Measured
manipulated
variable
The advantage of proportional controller is that it is relatively easy to implement. However, the
disadvantage is that there always involves an offset in the output response causing difference between
the set-point and the actual output. Other disadvantage of proportional controller is the overshoot
problem that arises when a proportional controller is used at high gain.
t
1
cy (t ) =
Ti 0ze ( t ) dt (12.4)
where, cy(t) is the output of the controller. e(t) is error signal and Ti is called the integral time. The
integral correction of output is performed by accumulating the deviation in accordance with time
elapsed. Eq. (12.4) can also be written in transfer function form as given below.
Cy ( s ) Ki
GIC ( s ) = = (12.5)
E(s) s
where, GIC(s) is the transfer function of the integral controller, which is the ratio of the Laplace
transform of the output to the Laplace transform of the input (the error signal) of the integral
controller. Ki = 1/Ti, is called the integral gain which is the reciprocal of the integral time. The offset
in the output, and hence the steady-state (Refer Fig. 10.2) performance of the system can be improved
by employing integral control action. But the integral action may lead to oscillatory output resulting in
poor stability.
Feedback loop
stability, which is not really desirable. Combining proportional and integral action the two constants
such as Kp and Ki can be adjusted in order to optimize the system performance or the output response
according to the requirement. The transfer function of the PI controller is,
GPI ( s ) =
Cy ( s)
= Kp 1+ FH Ki IK = K FG1 + 1 IJ
p (12.7)
E(s) s H Ts K i
Kp
Desired speed
(set-point) Error Ki Controller
s output
Kd s
Feedback signal
12.5.8 Comparison
PID method is appropriate when the process or system is linear and time-invariant. It looks at the
current value of the error, the integral of the error over a recent time interval, and the current derivative
of the error to determine not only how much of correction to apply, but for how long. Of course, PD
control deals precisely with the overshoot problems associated with proportional control but it does
not alleviate the problem with the steady-state error. It is possible to overcome this problem by adding
an integral term to the control function.
In summary, the characteristics of P, I, and D controllers are such that a proportional controller
(Kp) has the effect of reducing the rise-time but never eliminate the steady-state error. An integral
action (Ki) has the effect of eliminating the steady-state error, but it may make the transient response
worse. Finally a derivative control (Kd) has the effect of increasing the stability of the system, reducing
the overshoot, and improving the transient response.
The PID based feedback control strategy requires proper tuning of PID parameters in accordance
with the system dynamics and response requirement. Because Kp, Ki and Kd are dependent of each
other, during tuning process, changing of one of these parameters can change the effect of the other
two. For this reason, tuning of PID controller needs considerable attention.
If the system dynamics change due to, for example, load change, environmental burden etc., the
PID controller (Hereafter, it can be said PID controller, since this method implements PID-based
reachability control scheme) has to be re-tuned. That is, the time-variant system necessitates a need
for changing the controller tuning parameters to achieve satisfactory system performance. In
practice, although PID tuning is inexpensive, the implementation is time-consuming.
from the process itself and keeps on updating the existing mathematical control model. In order to
achieve this, a program, called parameter estimator, which continuously monitors the process and
estimates the process dynamics is run. An algorithm is used to generate controller parameters from
these estimates. The controller then sends the required command signals to the plant or process. The
important feature of an adaptive controller is the structure of the model used by the parameter
estimator to estimate of process dynamics, according to some specified criteria. The process can be
modeled by a set of mass balance equations, whose quantities can be measured directly.
The reliability or robustness issue of any control implementation can be addressed by the
robust control method. The robust control design method assumes the knowledge of the system
dynamics and the range of variation. Robust control is applied in the application areas where the
process dynamics are known, and the variation ranges for uncertainty is readily obtained.
Predictive control method implements controller algorithm based on a typical predictive model
of the system. The algorithms compute a sequence of manipulated variables in order to optimize the
future behaviour of a plant. Based on historical knowledge, the model predicts the output, as well as
the input. Predictive control, is also called Model Predictive Control (MPC).
The optimal control method is based on the state equation and initial condition of the process/
plant. The control algorithm starts with the initial conditions, and arrives at the objective setpoint. A
transformation with regard to state is achieved in an optimized manner. The method can govern
strategies for maximizing (optimizing) a performance measure, as the transformation of the dynamic
system evolves from the initial condition.
Intelligent control incorporates biological information processing method and Fuzzy theory.
Biological information processing method includes Neural Network, Genetic Algorithm and Immune
Network. The chapter deals with Artificial Neural Network (ANN) and Fuzzy logic (FL). ANN is a
computing method that uses the principle of natural neural network (NNN). Fuzzy control is built on
mathematical foundations with Fuzzy Set Theory. There are different meanings of intelligent control
even depending upon the application domains. However, widely accepted definition of intelligent
control is that it is normally referred to as ‘soft computing’ based control implementation. The
definition of soft computing, according to Professor Lotfi A. Zadeh is:
“Soft computing differs from conventional (hard) computing in that, unlike hard computing, it is
tolerant of imprecision, uncertainty and partial truth. In effect, the role model for soft computing is
the human mind. The guiding principle of soft computing is to exploit the tolerance for imprecision,
uncertainty and partial truth to achieve tractability, robustness and low solution cost. The principal
constituents of soft computing are fuzzy logic (FL), neural network theory (NN) and probabilistic
reasoning (PR), with the latter subsuming belief networks, genetic algorithms, chaos theory and parts
of learning theory. What is important to note is that soft computing is not a mixture of FL, NN and
PR, rather, it is a partnership in which each of the partners contributes a distinct methodology for
addressing problems in its domain. In this perspective, the principal contributions of FL, NN and PR
are complementary rather than competitive.”
In the following two sections, we will deal with the basics of neural network and fuzzy logic
respectively.
411
Principles of Feedback and Intelligent Control
x1
x2 w1
w2
x3
w3
xiwi Output
Inputs x4 w4
w5
x5
wi
wn
xi
xn
The structure of a neural network looks something like shown in Fig. 12.13. Basically, all artificial
neural networks have a similar structure as far as topology is concerned. Some of the neurons
interface the real world to receive its inputs, and other neurons provide the real world with the
network’s outputs. There are three layers in this network. Although, the NNN structure is a three-
dimensional one, but in this case, we would concentrate only on planner layers. Out of three layers,
the last layer is called output layer providing two outputs y1 and y2. The first layer is called input layer
and has four inputs x1, x2, x3 and x4. The output layer in this case has two nodes, representing output
values, which are determined from the inputs.
Input layer Hidden layer Output layer
x1
x2 y1
x3 y2
x4
How these layers get connected may vary. There may be many middle layers, with a variable
number of nodes, depending upon the task at hand. The middle layers are called hidden layers, in
which the real processing is done. Each node in the hidden layer must be connected to the inputs. The
hidden layers are made to learn taking all inputs together. These are the layers where the network
learns interdependencies in the system. The developer sets out the network through an iterative
process in terms of trial and error in the design decisions before coming up with a satisfactory design.
This is called network training. During learning process, the network tries to predict the correct
output for each set of inputs by gradually reducing the error. Many algorithms have been proposed for
accomplishing this, but they all involve an iterative search for the proper set of weights that will do the
best job as far as accurate prediction of outputs are concerned. Algorithms, sometimes referred to as
‘learning law’, is simply the mathematical rule for modifying the weights of a network iteratively
according the inputs. The design issues in neural networks are complex and are the major concerns of
system developers. The whole design process can be summarized as:
· Arrange neurons in layers.
· Decide the type of connections among neurons for different layers, as well as among the
neurons within a layer.
· Decide the way a neuron receives input and produces output.
· Determine the strength of connection within the network by allowing the network learn the
appropriate values of connection weights by using a training data set.
The main application areas of ANN are:
· Automation and process control
· Image processing
· Speech and pattern recognition
· Machine diagnostics and prognostics
· Biomedical instrumentation and health care
· Laboratory research
· Business
· Quality control
completely ‘cold’, completely ‘big’ or completely ‘small’, completely ‘tall’ and completely ‘short’,
etc. can be defined and manipulated mathematically and subsequently processed by physical
controllers. In summary, FL attempts to implement fuzzy notions in order to realize human-like way
of thinking or deciding the facts. The implementation of such notion within the artificial world is
referred to as Artificial Intelligence (AI).
The FL can be exploited to implement modern control schemes to advocate AI. As far as control
system is concerned, FL based implementation solve many types of control-related decision problems,
especially where ambiguity, vagueness or imprecise information is common.
FL incorporates a simple, rule-based IF ‘a’ AND ‘b’ THEN ‘c’ approach to solving a control
problem rather than attempting to model a system mathematically. FL has been becoming a powerful
problem-solving methodology implemented in a myriad of applications ranging from simple, small
control system to large information processing system.
mr
1
0
x1 x2
mr
Degree of
1
membership
0.75
0.5
0.25
0
x1 x0 x2
rules depend on the number of input parameters that are to be processed and the number of
fuzzy variables associated with each parameter.
· Creation of FL membership functions that define the values of the I/O terms used in the rules.
Mainly FL based control is employed in the complex applications where,
· No simple mathematical model is available
· The processes are highly nonlinear
· The processing needs formulation of soft linguistic expert knowledge
A schematic diagram of FL based control implementation is illustrated in Fig. 12.15 (b). Using the
conventional approach (Fig. 12.15 (a)), the first step is to study the physical system and its control
behaviour and requirements. Based on the system study, the model of the plant is developed which
includes the sensors and actuators signal (I/O) and their interactions. Then the control theory is
applied in order to implement the simple and basic controller and their parameters. This step implies
writing of the algorithm for the controller. Finally, the simulation and testing is carried out in order to
tune the controller to nullify the effects of non-linearity, noise, etc. If the global algorithm did not
provide satisfactory I/O behaviour, modification is inevitable, i.e. remodeling, re-design of the
controller and re-writing of the algorithm have to be done iteratively. However, in FL based
implementation the control algorithm is directly implemented based on plants inputs and outputs
relationship through fuzzy rules.
416
Mechatronics: Principles, Concepts and Applications
System study
System study
(a) (b)
Fig. 12.15 (a) Conventional control realization (b) FL based control realization
FL based strategy simplifies the design loop. This results in some significant benefits, such as
reduced development time and simpler design. Advantages, which can be gained from the FL based
control implementation, can be attributed to the following:
· Simpler and faster design methodology
· Reduces the design development phases
· Simplifies the complexity involved in design process
· Solution to nonlinear control system
· Control performance can be improved
· Overall control implementation is efficient compared to conventional control
Some FL applications include:
· Intelligent robotics
· Autonomous navigation, tracking and planning
· Automation control systems
· Complex industrial processes featuring nonlinear characteristics
· Machine vision, machine diagnosis systems
· Sensor fusion
· Consumer electronics such as household and entertainment electronics
· Information systems, speech and image processing
417
Principles of Feedback and Intelligent Control
12.10 DIAGNOSTICS
Diagnostics has become a fundamental requirement within the real-time mechatronics technology. As
target application (Target applications is a plant/process/system) becomes more complex and more
costly to build and maintain, preventive maintenance measures become increasingly important. There
is currently a great need for systems to automatically predict, detect, and diagnose faults. Devices
such as sensors, actuators, valves and switches are integral parts of the target application. Because of
interaction and co-operativeness amongst the devices, any malfunction within any device has an
effect on other devices and/or on overall control functions. Therefore, detection and isolation of faults
within the system is important. The detection and isolation of fault is defined as diagnostics and
prognostics (DAP). Prognostic measure helps to estimate the time remaining before machine
breakdown occurs. In addition to control, if the Fault Detection and Isolation (FDI) features are
incorporated into the system then the system is said to be self-diagnostic system.
The terms FDI and DAP are used interchangeably. FDI incorporates sophisticated methods,
techniques and tools for on-line, continuous monitoring of the target application. FDI scheme involves
continuous analysis of operational point and the detection of problems before the unit or component
fails to operate. The diagnostics is carried out by measuring the detection parameters by the use of
sensors, and other equipment. The detection parameters are vibration, thermal deformation, fracture,
crack, bend, lubrication, wear, degradation factor and so on. The effect of FDI implementation in the
mechatronic systems is significant. In particular,
· The location, type, time, size and the nature of the faults can be quickly identified.
· Reliability can be improved reducing maintenance requirements.
· Production loss becomes low and overall productivity becomes high.
· The life of the machine and the auxiliary components increase.
· Safety and regulation policy can be met.
U Process Y + dY
X + dX P + dP
Y = f (U, N, X, P ) (12.12)
where, U(t) and Y(t) are measurable input and output signals, N(t) is disturbance signal (noise), P(t)
is slowly varying process parameters and X(t) time dependant process state variables and are non-
measurable parameters. The faults make a change in P(t) and in X(t) to produce P(t) + d P(t) and
X(t) + d X(t) respectively.
Detection Isolation
Concern in the design of fault detection algorithm is detection performance, which implies first and
accurate identification of failures. The detection performance is measured in terms of isolability,
sensitivity and robustness.
U Process
Actuator dynamics Sensor
Model of
Model of observer
nominal system
Model of
system faulty
system
State Estimation
∑ Observer method Parameter
∑ Detection filter Estimation
∑ Parity space
Residual generator
Decision Maker
∑ Decision function generator
∑ Fault decision logic
Fusion and expert system based solution is a step forward to sensor-based approach with additional
hardware and software.
FT based spectrum analysis does not solve the purpose of detection and isolation of all type of
faults since it is applicable to only stationary signals. STFT, on the other hand, an alternative method,
however, inherits problems in terms of fixed-resolution based computation ability and the problem of
uncertainty. That is it is impossible to know what spectral component exists at any given time instant.
Wavelet based signal analysis methods have been rapidly evolving in FDI applications. Wavelet theory
is relatively new and they have been successfully employed in many applications considering the plant
measurements as a typical frequency spectrum under normal operating conditions.
In the context of AIN-based diagnostics, so far several methods have been proposed to realize the
phenomena of the immune system from the standpoint of mathematical analyses. In practice, little, or
no attention, however, has been paid.
12.11.1 Programmability
One of the important features of the digital control technology is that it uses a processor that facilitates
programmability. This, in turn, eases the realization problem. The same controller can be used for
various applications just by changing the program code. Of course, similar philosophy can be adopted
in implementing OPAMP based analog devices. That is, depending upon the nature of plant, different
control circuit could be realized. But the problem is that OPAMP based realization is more hardware
oriented, whereas microcontroller-based realization is software or embedded technology oriented.
Software oriented realization or implementation is robust, reliable, productive and flexible, since they
are programmable.
12.11.2 Configurability
Configuration refers to physical as well as logical connections amongst various devices of the control
system. The devices are sensors, actuator, controllers, etc. The meaning of physical connection is
self-explanatory. The logical connection involves much more, which can be understood after studying
the last chapter. Digital control technology improves logical connectivity that refers configurability.
Scalability and extendibility refers to its ability to grow from a small. In many situations, the
previously implemented control scheme entails modifications as and when requirement demands. The
control system may need another feedback loop in order to achieve greater performance. With digital
control technology, modifications are easier compared to analog counterpart.
1011
(a)
(b)
Distortion
Input Output
eliminator
(c)
A control system in its basic nature is represented in Fig. 12.20. The plant may be an electric motor
in this typical motion control system. This motor could be an actuator for actuating the robot arm.
The digital control technology can implement either state feedback or adaptive control algorithm for
controlling the robot arm.
In this typical example, two types of feedback sensors are used to provide the feedback signal. One
group of sensors provides signals collected from the mechanical variables such as position, speed,
acceleration, torque, force, etc. while the other set of sensors provides signals collected from
electrical variables such as voltage, current, resistance, flux, etc.
424
Mechatronics: Principles, Concepts and Applications
Voltage Position
Current Speed
Resistance Acceleration
Flux, etc. Torque
Force, etc.
Sensor Sensor
Power
Power Plant Load
converter
Digital
control
12.11.7 Communication
Digital control technology provides standardized communication capability. USART (Universal
Synchronous/Asynchronous Receiver and Transceiver), USB (Universal Serial Bus), RS-232, 422,
485 are the suitable acceptable interfaces for data communication. Many microcontrollers provide
USART and other standardized physical layer model interface such as USB, RS-232, RS-422, RS-485
for data transaction. The digital control technology also facilitates efficient, flexible and reliable storage
capability.
The limitations in digital control technology are:
· Data converter is required
· Sampling, resolution and quantisation error persists
· Analysis and design methods are complex
· Delay due to computation
· Truncation errors can affect the control precision
Since digital control technology deals with digital data, all analog signals must be converted to
digital form, which requires analog to digital conversion methods. Analog to digital conversion is
achieved at the expense of time and additional circuits. Further, the digital system inherits problems
with sampling speed and quantisation error. Faster sampling rate is desirable in order to avoid aliasing
(see Chapter 2). Resolution can be improved and quantization error can be minimized by reducing the
426
Mechatronics: Principles, Concepts and Applications
step size. But, error always stays with digital technology. These errors affect the disturbance rejection
limits. The digital control technology involves delay, as the program code has to be processed or
executed in order to take action. Moreover, digital system always possesses truncation errors that
arise from the rounding off the value.
This chapter deals with open loop, closed loop, intelligent and feedback control scheme along
with diagnostics methodologies. The control principle such as Proportional and Integral,
Proportional-Integral and Derivative etc. have been discussed. The chapter also focuses the
relative merits and demerits of digital control implementations. Introduction to soft-computing
tools such as ANN and FL have been presented.
427
Principles of Feedback and Intelligent Control
LOOKING AHEAD
Although intelligent control to some extent refers to implementation of soft computing methods,
but in practice it is much more than this perception. In response to pressing need the present
scenario of intelligent control is more involved in terms of self-diagnostics and validation. Next
chapter deals with topics on self-assessment and validation of I/O components and machine
systems. The beginning the chapter introduces a design philosophy called component-based
design methodology. Component-based design methodology can adapt the principle of
distributed intelligent design principle.
EXERCISES
12.12 Give an illustration how the neural network concept has been adopted in the engineering
domain.
12.13 What do you mean by a neuron and neuron layers?
12.14 Write down various stages of design process.
12.15 What are the main applications areas of ANN?
12.16 Comprehensively discuss about the fuzzy logic.
12.17 Explain the fuzzy set and degree of membership.
12.18 What are the main applications areas of FL.
12.19 With a suitable diagram distinguish between the conventional control realization and FL based
control realization.
12.20 Why is diagnostics is essential in mechatronic systems?
12.21 Draw the block diagram of a process influenced by fault.
12.22 Write down the phases of fault detection and isolation.
12.23 What approaches does the FDI scheme adopts? Elaborate.
12.24 Draw the general architecture of a model based FDI scheme.
12.25 How are spectrum analysis and limit value checking used in detection of faults? Give some
examples.
12.26 Draw some relative merits and demerits of various FDI schemes.
12.27 Comprehensively discuss about the analog and digital control methodology.
12.28 What are the advantages gained in implementing digital control system over its analog
counterpart?
13
Development Tools and Concepts
13.1 INTRODUCTION
Computer has become a vital tool as far as design and development of mechatronic systems are
concerned and using a computer to automate the system design has been a goal. Computer ascertains
almost all activities in every stages of design and development process. A computer is composed of
hardware and software. In order to provide computer assisted automated environment the computer
must be equipped with control interface, appropriate software tools and systems, and nevertheless the
active control devices. The active control devices are sensors, actuators, signal conditioning units,
microprocessors and microcontrollers, Data Acquisition (DAQ) cards, etc.
This chapter deals with the basics of computer in terms of its hardware, communication interface,
software types and related systems. The chapter also describes various aspects of design and
development concepts. All of these have been described under the following headings.
· General purpose computer and industrial computer (IC).
· General purpose operating system (GPOS), real-time operating systems (RTOS), Distributed
Operating Systems (DOS) and the role of device drivers.
· The definition of database management system (DBMS), Computer Aided Desing and
Computer Aided Manufacturing (CAD/CAM).
· Client-server (CS) architecture and object oriented (OO) methodology in the context of
software design.
· Computer network and distributed control system (DCS).
· Fieldbus technology standards.
· Web-based monitoring and control.
13.2 COMPUTER
A computer often called a machine is an electronic device that accepts information and manipulates it
for result. It follows explicit directions from the programmer, who develops programs (a logical
sequence of instruction). Fundamentally, it executes instructions. Computer handles instructions
flawlessly and fast. Simply, it is more than an extremely powerful calculator but interfaced with
additional dedicated external Input/Output (I/O) peripherals and accessories, with sophisticated
functions. Theoretically, each instruction tells the computer to add, subtract, multiply, divide, or
compare two things to provide desirable result by the use of machine codes. The following is the
definition of a computer.
“A computer is an electronic device for the fast, accurate processing of data or information under
the control of a stored logical sequence of instructions called a software program.”
It is common to see the word ‘software program’ within the computer field. In this text, ‘software
program’, ‘software’ and ‘program’ will be used interchangeably.
Memory
13.2.2 CPU
The main task of a computer is to get data, process it and generate a result. The task, which is simply
processing, is the most important job of the computer and achieved through a Central Processing Unit
(CPU). The CPU is a microprocessor, a semiconductor VLSI (Very Large Scale Integrated Circuit)
chip and is considered as the brain of the computer system because it performs all the processing. It
contains transistors, diodes and resistors which are interconnected appropriately to form the
functional blocks such as, control units, ALU (Arithmetic and Logic Unit), Registers, Ports, Buffers,
Accumulator, Program Counter and other auxiliary units such as memory controller, interrupt
controller, etc. The electronic connections among the functional blocks within the chip allow the
operand to be compared to one another combined with one another and stored according to a program
that processes or manipulates the data or information into a new form, which becomes the ‘output’.
432
Mechatronics: Principles, Concepts and Applications
The microcomputer is a computing system that usually has a single CPU. The CPU of the
microcomputer is mounted on the motherboard in a metal or plastic package and connections are
welded to external pins. The CPU is accessed only through these pins. Personal Computer (PC) and
large computer systems can have many processors and controllers, for which they are called
multiprocessor systems.
other places, usually to the memory of another computer, by using the floppy disk. The floppy drive
is a hardware and software unit by using which the data is written and read into the floppy disk.
The common computer has a hard disk on which the operating system, application programs,
information and data are stored. Hard disks on current PC have a storage capacity in the order of
gigabytes (GB). Generally, hard disks are less portable than floppy disks. Hard disks hold more data
and have faster accessibility than diskettes. The hard-drive is a hardware and software unit by using
which the data is written and read into the hard disk.
The magnetic memories retain information when the power to the computer is turned off.
Therefore, hard disk and the floppy disk are the places where we can store programs, information and
data relatively permanently.
CD Compact Discs (CD), also called optical disc, have been successful with regard to storage of
bulk of digital data. They use most popular digital format for the storage and retrieval of programs,
information and data. The data are stored permanently. CDs, rely on LASER (Light Amplification by
Stimulated Emission of Radiation) technology to read and write the data on the discs. Blank CDs are
available in which data can be written using CD writer. Blank CDs are called writable CDs.
RS-232 defines both the physical and electrical interface. RS-232 uses a single wire for data
transmission. For which it is called a single-ended data transmission interface. Although, RS-232
standard solves many serial communication problems, it is not suitable in every situation, while taking
into account of speed, length, noise, etc. It is relatively slow, for which it has been used for simple
devices such as keyboards and mouse.
Logically, a serial link would only need two lines, a signal line and a ground. But, in practice it
requires more lines to encompass reliable transmission system. For instance, bits might get lost during
transmission, leading to unreliable communication. The reliability must be addressed. Indeed, various
communication methods have been devised in order to overcome the bit error; one of the method
being the provision of having additional signal carrying lines.
The RS-422 is considered as an expansion of the RS-232 serial communication standard. The
limitations of RS-232 are largely eliminated by RS-422 standard. The design is intended for achieving
reliable, relatively higher speed and longer distance and noise free serial transmission system. RS-422
is a balanced line interface, in which a pair of wire is used to carry the signal instead of a single wire.
The two wire based balanced transmission is suited for the environment, where there is a difference
between the ground potentials at the transmitter and the receiver. The data is encoded at the
transmitting end and decoded at the receiving end as a differential voltage between the two lines. The
differential mode has the advantage that the transmission is unaffected by differences in ground
voltage between the transmitter and the receiver, because the potential difference affects both wires
equally. LAN networking systems such as Ethernet, Token Ring, etc. uses balanced line interface
systems.
The RS-485 is another sophisticated standard meant for serial data transmission. RS-485 is an
upgraded version of the RS-422 standard. RS-485 is often used in applications where a system needs
to control multiple devices using a share cable. The computer can be connected to several addressable
I/O devices that may share the same RS-485 cable.
The Universal Serial Bus (USB) interface standard is relatively a recent development which provides
two-way communication between the computer and the peripheral devices, making it ideal for many
I/O applications. The USB gives an easy-to-use way to connect up to 127 devices to a computer. The
I/O devices such as DAQ card (see below), digital cameras, modems, speakers, printers, scanners,
mouse, telephones, can be connected to the computer through USB.
Parallel port: The parallel port interface as the name suggests, makes it possible to transfer and
receive data between the peripheral devices and the computer. In a PC system the parallel port is
specifically designed to attach printers, but it can be used as a general input/output port for any device
or application that matches its input/output capabilities. The devices could be a scanners, CD-writers,
external hard drives, network adapters, etc. Moreover, PC based instrumentation, data acquisition and
control can be achieved through the parallel port. The port has 12 TTL-buffer output points, which
are latched and can be written and read under program control using the processor ‘In’ or ‘Out’
instruction. There is one input that can also be used to create a processor interrupt. This interrupt can
be enabled and disabled under program control.
ISA/PCI The acronym of Industry Standard Architecture is known as ISA. It is an interface
standard, which is referred to as ISA slot, ISA socket, ISA bus or ISA port. It defines the physical,
electrical and communication parameters for an easy interface to build computer-based development
435
Development Tools and Concepts
system. The outside world can be connected, predominately through this slot/socket/bus/port. The
ISA bus configuration had originally been developed by IBM, however, later on IEEE (Institute of
Electrical and Electronics Engineers) officially recognized it as a standard. ISA conformant Printed
Circuit Board (PCB) containing electronic circuits, designed for achieving bi-directional
communications between the computer and the outside world is referred to as add-on card. ISA
cards can be of either 8-bit or 16-bit wide. The slot can be used for Data Acquisition (DAQ) and
control applications. Add-on cards especially designed for computer-based data acquisition and
control applications are called DAQ cards. The readily available specially designed DAQ cards for
specific DAQ and control applications, for example monitoring and control of speed of the electric
motor, condition monitoring of a machine and so on, can be plugged into the computer for action. The
DAQ card usually consists of I/O port, A/D converter, D/A converter, Real-time clock, and even
sometimes a microprocessor or microcontroller.
In 1992, the Peripheral Component Interface (PCI), a contemporary standard evolved into a viable
replacement for the ISA bus. Presently, PCI conformant communication is seen as the most
commonly used method for adding add-on and hence DAQ cards. In fact, PCI architecture provides
an advanced way of connecting peripherals. It solves some of the problems with ISA architectures, in
terms of delivering an increase in processing speed. ISA and PCI slots are housed on the motherboard.
In some motherboard both ISA and PCI slots are present. In a typical PC the total number of ISA and
PCI slots could be eight or more.
13.2.7 Clock
The building blocks such as CPU, memory and I/O devices of the computer send and receive data
through the link, bus, circuits and wires, in a predefined sequence. In order to coordinate the
sequential activities the computer is provided with a clock. The clock is a regular pattern of alternating
high and low voltage signal. The clock rate determines the speed of the computer. The computer has
one clock, but the modern computer has many different clock signals for different areas of the
machine. The clock speed is usually measured in megahertz.
13.3 SOFTWARE
Software play important role in the filed of instrumentation, automation, control and mechatronics
design. Software is a program that the user run in the computer to perform various tasks. In essence,
436
Mechatronics: Principles, Concepts and Applications
the software in conjunction with compatible hardware, constituting a computer, makes it possible to
process information and data. There are diverse ways of categorizing the software. However, broadly
they can be grouped under two categories.
· Operating System software
· Application software
Application software
Operating system
IPC
Multi-tasking
Multi-threading
Drivers
External
System hardware (Processor, Memory, Cards, etc.) devices
and units
Fig. 13.2 A typical operating system and its interaction with the environment
Process Communication (IPC) capabilities of the OS enable to share data with each other. This
feature thus facilitates the integration of data sharing and hence interoperability.
· Multi-tasking Multitasking is the ability to execute more than one application software at
the same time. Advanced GPOS have the performance and capability of doing multi-tasking
operations. A switching mechanism forms the basis of multitasking operation. Switching from
one program to another is very quick. It gives the appearance of executing all of the programs
at the same time although the OS executes them in some order. The OS takes responsibility for
managing the CPU so that each application thinks it owns the entire system.
· Multi-threading Numerous techniques exist to achieve performance improvements. Multi-
threading is the ability of an OS to execute different parts of a program, called threads,
simultaneously. Multi-threaded architecture has emerged as one of the most promising
technique for the exploitation of parallelism. It exhibits a powerful form of concurrency. The
technique can be exploited in a system that run on both uniprocessor and multiprocessor,
shared-memory and distributed-memory systems. The main difference between the concept of
multi-tasking and multi-threading is that in former case the notion of simultaneous operation is
in between the application software where as in latter case the simultaneity is within the
application software itself.
438
Mechatronics: Principles, Concepts and Applications
DOS DOS
DOS
Resources
DOS DOS
Network
(a)
Network Network
(b)
13.5.1 Compilers
To write a program a programming language is necessary. All application software are developed
using certain high-level (HL) programming languages. There are special HL and low-level (LL)
programming languages available to develop a computer program. High-level language is close to
human-like language. It makes easier for the programmer to understand the program during the
440
Mechatronics: Principles, Concepts and Applications
process of its development. HL-based programming does not require to have detailed knowledge of
the internal operations of a computer. FORTRAN (used for scientific applications), Basic, PASCAL,
C (general purpose language for diverse applications), COBOL (for business applications), LISP, C++
(an object-oriented language for diverse applications), JAVA, are some examples of high-level
languages. LLs are called machine language. Writing program in machine language is not suitable and
easier for the programmer since it requires detailed knowledge on underlying hardware. Such language
work on the binary numbers ‘1’ and ‘0’ in which the programming is considered to be error prone
and tedious.
Compiler is a program that reads a program written in one high-level computer language, called the
source language, and translates it into an equivalent program in another language, called the target
language. The target language is then converted to object code by the assembler (see Chapter 8),
which further processed with a link editor in order to produce LL machine language (Fig. 13.4). The
language conversion is essential, since the programmer writes the program in HL and the computer
only understands LL machine language. Compilers are the special class of software, which are
important as far as development of any kind of program is concerned.
Every HL language must have a compiler. Even, the software tool used for the development of
dedicated application software (See next section) includes custom compiler. There are five
intermittent stages of compilation, they are lexical analyzer, syntactic analyzer, semantic analyzer,
code generator and optimizer (Fig. 13.4).
Source code high-level language
Preprocessor
Compiler
Assembler
Link editor
Fig. 13.4 A compiler responsible for generating machine code from the source code
441
Development Tools and Concepts
13.6 MATLAB
MATLAB is a software tool that stands for Matrix Laboratory. It provides facilities like system
analysis, matrix computation, signal processing and graphics. Many practical engineering and
mathematical problems, which essentially involve numerical manipulation and refinement, can be
resolved successfully by the use of MATLAB. It uses general-purpose numeric computation,
algorithm prototyping, problem solving with Matrix formulation. Some of the examples and application
areas are control system analysis, stability analysis, statistics and digital signal processing. MATLAB
does not use low-level code as seen in FORTRAN. Predominently it is considered as a high level
programming language. MATLAB contains more than 600 mathematical, statistical and engineering
functions, providing the numeric computing power we need to analyse data, develop algorithms and
optimize system performance.
The performance of this software depends upon configuration of the hardware platform. Some of
the important hardware characteristics are processor type and clock rate, amount of (buffer) memory
available, disk access speed and throughput, etc. To handle graphics and visualization function
MATLAB need good amount of memory, preferably more than 32 MB. Commands may be issued to
Windows or DOS from within MATLAB.
SIMULINK is a graphical mouse driver environment integrated with MATLAB. The user can draw
block diagram of the linear, nonlinear, continuous and discrete system on the computer screen and
can manipulate them easily. SIMULINK incorporate blocks containing MATLAB commands and
function.
curves through data, solving functional equation and performing functional approximation that require
splines. Robust control toolbox adds command for robust system design. It includes functions for
LQG, loop transfer recovery, H2 and H¥control system for singular value frequency response. The
m-analysis and synthesis toolbox provide functions for analysis and design of robust and linear control
systems.
13.6.2 Controls
Controls are the icon-based graphical user interface (GUI) which is a collection of independent GUIs,
most of which can be activated from the map display window at any time during operation. It contains
all sorts of control blocks required for analysis and manipulation and the blocks appear as buttons.
The GUIs based toolbox is mostly a mapping process. There resides a program for each block, which
is simply represented by a button. There are also alternative methods for entering toolbox commands
from the MATLAB command window.
The user can set a variety of options and parameters for the processing and specify the parameters
to be processed. The user can also manipulate the processed data by incrementing, decrementing,
adding, deleting by viewing profiles or outputs. MATLAB also provides powerful interactive 2-D and
3-D plotting capabilities that allows to visualize data, equations and results.
Table 13.1
Transcendental and elementary matrix functions
Transcendental functions Elementary functions
Function Meaning Function Meaning
expm Matrix exponential poly Characteristic polynomial
logm Matrix logarithm det Determinant
sqrtm Matrix square root trace Trace
kron Kronecker tensor product
445
Development Tools and Concepts
The element by element operation is referred to as array operation. An operation, a period, i.e. “ . “
preceding to an operator indicates an array operation. The symbol “ + “, “ - “, “ . * “, “ ./ “ and “ .^ “
are used as addition, subtraction, multiplication, division and powers with array operations
respectively.
There are six relational operations available in the MATLAB. Commonly they are used for
comparing two matrices of equal dimensions. They are as follows:
< less than
> greater than
<= less than or equal
>= greater than or equal
== equal
~= not equal
The symbol “ ~ “, “ & “ “ and “ | “ are used as NOT, AND and OR logical operations respectively.
Moreover, there are some relational and logical, trigonometric and special functions available in the
MATLAB. They are as follows.
any - logical conditions
all - logical conditions
find - find array indices of logical values
exist - check if variable exists
isinf - detect infinities
finite - check for finite values
isempty - detect empty matrices
isstr - detect string variables
isglobal - detect global variables
issparse - detect sparse matrices
sin - sine
cos - cosine
tan - tangent
asin - arcsine
acos - arccosine
atan - arctangent
atan2 - four quadrant arctangent
sinh - hyperbolic sign
cosh - hyperbolic cosine
tanh - hyperbolic tangent
asinh - hyperbolic arcsine
acosh - hyperbolic arccosine
atanh - hyperbolic arctangent
abs - absolute value or complex magnitude
angle - phase angle
sqrt - square root
446
Mechatronics: Principles, Concepts and Applications
conv - convolution
conv2 - 2-dimentional convolution
cov - covariance
fft - fast Fourier transform
fft2 - 2-dimentional FFT
ifft - inverse fast Fourier transform
ifft2 - inverse 2-dimentional fast Fourier transform
fftshift - swap quadrants of matrices
To execute this program again, you need to go to MATLAB Work Space. The prompt >> will
appear. Type the directory where the program had already been saved. For instance,
>> cd/analysis
448
Mechatronics: Principles, Concepts and Applications
Any modification on the program will be made within the MATLAB Command Window. Vectors
are used to hold sampled-data signals, or sequences, for signal processing. One dimensional sample
data signals are represented as one dimensional arrays or vectors of size 1 xn or nx 1. For instance, let
a signal have eight discrete data. It can be represented as,
Fig. 13.7 Window used for saving the m-file in the appropriate directory
function x = abrupt(t)
t = – 1 : .01 : 3;
x = 1./(.02 + (t – .4)^2) + 1./(.03 + (t – .7).^2) – 5;
plot (t, x)
In another example we have taken to find out the discrete Fourier transform of a signal. Essentially,
an approximation of the Fourier transform that can be calculated from a finite set of discrete time
samples of an analog signal and which produces a finite set of discrete frequency spectrum values is
called Discrete Fourier Transform (DFT). For more details refer Chapter 2. The signal at hand is
given in the Fig. 13.11(a) and its DFT is given in Fig. 13.11(b). The program in MATLAB is written
below.
function y dft(r, N)
load signal
r = signal;
N = length (signal);
For k1 = l:N
X(pl) = 0;
452
Mechatronics: Principles, Concepts and Applications
p = pl–l;
for ql = l:N;
q = ql–l;
X(pl) = X(pl)+r(ql)*exp(–j*2*pi*k*q/N);
end
end
plot(abs(X))
13.7.1 Drivers
Drivers are the programs, which make it possible to use the I/O devices. The I/O devices are the
physical part of the computer. Mostly they are external to the motherboard. Some of the important
devices are keyboard, mouse, printer, monitor, floppy drive, hard drive, LAN (Local Area Network)
card, modem, DAQ card, etc. to name a few. In order to exchange data between the devices and the
application software driver programs are needed. For instance, if the users want to print the design
parameters of an electric motor, which has been obtained through simulation, then a command must
be given at the simulation software to print the generated parameters. The operating system will
respond to this command and direct it to the corresponding device driver, i.e. the printer driver to
complete the printing operation. If there are two printers connected to the computer there must be
two printer drivers installed. Devices only communicate with application software via the device
drivers and OS (Refer Fig. 13.2). The driver, thus typically controls a specific hardware device. In
many situation another program, called the device manager, bears the load of managing and regulating
the flow of data between an application and the device in case of multiple devices and drivers.
13.7.2 Database
A database (DB) is simply an ordered collection of correlated data, usually stored on hard disk. The
data are entered into the database system by the users. At any point of time the data can be retrieved
from the DB. The DB can be used concurrently by many users. Inheriting the philosophy, they are
generally separated into application areas, such as computer database, which stores computer related
data, employees database, which could store payroll, financial database, which could store accounting
information, and so on. Databases are managed by a Database Management System (DBMS). DBMS
is a set of programs that can manage many number of databases. A DBMS facilitates accessing,
inserting, updating, and deleting data in a secured manner. The choice of a database software is often
influenced mainly by two factors such as the volume of data to be managed and the number of
transactions required per second.
453
Development Tools and Concepts
13.7.3 CAD/CAM
Almost all engineering design and manufacturing processes start with drawing. As an example, to
manufacture a gear component first its drawing is completed. Then a model is prepared and tested. If
the design specifications are satisfied, then the real design and manufacturing starts.
CAD is an acronym for Computer Aided Design. A Computer Aided Design system is primarily
used to create complex drawings by the use of computers and associated software, is called CAD
software.
Previously the drawings of complex mechanical components were prepared manually. The main
purpose of the CAD is to provide a systematic approach for complete design procedure of many
systems including electronic circuits, mechanical parts, electrical systems, etc. The CAD has the
capability of automating most of the design process. This can lead to compressed design times, which
in turn will lead to reduced costs, greater quality, and improved product performance.
There are several reasons for using CAD systems to support the engineering design systems. The
first reason is to improve the quality of the design. CAD environment with necessary capabilities
permits the user to do more sophisticated engineering analysis and to choose a large number and
variety of design alternatives. Further, the use of CAD system creates a manufacturing database
inheriting dimension of the components, materials used, geometric specification of the products and
bill of materials. The database can be re-engineered and reused. Moreover, the CAD system can
increase the productivity of the designer in terms of synthesis, analysis and documentation.
CAM is an acronym for Computer Aided Manufacture. The effective use of computer technology
for accomplishing the jobs like planning, management and control of management functions is referred
to as CAM system. The application of CAM can be classified under two broad categories such as
manufacturing planning and manufacturing control. Planning environment uses the computer as an
off-line tool to accomplish the job such as management of production activities. The control
environment uses the computer as a run-time tool to accomplish the job such as process control,
quality control, shopfloor control and process monitoring.
In a typical application the CAM software can also simplify the task of programming machine
tools. The environment uses the data generated by the CAD system to generate code that are required
to operate a machine. It enables users to graphically define part geometry and establish machining
strategies, develop and verify tool paths, etc. and exchange this data with the machines.
Operating
System
Server
(central database)
Practically, an object is a singular entity, which receives and sends messages. The object contains
code, a sequences of computer instructions, and data, upon which the instructions operates. In
traditional way of designing the software, we find that the code and data have been kept apart,
however, in OO design philosophy, both code and data reside in one place. From the point of view of
software development the advantages of object orientated programming (OOP) promise to simplify
the burdensome complexity of development, while improving the productivity. It is also considered as
one of the sophisticated methodology due to the reasons that the features like data abstraction,
encapsulation, inheritance and polymorphism have been taken into account. These features essentially
facilitate transparency, reuse, extendibility, portability, size and complexity involved in the process of
software development. The methodology can also result in a software product that is effective and
flexible to subsequent modifications.
the request of the presentation layer as it has data which needs to be transmitted to another location.
Presentation layer deals with syntax and semantics of transmitted data. The main service of the layer
is to facilitate data conversion. It converts data into some specified form. Application layer provides
user with access to network and uses network services to perform activities such as file transfer,
queries, network monitoring and management, etc. Table 13.2 summarises the services of all the
layers.
Device-1 OSI MODEL Device-2
A MEDIUM B
Data path
Table 13.1
Layers and their services
Layer Services
Application Specialized network functions such as file transfer, electronic mail, and file
servers.
Presentation Data formatting and character code conversion and data encryption.
Session Negotiation and establishment of a connection
Transport Provision for reliable end-to-end delivery of data
Network Routing of packets of information across multiple networks
Link Transfer of addressable units of information, frames, and error checking
Physical Transmission of binary data over a communications network
457
Development Tools and Concepts
CENTRAL CONTROLLER
CONSOLE
S = sensor
A = actuator
A A
S S
· The implementation is not flexible, because if modification is needed afterwards, the entire run-
time system has to be stopped and then necessary modification is completed.
· System can be totally paralysed if the central processing unit fails to operate.
· Installation cost tends to be high because of point-to-point link. The implementation requires
costly parallel cables to establish the physical link.
459
Development Tools and Concepts
Moreover, the increase in both quantity and quality of I/O information coupled with increased
performance demands has proven to be a problem for an overloaded centralised control strategy.
Therefore, there has been a trend towards Distributed Control System (DCS).
Figure 13.16 illustrates a schematic diagram of a typical node. A node can be called a smart device as
it is capable of executing the task, processing signal, data, information and message at the field-level
or the device level. This dictates that distributed control system employs local decision making
capabilities at the point of interaction or measurement.
Gas detector Host computer
(development tool)
Valve
Display
Pressure sensor
Temperature sensor
Display
Valve
Another plant
Pump
Control network
A A
S Other devices S Other devices
Switch Switch
Multiple I/O
interactions
Response time Response time, on the other hand, is the length of time it takes for an event
detected by one node in the network to cause an action to occur in another node. Good response time
462
Mechatronics: Principles, Concepts and Applications
is usually a requisite not only in DCS systems, but in all type of control systems. Normally, response
times should be as fast as possible. Typically, the response time less than a millisecond is considered
adequate for many types of industrial machine, instrumentation and process control applications.
Network architecture and their protocols DCS exhibits a logical network architecture for
transmission of plant signals. Topology of a network is defined as the manner in which the nodes are
interconnected logically. Messages are transmitted from one node to the other through the network
that complies with specific topology. The common topologies used for computer networks (data
network) can be used for DCS network. Figure 13.18 illustrates different types of network topology.
Topology is always related to Media Access Control (MAC) sublayer of the ISO/OSI layered stack.
Typical topologies are star, token passing, tree and peer-to-peer. N1, N2, … Nn are the field-level
nodes, H1, H2, etc. are called the hub nodes. Hub nodes are the nodes, which do not have a direct
contact with the field devices.
N2
N1
N1
N2
N3 H1
Nn
H1
N3
Nn N4 N4
N1
H1
N3 N2
H2 H3 N5
N4 N6
N7
N1 N2 N3 N4 Nn
N8
= NODE
· Star In a star topology, each node has a cable leading back to a central hub. Star type
distributed system could be considered as Hybrid Control Systems (HCS). It requires more
cable to wire a star. The failure at the hub can knock out the entire network.
· Token passing In a token ring, access to the ring is controlled by a special bit pattern called
the token circulating in and idle ring. To transmit a packet, a node grabs the token from the ring
and releases it after transmission. The token passing introduces an overhead that can increase
463
Development Tools and Concepts
delay and decrease throughput. Token management is an issue since loss or duplication of the
token will cause the ring to fail. IEEE 802.5 LAN is an example of a token passing ring.
· Tree A tree topology combines characteristics of peer-to-peer and star topologies. It consists
of groups of star-configured networks connected to a peer-to-peer network.
· Peer-to-peer Peer-to-peer or linear type topology embodies Carrier Sense Multiple Access
Collision Detection protocols (CSMA-CD). CSMA-CD protocols are designed to handle
collisions. Collisions occur when two nodes attempt to transmit the signal through the same
network simultaneously. Note that all the nodes in the network transmit packets (message)
each other by employing time division multiplexing (TDM) technique. CSMA/CD has the
capability of avoiding collision in terms of causing those nodes to halt transmission for a short
random time period before attempting to transmit again.
Message size and medium The amount of information that is carried by a DCS network at a
given time is called throughput. The claimed benefits for distributed control systems include increased
system performance in terms of increased throughput. Network systems are generally classified as
one of two kinds, Computer Network (Data Networks) and Control Network. Generally speaking,
data networks (e.g. LAN, WAN etc.) use large data packets (A packet is a single unit, of data that is
sent across a network. Data is broken into packets before it is sent) and relatively infrequent
transmissions, with high data rates. Control networks, in contrast, shuttle small but frequent packets
amongst a relatively large set of nodes. Packet size in a control network varies depending on the type
of data to be transported. Suitable packet sizes typically vary from 8-128 bytes. A channel is a
physical transport medium for packets. Suitable media are twisted pair wire, optical fibre, infra red,
radio frequency and power lines.
Range of the communication link The geographic extent of a DCS network is roughly
inversely proportional to bit rate. The length of control network entirely depends on application. For
example a DCS network for controlling an Autonomous Guided Vehicle (AGV) may span up to a few
meters embodying a countable number of nodes, where as control solutions for the automation of a
multi-storied building or production line may span up to a few hundred metres integrating thousands
of nodes. Typically, the range of communication link in a DCS network is around 1000 metres.
Scalability, extendibility and modularity Scalability is defined as the ability of a system to
evolve from small scale to large scale. Extendibility is the ability to add new functions into a system,
thereby advancing the capabilities or performance of the system while minimising the need for
redesign. It is desirable that new or improved sensors, actuators, communication links or human
interface devices have to be added without the need for major change in control system hardware or
software. Modularity is a property of a system that is to be decomposed into a set of cohesive and
loosely coupled modules. Alterations, enhancements and additions to an existing design only require
changes to or addition of a few discrete modules. Modularity provides a great deal of flexibility.
Scalability, Extendibility and Modularity can be accomplished with DCS implementation.
Programmability Writing control code for the field devices in low level language is an error
prone and time consuming concern as control networks might require thousands of different kind of
executable codes to meet the control objectives. DCS platform can facilitate programmability.
464
Mechatronics: Principles, Concepts and Applications
13.12.3 Summary
For large systems there has been a trend away from centralised control implementation due to the
reasons mentioned in the previous section. Further, advances in embedded micro-computing have
enabled processing to be distributed to the device/field/local level of a control system. Within DCS,
individual sensors, actuators, valves and other devices at the field level must be able to interact with
each other via controllers (nodes), supervisory controller, host computer, or other intelligent
controllers such as PLC and PC etc. The design and implementation of DCS systems consider three
major elements such as,
· Target application platform such as process/plant/system. Typical application platforms are
robots, CNC machines, cranes, assembly lines, production lines, conveyor systems, engines,
vehicles, AGV, packaging plant, just to name a few.
· Electronics such as processor, transceiver, communication media, I/O interfaces, etc.
· Development tools such as host computer with OS and application software. Development tool
plays an important role within the control arena. Control systems are designed by the use of
such tools. For example, control codes, (i.e., application task for the controllers) are developed,
compiled, debugged, downloaded into the controllers with the aid of such tools. After the
design is over the system can be monitored.
Operating systems
Software tool
Programming language
Target application platforms
(Plant/Process/System)
Development tools
DCS
Host computer
Control network (Hardware)
Controllers
Fig. 13.19 Elements required for the design and implementation of DCS
465
Development Tools and Concepts
Host Processor
Node-1
Channel / Network Node-7
Router node-6
Node-2 Node-3 Node-4 Node-5
Tables 13.3, 13.4 and 13.5 show some of the important fieldbuses and their characteristic features.
Table 13.3
Comparison of some buses with respect to services provided to the layers of control
hierarchy
Control Hierarchy Services should be Services provided by
(from top to bottom) available/desired
Factory File transfer, program to program LON, Ethernet, MAP
Production routing, remote access and control
Process Task-to-task, reconfiguration (logical) LON, Profibus, Ethernet, SP50
Cell Event handling, read-write device LON, CAN, Profibus, FIF
program down-loading
Field Analog, Digital and Real-time devices LON, Sensor Bus, CAN, Profibus,
(sensors, actuators, etc.) Bitbus, SP50
Table 13.4
Some Fieldbuses and their characteristics-I
Name of Fieldbus Year Min. Max. speed Comm. Method/ Medium
(developer) started/ speed (kb/s) topology
introduced (kb/s)
ARCNET (Datapoint) 1977 19.53 10000 PP/ S,B, DS CX, TPW, OF
AS-I (AS-I Consortium) 1993 MS/ B, R, T, Sr TPC
BACNet 76.8 MS TPW
Bitbus 1984 62.5 375 TPW
CAN/CANopen (CAN 1989/95 5 1600 PP, MS, MM, MC/ CX, OF, TPW
in Automation) TL, D
ControlNet (Allen- 1996 5000 PC, DOM/ Lr, T, Sr CX, OF
Bradley)
DeviceNet (Allen- 1994 125 500 MS, MM, PP/ TL,D TPW
Bradley) 9.6 1536 MM, TP TPW, PL, RF, IF
EHS
Ethernet Ind.
(DEC, Intel, Xerox) 1976 PP/ B, Sr, DC CX, TPW, OF
FIP/WFIP 1988 31.25 1000 MS, MM, TP/ B TPW, OF
(WorldFIP)
Foundation Fieldbus 1995 31.25 CS, PS, EN / Sr, B TPW, OF
H1 (Fieldbus Foundation)
Interbus
(Phoenix Contact) 1984 500 MS/Sg TPW, OF
LON (Eclelon 1986/91 78 1250 PP, H/ B,R, Lp, Sr TPW, PL, RF,OF, IF
Corporation)
Modbus+ (Medicon) 1000 PP/Lr TPW
Contd.
467
Development Tools and Concepts
Device object model, EN=Event notification, H=Hierarchical, MC= Multi cast, MM=Multiple master,
MS=Master slave, PC=Producer consumer, PP=Peer to peer, PS=Publisher subscriber, S=Star,
TP=Token passing;;; B=Bus, D=Drop line, DC=Daisy-chain, DS=Distributed star, L=line, Lp=Loop,
Lr=Linear, Md=Multi drop, R=Ring, Sg=Segmented with T, Sr=Star, T=Tree, TL=Trunk line;;;
CX=Coax, IF=Infrared, OF=Optical fibre, PL=Power line, RF=Radio frequency, TPC=Two wire
cable, TPW=Twisted pair wire.
P
A
S
Redundant
T layers
N
D D
P P
Fig. 13.21 Illustration of ISO/OSI layers, general fieldbus layers and LonTalk layers
13.13.2 Benefits
Potential benefits of adopting a fieldbus based DCS control schemes can be summarized as follows:
The sharing of the processing load is achieved. This avoids the bottle neck of a single centralized
controller.
· The scheme replaces the complex point-to-point wiring harnesses in lieu of networking. It can
reduce the weight and assembly costs.
· It provides freedom to vary the number and type of control nodes on a particular target
application in order to easily modify its functionality.
· Technology has the ability to individually configure and test segments (a segment is a part of
the entire system) of the target application before they are combined together. The building and
testing of each node or segment can be performed separately.
469
Development Tools and Concepts
· The architecture offers interfaces for data exchange between the run-time control system and
other factory or business systems, e.g. statistical process control, management information,
remote diagnosis, etc.
On-line testing
Control problem analysis
Virtual connection
Individual testing
DCS validation
Individual installation
Fig. 13.23 A typical integration of data and control network for monitoring and control of
target applications
· Computer has become a vital tool as far as design and development of mechatronic systems are
concerned.
· In order to provide computer assisted automated environment the computer must be equipped
with control interface, appropriate software tools and systems, and active control devices such
as sensors, actuators, signal conditioning circuits, microprocessors and microcontrollers, Data
Acquisition (DAQ) cards, etc.
· A computer is an electronic device for the fast, accurate processing of data or information
under the control of a stored logical sequence of instructions called a software program.
· The main task of a computer is to get data, process it and generate a result.
· Electronic memory is a place where the computer stores programs and data.
· Within a computing environment, when a program is run, each instruction in the sequence is
fetched from memory and executed within the CPU.
· The amount of RAM in the computer is crucial in that it determines how many programs can be
run, and how much data is available for each program.
472
Mechatronics: Principles, Concepts and Applications
· The contents of the RAM disappear when the computer is turned off. ROM is a non-volatile
memory. System data (computer’s own data) are usually stored in the ROM.
· CDs rely on LASER (Light Amplification by Stimulated Emission of Radiation) technology to
read and write the data on the discs.
· Communication ports and slots (e.g. Serial port such as RS-232, RS 422, RS 485 and USB,
Parallel port, ISA and PCI slots) are the interface through which the I/O devices are linked with
the CPU residing on the motherboard of the computer.
· Software is a program that the user runs in the computer to perform various tasks. There are
diverse ways of categorizing the software; broadly they can be grouped under two categories
such as operating system software and application software.
· An operating system (OS) is a system program that controls the hardware and other software
of the computer. In summary, the OS manages the resources such as application software,
data, files, information and peripheral hardware such as floppy drive, hard drive, CD drive,
printer, scanner, etc.
· Application software is the software, which the user uses for various applications such as
document preparation, drawing and design, data acquisition and control, program development,
message transfer, engineering simulation, etc.
· Broadly three types of OSs are seen; namely General Purpose Operating System (GPOS),
Distributed Operating Systems (DOS) and Real-time Operating Systems (RTOS).
· The Inter Process Communication (IPC) capabilities of the OS enable to share data with each
other.
· The main difference between the multitasking and multithreading is that in former case the
notion of simultaneous operation is in between the application software where as in latter case
the simultaneity is within the application software itself.
· The need for Distributed Operating System (DOS) arises only when the computer resources
are apart from each other, i.e. when they are found to be, geographically distributed.
· Timeliness refers to meet deadlines.
· The real-time system has to react to all possible events in a predictable way, i.e. after an event
(interrupt) has occurred an action must be taken within a pre-determined time limit.
· Simultaneity refers to meeting all interrupt deadline if more than one event has occurred
simultaneously.
· Dependability refers to self-relying.
· High-level language is close to human-like language. Every HL language must have a compiler.
· Compiler is a program that reads a program written in one high-level computer language, called
the source language, and translates it into an equivalent program in another language, called the
target language.
· Using accurate mathematical models of the system the design engineer simulates the operation
of the systems and generates or verifies actual task before its real design. This can be achieved
by the use of simulation software. Some of the simulation software are MATLAB, Simulink,
ANSYS, DOT, etc.
· Drivers are the programs, which make it possible to use the peripheral devices such as
keyboard, mouse, printer, monitor, floppy drive, hard drive, LAN (Local Area Network) card,
modem, DAQ card, etc.
473
Development Tools and Concepts
· A DBMS facilitates accessing, inserting, updating, and deleting data in a secured manner. The
choice of database software is influenced by two factors such as the volume of data to be
managed and the number of transactions required per second.
· A CAD software is used to create complex drawings by the use of computers.
· Client-server conformant application software can give greater viability to distributed
processing.
· Object-oriented (OO) design view is a methodology for the development of software. Objects
are the basic building blocks in the development process. A software can be designed by
segmenting the entire problem domain into number of objects.
· The features like data abstraction, encapsulation, inheritance and polymorphism facilitate
transparency, reuse, extendibility, portability, size and complexity involved in the process of
software development.
· Computer network is a network of computers.
· Local Area Network (LAN) is a general-purpose computer networking system, containing a
group of geographically distributed computers that communicate with each other by message
packets through transmission links.
· Physical layer describes the physical medium used to carry data. Data-link layer provides
services as far as management of routing of data to the correct destination is concerned.
Network layer routes the packets in a heterogeneous networks environment. The transport
layer accepts data from the session layer. The session layer deals with creating a session,
transmission of data and cancellation of the created session. Presentation layer deals with
syntax and semantics of transmitted data. Application layer provides user with access to
network and uses network services to perform activities such as file transfer, queries, network
monitoring and management, etc.
· Industrial computers inherit many added features to encompass the real-time constraints.
· All control architectures comes under three categories, namely, Centralised Control Systems
(CCS), Distributed Control Systems (DCS) and Hybrid Control System (HCS).
· DCS architecture consists of several autonomous but interactive processors that perform
sensing, monitoring, control and other applications at different points of interaction or
measurement.
· A node consists of a microprocessor to execute task, RAM/PROM/EEPROM for storage of
data/code/protocol, etc.
· Response time is the length of time it takes for an event detected by one node in the network to
cause an action to occur in another node. Response time, less than a millisecond is tolerable for
many types of industrial machines, instrumentation and process control applications.
· A fundamental enabling networking technology in realizing DCS is referred to as fieldbus
technology. The fieldbus technology is a digital control networking system, which includes
hardware and development package.
· The fieldbus protocol does not include all the services of all the layers of ISO/OSI model. This
is an essential requirement of almost all control networking systems. The reduced version of
the ISO/OSI layers aid strong real-time requirements.
· Some of the major fieldbuses are LonWorks Technology, CANbus, FIP, WorldFIP, ISA, IEC,
ISP, HART, P-NET, BACNet, DeviceNet, Bitbus, EHS, Profibus, SP50 and many others.
· Total automation is the interface of data network with the control network.
474
Mechatronics: Principles, Concepts and Applications
Development workbench such as computer platform and software tools and systems play very
important role in every aspect of mechatronics design. Mechatronic systems are to be built,
designed, monitored, controlled and simulated using good varieties of hardware and software
tools, workbench (platforms) and techniques. This chapter describes the basic architecture of
a computer by explaining the detail infrastructure. In particular, the chapter attempts to
describe the following.
· Basic building blocks of an IBM compatible PC type computer.
· Computer communication interfaces and standards
· Operating systems
· Application software
· Software methodology and principles
· Computer networks
· Industrial computers
· Distributed control systems
· Fieldbus technology
· Web-based monitoring and control
LOOKING AHEAD
After studying the underlying architecture in terms of hardware and software infrastructure of
the computing workbench, the students are directed to learn the principle of modular designs.
Components-based design is a new concept of modular design that is being used for the
design of systems of interdisciplinary nature. It adheres ideas, methods, tools and techniques
of every part of discipline involved. This concept has been introduced. Moreover, the concept of
system validation is defined in that chapter. Fault Detection and Isolation (FDI) and Diagnostics
and Prognostics (DAP) are the two main topics studied under validation. Chapter fourteen also
describes the validation methods and their implementation principle.
EXERCISES
13.7 What is the utility of having a hierarchically structured memory in a computer system? Arrange
the different memory hierarchies according to increased values of speed, size and
implementation cost.
13.8 Differentiate cache memory and virtual memory.
13.9 Write notes on the following:
(i) Input/Output devices
(ii) Communication ports and slots
(iiii) ISA/PCI slots
13.10 Distinguish between machine language and assembly level language.
13.11 Briefly discuss the schemes used for transferring data between a computer and the external
environment, mentioning the advantages and drawbacks of each. For each scheme, list the
situation where it can be used.
13.12 Define software.
13.13 Define operating systems.
13.14 Classify the operating systems and explain.
13.15 Distinguish between operating system and application software.
13.16 Write short notes on the following:
(i) Compiler
(ii) Assembly language
(iii) Dedicated application software
(iv) Development tool
(v) Simulation software
13.17 Explain the role of compiler in a digital computer.
13.18 What do you mean by an algorithm? Explain how algorithm is useful in problem solving.
13.19 What do you mean by driver in the context of computer?
13.20 Write notes on the following.
(i) CD/CAM
(ii) Database
13.21 What are the desirable features of a database management systems?
13.22 What do you mean by client-server architecture?
13.23 Differentiate between procedural programming and object-oriented programming concepts.
Describe the important features of object-oriented programming. Give examples of at lease two
object-oriented programming languages.
13.24 Explain the advantages of adopting object oriented design methodology employed in the
software engineering.
13.25 What is the role of ISO/OSI model?
13.26 What do you men by ISO/OSI layers? Explain in detail.
13.27 Differentiate between Local Area Network (LAN) and Wide Area Network (WAN).
13.28 List out the layers and their services.
13.29 Why have industrial computers have taken birth?
13.30 Name some standards of industrial computers.
13.31 With neat diagram and distinguish between two types of control architectures.
13.32 Draw a schematic diagram of a distributed control system.
476
Mechatronics: Principles, Concepts and Applications
14.1 INTRODUCTION
Components-based design is a new concept that is being used for the design of systems of
interdisciplinary nature. It adheres ideas, methods, tools and techniques of every part of disciplines
involved. In general sense, the components-based design philosophy provides a logical basis for the
implementation of a methodology for realising control system for mechatronic systems. It can be
stated that components-based development refers to the technology, methods, and tools that enable
construction of machine control systems.
Validation is a process of assessment of the performance of the system. Fault Detection and
Isolation (FDI) and Diagnostics and Prognostics (DAP) are the two main topics studied under
validation. Validation is an area of technological development offering enhanced performance,
productivity and environmental protection.
In summary, this chapter describes,
· The components-based design philosophy and
· The validation methods and their implementation principle
Components can be divided into two main categories, namely; software components (SC) and
hardware components (HC). Within the mechatronic systems, hardware components can be designed
around devices such as sensors, actuators, switches, valves, etc. A sensor, an actuator, controller,
router, drive, switch, etc. when installed with executable codes for specific purpose, can be defined
as hardware components. Software components can be designed around system level development
and management functions, such as compilation, field programming, management, graphical user
interface (GUI), configuration, simulation, etc. Any development tools, which could be used to
generate control code (source code), build application images (object code), install nodes
(configuration of node onto a network database, for instance), binding (logical binding of nodes) of
RDV (Real Data Variables) can be considered as software components. Code Development Tools
(CDT), Network Management Tools (NMT) etc. are examples of software components. Some of the
components, which have broadly been identified within the control environment, are shown in
Fig. 14.2.
480
Mechatronics: Principles, Concepts and Applications
A component is an independently deliverable package for services. Every component has the
following three divisions:
· A specification, which describes what a component does,
· An implementation design, which describes how it does it, and
· An executable, which delivers that capability on a designated platform.
In summary, components-based system is considered as:
· A design methodology for achieving reusable and responsive machine control systems
· Purpose-based control construction
· An open systems based approach
Re-usable and responsive systems To meet the demand for developing agile and responsive
machine control systems not only in operational but also in configuration aspects, properties within
the control system such as, connectivity, re-configurability, scalability, extendibility and software
481
Components-Based Modular Design and System Validation
reuse ability are some of the attributes to which such systems should contribute. The identification of
the ‘perfect design paradigm’ can be considered as the holy grail for the system design community.
In the software context, the approach is called Components-based Software Development (CBSD).
The ability of reuse through components-based approach has a major influence on the structure of
software systems as well as on the way systems are built. Building software with components
promises more reuse and higher productivity. Software development costs are increasingly becoming
the major factor in total system costs. CBSD is a promising solution intended to break up gigantic
software systems into interoperable components, reducing complexity and maintenance costs through
the modular components.
Purpose-based Control The major facet of a components-based approach is that it provides the
system developer with control-specific as well as purpose-based application frameworks and
reference architectures. For example, an actuator component is considered control-specific when
used as a simple actuator. However, when fault diagnostic features are included within the actuator it
can be said to be control specific as well as purpose-based. The components-based design is much
more than simple collections of generic blocks or interfaces. They can generally be built for specific
purposes thereby requiring methods and schemes that the components can fit into. For example if
fault detection and isolation features need to be incorporated within the actuator component, it is
necessary to investigate Fault Detection and Isolation (FDI) methods and schemes.
Open Automation Another objective of components-based design approach is to meet
interoperability. Benefits that can be obtained are
(i) Connectivity, (ii) Field-level programming, (iii) Creation of virtual processes and components,
called simulation environment.
· Connectivity An important aspect of a components-based approach is the communications
infrastructure through which the components can use well-defined ways to interact with each
other, and with commonly provided services. This infrastructure is specified in a technology
form in which the development of the application control logic is neatly separated from the non-
application specific requirements, e.g. communication services, device interfaces, and system
management etc. Control solutions can then be designed, sourced and configured from multi-
vendor supply sources using standardised communication interfaces, protocols, messaging and
data format. Application specific solutions can be realised using the most able and cost effective
components. Fieldbus technology has been widely applied in a number of industrial sectors.
CANbus in some automotive designs and in manufacturing industry; Profibus in the textile
industry, LonWorks in building automation, FIP in factory automation, etc. With such
approaches the wiring and installation costs are greatly reduced. Maintenance of plant and
equipment is simplified and the connectivity capabilities can be significantly improved.
· Provision of a field-programming capability The provision of field-level programming and
re-configuration is seen as essential in allowing the user to have a role in determining the
specificness of a machine or system or even a component. It is perceived that this can be
realised effectively through rewriting the run-time image (messages and data flow between
components) of the mechatronic systems, which governs the linking of executable
components.
· Creation of virtual processes and components The definition of virtual is based on concepts
of ‘presence’, which refer to the sense of being in an environment, generated by natural or
482
Mechatronics: Principles, Concepts and Applications
mediated means. A Virtual Component (VC) is the replica of a real component. Virtual Process
is the activity of a designer by the use of VC within the Virtual World (VW) in order for
visualisation, manipulation, refinement and interaction. The visualization part refers to the
computer generating visual or other sensual inputs within the VW. This world may be a graphic
model, a scientific simulation, or a view into a database. The user can interact with the world
and directly manipulate and refine the system within the world.
it must have capabilities for fault accommodation, i.e. have fault detection and isolation capabilities,
which can respond in a short time under adverse conditions. Fault accommodation is an important
aspect of validation and a challenging problem. The approaches encompass a diverse collection of
technologies and disciplines such as expert systems, neural networks, fuzzy logic, machine learning
and discrete event systems. A fault detection scheme should detect as many true faults as possible,
while triggering as few as possible false alarms. In addition, the delay time between a fault occurrence
and fault detection should be small.
14.3.3 Smartness
Rapid advances in measurement science not only introduce innovative sensing and actuation
technology, but also offer low-cost, rugged and reliable components compatible with industrial
environments. Measurement components are gaining ever-increasing significance in all modern
industries and play a crucial role in acquiring prerequisite information for supervision, control
optimisation and interpretation. As the effective operation of the control or monitoring system depends
completely upon the data received from the sensors, in the system, any failure leading to inaccurate
measurement is undesirable and indeed sometimes intolerable. Until recently only the continuous
contact between a measurement and the control system has been the unidirectional flow of
measurement data (usually based upon 4-20 mA). It is understandable that sensor components have
been viewed from the control point of view as simple signal generators and their data are assumed to
be correct unless over-ridden by extraordinary actions (e.g. by an operator). This single stream of
information has been used in a variety of ways; for monitoring the process, for feedback control, and
also for ensuring safety through the use of hard-wired trips. However, there is no inherent information
about the strength or credibility of the signal. Modern control system needs potentiality or gravity or
more accurately validity (Fig. 14.3) of the measured signal in order to make decisions whether or not
to use the input measurement from the sensor.
Similarly, performance of the actuators can be adversely affected by a number of factors including,
but not limited to, friction, fluid leaks, packing stiction, wear, miscalibration and discrete component
failure in the positioner or signal transducer. Generally, a degrading positioning function is
accompanied by deterioration in actuator responsiveness and control. On-line diagnostic test in terms
of comparing the actuators current parameter data as manufactured data is required in order to quickly
point out patterns of deteriorating factor and conditions.
13.3.4 Sustainability
In recent years, new concept such as sustainability has emerged within machine and product
manufacturing domain. Sustainability is a decision-making scheme for the purpose of maintenance of
484
Mechatronics: Principles, Concepts and Applications
the product, damaged by environmental impact, while the needs of the present are met without
compromising the needs of future generations. Life Cycle Assessment (LCA) is a process;
(i) to evaluate the environmental impact, burdens associated with a product, process, or activity by
identifying and quantifying energy and materials used and wastes released to the environment; (ii) to
assess the impact of the energy and materials used and released to the environment; (iii) to identify and
evaluate opportunities to affect environmental improvements.
The assessment includes the entire life cycle of the product, process activity, encompassing,
extracting and processing raw materials; manufacturing, transportation and distribution; use, reuse,
maintenance; recycling, and final disposal.
The life cycle or “cradle to grave” concept now appears in many disciplines. Incorporating life
cycle concepts into the design of products, say mechatronic products, generally involves three steps.
First, an inventory of relevant environmental burdens is assembled. This inventory will typically
encompass all materials used, wastes generated, emissions released and energy expended over the life
cycle of a product or production system. Once an inventory is assembled, the relative environmental
impacts of each of the inventory elements are established. Finally, after the current features of the
product or production system are assessed, improvements can be identified and evaluated. The
participants in the LCA and Design for Environment (DfE) workgroup have identified the clue that
supports the development of tools for assessing and improving the environmental performance of
products and production systems. These clues are grouped into three major categories, namely;
(i) inventory data and data assessments, (ii) data and models for impact assessment, (iii) design
tools for improving environmental performance.
The LCA idea has now penetrated into electronic products manufacturing industries. Today the
electronics and electrical waste are burnt or dumped because recycling is a problem. Further, many
companies for example Xerox has estimated that a sum of $500 million a year could be saved if the
photocopier components are re-used. CARE (Comprehensive Approach for the Recycling of
Electronics) Vision 2000 is a Eureka project, whose aim is to develop a method and procedure to
recycle electronics waste.
Manufacturing and processing constitute the most significant elements of the industrial sector in
contributing to the economy and also have the greatest potential impact on the environment. The
sustainability and recyclability idea has recently been introduced within the mechatronic systems. As
the products or machines have been built with the basic hardware components such as sensors and
actuators, the LCA vision has been extended into the machine systems in order to analyse the
environmental impact on the devices, components or machines. This leads towards sustainability.
14.4 VALIDATION METHODOLOGY
Apparently, the validation principles are highly applicable to devices such as sensors, actuators,
switches and so on. Through component validation, machine or system validation schemes can be
realised. The validation scheme adopts, fusion techniques (or hardware redundancy), limit value
checking, statistical methods, model-based method, spectrum analysis and Artificial Immune Network
(AIN) based approach. Appropriate schemes are selected, depending on the application, e.g. whether
it is for the sensor or actuator component. The validation scheme begins with the development of a
well-defined specification of requirements. The scheme suggests the following principles.
· Integrated approach
· Design independence
485
Components-Based Modular Design and System Validation
Control algorithm
and FDI algorithm
Target control system with sensors, actuators, Target control system with sensors, actuators,
switches, valves, displays, etc. switches, valves, displays, etc.
(a) Conventional approach (b) Integrated approach
Component validation
Information Digital
technology technology
Manufacturers' design
(sensor, actuator, valve, etc.)
Machine
Switch
Actuator Sensor Actuator Sensor Valve
A centralised system is inherently not flexible and cannot easily be extended or enhanced. As a way
forward, distribution of task is seen as an effective way of dealing with system complexity and
487
Components-Based Modular Design and System Validation
configurability. For the benefit of overall efficiency, the validation scheme should not conflict with
higher control levels. The realization of effective smart control solutions using component level
distributed diagnostics has been a challenging new domain into validation schemes. The advances in
recent years in fieldbus technology and embedded computing technology have allowed intelligence to
be distributed to the component or device level of a system, offering a greatly enhanced flexibility in
segmenting and aggregating control systems. Assuming the availability of in-built processing power
to perform self-diagnostics, it is reasonable to ascertain that abnormal information or malfunctions
can be found within components. The validation scheme is at the lowest level of a hierarchical control
stack (Fig. 14.7). The method ensures a consistent design approach, which prevents the propagation
of any component faults to the loop level.
Network level
Loop validation Network validation
Loop level
Validation at the local level provides a cost-effective and flexible alternative. With the above in
sight, a detailed investigation into the problems of local component validation and an attempt to
improve the status quo in this field are worth pursuing from both an economic and technical
viewpoint.
from the simplest sensor to the most complex manufacturing system. If we look at the key
components of the system, namely; controller, bus structure, I/O, networks, operating system,
programming methods, human-machine interface and even the devices themselves, each has its own
breadth of openness. The goal is to provide an approach for the development of solutions using open
automation system products in which standard products of different vendors can be used. Open
automation system can offer promising possibilities for the implementation of diagnostic capabilities
within in an inexpensive way.
Operational knowledge
on the components
Scheme selection
Identification of
Validation Modes (VM)
Mapping
Algorithm development
Installation
Scheme selection Selection of a validation scheme plays an important role for a particular type of
component, i.e. whether the component is a sensor or an actuator. Even within a single component,
implementation of multiple schemes can also be considered appropriate. For example, consider a
servo pneumatic actuator system. This system is an electromechanical system, which typically
consists of a piston-cylinder (mechanical) body, which incorporates control devices such as a valve
(which is again an electromechanical system), encoder, limit switches and/or pressure sensors used
for control and feedback purposes. As a whole, this integrated system can be thought of as a
mechatronic system. In order to find out adverse symptoms in relation to the cylinder such as (i)
piston is not moving, (ii) moving in wrong direction, (iii) stopped at mid stroke, etc. limit value
checking based methods can be considered suitable. Furthermore, in order to validate the whole
system, it is necessary to validate other components such as sensors, valves, switches etc. integrated
with it. Sensor fusion or hardware redundancy principle, statistical approach, spectrum analysis can
be applied to sensors and microswitches.
Definable validation modes and their representation A device is declared faulty, if some
adverse symptoms are observed. Knowledge is required both from the component manufacturer, to
determine what the fault is and how it affects the control systems, and from the operator or control
engineer, to determine the impact on plant operation of the loss of measurement quality and to select
an appropriate operational response. Validation Modes (VM) represents the type of fault or
combination of faults within the system. In the case of sensors VM could include spike fault, constant
fault, threshold fault, etc. whereas in the case of actuators the VM could include, actuator not moving,
490
Mechatronics: Principles, Concepts and Applications
stop at the mid-stroke etc. In order to map the Validation Modes and faults within the system, various
aspects have to be considered; such, as,
(i) What are the kind of Validation Modes a sensor/actuator might exhibit? (ii) What form should
the diagnostic data take? and (iii) How is the diagnostic data generated and interpreted ?
Symptoms of faults Determining the appropriate operational response to a component fault is
more complex. It should be noted that measurement quality (in the case of a sensor) is needed to
determine the impact on the control system.This is because the plant operation is not dependent on the
sensor itself, but rather the measurement that it generates. There is a complex relationship between a
component fault and a resulting error, if any. This relationship becomes more complex as diagnostics
become more sophisticated. For example, if a sensor generates several different measurements, then
a single fault in general affects each measurement differently. This relationship between faults and
measurements of course varies between component technologies and is at least slightly different for
comparable products from different vendors. If the vendor provides only a device-specific error code
then the user is left with the job of mapping from component fault to measurement consequence.
However, few users have assessed to the required vendor’s knowledge of sensor faults and
measurement quality. By far the most suitable delivery vehicle for this knowledge is the component
itself, which can carry out a detailed analysis of the current fault condition to derive the impact on
each of its measurements.
“Set of methods, tools and means using data coming from various sources of different nature, in
order to increase the quality (in a broad sense) of the requested information is called data fusion”.
This definition is broad. Another definition is as follows.
“Data fusion is a formal framework in which there are expressed means and tools for the alliance
of data originating from different sources, and for the exploitation of their synergy in order to
obtain information whose quality cannot be achieved otherwise”.
In most practical applications the combined information of two or more sources of complementary
data can be greater than the sum of the parts. This is found to be true when imagery data needs to be
annotated for location, obstacle/object identification, or when maps and imagery need to be overlaid
for better identification of lines of communications. It could be shown that the performance of
automatic machine exploitation and identification techniques improve dramatically when
complementary data is combined and is used as the input to the decision-making system such as
Expert Systems (ES). In the context of autonomous vehicle, multiple sensory systems should be
provided in order to avoid catastrophic disaster that always expected. A typical data fusion scheme
for better understanding of the environment has been illustrated in Fig. 8.20. Data-fusion systems can
also be developed with a distributed philosophy. By fusing and correlating sensors information about
the environment, the expert system could produce detailed analysis. The expert system should thus be
able to perform the following:
Low-Level Image Processing
Change-detection,
edge and region
extractors, etc. Scanning system Other sensory
systems
QUALITY OUTPUT
Object detection
EXPERT SYSTEM
Proximity sensor
Image Processing
Vision Vision
Crowding evaluation, Vision system Other sensory
Intruder tracking, (camera) systems
motion estimation,
object detection
Fig. 14.9 Typical data fusion scheme in a typical semi-autonomous vehicle (SAV) for
better understanding of the environment
492
Mechatronics: Principles, Concepts and Applications
· While mechatronic systems have grown in complexity, there has been a drive towards using
modular approaches in the design of systems.
· Components-based design is a new concept that is being used for the design of systems of
interdisciplinary nature.
· In generalized sense the components based design philosophy provides a logical basis for the
implementation of a methodology for realising control system for mechatronic systems.
· Object oriented methodologies in software engineering have many similarities to components-
based design.
· A components based approach facilitates; (i) Easy modifications and improvement to the system
as needs change, (ii) Ease of maintenance, (iii) Improved functionality and performance,
(iv) Enhance properties in terms of interoperability, scalability, extendibility and reusability and
(v) Faster customisation.
· A component is a hardware or software entity with an identifiable boundary which can be
designed to perform certain functions and which can be used to compose more complex entities
for a given purpose.
· Components can be divided into two main categories, namely: software components (SC) and
hardware components (HC).
· Components based system is considered as a design methodology for achieving reusable and
responsive machine control systems, purpose-based control construction and an open systems
based modular approach.
· Validation is a process of assessing a system or component’s performance with regard to any
abnormal situation.
· The need for validation can be categorised under four headings, namely, step towards total
automation, safety, smart system and sustainability.
· Manless plant can be considered as an attribute of total automation.
· The technological drive towards the manless plant and processes demands greater intelligence
in terms of availability and reliability of the devices and machines.
· Environment, health and safety legislation/regulation on company liability requires greater
assurance that failures can be quickly detected and isolated before endangering the environment
and human life.
· Modern control system needs potentiality or gravity or more accurately validity (Fig. 14.3) of
the measured signal in order to make decisions whether or not to use the input measurement
from the sensor.
· Life Cycle Assessment (LCA) is a process (i) to evaluate the environmental impact, burdens
associated with a product, process, or activity by identifying and quantifying energy and
493
Components-Based Modular Design and System Validation
materials used and wastes released to the environment; (ii) to assess the impact of the energy
and materials used and releases to the environment; and (iii) to identify and evaluate opportunities
to affect environmental improvements.
· A typical validation scheme must have methodological features, such as integrated scheme,
design independability, distributed environment with field level implementation, open systems
scenario and comprehensive.
· A validation scheme for a system the design process follows two stages, namely; learning stage
and commissioning and tracking stage.
· Data fusion is a formal framework in which there are expressed means and tools for the alliance
of data originating from different sources, and for the exploitation of their synergy in order to
obtain information whose quality cannot be achieved otherwise.
While mechatronic systems have grown in complexity, there has been a drive towards using
modular approaches in the design of systems. Components based design a modular concept
that can be employed for the design of systems of interdisciplinary nature. This chapter
describes the principles of components based design. How the design philosophy provides a
logical basis for the implementation has been narrated in detail.
The chapter has been divided into two parts. The first part describes the components based
design concept and the second part describes the concept of validation, a way forward to
intelligent control system design based on distributed modular approach. In particular the need
for validation under the heading of step towards total automation, safety, smart system and
sustainability have been presented. Moreover, validation methodology in light of integrated
approach, design independence, distributed environment with field level implementation, open
systems based and comprehensive approach have been the topic of discussion.
LOOKING AHEAD
Mechatronics is the synergistic integration of many disciplines such as mechanical,
electronics, control engineering, etc. in the process of product design. In present scenario the
technological development requires simultaneous knowledge of discrete fundamentals.
Synergistic integration is solitarily logic based integration as it was stated in the Chapter 1.
Combined action and cooperation increases effectiveness and productivity. In view of this, the
knowledge gained up to now has to be implemented by integrating the disciplinary knowledge
in terms of software, hardware, tools, methods and techniques. In particular, the integration
should deal with issues involved with coupling microcontrollers, computers and associated
measurement systems for achieving desired requirements. Chapter 15 includes some
examples of mechatronic systems enlightening the principle of such integration. In summary
the chapter describes a deeper insight into the subject matter. This chapter is an extension of
the first chapter in terms of detail technical touch and understandings.
494
Mechatronics: Principles, Concepts and Applications
EXERCISES
15.1 INTRODUCTION
Integration is a process of incorporation of methods, tools, sub-systems and ideas in an optimized
manner. This chapter fills the gap between the theoretical study and practical implementation. The
knowledge gained so far has to be implemented by integrating the software, hardware, tools, methods
and techniques. Apparently, the chapter includes many examples of mechatronic systems in terms of
design concepts, technical know how and understandings. Some of the examples have been tested in
real platform so as to enable the reader to build deeper insight into the concepts of integration.
15.2 BACKGROUND
From control prospective, mechatronic systems require sequential control applications and a wide
range of devices depending on task requirements. In these systems I/O is predominately binary 24
volts DC. Actuators are typically in the form of electric motors, pneumatic cylinders, depending on
the loads involved with limit switches, infrared, cameras, proximity sensors or microswitches
providing feedback signals. Sequentially controlled machinery have a generic set of essential
requirements in terms of coordination, synchronization, acknowledgement, timing etc. In addition to
achieving the required sequence of operations it is vital that safety, error recovery, diagnostics and
operator information requirements are also satisfied. The following list highlights some of the features,
which the mechatronic control system should satisfy.
· Interlock Checking: Before any movement the current position of related mechanical units
must be determined to avoid collisions.
· Time Out Checking: If a mechanical drive unit has not completed its movement/cycle within
the expected time an error has to be indicated.
· Status Display: At each step in the sequence, an application relevant message can be displayed
to the operator.
· Error Messaging: Each step in the sequence has an associated list of messages to display when
any error has been detected.
Besides real-time performance and the cost per components, there are other two factors to be
considered while integrating the machine systems.
· Ability to change the number and type of control components on a particular machine in order
to easily modify/extend its functionality, and
· Ability to individually configure and test components of the machine before they are combined
together,
Mechatronic systems design require engineering knowledge in several technology domains. The
systems design has to integrate mechanics, electronics, control engineering, embedded hardware and
software into the machine. This requires effective concurrent design processes.
major groups; electromechanical actuator and fluid power actuators. Figure 15.1 illustrates how
recently a paradigm shift has been occurred as far as development of advanced actuators are
concerned. A standard actuator in its basic form only possesses the control algorithm. However, an
advanced or smart actuator is much more than this. It integrates auxiliary features such as condition
monitoring, fault detection and isolation scheme, digital technology, microelectronic and nevertheless
the open system standards as illustrated in the Fig. 15.1.
Paradigm shift
A A 1. Microelectronics
Standard Standard 2. Digital system
actuator actuator 3. Distributed control
4. Open standards
Table 15.1
Motor characteristics
Brushed DC Brushed DC Induction Brushless Switched Induction Stepper
& converter & PWM motor and DC & AC reluctance Motor under
controller inverter FOC
Torque range < 3kNm < 200Nm < 1.5kNm <120Nm <2.5kNm < 1.5kNm < 12Nm
Speed range 9krpm 9krpm 10krpm 100krpm 5krpm 10krpm 3krpm
Power range M W 100kW MW 100kW MW MW kW
Torque ripple < 10% <2% < 5% <5% < 10% < 5% < 50%
Torque at
zero speed Rated Rated Poor Rated Rated Rated Good
Base speed WF - Yes WF - Yes No Possible No Yes No
extension PM - No PM - No
Power density WF medium WF medium Medium High Medium Medium Low
PF high PF high
Acoustic
noise Medium Medium Low Low High Low High
Motor drive
complexity Moderate Moderate Moderate High High High Low
Price Moderate Moderate Low High Moderate High Moderate
Environment
tolerance High High Very high Industrial Very high Industrial High
Maintenance
requirements Regular Regular low low low low very low
Open loop
capability No No No No No No Yes
Velocity
control
bandwidth < 20 Hz < 150 Hz < 5 Hz < 150 Hz Low < 100 Hz Low
The characteristic parameters can be obtained from the manufacturers data sheet, and if the
parameters are not provided, a test procedure has to be carried out in order to obtain them. It is thus
necessary to have it stored in memory as priori. Then the physical parameters are measured on-line.
Applying sensors for measuring the position, speed, torque, voltage, current, etc. it is possible to
estimate the characteristic parameters from the physical parameters on-line. On-line estimated
parameters are compared with the stored parameters which have already been obtained from data
sheet or determined by the experiment to detect and isolate faults and hence to provide validation
index.
Implementation schemes differ from application to application depending upon what kind of
diagnostic features are to be accommodated. In theory, although failure identification methods are
simple to understand, but in practice diagnostic scheme is not economical. This is because the
practical diagnostic scheme involves the measurement of physical parameters such as resistance,
torque, voltage, current etc. To measure AC voltage/current and resistance, galvanometer type
expensive instruments are necessary. To measure the torque, a torque meter, is essential. In some
499
Integration
Voltage/Current
Torque meter Temperature
measurement Hall device Encoder
sensor
device
d
b c
Figure 15.4 illustrates the principal elements of a typical pneumatic system. One can see that the
actuator is interfaced with other three major elements such as a controller, feedback sensors and a
valve. The feedback sensors could be a limit switch, and/or encoder, and/or pressure sensor. Other
requirements include the compressed air supply, pressure regulation, transmission pipes and possibly
a local reservoir for stabilising the pressure supply to the actuator.
It seems that the conventional use of pneumatic actuators still remains dominant in low cost
automation systems. The perception of pneumatic actuators is changing as they are now increasingly
being considered for more complex industrial processes and systems where high performance
capabilities are the desirable parameters. The application boundaries of pneumatic actuators depend
on many influencing factors. The widespread use of pneumatic systems indicates the enormous
potential if improvements can be made in terms of:
· Control algorithms and modeling which are required to deal with nonlinear properties to achieve
good servo control.
· System packaging; the way the actuator is packaged plays an important role in determining the
manner in which the actuator is used and therefore how well it is accepted by the users.
· Self-diagnostic capability; fault tolerance validation capability.
The problems associated with these actuators are:
· Because of environmental condition, it is not an easy task to maintain the compressibility factor
of the supply air constant with respect to time.
· The problem of friction compensation.
· The non-linear behaviour.
system. It is seen that the basic concepts of motor control systems falls under three categories,
namely; torque control, speed control and position control. The position and speed information are
usually obtained from the encoder. The current information is obtained from the current sensors.
These signals are converted to digital form by the use of A/D converter prior to feeding them to the
Digital Signal Processor (DSP).
Current
Speed
Position
Fig. 15.5 Basic feedback system configuration of a typical motor control system
super human performances at peak efficiency. It would not be wrong to state that almost all research
works in Robotics are intended to achieve the physical docility and intellectual independence. In
general, it is very difficult to define a robot. When in application, robots are in continuous interaction
with the surrounding environment. This is achieved through sensor-mediated, computer-controlled
interpretive systems that exclusively emulate human capabilities. The Robotics Industries Association
(RIA) has defined the industrial robot as follows:
“A robot is a software-controlled mechanical device that uses sensors to guide one or more end
effectors through a programmed motion in a work space in order to manipulate physical objects.”
Another definition of a robot is (Courtesy: EFY, August 2002),
“An industrial robot is a reprogrammable, multifunctional manipulator designed to move
materials, parts, tools or special devices through variable programmed motions for performing a
variety of tasks.”
There are various types of robots in the practical field of application. One of the classifications is
based on whether they are fixed or mobile. Accordingly, they are:
· Fixed robot
· Mobile robot
The fixed robot has its base clamped to ground or platform and they are immobile. They do not
have any locomotive system. They include a controller and are used for a specific task. Some of them
are also controlled remotely.
The mobile robot on the other hand has a movable body. It is more difficult to build a mobile robot.
There are various parameters, which have to be considered while developing a mobile robot. The
mobile robot must have a locomotive system. If the movement is to be carried out over a smooth
ground, wheels or tracks are usually to be chosen.
Some mobile robots are controlled remotely. The remote control communicates with the robot
through an attached wire called guided wire, radio or infrared signals. Remotely controlled robots are
useful for exploring dangerous or inaccessible environments, such as the deep sea or inside a volcano.
Mobile robots help the mankind in a number of ways. Some explore other planets or inhospitable
areas on the Earth, collecting geological samples. Others seek out landmines in former battlefields.
The police sometimes use mobile robots to search for a bomb, or even to apprehend a suspect. Mobile
robots also work in homes and businesses. In future the hospitals can use robots to transport
medications. Some museums use robots to patrol their galleries at night, monitoring air quality and
humidity levels. The most prospective use of the mobile robots is in the field of navigation. The real
challenge lies in imparting intelligent locomotion to robots rather than guided motion.
15.7.2 Controller
Every robot is connected to a computer, which keeps the pieces of the arm working together. The
computer along with software development platform is known as the controller. The controller
functions as the heart of the robot. The controller also allows the robot to be configured with other
systems, so that it may work and coordinate together with other machines, processes, or robots. The
controllers run the programs, a set of instructions, logically linked, written in code by taking the
advantage of using the development platform. In many situations the programs are developed at
commissioning stage and on-line and in some cases the robots are entirely pre-programmed. The
controllers with artificial intelligence (AI) make robots more self-reliant and independent.
End effector
CAMERA
Joints (Actuator)
Arm
Controller
Interface
Infrared sensor
Vehicle Body
Controller
End effector Wheels
BASE
(a) (b)
15.7.3 Drive
Drives or actuators are part of the control element that acts under the command of the controller and
translates the signal from the controller to the operational units in order to perform final action.
Actuators of a robot have a direct influence on the task for which the robot is designed. They cause
the end effectors to move in workspace. Electric, pneumatic and hydraulic actuators are the most
popular driving units.
Theoretically, any type of electric motor can be used but only the direct current (DC) servomotor
and the DC stepping motor are the preferred choice for robotic systems. DC motor has the important
advantage of providing torque that is virtually independent of position and speed of the motor,
depending only on the field coils and armature. Torque is proportional to the current in the armature
and speed depends only on the supply voltage. The stepping motor is particularly well suited for
precise positioning purpose. Stepping motors allow a digital electrical signal to be converted directly
into an incremented angular positioning movement. The stepping motor is synchronous, so there is a
correlation between the input command and the resulting position. There are three types of stepping
motors. They are:
· Motors with permanent magnet rotors
· Motors with variable reluctance
· Hybrid motors or polarized reluctance motors
505
Integration
Typically, pneumatic or hydraulic pistons move functional unit of the robot back and forth. The
pistons attach to different segments. It is a requirement in getting all the pistons to work coordinately.
Moreover, it is essential to figure out the right combination of piston movements in order to do the job
properly.
15.7.4 Arm
The arm is the part of the robot that positions the end-effector to do their pre-programmed task.
Robot arms come in all shapes and sizes. Many robot arms look like human arms, and have the parts
such as shoulders, elbows, and wrists, even fingers. By virtue of programming, this gives the robot a
lot of ways to position the parts of the arm in its environment. The point of meeting of two different
parts of the arm is called joint. Each joint is said to give the robot one degree of freedom. An industrial
robot can have upto six joints to form an arm. It has the equivalent of a shoulder, an elbow and a
wrist. Characteristically, the shoulder is mounted to a stationary base structure. The robot having six
degrees of freedom, can pivot in six different ways. A human arm, by comparison, has seven degrees
of freedom.
Thus, a simple robot arm with three degrees of freedom can be able to move in three ways,
namely; UP and DOWN, LEFT and RIGHT, FORWARD and BACKWARD. Many industrial robots
have up to six degrees of freedom. The number of degrees of freedom of an arm is equal to the
number of terminal segments. Alternatively, a segment can have six degrees of freedom when its
position at any given moment becomes fixed using six independent variables. Positions are described
by nautical angles that defines the orientation relative to a fixed trihedron and by coordinates. A
segment when connected bilaterally to other segments can have six degrees of freedom or less.
15.7.6 Sensor
Sensors play an important role in functioning of robots. Sensors are basically measurement devices
that translate one form of signal into another. They are used in the robots for feedback purpose. The
feedback system helps in guiding the robot end effector along the proper path for proper operation
and can also help to avoid collisions with obstacles. Moreover, they are required for compliance
estimation, helping robot to detect whether the target object is hard, rough, or brittle so that proper
force or torque can be used while handling the target object. Sensors are classified as,
· Internal state sensors
· External state sensors
Internal state sensors are basically used for detection of variables that help in identifying orientation
of the tool tip and manipulator joints. External state sensors are used for detection of variables such as
the range of the target or the concerned object of interest to be picked or moved, proximity of the
target, and touch for the target. These help in guiding the robot for object identification and handling,
506
Mechatronics: Principles, Concepts and Applications
etc. In another way, robotic sensors are divided into three categories depending upon the areas of
application.
The application areas are visual inspection, part finding and controlling manipulator (arm). The
visual inspection of parts includes identification of parts, detection of burrs, cracks, bend, voids,
examination of cosmic qualities, inspection of surface finish, calculation of number of holes,
measurement of length, breadth, depth, diameter, curvature etc., inspection of correctness and
completeness of assembly, and so on.
Within the domain of material handling and assembly operation, it is necessary to find the parts
from a pile of occluded objects or unstructured environment. Finding of parts requires identification
of the part and determination of position and orientation. This can be achieved by the use of visual
sensor. Visual sensors are optical or electro-optical and consist of cameras and scanning systems that
employ measurement of intensity and range data. Providing vision to a robot is a very lively prospect
of sensory system. Cameras and scanning systems are mostly digital type. These devices are usually
fitted near the end effector of a robot.
Feed-forward robotic system does not require any sensory devices controlling the manipulator.
However, in order to maintain high precision usually at high cost, feedback sensory devices have to be
integrated within the robots for the control of both simple and complex manipulative operations.
Noncontact such as visual sensing and contact such as force, torque and touch sensing schemes are
usually applied. Noncontact sensors are proximity sensors, electro-optical imaging sensors and range
imaging sensors. Contact sensing technology is achieved by the use of force sensors in the links and
hands of the manipulator and essentially applied for collision avoidance. The motion of the robot
(manipulator) is stopped when the preset force threshold is exceeded. Contact sensors are used for
packaging, insertions (screw, shaft, pegs, bolt, etc.), searching, grasping, and moving etc. operations.
Different types of force sensors are strain gauge, piezoelectric, magnetostrictive, and magnetic and
others. Moreover if the joints of the robot are driven by DC motor then the force and torque acting on
the joint can be found out by measuring the armature current. Similarly, if the joint is driven by
pneumatic or hydraulic actuator then sensing is carried out by measuring the back-pressure. Typical
touch sensors are microswitches. These switches are called binary touch sensors due to the fact that
the output is either on or off. Another type of touch sensor is called analog touch sensor. It is a device
whose output is proportional to local force. These sensors are mounted on the inner surface of the
gripper or finger to measure gripping force and to take out information about the object inside the
gripper/finger.
The central processing unit is concerned with data processing. The operational unit is the physical
robot itself. It takes action on the workspace by using, transforming and/or acquiring energy from the
suitable source(s) and reacting to the signals and commands provided by the sensory systems and
central processing unit. The block diagram of the central processing unit and operational unit has been
shown in the Fig. 15.7.
Measurement
Robot Control
devices
Robot element
Operational (sensors)
CPU
unit
Computer
Workspace workspace controller
Robot can perform various tasks like handling and conveying objects, transformation, assembling
of objects, dismantling of object, measuring, teleoperation, etc. The function of a robot is defined not
only in terms of task but also in terms of its workspace, for instance constraints imposed by its
surroundings, characteristics of the objects involved in the task. Next, the objects involved in each
task should be characterized according to size, shape, weight, temperature, state of surface, internal
composition, flexibility and so on. Thus the variety of tasks and working conditions determine the
effective use of the robot. The robot controller can also be realized by the use of microprocessor and
microcontroller.
The microprocessor and microcontroller chips are can often be integrated to represent a control
level. This is when a programmed controller operates upon the peripherals of the robot. We find such
robots in applications such as industrial production line applications. However, the concept of a
programmable robot and in a more broad sense an intelligent robot is realized by splitting the hierarchy
into the two levels. The microprocessor feeds on software, i.e. program codes in a suitable language.
It processes the set of instructions to produce executable code, which the microcontroller can execute
when initiated by the microprocessor.
The microcontroller also acts as the interface between the operational units and program being run.
The operational units include mechanical parts, which provide locomotion and object handling
capability, as well as sensors, which help the robot to adapt to its working environment. The
microcontroller serves to communicate the callbacks or interrupts generated by these operational
devices to the program being run.
newer technologies like soft computing based (artificial neural networks,) artificial intelligence, etc.
This would broaden the field of application of the robots to areas out of human reach but also result
proliferate robotic replacements to human posts in large scale. This sounds to be a boon for industrial
progress though the common man would be at the receiving end.
Automation and robotics are two closely related technologies. In industrial context, automation
concerns mechanical, electronic, and computer-based systems used for operation and control in
manufacturing, production, engineering, processing and other fields. Robotics play an important role
in process control and automation. Industrial automation can be classified into two categories:
· Fixed automation
· Programmable automation.
Fixed automation is used in high-volume production for a specific purpose. Since the cost of
production of the specialized equipment is divided over a very large number of units manufactured,
fixed automation is economical compared to other production methods. Fixed automation is also
known as hard automation because the model has to be retooled after the end of production cycle.
Programmable automation, on the other hand, comprises use of computer-controlled mechanical
systems where production volume is very low and a variety of products are to be made. In this case,
the production equipment is designed to adapt itself to variation in product configuration by operating
the equipment under the control of a program or software instructions. The source code is required to
make the equipment operational. The cost of equipment is spread over a large number of different
products that are manufactured in small batches.
Programmable automation consists of a system of multi-degree-of-freedom manipulators and
sensors under computer control, which can be programmed, primarily by software to perform
specified jobs by reprogramming. Most manipulators in use today are point-to-point manipulators,
which perform a variety of pick and place jobs and spot welding. Some industrial robots are
continuous-path manipulators, which are used in arc welding, paint spraying, and so on. Various
operations of manipulators are grasping, holding, orienting, inserting, aligning, fitting, screwing,
turning, and so on. A major limitation of these manipulators is their primitive sensory feedback.
Commercially available industrial robots have neither contact sensors (force, torque, and touch
sensors) as aids to manipulation, nor contact sensors (visual and range sensors) as aids to recognition,
inspection, or manipulation of workpieces.
Extensive research in machine intelligence has provided tools, techniques, and concepts. The work
has been developed and demonstrated for complex systems of integrated effectors and sensors to
guide a manipulator by using computer-processed contact and noncontact sensory feedback. Machine
intelligence research has been primarily directed at finding general methods that demonstrate
principles, and relatively little attention has been paid to questions of computational cost that of major
importance to industrial applications. A number of research and development programs are now in
being with the specific goals of exploring, applying, and expanding machine-intelligence techniques
and concepts to programmable automation. Concurrently, inexpensive yet powerful minicomputers
and microcomputers are now becoming available, making it possible to control integrated sensor-
manipulator systems that can be economically justified.
509
Integration
Human input
O
P Human visual
Strategic level
system Communication system
E Human intellect
( operator)
R Communication
A system
T
O Human input A
(joystic) A
R d c
Perception a Navigation t
TV rough path
p i
KB t
Perception o
Laser scaner i Behaviour
base n
KB v
Perception e c
Ultrasonic sensor
E
Pre-defined o
N KB
routing planing n
V Battery monitoring Perception F s
I i
KB e
R l
Another sensor Perception q
O Obstacle
t u
N KB avoiding
e e
M Perception
r n
E KB Position
holder c
N Perception e
T
KB
Perception Movement
commands
Guidance KB
wire Tactical Level
antenna
Safety sensor Pulse encoder Wheel control Servo drive Level
The servo-drive control component makes it possible to adapt the control system to load
variations on the actuators and changes parameters of the drive. Tactical control component
perform the task for providing optimum rules of the robot motion in the environment. This
means generation of the new motion trajectories if it is not possible to use the predefined one
for reaching the target position. The dynamic characteristics of the actuators and the
environment parameters must be taken into account. The strategic control component plans the
expedient robot behaviour based on knowledge about the surrounding. Sensing components are
responsible for information perception, pre-processing and transferring to the tactical and
strategic level.
With these views in hand the control architecture can be segmented into components. When the
compound components are segmented or decomposed we find many co-operative base components
such as sensors, actuators and so on within the systems. A solution to component-based approach of
designing the control system of AGV can be seen from Fig. 15.9.
511
Integration
M PC PC
N2
N1 N3
N4 N5
N6 N8 N9 N10
N7
for developing control code (NodeBuilder) and application for serving as Network Management Tools
(NMT).
The field devices such as sensors, actuators etc. can communicate each other for control level
interaction via Neuron chip-based node by the use of LonTalk protocol. Neuron chip is a 8-bit VLSI
microcontroller that executes the control task at the field level and can interact with other Neuron
chip-based node within the control network. The connections among the Neuron chips (off-line
design) are made with the help of NMTs. The control code for the devices can be written in Neuron
C language; a derivative of ANSI C and can be downloaded after being developed, complied and
debugged by a software called NodeBuilder.
START
no Is PCB at the
workbench ?
yes
yes
Job done ?
no
Drill the PCB as per specification
A DCS network with five nodes has been designed for the operation of the drilling machine. Three
nodes each containing a Neuron chip processor and peripheral circuits and devices such as
transceiver, I/O interfacing, sensors and encoders were developed in order to control the position of
the shaft along the three axes. The nodes are co-operative in the sense that the node along with control
code can be used for position control of any actuator and therefore can be interchanged. Node
number 4 (N-4) is responsible to control the AC motor and fifth node is used to control the gripper
jaws with the help of a proximity sensor that detect the arrival of the PCB board at the workbench.
The control network has been optimised to 5-node based DCS system by making the use of LonWorks
fieldbus. If situation demands more nodes can be networked. Fig. 15.11 shows distributed control
network for the three-axis platform for drilling PCB board. It should be noted that reliability scheme in
terms of self-diagnostics has been incorporated in all the devices.
Host Computer
LCA Object Server
NetBuild component
NetInstall component
NetMonitor component
WindowsNT
VisualBasic
Network card
from Echelon
CONTROL NETWORK inside
N1 N2 N3 N4 N3
x-controller y-controller z-controller motor-controller gripper-controller
Typical MHS used within industry are cranes, conveyors, AGVs etc. The material handling system
considered here is a conveyor system which includes conveyor belt, Pick-and-Place robotic
workstation, control components such as, a single phase AC motor, a temperature sensor, two
microswitches and a colour sensor. The demonstration application involves the loading of product
from the conveyor into defined containers. The conveyor system is a link conveyor used in an oval
circulating configuration. The conveyor belt is tooled with equally spaced work pallets, which locate
and hold the product during transportation. A pick-and-place robotic workstation is used to load and
unload the product from the conveyor system to and from storage containers. The products are
coded and stored according to a colour-coding scheme. The control sequence is illustrated in
Fig. 15.12. In the sequel, the role of the control components and their interactions within the system
are described.
Start
Yes
No
Is CV value of the temp.
sensor > 75 % ?
Yes
Stop the motor
Job Done ?
No
Is Switch1 true ?
Yes
A Single-phase AC motor is used to drive the link conveyor. The motor is coupled to the conveyor
through a reduction gear-box. The nominal operational speed of the motor is 1200 revolutions per
515
Integration
minute, which translates to a linear speed on the conveyor of 8 revolutions per minute. The conveyor
is tooled with equally spaced work pallets, which locate and hold product during transportation.
The nominal operating speed of the conveyor is 9.144 metres/minute. A complete re-circulation of
the conveyor takes 42 seconds at the normal operating speed of the drive motor.
The role of the Pick-and-Place robot is to pick up a product when it arrives at the pre-defined
location and to place the product in the appropriate storage container. The robot consists of six axes
such as column, shoulder, upper arm, lower arm, wrist unit and gripper and is controlled from a PC
through an RS232 serial link. The control software contains library functions as commands, which
can be used to program the arm. Turbo Pascal was used to program the robot arm in this
demonstrator system. The arms are driven by three servomotors and the wrist and gripper are driven
by further three motors.
The role of the color sensor in this material handling system is to,
(i) detect if the product is present, (ii) identify the type of product from the color and assign a color
code, (iii) inform to the robotic workstation.
According to the colour code pick-and-place robot store the product within the container. The
color sensor is an industrial type. It is a compact and self-contained unit utilizing a low power 24 VDC
@ 250 m.A. The color sensor is based on optical detection.
In many process applications temperature sensors are used to trigger alarm signals when threshold
levels are reached. Thermisters were used to monitor the temperature of the AC motor. A threshold
value was assigned to the temperature sensor. If the temperature exceeds the threshold value then the
motor would be shut down.
Two microswitches were used in this study. Switch-1 is attached with the conveyor belt and
Switch-2 is fixed at the robot zed. When the product strikes Switch-1’s lever, it sends a signal to the
motor to stop to drive the belt and activates the robot’s pick-and-place algorithm sequence.
Switch-2 fixed at the robot’s zed provides a signal to the motor to drive the belt again once the pick-
and place operation is completed.
Rotary optical encoders are placed on motor shafts to provide position feedback information on
servo control. The role of encoder is to measure the speed of the motor. A rotary optical encoder was
used in this study. Figure 15.13 illustrates the schematic diagram of this conveyor-based material
handling system and control.
15.10.1 Validation
Self-diagnosis or device validation has long been a major research area. Research work at Oxford
University in the context of Sensor Validation (SEVA Program) can be considered as the origin of the
device validation. A device is considered intelligent if it has the capability of producing some sort of
validation pointer (validation is a process of assessing device performance). A low cost integrated
solution (control and validation) to this effect has been achieved. In this context, prospective to
intelligent devices is elaborated in the section below. The reliability in terms of validation scheme with
regard to temperature sensor, color sensor, microswitches, motor, and conveyor have been designed
and incorporated in this integration study. Fusion scheme was adopted for the validation of
temperature sensor and color sensor; counter-based scheme was adopted for switch validation and
parameter-monitoring approach was adopted for motor validation.
516
Mechatronics: Principles, Concepts and Applications
LonWorks Network
Packing
box Robot controller
N2 N1
N3
Interfacing
circuits
Interfacing Interfacing
circuits Interfacing
circuits
Switches Temperature
Smart sensor
switch Colour sensor Motor
Pick and place robot
Objects Supply side
Fig. 15.13 Production line automation with LON based reliable DCS network
The validation modes are represented in a term called Certaintiness Value (CV). The operational
behavior of the CV value can be attributable to;
(a) CV is the pointer which provides information about the health of the sensor, (b) The
performance of the sensor is rated by CV, (c) The value describes the validity of quality of the
measurement which is generic and device independent and (d) CV can be used by the control system
to take operational decisions in response to any validation mode.
The CV value is expressed in %age. The validation scheme is developed and five validation modes
are tested. Figures 15.14 and 15.15 illustrate the role of colour sensor and validated colour signal
based on fusion technique. Originally, three phototransisters were used corresponding to each primary
colour. However, nine phototransisters, three for each primary colour were fused together and the
output was calibrated using standard colour code.
Yes
Start inspection
Validated inspection
Inspection finished ?
Yes
1. Sensor fusion technique
Assign a colour code 2. Use of CV LEVEL
3. Indentification and Isolation
of sensor validation modes
4. Audio Alarm
Phototransisters
Light
Latch C
a
l
Filters Phototransisters
i
b
Latch r
a
t Validated colour
Filters Phototransisters i
o
n
Latch
Colour Sensor
· Counter-based Microswitches are on-off type devices. Switch signals are very important
in the sense that a faulty switch can cause fatal errors in the production environment. False
signals might get generated accidentally or because of mechanical faults (spring wear etc.).
Switches fail to give correct response if its alignment is not proper, the actuating lever has been
bent or damaged and so on. Counting method has been proposed in order to overcome such
problems to some extent. Counting methods are based on the measurement of time-interval
between switch operations. When the object arrives the lever of the switch is deflected and
thus the switch opens the contact and when the object passes the switch it again closes. Thus
there is a time interval (from close-to-open-to-close) involved in the switch operation and the
interval is normally a constant value. The time interval can be obtained and stored as a priori.
The stored count can be compared with the run-time value in order to indicate fault conditions.
The approach is integrated conformant in the sense that both control and validation algorithm
resides in the form of a component called switch component.
· Parameter-based Reliability, with respect to actuating systems, can be improved through
self-diagnostics in terms of validation. Parameter estimation approach based self-diagnostics is
one of the ways to validate actuators. Parameter estimation approach is based on a formulation
of model equation using parameters such as viscous friction, dry friction, resistance of the
armature coil etc. On-line parameters are compared with the stored parameters (obtained from
data sheet or determined by the experiment) to detect and isolate fault conditions. That is, the
reliability is modeled to effect on the operation of the process via parameters. The status of the
motor is monitored by continuously comparing the identified parameters with the reference
parameters. An implementation scheme is developed and tested with the electric motor driving
the conveyor. Actuator Validation Modes (AVM) within the motor is shown in the Table 15.2.
519
Integration
All these modes degrade the motor performance and hence the system performance. The way
these AVM are detected can also be seen from this table. Figure 15.16 illustrates the validation
algorithm.
Table 15.2
Actuator validation modes and their identification methods
Actuator Validation Modes (AVM) Identification by the use of
AVM-1; Motor jam armature current/voltage, speed
AVM-2: Motor armature coil failure armature current
AVM-3: Speed decreasing motor speed, conveyor speed
AVM-4: Speed increasing motor speed, conveyor speed
AVM-5: Power supply failure supply terminal
AVM-6: Temperature in the motor is beyond threshold temperature sensor
Yes Is motor
running ?
Calculate speed No
Yes
Is temp.>= Th.?
Compare the
speed with the No
Shut down motor
nominal speed
speed< nominal speed speed> nominal speed
AVM-6
Is supply
voltage OK ?
AVM-4 Yes
AVM-3 speed= nominal speed
Test current
No
No fault AVM-5
No
Is current
flowing ?
AVM-2
Yes
AVM-1
15.10.2 Design
The control sequence of the considered system is illustrated in Fig. 15.12. LonWorks fieldbus-based
DCS network with required control sequence were designed as illustrated in the Fig. 15.13. Three
nodes were designed along with interfacing circuits, shown in the Fig. 15.17 (a-d) and are described
below.
Colour Sensor Interface circuit Colour sensor was interfaced with the Neuron chip based
node through Gizmo-3 I/O board that comes with the NodeBuilder development tool (Fig. 15.17 (a)
and (b)). The colour sensor was initially calibrated using standard colours. The colour table (a map of
some common colours) was used for basic calibration of the colour sensor.
N
Filters Detectors E C
Gizmo-3 Board U P
R o
Product O r m
Light N o m P
Network
Channel-1 c u o
Channel-2 C e n
Channel-3 H r
I s i t
P s c
A/D Converter
o a
I/O r t
P s i
O o
Colour sensor R n
T
Phototransister PT 510
1 8
10 K
2 7
Non-inverting
1K 3 6 Output
Inverting
4 5
−'5V
1M
Robot interface circuit The interfacing between the RTX controller (PC) and LonWorks system
was achieved through USB (A USB port is a port that is incorporated into a computer conventionally)
of the PC (Fig. 15.17 (c)).
Parallel port
Conveyor
Interface board
Processors
Communication port
Network
Motor interface circuit Interface circuit for motor node is illustrated in the Fig. 15.17 (d). The
motor can be started and emergency stopped manually by pressing the manual buttons. The motion
can also be reversed when required. The circuit diagram of the Relay Box can be seen in
Fig. 15.17 (e). The relays are equipped electronic circuitry in order to prevent high-voltage spikes in
the Relay Box terminals, which cloud destroy the nodes connected to it.
Control codes for each node are written in Neuron C language. Neuron C is designed for Neuron
chip and the use is very simple and flexible due to the existence of Network Variables (NV) and when
clauses. NVs simplify data sharing among nodes and when statements introduces events and defines
the temporal ordering of these events. Predefined accessible I/O functions were also used for writing
the application code.
Regardless of the system complexity, the distributed system design methodology involves problem
identification, decentralization, development and testing. The stages involved are illustrated in
Fig. 13.22. The nodes are installed and configured (logical binding) by using LNS (LonWorks
522
Mechatronics: Principles, Concepts and Applications
Run (Manual)
Manual/Auto
− 0V
Neutral
Manual
− 240 V Run
Earth Auto
+ 24 DC
GND
Run
Earth
Dir
Run (Auto)
Network Service) operating systems, a platform for developing the network management tools. LCA
(LonWorks Component Architecture) Object Server (LCAOS) which provides functional objects for
the development of WindowsNT/95/98/2000 based network management tool were used as the basis
for the design of network management tool which serves for the installation and configuration of the
said control network.
15.11 DISCUSSIONS
This section discusses various issues in the prospects of the outcome of this insight study. In essence
prospective of,
· Fieldbus-based DCS solution
· Selecting a fieldbus out of many
· LON-based DCS solution
· Structuring of control task
· Device validations through integrated approach are elucidated.
Further, the discussion in terms of quantifying relative advantages and disadvantages of various
techniques, schemes and platforms provide vital and useful information for the readers so that they
can evaluate to guide their choices.
simulation (aircraft flight, earthquake, metal fatigue), embedded applications (copy machines and
high-speed printers), nevertheless industrial control and micro-manufacturing sectors where fast data
processing is desired, e.g. monitoring and control of high speed systems such as spindle systems,
micro-positioning and alignment applications, etc. The signal processing architecture has so far been
mostly based on DSP boards and architecture. Although the DSP performance is very high in this
application field, the resultant architectures are often proprietary. At the same time it is worth to
mention that, most of such bus architectures entertain centralized based control implementation.
Although some of the bus systems are capable of being configured onto multiprocessor distributed
systems, the overall installation cost is obviously high as compared to fieldbus based control
implementation.
On the other hand, functioning as relay replacements, the PLCs systems are more reliable than
relay-based systems, largely due to the robustness of their solid-state components. PLCs provide
material, installation, troubleshooting and labour cost savings by reducing wiring and associated wiring
errors. They occupy less space and their ability to be re-programmed increase flexibility and simplicity
when changing control schemes. In contrast, PLC-based automation is considered as centralized
system, which has its own loopholes such as central failure. As a consequence, a need to break the
control process down into components based on I/O-bounds (described below) is found as another
alternative so as to improve flexibility further. These in turn have been leading to a more decentralized
approach to control solutions. The optimum choice is feildbus.
to improve the overall performance of the systems. A device designed with self-diagnostics or
validation property can be considered as a validation component. This feature should be an integral
part of DCS scheme in order to advocate intrinsic reliable DCS (IRDCS). However, potential research
work is a prime requisite to answer how the devices within the DCS system would accommodate
self-diagnostics features. Schemes for implementing self diagnostic features into the devices are
found to be:
(i) artificial immune network (AIN), (ii) spectrum analysis, (iii) model-based, (iv) fusion-based,
and typical-device oriented schemes.
Although, the theoretical frameworks of first three validation schemes are studied potentially,
however, practical implementations, in the context of industrial automation and control, have not yet
taken momentum to that effect due to the reasons that such techniques require powerful signal
processing tools and methods for the analysis of device signals. In order to use the developed novel
validation ideas and schemes the semiconductor manufacturers should come forward to manufacture
VLSI chips embedded with validation algorithms.
Given validated sensors, actuators, switches, it is natural to move toward network validation in the
DCS systems. That is, moving from a centralized system solution to a distributed solution introduces
a different set of validation and robustness issues, in particular issues of network liveliness must be
addressed. Questions like
(i) how does the system know if all the nodes are working correctly, (ii) whether or not the
physical connection exist after installation, (iii) if a node becomes isolated what does it do, etc. will
arise.
The fieldbus protocols manufacturers are to include network validation algorithm into their
product. It is worth noting that LonWorks system inherits network validation features. However, not
all fieldbuses possess the network validation feature.
Interest in diagnostics is now moving into fields where the impetus behind the scheme is not only
improvement in safety but, reduction in cost. A cost effective solution for device validation could be
achieved by employing integrated approach (i.e., control task as well as validation task in one
platform). This sort of approach is possible with fieldbus platform since a node to some extent could
possess a powerful processor.
· The pneumatic actuators have inherent ability to provide a low cost, compact, safe and simple
operation. Other notable features are simplicity in mechanical structure, reliable driving
capability, low moving mass, faster response, no heat dissipation problem and ability to operate
in high temperature environments.
· The control valves are mechanical devices with electrical modules, e.g. solenoid driver valves
requiring an electrical signal to operate.
· The processor-based motor control systems are called ‘software servo’ which means the
required control processing is implemented by software without using much electronic
circuitry.
· Robot is a mechatronic system, able to replace or assist man in carrying out a variety of
physical tasks.
· A robot is a software-controlled mechanical device that uses sensors to guide one or more end
effectors through a programmed motion in a workspace, in order to manipulate physical
objects.
· One of the ways of classifying the robots based on whether they are fixed or mobile. The fixed
robot has its base clamped to ground or platform and they are immobile. The mobile robot has
a movable base.
· For a machine to qualify as a robot, it should have a controller, drive or actuator, sensor(s), arm
and end effector.
· A robot arm can have shoulders, elbows, and wrists, even fingers.
· Each joint in a robotic system gives the robot one degree of freedom.
· To function, the robot requires, workspace, source of energy and source of information.
· Programmable automation in the context of robotics consists of a system of multi-degree-of-
freedom manipulators and sensors under computer control, primarily by software to perform
specified jobs by reprogramming.
· Autonomous Guided Vehicle (AGV)s are used for transporting material in industry, warehouses
and underground mining and are also used for exploration of the oceans and space, etc.
· Components-based design concept is seen as the suitable approach to design the control
systems for mechatronic systems.
· The material handling is the movement, protection, storage of materials and products
throughout the process of their manufacture, assembly and distribution.
· Drilling machines and conveyor-based material handling systems are also mechatronic systems.
· Rotary optical encoders are placed on motor shafts to provide position feedback information on
servo control.
· A device is considered intelligent if it has the capability of producing some sort of validation
pointer (validation is a process of assessing device performance).
· Sensor fusion based validation implements at least three identical devices.
· Certaintiness Value (CV) is the pointer, which provides information about the health of the
sensor.
· Regardless of the system complexity, the distributed system design methodology involves
problem identification, decentralization, development and testing.
· Distributed control is appropriate when the I/O points are dispersed. Each I/O point (or group
of I/O points) can be defined in terms of nodes. Each node includes a processor, making each
device a smart device capable of executing control code of it’s own and auxiliary functions.
528
Mechatronics: Principles, Concepts and Applications
This chapter discusses the integration methods in a broader sense. Smart motorized and
pneumatic actuator integration methods have been presented. In particular typical pneumatic
actuator system for servo control applications have been defined in terms of ‘software servo’.
Other examples of mechatronic systems such as consumer electronic products, hydraulic
fingers, surgical equipments, industrial robot, mobile robot, AGV, drilling machine, conveyer
based material handling systems, etc. were the subject of discussion from integration point of
view. The chapter also dealt with the distributed control scenario of machine systems. Further
facet of validation was studied and realized within the application platform. Typical hardware
interfacing and signal conditioning circuits, wherever necessary were developed and shown.
Moreover the chapter discusses various issues concerning the integration procedure.
LOOKING AHEAD
Although integration procedure adopts methods, tools, sub-systems and ideas in an optimized
manner, but a complete design strategy fills the gap between the theoretical study and practical
implementation. The content of the last chapter is considered to be the most important as far
as the design strategy of mechatronic systems are concerned. In the design and demonstration
study an example of a high-speed spindle systems has been taken. High-speed spindle
systems (HSSS) are used in the production cells for machining, micro-machining, milling,
drilling, data reading and recording applications with the aerospace, heavy industry, consumer
industry, and in many manufacturing sectors. These machines are having a reputation of not
being highly reliable over a period of time due to the effect of decoupling and misalignment,
unbalancing and vibration, thermal deformation, centrifugal force-oriented deformation and so
on. Because of high-speed operations, contrast to other low-speed rotary machines, in
practice, the design and construction of such machines is complex in nature and the process
requires insightful strong interdisciplinary theoretical and practical knowledge base.
EXERCISES
15.10 What is an industrial robot? With the help of block diagram describe different component of a
robotic system.
15.11 What are the commonly used configurations of robots in the context of the degrees of freedom?
15.12 Describe the linear and rotary drive mechanisms used in the robot manipulator.
15.13 Discuss about the robot based automation scheme.
15.14 What is the need of sensor in robotics? How are the sensors classified? Name three important
types of sensors for robots.
15.15 What are the functions of external and internal sensors?
15.16 Distinguish between a robot and AGV.
15.17 Give an overview of AGV architecture.
15.18 Design the AGV control scheme fully utilizing on components-based methodology.
15.19 What should be role of fieldbus technology in implementing control strategy in case of a
machine?
15.20 Design the control architecture of the following systems by adopting DCS philosophy and by
implementing fieldbus technology.
(i) Drilling machine
(ii) Conveyor based material handling systems
15.21 What are the possible ways of implementing validation scheme in a conveyor based material
handling systems?
15.22 From the integration point of view discuss the following aspects form the prospective of:
(i) fieldbus-based DCS solution
(ii) selecting a fieldbus
(iii) LON fieldbus based DCS
(iv) Structuring the control task
(v) Self-diagnostic devices
15.23 Describe the integration of control methodology used in the flexible manufacturing.
15.24 What do you mean by flexible manufacturing? What are the components of flexible
manufacturing systems?
15.25 How are productivity and product quality influenced by incorporation of automation in
manufacturing systems?
15.26 Why is the present trend towards flexible automation rather than fixed automation?
15.27 What kinds of actuators are used in case of NC or CNC machines?
15.28 State the role of the computers in controlling a machine(s).
15.29 Explain the system concept of production and productivity.
15.30 Explain the basic production improvement techniques.
16
Mechatronic Design Strategy:
An Example with High Speed Spindle
and development processes, which are considered to be paramount important for the manufacturing
of a real mechatronic product. The researchers and practitioners can critically evaluate the methods,
techniques and ideas used here. This chapter considers many aspects of design constraints coherently.
In particular, the chapter focuses on,
·HSSS modeling (dynamic, thermal and fault),
·Custom-built spindle design considering the thermo-electromechanical constraints,
·Intrinsic development of fault detection and isolation under DAP (diagnostics and prognostics)
scheme,
·Implementation of Sustainability and Evolution Assessment (SEA) scheme as an advancement
to DAP,
·Methods and realization of flexible control strategy (including application software) and, remote
monitoring and control in terms of interfacing data and control network.
The expanded meaning of mechatronic design strategy includes the following attributes.
·Introduction to conventional spindle machine systems.
·In order to study the characteristics and thus to predict the performance of HSSS, modeling is
obviously needed. The model represents the dynamic properties. A complete thermo-
mechanical modeling approach adhering information about the flow of power from the input
through the output has been presented. It also includes the effects of non-linearity and the
losses.
·Since the HSSS must be able to withstand complex dynamic load conditions and operate at a
wide speed range with wide range of cutting forces (for machining) a study on thermo-
electromechanical behaviour must be carried out. This will fulfill the requirements for
optimization of design parameters for improved operational performance of the spindling under
many circumstances. CAD and sophisticated optimization tools are used for the custom-built
design of spindle system for high-speed operation, i.e. above 20,000 RPM.
·The design strategy accommodates Diagnostics and Prognostics (DAP) or FDI (Fault Detection
and Isolation) scheme in order to improve the reliability. Various FDI methods and approaches
and their relative merits and demerits have been studied. From the review, it was perceived that
model-based and spectrum analysis based FDI schemes are suitable for this sorts of machine
systems.
·High resolution and precision machines must not tolerate vibration. Since HSSS are susceptible
to vibration because of improper coupling, non-uniform shaft density, varying stiffness of the
ball bearings and many other factors, advanced anti-vibration balancing methods must be
employed. Contrast to traditional balancing methods, the chapter describes an innovative
balancing technique. The prototype called EMB (Electro-Magnetic Balancer) has been
developed, tested and used in order to reduce the vibration level of the spindle shaft significantly.
·For the first time, a metaphoric idea in terms of SEA (Sustainability and Evolution Assessment)
has been implemented so as to provide a knowledge base to cater the issues of analysis, design,
development and manufacturing of next generation machine components. Although, a similar
concept so called LCA (Life Cycle Assessment) exists within the material science arena,
methodologically SEA differs from LCA to a large extent especially in the context of perception
and implementation.
533
Mechatronic Design Strategy: An Example with High Speed Spindle
Control hardware
Operating system
Methods
Equipment
Sensors
Dynamic modeling
Power flow modeling Programming tools
Thermal effects
Diagnostics
Control
Control application software
Flexibility
Balancing
Compensation
Electronic devices Data manipulation tools
Coupling
Coupling
Housing Tool
Fig. 16.1 Discrete components of a typical industrial spindle system for micromachining
It adheres information about the quantity of flow of power, from the input end through the output.
The power model is based on the principle of conservation of energy. The other model equations
reflect the diagnostics and prognostics of HSSS.
16.3.1 Identification
Figure 16.2 shows a translational model of a spindle. Since spindles are energy transducer of some
form, it can be represented as a delayed amplifier followed by a force generator. The generated force
is nonlinear because of the boundaries and properties of the materials. Analogous to other
electromechanical system, spindles inherit nonlinear properties like time-variant process parameters,
friction and hysteresis, which are responsible in producing inaccurate control action. Accurate action
is inevitable and this requires identification and design of closed loop controller that should compensate
the error due to the nonlinear properties as shown in Fig. 16.2 (i.e. the two blocks; friction
compensation and nonlinear correction).
535
Mechatronic Design Strategy: An Example with High Speed Spindle
Table 16.1
Nomenclature
m = Mass j = Complete flux linkage vector
Fspindle_ep (t) = Electrical power (refer Eq.-4), l = Inductance matrix
Fspindle_el (t) = Load Ga = electrical input (Eq. 16.4)
Fspindle_ao (t) = Actual output (displacement/angle), Gb = G2 = Hysteresis loss (stator + rotor)
Fspindle_cf (t) = Coulomb frictional force, Gc = power drop in the primary coil
Fspindle_vf (t) = viscous frictional force Gd = power transferred to rotor
c = Spring constant, Ge = power delivered to stator air
d = Damping constant, Gf = delivered to starter housing
F* sign() = Signum function with Gg = power absorbed by the coolant
amplification factor F.
Jspindle_all = Inertia, Gh = absorbed by the base material
Tspindle = Sum of all torques acting in the system, Gi = power transmitted to atmosphere
B = Friction co-efficient Gj = mechanical power input
Tspindle_l = Load torque. Gk = drop in the secondary coil
jr = Stator flux linkage Gl = G4 = Eddy current loss (stator + rotor)
(Contd.)
536
Mechatronics: Principles, Concepts and Applications
The translational model equation can be expressed as in Eq. 16.1 and its equivalent rotational model
can immediately be written as in Eq. (16.2). Note that because of integral behaviour of I/O the spring
constant should not exist. The above two equations are seem to be general in nature, however when
we need to calculate the losses and efficiency of the spindle we must start with Eq. (16.3) and end up
at the Eq. (16.9). All the parameters have been defined in Table 16.1.
m d2
dt ( Fspindle_ ao ( t )) = Fspindle_ ep ( t ) + Fspindle_ el (t ) +{Fspindle_ cf ± * sign FH d ( F spindle_ao ( t ))
IK +
dt
(16.1)
d
d ± * ( Fspindle_ao ( t ))} d + c * Fspindle_ao (t )
dt dt
( Fspindle_ao ( t ) ¹ 0
537
Mechatronic Design Strategy: An Example with High Speed Spindle
No systematic procedure exists to represent the flow of power within a dynamic system. Although,
traditional block diagram, to some extent provides such information, it is considered as an indirect
method. Representation of flow of power must be addressed. It is learnt that the flow of power (or
energy) within the spindle system is multi-variant in nature (electrical, mechanical, viscous, thermal
etc.) and the transition of power occurs at each coupling points. Figure 16.3 shows a graphical
representation of flow of power within the spindle systems. This is not considered as a model rather
it is a method of representing the multi-variant powers (state) and their transition phenomenon. This
will dilate the visualization of the systems state. It is perceived that STD (State Transition Diagram)
conformant graphical representation makes a good fit for representing the flow of power due to its
similarity and coherence. The representation looks like a model but there is a significant difference
since STD is used only in discrete event systems (DES) for describing the current state of the places,
which are configured together through transition phenomenon. However, if the concept of event as
understood in DES is omitted in this graphic-based power flow model, we find no difference between
these two. Since many STD based engineering models are applied to flexible automation applications,
the acceptance of the meaning of event is clear. However, understanding of event within STD domain
needs considerable attention. It is worth mentioning that some aspects (in the current situation it is
flow of power vis-à-vis losses) of the dynamic system can also be modeled using STD principle if the
meaning of event is understood differently. For example picking-up and placing (e1 & e2) are the two
events in a robot-based material handling system, where two transitions (t1 & t2) takes place if the
component is available and the robot is ready. In this example there are three places (two input places
and one output place; p1, p2 & p3) having different states. This example can be correlated with the
graphic model, the point of discussion exists if the events are understood differently. Here the places
are housing, stator winding, rotor winding, core, air gap between the stator and rotor, ball-bearings,
lubricants, coolants, ambient air, shaft, tool and job. The places have their states in terms of power
(multi-variant). The transition of flow of power occurs and hence it is evented if the places are
available. For example, the transfer of power from primary winding to secondary winding takes place
only if the output place, i.e. the secondary winding, is ready. The state (power) of the previous place
(primary winding) is maintained due to the discrete flow of electrical power from the source (The
flow of power is assumed to be discrete if photonic principle is applied). Once the flow of power is
accepted as discrete type, then the appearance of event would be clear and the flow of power would
be considered as event-driven operations because the transition takes place only due to the
availability of previous and subsequent places. Since the flow of power from the input (electrical) to
the output (acceleration) is occurring instantly (not instantly really) the events are not visible as in
case of robotic-based material handling system. However, if we dilate the time axis the situation, is
more involved. Figure 16.3 is visualized as a comprehensive STD conformant graphic model of the
flow of power within a HSSS. Each circle represents a container. The arrows in forward direction
indicate that the power flow from the previous container as a result of transition. The backward
arrow should be there in order to fulfill the requirement of conservation of energy. Each circle
contains power in different form. Ga to Gs are the form of powers, which are shown in the table.
539
Mechatronic Design Strategy: An Example with High Speed Spindle
Fig. 16.3 STD conformant graphical representation of flow of power within the spindle
EMB Spindle
Bearing
Rotor
φ60
45
190
Motor is the integral part of the shaft and housing allowing the spindle to rotate at higher speeds
contrast to belts or gears types. The shaft is held by two set of high precision bearing systems. Such
integration also avoids backlash and high friction. For an electric motor to perform efficiently an
optimal match of the motor and the drive system must be achieved. For machine control, selection
criteria include; power, torque speed and bandwidth of control. A versatile 3-phase Y connected
induction motor is selected in this study due to its symmetry. These types of motors also inherit other
desirable features such as reasonable torque, speed and power range, torque ripple (about 5%), power
density, acoustic noise (low), cost (low), maintenance (low), open loop as well as closed loop
capability, and velocity controlled bandwidth.
Further, selection of high precision bearing system for HSSS is crucial because most of the failures
are bearing related. The bearing type, numbers, mounting method, and lubrication procedure are the
essential considerations. A detailed study reveals that for radial-loading, low-contact angle type
bearing systems are good candidates for high-speed operation. The specifications of bearing systems
are shown in Table 16.2.
Table 16.2
Specifications of bearing systems
Bearing Assembly tolerances between bearing and housing
NTN 7016CDBT Symbol Meaning
+15D/GNP4 L22-L27 Clearance 22-27 micro meter
T1-T4 Negative clearance 1-4 micro meter
541
Mechatronic Design Strategy: An Example with High Speed Spindle
35000
Speed in Rev. per minute
30000
25000
20000
15000
10000
980 N
1876 N
5000
1444 N
0
0 25 50 75 100 125 150 175 200 225 250 275
Time in seconds
Fig. 16.6 Loss due to viscous shear of the air in between the stator and rotor
Temperature in degree C
20
Front bearing
15
Rear bearing
0
100 4
90 8
1
Displacement in micrometer
80
70
60 9
50 5
3
7
40 2
30 6
20
10
0
1 10 19 28 37 46 55 64 73 82 91 100
Axial load in Kgf
Fig. 16.9 Relationship between axial load and displacement because of thermal
deformation
Table 16.3
empirical formulae derived from the experimental method are acceptable. The empirical formula
derived from the experimental procedure suits well. Frictional torque sets are calculated from
Fig. 16.5, curve-fitting procedure was applied in order to obtain the empirical formulae for the
prediction of heat generation and hence loss within the bearing systems due to preload as well as
speed. This can be implemented and evaluated during run-time using dSpace tools and systems.
Table 16.4
Specification of EMB incorporated spindle system
Mass of shaft = 4 kg Coil inductance = 0.048 H
Inertia of Rotor 0.042 kgm Coil resistance = 3.5 Ohm
Inner diameter = 61 mm Damping coefficient of front bearing in = 8.944E-4
Outer diameter = 160 mm Damping coefficient of rear ball bearing = 8.944E-4
Core thickness = 30 mm Stiffness coefficient of front bearing in = 0.25E9
Core material = SE14C Stiffness coefficient of rear ball bearing = 0.25E9
Lamination thickness = 0.5 mm Distance from mass center to front bearing = 120.3 mm
Air gap = 0.5 mm Distance from mass center to rear bearing = 4.3 mm
No. of turns = 320 turns Distance from mass center to location of
feedback sensor = 80.6 mm
Pole face area = 350 mm square Distance from mass center to point of
compensation = 125.6 mm
Magnetic coil Input voltage = MAG+MAG*Sin(2EXP*f*t) volts
thickness = 0.9 mm
3
Y-axis displacement in micrometer
b
2
a
1
5
5 4 3 2 1 0 1 2 4
X-axis displacement in micrometer
Additive measurement faults result due to discrepancies between the measured and true values of the
spindle I/O variables, where as additive process faults are zero during normal operation, but entered
and affect the normal operation. Multiplicative faults are those, which describe the deterioration.
Broadly, three types of diagnostics and prognostics (DAP) techniques are studied in the literature;
statistical, model-based and model-free. Statistical parameters such as mean value, standard deviation,
variance, density function etc. of the available output signals are used for development of DAP
algorithm. Model-based DAP, on the other hand rely on quantitative mathematical relation between the
I/O (hence model of the plant) and depends only on the availability of a mathematical model of the
plant. This involves two tasks, generation of residuals and design of decision rules based on these
residuals as shown in Fig. 16.12. Residual generation principle is commonly known as analytical
redundancy, which implies that additional signals are generated and compared with the measured
quantities. The information processing technique involved in the redundancy are of mostly three
types; direct residual estimation from I/O, state estimation based using Kalman filter or by an observer
and physical stricture estimation. Model-free techniques are expert system based (H/W & S/W), limit
checking, special hardware-installation, fusion and spectral analysis. Fusion and spectral analysis
method are also employed in many industrial systems. When multiple sensors (at least three) are
configured into one and voting technique is used to isolate faults it is called fusion method. FFT and
wavelet transforms are the suitable tools for spectral analysis schemes. In this case system spectra of
both normal and that of faulty one are compared and any discrepancy is recognized as fault.
Concern in the design of DAP algorithm is detection performance, which implies first and accurate
identification of incipient failures. The detection performance is measured in terms of isolability,
sensitivity and robustness. Since these parameters, in most cases are influenced by the careful
selection of transformation of system model it is recommended to adopt model-based stricture
estimation approach. The approach is suitable since the physical parameters of the spindle are directly
related to many faults. Process model strictures are understood as constants (although slowly varying
over time) and indirectly appear in the mathematical description of the relationship between the I/O
548
Mechatronics: Principles, Concepts and Applications
signals. Isermann and coworkers justify that process faults become visible as a change of process
coefficients (strictures) such as resistance, capacitance, inductance, mass, stiffness, viscosity,
friction etc. and it is from the fact that they are contained in the model. The DAP scheme applied in
this work is based on stricture estimation. The procedure in the technique are,
·Modeling of the system with lumped parameter in differential equation form
·Formulation of relationships between model parameters and the physical parameters
·Determination of model parameter vector using the inputs and outputs
·Identification of physical parameter vector
·Deviation calculation from its nominal values
·Decision on a fault by exploiting the relationships between the faults and changes in the physical
strictures.
16.5.1 Formulation
An ideal dynamic system (DS) possesses two types of invariable coefficients such as process
variables coefficients (PVC) and system coefficients (SC) as shown in Eq.(16.12). These variables
and coefficients can be measured and compared to detect and isolate faults. Equation (16.13) and Eq.
(16.14), represent a complete description of the system with all the possible PVC, SC and their
discrepancies (multiplicative), and faults (additives). This is a linear discrete-time model.
PV
C DS = {PVC + SC}
SC
={i=k1 {( rsi , rri , lsi , lri , Vsi , Vri , Isi , Iri }, vdfsi ,vdfri ), J spindle_all , n
j =1 {Gj }, s , v, a , Fspindle_cf } (16.12)
x (t+1) = [S +¶S(t)]x (t) + [T +¶T(t)] [u(t) +¶u(t) + du(t)] + Ap (t) (16.13)
[y(t) +¶ y(t) + dy(t)] = [U +¶U(t)] x(t) (16.14)
where, PVC and SC quantify the Q-point of the system and thus are contained in the DS. In other
words they all influence the system gain. x(t), u(t) and y(t) are state, input and output vectors
respectively; S, T and U are system matrices in which PVC and SC are contained; p(t) faults and A is
their system matrix; ¶ is divergence between model matrices and real matrices; d is measurement
noise (Note that noise and faults are not same). The identified PVS of the spindle systems are currents
& voltages at various windings, input power, various losses, speed, velocity and acceleration. The SC
are resistances, inductances, flux, voltage drop factor, inertia constant, damping and dry friction and
so on. Since spindle system show nonlinear behaviour, the dynamics can be linearised neglecting
higher order terms so that it can be confined to a range and consequently analytical redundancy would
be possible. As a result, the system can be controlled and observed within a relatively lesser
operational range. In order to achieve this, as a thumb rule, two differential equations are generally
considered to be a better approach for the study. The modeling error and the error due to noise can be
neglected. However, if they are to be considered, statistical testing is inevitable. Statistical testing
involves direct parallel testing, multivariate testing, compound scalar testing, sequential likely hood
testing and Bayesian testing.
549
Mechatronic Design Strategy: An Example with High Speed Spindle
16.5.2 Experiment
The mapping between cause (fault) and effect (fault symptoms) of malfunctions within HSSS has to
be studied. This includes observation of system elements that produce the indicated symptoms.
Exhaustive preliminary investigation has to be carried out on each element with additional test
equipments by the use of system knowledge (models) and failure history (statistically as well as
heuristic based). dSpace and MATLAB along with DSP hardware were used to implement the DAP.
Besides, sensory devices such as capacitive sensors for the measurement of displacement, current
sensors and accelerometers were used. The sensors were interfaced with the DSP board through
Neuron processor from Toshiba. The DAP is able to detect and isolate multiplicative as well as
additive faults. The faults are bearing wear, shaft wear, insufficient cooling, shaft displacement,
insufficient venting, shaft crack, shaft bend, crack on bearings inner and outer races, ball rupture,
preload limits. The effects are vibration amplitudes, the effect of positive and negative clearances (i.e.
axial and radial displacement of bearing races), heat generation of motor and stator, temperature
thresholds at the vicinity of the bearings (thermal deformation), resistance, inductance, Coulomb
friction coefficient, voltage and current variations (power), which are stricture related as described in
formulation section above.
Both cases are studied. One for detecting and isolating multiplicative fault such as shaft wear
(Detection of bearing wear would take much longer time since the BBRL (Basic Searing rating Life is
usually very high)), shaft bend (Shaft bent can also be an additive fault; however assuming there is no
accident, the shaft becomes bent only due to wearing off and other result shows isolation of additive
faults such as thermal deformation, shaft crack and cracks on bearing races. A comprehensive DAP
for HSSS accommodating all possible faults have been studied. Faults were generated artificially for
the testing. Altogether, 26 faults using 59 PVC and SC over a 200 experiments were carried out over
a period of 300 hours. Since the multiplicative faults (say shaft wear) severely affect the higher modes
of vibration it is recommended that spectral analysis method is the preferred choice for isolation.
Therefore, FFT was used to detect the shaft wear as shown in Fig. 16.13(a). Figure 16.13(b-e)
illustrates how the strictures are changed with respect to additive faults.
On 11.11.2001
0.6
0.3
On 21.06.2001
0.0
0 1 2 3 4 5 6
(a)
F-1 Fault due to thermal deformation F-1 Fault due to thermal deformation
A measure of radial pressure in exerted Change of coulomb friction coefficient
Confidence function (normalized to force)
0.4 0.6
Normal
F-1
0.3 0.4
0.2 0.2
Preload applied deliberately Preload applied deliberately
0.1 0.0
F-1
0.0 0.0
0 300 900 1200 1500 0 300 600 900
(Time) (Time)
(b) (c)
10 0.05
Jspindle _all Power (VI)
8 0.04
6 0.03
F-2
4 0.02
Insufficient cooling Insufficient cooling
2 0.01
F-2
0 0.00
0 600 1200 1800 2100 2400 2700 0 600 1200 1800 2100 2400 2700
(d) (e)
Fig. 16.13 Some FDI results based on spectral analysis and stricture estimation using
model equations
551
Mechatronic Design Strategy: An Example with High Speed Spindle
data advocates the issues of sustainability and machine evolution. The recorded data can be used for
the analysis of wears and faults responsible for degrading the performance level of the system. SEI
provides information on the degradation factor of the individual devices/components as well as that of
the whole machine.
Systems with self-recording of life activities could make the design of future products more easier
and robust. This makes predictions of the future rates of component life usage under operating
regimes for various damage processes and is a useful and unique addition to advanced DAP methods
since the scheme estimates past life usage, based on the actual operating history, and ideally be
capable of utilizing existing design and assessment data so that the requirement for new analysis is
minimized. Greater sustainability will make system more available and affordable. The approach can
be described as a cradle to grave assessment of the machineries.
Table 16.5
Some of the identified SEA variables of a typical spindle system
Variable Description Variable declared LSV
names in control platform (normalized)
TOD Total operation duration S_Mr1_tod 1000
NZD Duration the motor was in nominal speed S_Mr1_nzd 900
during TOD.
UTD Duration the motor was above the nominal speed S_Mr1_utd 50
during TOD
LTD Below the nominal speed S_Mr1_ltd 50
ONF How many times the motor has made on and S_Mr1_onf 1000
off (power)
PSNZD Duration of motors power supply value within S_Mr_psnzd 1000
normal zone.
PSUTD Duration of motors power supply value above NZ. S_Mr1_psutd 100
PSLTD Power supply value below normal zone. S_Mr1_psltd 50
TR Total revolution S_Mr1_tr 18E8
MFs Type of motor faults S_Mr1_Mf 3
TS1TOD Temperature sensor-1 TOD S_Snr_ts1tod 50
TS1NZD Temperature sensor-1 NZD S_Snr_ts1nzd 50
TS1UTD Temperature sensor-1 UTD S_Snr_ts1utd 1000
TS1LOD Temperature sensor-1 LTD S_Snr_ts1ltd 900
TS2TOD Temperature sensor-2 TOD S_Snr_ts2tod 50
TS2NZD Temperature sensor-2 NZD S_Snr_ts2nzd 50
TS2UTD Temperature sensor-2 UTD S_Snr_ts2utd 50
TS2LOD Temperature sensor-2 LTD S_Snr_ts2ltd 1000
SC1TOD Capacitance sensor-1 TOD S_Snr_sc1tod 1000
SC2TOD SC2TOD S_Snr_cs2tod 1000
SC3TOD SC3TOD S_Snr_cs3tod 1000
SC4TOD SC4TOD S_Snr_cs4tod 1000
ETOD Encoder TOD S_Snr_entod 500
1ONF Number of times the switch1 has made on and S_Sw1_onf 500
off cycle.
S2ONF For switch 2 S_Sw2_onf 500
S3ONF For switch 3S_Sw3_onf 500
SVLUTD UTD of vibration level of spindle shaft at rear S_M_Svlutdr 1
bearings
SVLNZD NZD of vibration level S_M_Svlnzdr 1000
SVLFUTD UTD of vibration level of spindle shaft at front SLC_M_Svlutdf 1
bearings
SVLFNZD NZD of vibration level that of front S_M_Svlnzdf 1000
SVLTUTD UTD of vibration level of spindle shaft at tooling S_M_Svltutd 1
position
SVLTNZD NZD of vibration level that of at tooling position S_M_Svltnzd 1000
VLUTD Vibration level of stator S_S_vlnzd 1000
STZ1NZD Spindle temperature at zone-1 within normal zone S_SP_stz1nzd 900
STZ1UOD Spindle temperature at zone-1 above threshold S_SP_stz1utd 10
STZ1LOD Below threshold S_SP_stz1ltd 1000
(Contd.)
553
Mechatronic Design Strategy: An Example with High Speed Spindle
Application Specific Integrated Circuit (ASIC) accommodating generic SEA variables are being
developed which can be fitted into the system/plant/machine.
Figure 16.15 shows the window of LSV vis-à-vis SEA variables in run-time. Only 4 of 43 SEA
variables have been shown. Point to be noted that the operational period of typical components or
machines may be around 5 years or more, however, the recorded data presented in the Fig. 16.15 was
for three months only. Visual C++ was used as front end and LNS (LonWorks Network Service)
kernel from Echelon Corporation, USA, was used as the communication interface for distributed data
acquisition and presentation. SEA implementation is beneficial to both the technology developers and
the users.
C Sensors
C
O
N
N
E C Actuators
T
T P
R
W L
O
O A
L
R C Drives N
L
K T
E
R
S
C etc.
DCS can be leveled into four layers of automation services (Fig. 16.17). The bottom layer called
component level, which includes the physical components such as intelligent devices such as PC,
industrial PC, PLC, microprocessor, micro-controller, etc. and non-intelligent devices such as
sensors, actuators, switches, A/D, D/A, port, transceivers, communication media, etc. Network
interface layer is similar to MAC sub-layer of the link layer protocol. Process layer includes application
layer features. Since control system does not transfer raw data through a physical media an application
layer has to exist. Application layer defines the variables, which are responsible to transfer data from
one place to other when they are connected logically. This layer also generates object code (OC) from
the source code (SC) by the use of resources and methods such as compilers and OLE/DDE
respectively. The management layer manages the control design. There is a set of generic functions
within the management layers, which are accountable for providing services for all aspects of control
management. Typical management functions are installation, configuration, setting, resetting,
monitoring, operator interfacing, testing etc.
spindle system control has a generic set of essential requirements in terms of coordination,
synchronization, acknowledgement, timing etc. In addition to achieving the required sequence of
operations it is vital that operator information requirements are also satisfied. The control system
should also satisfy the features such as,
· Interlock checking Before any movement the current position of related mechanical units
must be determined to avoid collisions.
· Time out checking If a mechanical drive unit has not completed its movement/cycle within
the expected time an error has to be indicated.
· Status display At each step in the sequence, an application relevant message can be
displaced to the operator.
· Error messaging Each step in the sequence has an associated list of messages to display
when any error has been detected).
Fig. 16.18 Schematic diagram of the spindle system in the context of control interfacing
LonWorks (Local Operation Network) fieldbus, which is also called LON (developed by Echelon
Corporation, USA), has been selected as the realizing platform for DCS because of its many features.
The system includes all the elements required to design, deploy and support DCS. Each distributed
node contains 8-bit VLSI processor called Neuron chip. The chip communicates with each other
using CSMA (Carrier Sense Multiple Access) protocol. The logical connections (as per control co-
ordination, synchronization) among the nodes are made with the help of application software by using
LNS (LonWorks Network Service) network kernel. The software is the operator interface, which can
monitor and control the spindle operation. It inherits the advanced features such as GUI (Graphical
User Interface), CS (Client Server) architecture and OO-based (Object Oriented) technology. Visual
C++ is used as the language. The host is an IBM compatible PC with Windows98 Operating System
(OS). The software not only serves as user interface but can also do the management operations such
as installation, configuration (logical binding), setting, resetting, winking etc. of the control network.
The control code for the node is written in Neuron C language; a derivative of ANSI C (American
National Standard Institute). Neuron C is very simple and flexible due to the existence of network
558
Mechatronics: Principles, Concepts and Applications
variable (nv); a new class of application layer objects which simplify data sharing among nodes, and
when statements; which introduces events and defines the temporal ordering of these events. There
are also 34 pre-defined I/O functions within the language, which makes it easy to write the code for
real-time applications. The control code is developed, complied, debugged and finally downloaded
into the node by using NodeBuilder tool. In Fig. 16.19, N1: Node-1 is interfaced with the actuating
system (drive), N2 where all the sensors are interfaced with N2, N3 is the control panel consisting of
start, stop buttons and display and alarm units, N4 is a node whose code is already ready within the
Host (This node can be added at any moment if the capability of the spindle system need to be
increased).
System Image
N1 N2 N3 N4
Position sensors
(Encoders) Display
Temperature Alarm,
and vibration Switch,
Drive (actuator) sensors Buttons
It is worth to mention that LonWorks is an underlying architecture with which fully-fledged DCS
can be built. Regardless of the system complexity and the features of the fieldbus systems, the
distributed system design methodology involves problem identification, segmentation, development
and testing. For details refer Fig. 13.22.
· There is a need to compensate the friction, although full compensation is not at all possible. In
contrast, failure to account for friction compensation lead to tracking error and limit cycles.
Care must be taken not to overcompensate the friction.
· Mass unbalances are the major sources of vibration. The compensation is done by placing
correction masses onto the rotating shaft, so that forces due to these masses cancel out those
caused by the inherent unbalance mass.
· Two classes of faults are seen, additive and multiplicative. Additive faults result due to
discrepancies between the measured and true values of the I/O variables, and also entered and
affect the normal operation. Multiplicative faults describe the deterioration.
· The system performance deteriorates due to many factors such as aging, wear, operating
period, corrosion, environmental conditions, failure and so on.
· Sustainability and Evolution Assessment (SEA) is an implementation scheme for on-line
recording of deterioration factor in terms of Life Span Value (LSV) of the machine components.
· Automation and control systems preferred to implement Distributed Control System (DCS)
instead of centralized, because of its advantage of great flexibility over the whole operating
range.
· Fieldbus is a technology for the realization of DCS.
· Local Operating Network is a fieldbus.
· Remote monitoring of machines within the manufacturing plants requires unified and coherent
operation of control and management functions within one platform.
· Commonly available data networking systems are LAN, WAN, MAN, etc.
LOOKING AHEAD
The competitive market enforce the industries to rapidly deliver quality products to meet the
societal demand. Many of the production cells in industry have already been equipped with
automated machineries and systems. Employment of automated machines is needed in order
to demand for increased productivity. Performance driven state-of-the-art design techniques,
methodology and tools must be adopted for building machineries. Although many types of
machines are employed within the industrial and manufacturing sectors, all go through a
similar design and development strategy. This chapter describes a comprehensive design
strategy of a high-speed spindle system, which is nothing but a mechatronic system. The
concepts learnt from this chapter can be applied to many machine system designs as the
philosophy and design methodologies are seen to be similar although not identical. For
instance many machine systems are built from drives (actuators), mechanical structures (main
body), bearings with preload arrangements, electrical and mechanical interfacings
(mechanisms), electronics, control, etc. as was seen in the study of spindle system presented
in this chapter.
Appendix
UNITS
CONSTANTS
CONSTANTS
p = 3.1416
1/p = 0.3183
e = 2.718
Log e = 0.4343
Log x = 0.4343 ln x
ln x = 2.303 log x
Micron = 10–6 m
CONVERSION
From To Multiply by
Radian Degree 57.30
Inches Metres 0.0254
Yards Metres 0.9144
Miles/hour Metres/second 0.447
Pounds Kilogrames 0.4536
Pounds-force Newton 4.45
Kilograms-force Newton 9.806 65
Newton meters lbf ft 0.738
Newton meters gf cm 1.019*104
Horsepower ft lbf/min 33000
Horsepower Kilowatts 0.746
Kilocalories Joule 4187
Joules kWh 2.778*10–7
References
44. E.W. Horwitz and S. Sahani, Fundamentals of computer Algorithms, Computer Science Press,
Potomac, MD 1976.
45. A.V. Aho, J. E. Hoporoft and J. D. Ullman, The Design and Analysis of Computer Algorithms,
Addison-Wesley, Reading MA, 1974.
46. A.V. Aho, J. E. Hoporoft and J. D. Ullman, Data Structures and Algorithms, Addison-Wesley,
Reading MA, 1982.
47. H.M. Deitel, An Introduction to Operating System, Addison-Wesley, 1990.
48. A.S.Janebaum, Modern Operating System, 3rd Edition, Prentice-Hall of India, 1992.
49. D.E. Carner, Computer Networks and Internet, 2nd Edition Pearson Education Asia, 2000.
50. R. Boylestad & L. Nashelsky, Electronics Devices and Circuit Theory, Prentice-Hall of India,
1989.
51. A. Mottershead, Electronic Devices & Circuit, Prentice-Hall of India, 1971.
52. R.L. Cruise, Data Structure and Program Design, 2nd Edition PTI, 1987.
53. William H. Gothman, Digital Electronics, Prentice-Hall of India, 1986.
54. R.P. Jain, Modern Digital Electronics, 3rd Edition, Tata McGraw-Hill, 2003.
55. James Martin, Computer Data Base Organisation, Prentice-Hall of India, 1984.
56. W.D. Cooper and A.D. Heetric, Electronics Instrumentation and Measurement Techniques,
Prentice-Hall of India, 1985.
57. C.S. Rangan, G.R. Sharma and V.S.V. Mani, Instrumentation Device and System, Tata
McGraw-Hill, 1983.
58. A.V. Aho and J.D. Ullman, Principles of Compiler Design, Addison-Wesley, 1977.
59. A.V.T. Aho, J.D. Ullman and Rabi Sethi, Addison-Wesley, 1992.
60. D. Gries, Compiler Construction for Digital Computers, International Students Edition, 1971.
61. W.M. Waile and D. Groos, Compiler Construction, Springer-Verlag, 1984.
62. Douglas V. Hall, Microprocessors and Interfacing, Programming and Hardware, Tata
McGraw-Hill, 1991.
63. D. Bertsekas and R. Gallagar, Data Networks, Prentice-Hall of India (IEE), 1988.
64. D. W. Davies, et al., Computer Networks and their Protocols, John Wiley, 1979.
65. Helfrick and Cooper, Modern Electronic Instrumentation and Measurement Techniques,
Prentice-Hall of India, 1988.
66. J.D. Ullman, Principles of Data Base Systems, Galgotia Publication (Pvt), New Delhi, 1983.
67. J. Martin, Computer Data Base Organisation, Prentice-Hall of India, 1985.
68. G.S. Fishman, Concepts and Methods in Discrete Event Digital simulation, John Wiley, New
York, 1978.
69. S.K. Pillai, A First Course in Electric Drives, Wiley Eastern Ltd., 1982.
70. Eugene Charnaik and Drew Mc Dermott, Introduction to Artificial Intelligence, Addison-
Wesley, 1985.
71. D.F. Rogers, Procedural Elements for Computer Graphics, McGraw-Hill, 1985.
72. T.K. Kundra, P.N. Rao and N.K. Tewari, Numerical Control and Computer Aided
Manufacturing, Tata McGraw-Hill, 1997.
73. William H. Press, Saul A. Teukolsky, William T. Veterling and Brain P. Flannery, Numerical
Recipes in C, Cambridge University Press.
74. Ibrahim Zeid, CAD/CAM Theory and Practice, Tata McGraw-Hill, 2000.
568
References
75. N.K. Bose, P. Liang, Neural Network Fundamentals with Graphs, Algorithms and Applications,
Tata McGraw-Hill, 1998.
76. Bart Kosko, Neural Network and Fuzzy Systems, A Dynamical System Approach to Machine
Intelligence, Prentice-Hall of India, 1994.
77. Melanie Mitchell, An Introduction to Genetic Algorithms, Prentice-Hall of India, 1998.
78. Amitabha Ghosh and Ashok Kumar Mallik, Manufacturing Science, EWP, 1991.
79. Kalpakjian, Manufacturing Engineering and Technology, 3rd Edition, Addison-Wesley
Publishing Co., 1992.
80. Cyrll Donaldson, George H Lelain and V.C. Gold, Tool Design, Tata McGraw-Hill, 1989.
81. Kalyanmoy Dev, Optimisation for Engineering Design, Prentice-Hall, 2000.
82. Aditya P. Mathur, Introduction to Microprocessor, Tata McGraw-Hill, 1987.
83. Albert Paul Malvino, Digital Principles and Applications, International Student Edition,
McGraw-Hill, 1986.
84. Kraig Brockschmidt, Inside OLE 2, Microsoft Press Programming Series, 1994.
85. V. Rajaraman, Computer Programming in FORTRAN 4, 2nd adition, Prentice-Hall of India,
1985.
86. B.J. Holems, A Complete Text on Basic Programming, Galgotia Publications (Pvt.) Ltd., 1985.
87. Narasingh Deo, Graph Theory; Applications to Engineering and Computer Science, Prentice-
Hall of India, 1993.
88. J.B. Gupta, A Cource on Electronic and Electrical Measurements and Instrumentation, Ess
Kay Publications, Delhi, 1998.
89. Kai Hwang, Faye A. Briggs, Computer Architecture and Parallel Processing, McGraw-
International Edition, 1988.
90. V. Rajaraman and T. Radhakrishan, An Introduction to Digital Computer Design, Prentice-Hall
of India, 1993.
91. James M. Fiore, Operational Amplifiers and Linear Integrated Circuits; Thory and Application,
Jaico Publications, 1999.
92. Ramakant A. Gayakwad, OP-AMPS and Linear Integrated Circuits, Prentice-Hall of India,
1991.
93. Andrew Batemena and Warren Yates, Digital Signal Processing Design, Wheeler, 1990.
94. Alan V. Openhein, Ronald W. Schafer, Discrete Time Signal Processing, Prentice-Hall of India,
1992.
95. John C. Hancock, In Introduction to Principles of Communication Theory, Tata McGraw-Hill,
1991.
96. Owen Bishop, Digital Electronics Projects for Beginners, B P B Publications, 1991.
97. Andrew S. Tanenbaum, Computer Networks, Prentice-Hall of India, 1999.
98. Nathan Gurewich and Ori Gurewich, Teach Yourself Visual Basic 4, SAMS Publishing, 1995.
Journal Papers
99. Editor, M Vidyasagar, “Intelligent Robotic Systems”, Proceedings, Int. Symp. on Intelligent
Robotic Systems, Nov. 22-24, Tata McGraw-Hill, 1995.
100. Hoang Le-Huy, Microprocessors and Digital IC’s for Motion Control, Proceedings of the IEEE,
Vol. 82, No. 8, August 1994.
569
References
101. Control of Servopneumatic drive with Friction compensation, Proceedings of 1st FPNI-PhD
Symposium, Hamburg, 2000, pp 117–127.
102. F. Harasima, M. Tomizuka, Mechatronics; What is it, Why and How, IEEE Transaction on
Mechatronics, Vol 1, Issue-1, March-1996.
103. G. Ishack, “Are we making the most of advanced digital control systems” Nuclear Engineering
International, 38 (462) January, p 48-9, 1994.
104. W. Christian, H. Dominik, W. Heinz, S. Jan, D. Martin and M. Wolfgang, A distributed planning
and control system for industrial robots, In proceedings, 5th IEEE International Advanced
Motion Control Workshop, 1998, pp 1-6.
105. M.K. Masten, An Industrial Perspective of Control Engineering, IEEE Control System
Magazine, Vol. 19, No. 6, 1999, pp 8–11.
106. N.A. Armstrong and P.R. Moore, A Distributed Control Architecture for Intelligent Crane
Automation, “ELSEVIER-Automation in Construction”, Vol. 3, Amsterdam, pp 45–53, 1994.
107. R.O. Atienza, M.H. Ang, “A Flexible Control Architecture for Mobile Robots: An Application
for a Walking Robot,” J. Intelligent & Robotic Syst, Vol. 30, No. 1, pp. 29–48, 2001.
108. Thomas Laengle and Ulrich Rembold, “Distributed Control Architecture for Intelligent
Systems”, Proceedings of the CARS&FOF’99, Moscow, pp 899–904, 1999.
109. Kim, S., Park, J., Leachman, R.C., “A Supervisory Control Approach for Execution Control of
an FMC”, Int. J. Flexible Manufacturing Systems, Vol. 13 No. 1, pp 5–32, 2000.
110. J. Pu, P.R. Moore, C.B. Wong, J.H. Wang, “The Role of Mechatronics in Advanced
Manufacturing Systems”, International Conference on Mechatronics, Portugal, 1996, Vol. 2,
pp 141-146.
111. G.Y. Tian, Z.X. Zhao, R.W. Baines, “A Fieldbus-based intelligent sensor”, Mechatronics,
Vol. 10 No. 8, 2000, pp 835–849.
112. G. Thomson, “Mechatronics in Manufacturing”, Mechatronics, Vol. 10 No. 3, 2000,
pp 419–423.
113. V.F. Filaretov, M.K. Vukobratovic, A.N. Zhirabok, “Observer-based fault diagnosis in
manipulation robots”, Mechatronics, Vol. 9 No. 8, pp 1999, 929–939.
114. H.Y. Lau, K.L. Mak, “An extended unified framework for the rapid development of automated
manufacturing systems”, Mechatronics, Vol 11, No 2, 2001, pp 131–155.
115. D.S. Evans, and P. Underwood, “Self-Diagnostics in Pneumatic Systems using PLCs”,
Proceedings Joint Hungarian-British International Mechatronics Conference, Budapest, 1994.
116. H. J. Van de Straete, P. Degezelle, J. De Schutter and R. J. M. Belmans, “Servo Motor Selection
Criterion for Mechatronic Applications”, IEEE/ASME Trans. On Mechatronics, Vol. 3, No. 1,
1998, p 43.
117. G. Wood, “Fieldbus and Intelligent Devices”, Editorial, Fieldbus Special Issue, IEE Journal of
Computing and Control, Volume 6, Number 6, 1995.
118. R. Isermann, “Mechatronic systems: concepts and applications”, Transactions on Inst. Meas.
Control, Vol. 22, No. 1, 2000, pp 29–44.
119. J. Korbicz and J. Kus, “Diagnosis of sugar factory processes using GMDH neural networks,
Proceedings of 4th IFAC Symposium Fault Detection Supervision and Safety for Technical
Processes, SAFEPROCESS, Budapest, Hungary, June 14-16, Vol. 1, 2000, pp 343–347.
120. T. Tilbury, and P. Khargonekar, “Challenges and Opportunities in Logic Control for
Manufacturing Systems”, Control System Magazine, Vol. 21, No. 1, 2001, pp 105–108.
570
References
121. H. Law, H.Y. Tam, “Object-oriented analysis and design of computer aided process planning
systems”, Int. J. of Computer Integrated Manufacturing, Vol. 13, pp 40–49, 2000.
122. R.S. Kagan, “Distributed Processing Using Local Operating Network”, Proceedings of
FIELDBUS ’91, The Cavendish Centre, London, 1991.
123. A. Mason, “Fieldbus is rapidly revolutionising the architecture of control systems”, A
Newsletter of Advanced Control Technology Transfer (ACTT) Programme, Reading
University, Issue 13, 16th February, 2000.
124. S.R. Reza, “Smart Network for Control”, IEEE Spectrum, Data Communications, Special
Report, June, 1994.
125. M. Acar and R.M. Parkin, “Engineering Education for Mechatronics”, IEEE Transactions on
Industrial Electronics, Volume 42, Issue 1, Feb. 1996.
126. L.A. Berardinis, “Mechatronics: A new design Strategy, IEEE Transactions on Mechatronics,
62 (8), December 1990.
127. J.J. Parker, A.J. Harrison, P.N. Brett and T. Thomas, “Towards a Mechatronic Tool for the
Epidural Procedure”, Proceedings, M2VIP, Hong Kong, 1995.
128. Philip Moore, JunSheng Pu, Changwen Xie, Matthew Simon and Graham Bee, “Life Cycle Data
Acquisition Methods and Devices”, Mechatronics 2000, Conference in Atlanta, Georgia, USA,
September 6–8, 2000.
129. W.D. Clarke, “Sensor, Actuator and Loop Validation”, IEEE Magzine of Control Systems,
Vol. 15, No. 4, 1995, pp 39.
130. R. Isermann, “Intelligent Actuators-Ways to Autonomous Actuating Systems”, Automatica,
Vol. 29, No. 5, 1993.
131. M. Henry, “Sensor Validation and Fieldbus”, Computing and Control Journal, IEE, Vol. 6,
No. 6, Dec. 1995, UK, pp 263–269.
132. G. Ishack, “Are we making the most of advanced digital control systems” Nuclear Engineering
International, Vol. 38 (462) January 1994, p 48–9.
133. V.F. Filaretov, M.K. Vukobratovic and A.N. Zhirabok, “Observer-based fault diagnosis in
manipulation robots”, Mechatronics, Vol. 9, No. 8, 1999, pp 929–939.
134. J. Pu and P.R. Moore, “Component/Image based Design of Distributed Manufacturing Machine
Control System”, Proceedings of International Conference on Recent Advances in
Mechatronics, Vol. 2, ICRAM 95, Turkey (1995).
135. T. Karkkainen, “Integrating a Conveyor belt, Programmable Logic Controller, Robot and
Various Sensors to create a Robotic Sorting Cell”, Project Report, Mechatronics Research
Group, De Montfort University, 1996. UK.
136. J. Pu and P.R. Moore, A Comparative Study of Approaches for Building Intelligent Machine
Control Systems, 11th National Conference on Manufacturing Research (NCMR-95), 12-14
September, 1995 E.
137. R. H. Weston, R. Harrison, A. H. Booth and P.R. Moore, “Universal Machine Control Systems
for Modular Distributed Manipulator Systems”, International Journal of Production Research,
Vol. 27, No. 3, 1989.
138. P. R. Moore, R. Harrison and K. Case (1992), “Open Machine Control”, DTI Open System in
Manufacturing, Regional Workshop on Fieldbus Technology and Open Machine Control,
Loughborough University.
571
References
139. P.R. Moore, R.H. Weston, R. Harrison, A.H. Booth and M.R. Jackson, “Machine Control with
Advanced Architecture”, IASTED/ISMM, International Symposium on Mini and Micro
Computers and their Applications, Switzerland, 1989, pp 193–197.
140. R. Harrison, A. West and C.D. Wright, “Integrating machine design and control”, International
Journal of Computer Integrated Manufacturing, Vol. 13, No. 6, 2000, pp 498–516.
141. M. Torngren, “Modelling and Design of Distributed Real-time Control Applications”, PhD
Thesis, Department of Machine Design, The Royal Institute of Technology, Stockholm,
Sweden, 1994.
142. C. Wikstrom, “Implementing distributed real-time control systems in a functional programming
language”, Proceedings of the 4th International Workshop on Parallel and Distributed Real-
Time Systems, p. 20-26, 15-16 April, Honolulu, HI, USA, 1996.
143. A. Thethi, Wainwright C, “Manufacturing Strategy Theory and Practice”, 11th National
Conference on Advances in Manufacturing Technology, De Montfort University, UK, 1996.
144. M. Timmerman, “WindowsNT as Real-time OS?”, Proceedings of Fieldcomm-96, Hinkley,
UK, 1996.
145. M. Tomgren, B. Garbergs and H. Berggren, “A Distributed Computer Testbed for Real-time
Control of Machinery”, Proceedings of 5th Euromicro Workshop on Real-time Systems, Oulu,
Finland, IEEE Computer Society Press, 1993.
146. M. Rogosin, M. Timmerman and N. Nachiappan. “Extending Windows/NT for Embedded
Hard Real-time Systems”, Proceedings of Fieldcomm 96, Vol. 2, Hinkley, UK, 1996.
147. R.M. Parkin, S.J. Yaxley and R.A. Bearman, “Intelligent Operation of Rock Crushers Using
Real-time Distributed Control”, International Workshop on Mechatronical Computer Systems
for Perception and Action, Hamstad University, Sweden, 1983.
148. O.Z. Maimon, “Real-time Operational Control of Flexible Manufacturing Systems”, Journal of
Manufacturing Systems, Vol. 6, Issue 2, 1987, pp 125–136.
149. R. Kurki-Suonio, “Stepwise Design of Real-time Systems”, IEEE Transactions on Software
Engineering, Vol. 19, No.1, January 1993.
150. S.Y. Jung, Chong-Sun Hwang and J.M. Lee, “Concurrency control of nested transactions
supporting real-time processing in object-oriented DBMSs”, Journal of KISS, Vol. 23, Issue 3,
South Korea, March, 1996, pp 255–268.
151. D. Williams, “Intelligent Manufacturing Systems (IMS)”, Sixth International IMS Steering
Committee Meeting, Canberra, Australia, November 20 and 21, 1997.
152. M. Gien, “Embedded real-time operating systems move to the open world”, Real-Time
Magazine, Issue no. 3, July-Sept., Belgium, 1996 pp 97–101.
153. A. Edlabadkar, B.A. Peters, and S. Smith, “Design of a Generic, Real Time Material Transport
Control System”, Proceedings of the First World Congress on Intelligent Manufacturing
Processes and Systems, San Juan, Puerto Rico, February, 1995.
154. B. Freyemuth and V. Held, “Knowledge-based Incipient Fault Diagnosis of Industrial Robot
Mechanics”, IFAC-Symposium, SAFEPROCESS, Barden-Barden, September, 1991.
155. A. Garcia, J.F. Conde, A. Vina, “A comprehensive approach in performance evaluation for
modern real-time operating systems”, Proceedings of the 22nd EUROMICRO Conference.
EUROMICRO 96. Beyond 2000: Hardware and Software Design Strategies, 2-5 Sept., Prague,
Czech Republic, 1996, pp 61–88.
572
References