For Final Print
For Final Print
Signal Conditioner
Display System
• A signal conditioner receives signal from the
• A display system displays the data (output)
sensor and manipulates it into a suitable condition
from the signal conditioner by analog or
for display. The signal conditioner performs
digital. A digital system is a temporary store
filtering, amplification or other signal
such as recorder. Example:
conditioning on the sensor output. Example:
Display – L.E.D (or) Number on scale by
Temperature measurement – Single Conditioner
pointer movement
function (Amplifier)
Input – Conditioned Signal (from signal
Input – Small E.M.F value (From sensor)
conditioner)
Output – Big E.M.F Value (Amplified).
Output – Value of the quantity (Temperature)
1.2 Review of control systems
What is Control system? How can we control systems? what we are going to
control?
A control system is defined as a system of devices that manages, commands,
directs, or regulates the behavior of other devices or systems to achieve a
desired result. A control system achieves this through control loops, which are a
process designed to maintain a process variable at a desired set point.
A system, whose output can be managed, controlled or regulated by varying
its input is called Control System.
• If we look around, we will find many control systems in our surroundings
i.e. Refrigerator, Air Conditions, Washing Machines etc.
• A control system can also be a combination of smaller control systems and
are normally used to get desired/required output.
• It's block diagram is shown in below figure:-
The above figure represents a simple control system and we can think of
this control system as a mathematical equation i.e.
X+5=Y
Sr. No. Open Loop Control System Closed Loop Control System
10 Examples: Hand drier, tea maker Examples: Servo voltage stabilizer, perspiration
1.3 Review on Mechatronics system Modeling
𝑑𝜔(𝑡)
τ= J , the torque with respect to
𝑑𝑡
angular velocity and
𝑑 2 𝜃(𝑡)
τ=J 2 , with respect to angular displacement
𝑑𝑡
Example 2.4 Consider an ideal frictional element dash pot shown in fig. which
has negligible moment of inertia and elasticity. Let a torque be applied on it.
The dash pot will offer an opposing torque proportional to angular velocity of
the body, calculate τ?
τ = B∆𝜔(𝑡), the torque with respect to angular velocity
𝑑
τ= B (𝜃1 − 𝜃2 )
𝑑𝑡
2. Rotational mechanical systems
Handled the same way as translational mechanical systems,
except that:
a. Torque replaces force and
b. Angular displacement replaces translational
displacement.
The mechanical components for rotational systems are the
same as those for translational systems, except that the
components undergo rotation instead of translation
Table2.5shows the components along with the relationships
between torque and angular velocity, as well as angular
displacement. Notice that the symbols for the
Generally:
During Mathematical Modelling of Mechanical Systems We have two types of
mechanical systems; linear mechanical system or it may be a rotational mechanical
type of system.
• In a linear mechanical type of systems, we have three variables:
1) Force, represented by ‘F’
2) Velocity, represented by ‘V’
3) Linear displacement, represented by ‘X’
4) And also we have three parameters:
5) Mass, represented by ‘M’
6) The coefficient of viscous friction, represented by ‘D or B’
7) The spring constant, represented by ‘K
• In a rotational mechanical type of systems we have three variables:
1) Torque, represented by ‘T’
2) Angular velocity, represented by ‘ω’
3) Angular displacement, represented by ‘θ’
4) And also we have two parameters :
5) Moment of inertia, represented by ‘J’
6) The coefficient of viscous friction, represented by ‘B’
Mechanical–electrical Analogies
Mechanical–electrical analogies are used to represent the function of
a mechanical system as an equivalent electrical system by
drawing analogies between mechanical and electrical parameters
• There are two types of analogies and they are written below:
a) Force Voltage Analogy
b) Force Current Analogy Force to Current Analogy
1.Mass (M) is analogous to Capacitor (C).
Force-Voltage Analogy
2.Force is analogous to current I.
1.Mass (M) is analogous to inductance (L).
3.Displacement (x) is analogous to flux (ψ).
2.Force is analogous to voltage V.
4.Coefficient of friction (B) is analogous
3.Displacement (x) is analogous to charge (Q).
to resistance 1/ R and
4.Coefficient of friction (B) is analogous to
5.Spring constant K is analogous to inverse
resistance R and
of the inductor (L).
5.Spring constant is analogous to inverse of
the capacitor (C).
Exercise 1.
Find the system equation for system shown in the fig. And also determine
f-v analogies
Assignment
Raya University
Collage of Engineering and Technology
Department of Mechanical Eng.
2.1 Introduction
In the previous section we have looked at some basic aspects of measurement
systems.
We have also noted the fundamental importance of measurement systems
within mechatronic products and processes and how they influence the design
of such systems. In a similar manner, drives and
actuators play a primary role in mechatronic systems and their design and
development within the integrative nature of a mechatronic approach, is critical
for a successful design process.
As sensors and transducers produce the input to the mechatronic system, drives
and actuators provide the output of the system, influencing the system itself and
its environment as depicted in figure below:-
Figure 2.1 A Mechatronic System illustrating the interaction
between controller and environment via sensing Figure 2.2 Actuators functional diagram
and actuation.
What is an Actuator?
Actuators are devices used to produce action or motion
Input(mainly electrical signal, air, fluids)
Electrical signal can be low power or high power
Actuators output can be position or rate i.e. linear displacement or
velocity
Actuation can be from few microns to few meters
Actuation systems are the elements of control systems which are
responsible for transforming the output of a microprocessor or
control system into a controlling action on a machine or device.
Therefore:
• Actuators are mechanical or electro-mechanical devices that
provide controlled and sometimes limited movements or
positioning which are operated electrically, manually, or by
various fluids such as air, hydraulic, etc.
• The two basic motions are linear and rotary.
• Linear actuators convert energy into straight line motions,
typically for positioning applications, and usually have a
push and pull function.
• A rotary actuator converts energy to provide rotary motion. A
typical use is the control of various valves such as
ball valves or butterfly valves.
5.2 Classification and Selection of Actuators
a few key aspects of the relationship between semiconductors and motor control are:
Power Electronics
Motor Drive Circuits
Pulse Width Modulation (PWM)
Sensing and Feedback
Overall, semiconductors provide the necessary electronic components and control
techniques for efficient and effective motor control.
They enable precise power conversion, motor drive control, and feedback
mechanisms, leading to enhanced motor performance, energy efficiency, and
automation capabilities.
Power Electronics:
Semiconductors, particularly power semiconductor devices like transistors and
thyristors, are used in motor control to convert and regulate electrical power.
They handle high voltages and currents, switching power on and off to control the
flow of electricity to the motor.
Power semiconductor devices such as insulated gate bipolar transistors (IGBTs)
and MOSFETs are commonly utilized in motor control applications due to their
high power handling capabilities, fast switching speeds, and low power losses.
Motor Drive Circuits:
Semiconductor devices are employed in motor drive circuits to control the speed, torque,
and direction of electric motors. Integrated circuits (ICs) specifically designed for motor
control, such as motor driver ICs, incorporate power MOSFETs or IGBTs along with
control circuitry.
These ICs provide a convenient and compact solution for driving motors, offering
features like current sensing, protection mechanisms, and communication interfaces.
Pulse Width Modulation (PWM):
Pulse Width Modulation (PWM): Semiconductors enable the implementation of pulse
width modulation, a widely used technique in motor control.
PWM involves rapidly switching the power semiconductor devices on and off to create
a variable-width pulse signal.
By adjusting the width of the pulses, the effective voltage and current supplied to the
motor can be controlled, allowing for precise speed and torque regulation.
Sensing and Feedback:
Sensing and Feedback: Semiconductors are also utilized in motor control systems for
sensing and feedback purposes.
For example, Hall effect sensors, which are semiconductor devices, can be integrated
into motors to detect the position and speed of the rotor. This information is then fed
back to the motor control system, enabling closed-loop control and improved accuracy
in maintaining desired motor parameters.
3.2 Power Semiconductor device
The power semiconductor devices can be operated as switches by applying a control signals
to gate(a device to be controlled).
Classification
Power semiconductor switching devices can be classified on the basis of:
• Uncontrolled turn on and off (diodes)
• Controlled turn on and uncontrolled turn off (SCR)
• Controlled turn on and off (BJT, MOSFET, GTO, IGBT)
• Continuous gate signal requirement (BJT, MOSFET, IGBT)
• Pulse gate requirement (SCR, GTO)
• Bipolar voltage-withstanding capability (SCR, GTO)
• Unipolar voltage withstanding capability (BJT, MOSFET, GTO)
• Bidirectional current capability (TRIAC)
• Unidirectional current capability (SCR, GTO, BJT, MOSFET, DIODE)
most commonly used power semiconductors in motor
control systems:
A. Semiconductor diodes
• Registers: are collections of flip-flops used for storing multiple bits of data.
• Multiplexers: are digital circuits that select one of several inputs and route it
to a single output.
• Decoders: are circuits that convert a binary code into a set of output signals.
Boolean Algebra
• Boolean algebra is a mathematical system that deals with variables and
logical operations, named after mathematician and logician George Boole.
• It provides a formalism for expressing and manipulating logical statements
using binary values (0 and 1) and logical operators (such as AND, OR, and
NOT).
Logic Gates and Truth tables:
Logic gates are the basic building blocks of digital circuits. They
perform logical operations (such as AND, OR, NOT) on binary
inputs to produce binary outputs.
Boolean algebra laws and theorems
• Boolean algebra laws and theorems are a set of rules and principles that
govern the manipulation and simplification of Boolean expressions.
• These laws and theorems help simplify complex expressions and facilitate
analysis and design in Boolean algebra. Here are some of the fundamental
laws and theorems:
a. Identity Laws
b. Null Law
c. Domination Laws
d. Commutative Laws
e. Associative Laws
f. Distributive Laws
g. Idempotent Laws:
h. De Morgan's Laws
a. Identity Laws: b. Null Laws:
c. Commutative Laws:
• Identity Law for OR: • Null Law for OR:
A+0=A A+1=1 • Commutative Law for OR: A + B = B + A
• Identity Law for AND: A * 1 = A • Null Law for AND: A * 0 = 0 • Commutative Law for AND: A * B = B * A
• Solution
Home practice
• Find the Boolean algebra expression for the following system.
• Solution
Class Exercise
1. (𝐴𝐵 + 𝐶). 𝐶 6. (𝐴𝐶 + 𝐵). 𝐴𝐵 + 𝐶
2. (𝐴 + 𝐵. 𝐶). 𝐴. 𝐶 7. 𝐴ҧ + 𝐵 . 𝐴ҧ + 𝐶ҧ
3. (𝐴𝐵𝐶. 𝐴𝐵 + 𝐶ҧ 8. 𝐴𝐶 + 𝐵 + 𝐴𝐵. 𝐶ҧ
4. 𝐴𝐵𝐶. (𝐴𝐶 + 𝐵) 9. 𝐴 + 𝐵𝐶 + (𝐴 + 𝐶)
Reading Assignment
Subtractors:
Multiplexers:
• A multiplexer (sometimes spelled multiplexor and also known as a
MUX) is a combinational circuit that selects one of several data inputs
and forwards it to the output.
• The inputs to a multiplexer can be analog or digital. Multiplexers are also
known as data selectors.
• A multiplexer is useful for transmitting a large amount of data over the
network within a certain amount of time and bandwidth.
• 2 to 1 Multiplexer Working Principle
Y=𝑆ഥ1 𝑆0 𝐴0 + 𝑆ഥ1 𝑆0 𝐴1 + 𝑆1 𝑆0 𝐴2 + 𝑆1 𝑆0 𝐴3
8 to 1 Multiplexer Working Principle
𝑌2 =E. A1.A0
𝑌1 =E.A1. A0
𝑌0 =E. A1. A0
3 to 8 line decoder:
• The 3 to 8 line decoder is also known as Binary to Octal Decoder.
• In a 3 to 8 line decoder, there is a total of eight outputs, i.e., Y0, Y1, Y2, Y3, Y4, Y5, Y6, Y7 &
• three inputs, i.e., A0, A1, and A2.
• This circuit has an enable input 'E'. Just like 2 to 4 line decoder, when enable 'E' is set to 1,
one of these four outputs will be 1.
Y0=𝐴0 . 𝐴1 . 𝐴2
Y1=A0. 𝐴1 . 𝐴2
Y2=𝐴0 . .A1. 𝐴2
Y3=A0.A1. 𝐴2
Y4=𝐴0 . 𝐴1 .A2
Y5=A0. 𝐴1 .A2
Y6=𝐴0 .A1.A2
Y7=A0.A1.A2
Encoders
• The combinational circuits that change the binary information into N output
lines are known as Encoders.
• The binary information is passed in the form of 2N input lines. The output
lines define the N-bit code for the binary information.
• In simple words, the Encoder performs the reverse operation of
the Decoder. At a time, only one input line is activated for simplicity.
4 to 2 line Encoder:
• In 4 to 2 line encoder, there are total of four inputs, i.e., Y0, Y1, Y2, and Y3, and two
outputs, i.e., A0 and A1.
• In 4-input lines, one input-line is set to true at a time to get the respective binary code
in the output side. Below are the block diagram and the truth table of the 4 to 2 line
encoder.
A1=Y3+Y2
A0=Y3+Y1
8 to 3 line Encoder:
The 8 to 3 line Encoder is also known as Octal to Binary Encoder. In 8 to 3 line encoder,
there is a total of eight inputs, i.e., Y0, Y1, Y2, Y3, Y4, Y5, Y6, and Y7 and three outputs, i.e.,
A0, A1, and A2. In 8-input lines, one input-line is set to true at a time to get the respective
binary code in the output side. Below are the block diagram and the truth table of the 8 to 3
line encoder.
A2=Y4+Y5+Y6+Y7
A1=Y2+Y3+Y6+Y7
A0=Y7+Y5+Y3+Y1
Chapter 6:- Microprocessors and
Microcontrollers
Microprocessors:
• Microprocessors are integrated circuits that serve as the brain of modern
electronic devices, such as computers, smartphones, and embedded systems.
• The first microprocessor, the Intel 4004, was introduced in 1971. It had a 4-
bit architecture and operated at a clock speed of 740 kHz.
• Over the years, microprocessors have undergone significant advancements in
terms of architecture, performance, and features.
• Moore's Law, formulated by Intel co-founder Gordon Moore, states that the
number of transistors on a microprocessor doubles approximately every two
years, leading to exponential growth in processing power.
• Microprocessors have evolved from 4-bit to 8-bit, 16-bit, 32-bit, and 64-bit
architectures, allowing for increased computational capabilities and memory
addressing
…….Continued The Microprocessor (µP)
The µP is the 'brain of the
It's a semiconductor IC microcomputer
Multipurpose, programmable logic Is a single chip which is capable of
device. • processing data
Reads Instructions from the Memory • controlling all of the components which
Reading data from and writing data to make up the microcomputer system
memory and I/O
µP used to sequence executions of
Performing arithmetic and instructions that is in memory
• logic operations
µP Fetch, Decode, and Execute the
▸ Process data according to the instruction instruction
▸ Produces Output
The internal architecture of the
▸ Perform step-by-step procedure microprocessor is complex.
Organization of Microprocessors
• Microprocessors consist of several key components, including
the arithmetic logic unit (ALU), control unit (CU), registers,
cache memory, and buses.
• The ALU performs arithmetic and logical operations, while the CU
coordinates the execution of instructions and manages data flow.
• Registers are small, high-speed storage units used to store data and
instructions temporarily during processing.
• Cache memory is a small and fast memory unit that stores frequently
accessed data, reducing the time it takes to fetch data from main memory.
• Buses are communication pathways that facilitate the transfer of data and
instructions between different components of the microprocessor.
Basic Concepts of Programming
Microprocessors:
……… Basic Concepts
Bit: a binary digit, 0 or 1. Low-Level Language: a medium of
communication that is machine-dependent, or
Byte: a group of eight bits. specific to a given computer.
Nibble: a group of four bits.
High-Level Language: a medium of
Word: a group of bits the computer communication independent of a given computer
recognizes and processes as a whole. which are written in English-like words,
Instruction: a command in binary or
word Compiler: a program that translates English-
Mnemonic: a combination of letters like words of a high-level language into the
machine language of a computer. The.
Program: a set of instructions
Interpreter: a program that translates the
Machine Language: the binary
medium of communication English-like statements of a high-level language
into the machine language of a computer.
Assembly Language: a medium of
communication in which pro- grams are Assembler-a computer program that translates
written in mnemonics an assembly language program from mnemonics
to the binary machine code of a computer.
……… Basic Concepts
Programming microprocessors involves understanding concepts such as :
• memory addressing modes,
• instruction sets,
• branching and looping,
• I/O operations,
• interrupts, and
• handling exceptions.
• 1.MOV instruction:
• This copies a data from one place to other.
There are 8 modes of addressing the data using MOV instruction. Out of which only 3,
which are important for the programs are discussed here.
1.Register addressing
Copies a byte or a word from the source register to a destination register
E.g.: MOV CX, DX
2.Immediate addressing:
Copies the source which is an immediate byte, word, double-word, or quad-word of data,
into the destination register or memory location.
E.g.: MOV AL, 22H ;22H is a direct value, AL is a register
3.Register indirect addressing
• Copies a byte or word between a register and a memory location which is addressed by an
index register (SI & DI) or base register (BP or BX)
E.g.: MOV AX, [BX] ;copies a word sized data from the data segment
offset address indexed by BX register into AX register
2.MUL instruction:
• Does an unsigned multiply operation of the contents in the REG/Memory with
contents of AL register.
• Algorithm:
When operand is a byte:
AX = AL * operand.
When operand is a word:
(DX: AX) = AX * operand.
3.CMP instruction:
Compares two fields. Result is not stored anywhere. Instead,flags are set (OF, SF, ZF,
AF, PF, CF) according to result.
4.JMP instruction:
• Performs an unconditional Jump. Transfers control to another part of the program.
Label name can be any valid identifier.
Microcontrollers(µC)
Introduction
• A µC is a small computer on a single integrated circuit (IC) that contains a
processor core, memory, and input/output peripherals.
• It is designed to perform specific tasks and embedded within electronic
devices or systems.
• They are programmed to control and monitor the behavior of electronic
circuits and devices.
Components of a Microcontroller:
Processor Core:
• The central processing unit (CPU) of the
microcontroller executes instructions and
performs computations.
Memory:
• Microcontrollers have two types of memory -
program memory (ROM or Flash) to store the
program instructions and data memory (RAM) to
hold temporary data during program execution.
I/O Peripherals:
• These peripherals enable communication with
external devices, such as sensors, actuators,
displays, and communication interfaces (e.g.,
UART, SPI, I2C).
Clock Source:
• Microcontrollers have an internal clock or require
an external clock source to synchronize the
operations.
Applications of Microcontrollers:
• Home Automation: Microcontrollers are used to control lighting systems,
home security, temperature control, and energy management.
• Automotive Systems: Microcontrollers are employed in engine control units
(ECUs), anti-lock braking systems (ABS), airbag control, and entertainment
systems.
• Industrial Automation: Microcontrollers are used in programmable logic
controllers (PLCs), motor control, robotics, and monitoring systems.
• Medical Devices: Microcontrollers play a vital role in medical equipment
like pacemakers, blood glucose monitors, and diagnostic devices.
• Consumer Electronics: Microcontrollers are found in smartphones, gaming
consoles, digital cameras, and smart home devices.
Microcontroller Programming
• Microcontrollers are programmed using low-level languages (Assembly
language or C) or high-level languages with suitable compilers.
• Programs for microcontrollers involve defining the behavior of I/O
peripherals, handling interrupts, implementing control algorithms, and
managing memory.
• Microcontroller programs are typically written using integrated
development environments (IDEs) that provide tools for writing,
compiling, and debugging. 98e7f45d6014
Chapter 7. Programmable Logic controllers (PLC)
Introduction
• What is PLC?
PLC is an industrial computer control
system that continuously monitors the
state of input devices, and makes
decisions based upon a custom
program to control the state of output • It is capable of storing the
devices. instructions to implement control
functions such as sequencing,
• PLC is an industrial computer timing, counting, arithmetic,
designed for multiple inputs and data manipulation and
output arrangements. communication.
PLC Overview
• A PLC has many "input" terminals, through which it interprets
"high" and "low" logical states from sensors and switches.
• It also has many output terminals, through which it outputs "high"
and "low" signals to power lights, solenoids, contactors, small
motors, and other devices lending themselves to on/off control.
• In an effort to make PLCs easy to program, their programming
language was designed to resemble ladder logic diagrams.
• Thus, an industrial electrician or electrical engineer accustomed to
reading ladder logic schematics would feel comfortable
programming a PLC to perform the same control functions.
Major Components of a Logic Controller:
A logic controller consists of the following
essential components:
• Power Supply
• Central Processing Unit (CPU)
• I/O Modules
• Memory
• Communication Interfaces
• Programing Device
• Switch Mode Power Supply
• Power Supply: Provides the voltage needed to run the primary PLC components
• Central Processing Unit (CPU): The CPU is the core component of a PLC. It processes
program instructions, performs calculations, and controls input/output operations.
• I/O Modules: These modules interface with external devices, such as sensors and
actuators, to receive input signals and send control signals.
• Memory: PLCs have different types of memory, including program memory (stores the
program instructions), data memory (stores variables and data), and retentive memory
(retains data during power loss).
• Communication Interfaces: PLCs often have communication ports to connect with
other devices or systems, enabling data exchange and remote monitoring/control.
• Programing Device: Used to enter the desired program that will determine the sequence
of operation and control of process equipment or driven machine.
• SMPS: It stands for Switch Mode Power Supply. SMPS is power conversion and a
high-frequency power conversion device. It converts the voltage level into the
specifically required voltage. SMPS uses solid stat switches to convert the AC supply
into the smooth DC supply.
• Know your process: We should know our process that we are starting with.
• Circuit design: The design is the first part of any project. A project or
model cannot be created without design.
• Devices used: It is crucial to know the devices used in the project.
• Programming: It is an essential part. The created model is programmed for
implementation.
• Testing or Simulation: At the final stage, the model is tested. Considerable
time is spent on testing and simulation.
• The above steps are necessary to understand the operation of the PLC.
PLC cycle
The PLC system is often expensive. The incorrect programming or design of PLC can
result in loss of productivity. To save the time to design of PLC control applications,
simulation software like PLCLogix are recommended. Such software saves time and
also increases the safety associated with the PLC equipment.
The PLC cycle is shown below: Know your process: We should know
our process that we are starting with.
Circuit design: The design is the first
part of any project. A project or model
cannot be created without design.
Devices used: It is crucial to know the
devices used in the project.
Programming: It is an essential part.
The created model is programmed for
implementation.
Testing or Simulation: At the final
stage, the model is tested. Considerable
time is spent on testing and simulation.
Applications of PLC
NC: The Normally Close is the default state of a circuit that makes electrical contact with the
circuit. It means the circuit is in ON state.
NO: The Normally Open is the state of a circuit that makes no electrical contact with the
circuit. It means the circuit is in the OFF state. It opens the terminal of the circuit to interrupt
the flowing current. We will use pushbuttons for programming in PLC.
Symbols used in Programming
• Various symbols are used to create a ladder circuit for PLC programming. Let's
consider some essential symbols. The symbols are shown below:
NC
NO
The NC button remains the same when the
The NO button turns NC when it is
pressed. It means, when the input is 1, NO input is 0. It turns NO when the input is 1.
turns NC. Consider the following:
It means the current can pass through.
Consider the following:
• Here, A and B are the inputs, while L is • When A = 0 and B = 1, the circuit will
the lamp. The lamp will glow when the appear as:
current flows through the circuit and reaches
the lamp. Otherwise, the lamp will not glow.
• When A = 0 and B = 1, the circuit will appear
as:
• When A = 1 and B = 1, the circuit will
appear as:
• But, if A = 1 and B = 1, the circuit will
appear as:
Other Components used in Programming
Other components used in the programming are
listed below:
Timers
• The Timers in PLC provides the ON and
OFF time delay like electronics relays. For
example, a timer of 5s is placed in the
ladder circuit. The output will be OFF/ON
after duration of 5 seconds.
• The timers are categorized as ON timer,
OFF timer, and Pulse timer.
• ON Timer
• The output in ON timer is turned ON after
the specified delay. It is the most
commonly used delay timer.
• The ON Timer is represented as the figure
shown below:
• OFF Timer