Professional Documents
Culture Documents
MCE 110
Prepared By
2021
CHAPTER ONE
Mechatronics system I
1.0 Introduction to Mechatronics
1.1 Definitions of Mechatronics
1.2 Components of a Mechatronics System
1.3 Examples of Mechatronics systems
1.4 Advantages and disadvantages of Mechatronics
1.5 Elements of mechatronics system
Open-loop operation: Here, command signals are sent to the actuators without
utilizing any feedback information from the sensors and for it to work, a good
calibration between the input and output of the system with minimal disturbances
is required.
Closed-loop operation: This is the more common mode of operation mode in
which the command signals sent to the actuators utilize the feedback
information from the sensors. This mode of operation does not require calibration
information, and it is much better suited for handling disturbances and noise.
1.2.2. Digital-to-Analog Converter: In many cases, the command signals to the
actuators are first converted from a digital to an analog form.
1.2.3. Drive Circuit: Amplifiers implemented in the form of drive circuits are used
to amplify the command signals sent to the actuators.
1.2.4. Actuator: This is the mechanism that converts electrical signals into
useful mechanical motion or action.
1.2.5. Sensors: A device that converts an environmental condition into an
electrical signal.
1.2.6. Signal Conditioning: Mostly, the signals produced by the sensors are not in
a form ready to be read by the controller and thus signal conditioning operations
are performed on them.
1.2.7. Analog-to-Digital Converter: The conditioned or sensed signals are then
converted to a digital form (if not already in that form) and presented to the
controller.
1.3. Examples of Mechatronics systems
Examples of mechatronic systems are commonly found in homes, offices, schools,
shops, and of course, in industrial applications. Common mechatronic systems
include:
(i) Domestic appliances, such as fridges and freezers, microwave ovens,
washing machines, vacuum cleaners, dishwashers, cookers, timers, mixers,
blenders, stereos, televisions, telephones, lawn mowers, digital cameras,
videos and CD players, camcorders, and many other similar modern devices;
(ii) Domestic systems, such as air conditioning units, security systems,
automatic gate control systems;
(iii) Office equipment, such as laser printers, hard drive positioning systems,
liquid crystal displays, tape drives, scanners, photocopiers, fax machines, as
well as other computer peripherals;
(iv) Retail equipment, such as automatic labelling systems, bar-coding machines,
and tills found in supermarkets;
(v) Banking systems, such as cash registers, and automatic teller machines;
(vi) Manufacturing equipment, such as numerically controlled (NC) tools, pick-
and place robots, welding robots, automated guided vehicles (AGVs), and
other industrial robots;
(vii) Aviation systems, such as cockpit controls and instrumentation, flight
control actuators, landing gear systems, and other aircraft subsystems.
The following are typical examples of mechatronic systems which consist of the
key elements of a mechatronics system.
A Home/Office Example
An example of a mechatronic system is the common heating/cooling system for
homes and offices. Simple systems use a bimetal thermostat with contact points
controlling a mercury switch that turns on and off the furnace or air conditioner. A
modern environmental control system uses these same basic components along
with other components and computer program control. A temperature sensor
monitors the physical environment and produces a voltage level. After conversion
by the ADC, the microcontroller uses the digitized temperature data along
with a 24-hour clock and the user requested temperatures to produce a digital
control signal.
This signal directs the actuator e.g. a simple electrical switch. The switch, in turn,
controls a motor to turn the heating or cooling unit on or off. New
measurements are then taken and the cycle is repeated. Thus, it is a mechatronic
system because of its combination of mechanical, electrical, and computer
components.
An Automotive Example
Another example is the Antilock Braking System (ABS) found in many vehicles.
The entire purpose of this type of system is to prevent a wheel from locking
up and thus having the driver loose directional control of the vehicle due to
skidding. In this case, sensors attached to each wheel determine the rotational
speed of the wheels. These data, probably in a waveform or time-varied electrical
voltage, is sent to the microcontroller along with the data from sensors reporting
inputs such as brake pedal position and vehicle speed. After conversion by the
ADC, the program in the microprocessor then determines the necessary action.
This is where the aspect of human computer interface (HCI) or human machine
interface (HMI) comes into play by taking account of the “feel” of the system
to the user. System calibration can adjust the response to the driver while, of
course, stopping the vehicle by controlling the brakes with the actuators. There are
two important things to note in this example. The first is that, in the end, the
vehicle is being stopped because of hydraulic forces pressing the brake pad
against a drum or rotor(a purely mechanical function). The other is that the ABS,
while an “intelligent product,” is not a stand-alone device. It is part of a larger
system, the vehicle, with multiple microcontrollers working together through the
data network of the vehicle.
Industrial Robots
A robot is a mechanical device that can be programmed to perform a wide variety
of applications. The main components of a robot system are the controller and the
mechanical arm. The controller handles several operations, including the user
interface, programming, and control of the arm. The mechanical arm consists of
several mechanical links that are connected at joints. An actuator is used to drive
each link, and each actuator has a feedback sensor to indicate the location of the
link. A multi-link robot is a complicated device that requires coordination of the
motion of the links. This job is done by the control software, which processes
information from the desired motion of the arm, and the feedback sensors, which
send commands to the actuators or the servomotors to perform the desired task. To
enable a robot to handle variation in the environment in which it operates,
additional sensors are normally used (such as vision and proximity).
Mobile Robot
A mobile robot consists of a number of modules that are commanded by a
controller. Due to their operation in unstructured environments, mobile robots rely
heavily on sensors to guide them in navigation and to avoid obstacles. Examples of
sensors used by mobile robots include ultrasonic proximity sensors, vision sensors,
and global positioning system sensors. An example of a mobile robot is the
Roomba® vacuum-cleaning robot made by iRobot® Corporation.
The Roomba has a cylindrical shape, two wheel modules, and a sensor to
detect obstacles. The Roomba has all of the main components of a mechatronic
system: actuators (wheel modules), sensors (target and dirt), and a controller.
A flatbed scanner
A scanner is a device that captures an image of a document and converts it into a
format suitable for electronic storage. The main components of a scanner include
the scanning head, the transport device, the controller, and the control software.
The controller commands the transport device which carries the scanner head. The
transport device uses a stepper motor and a system of gears and belts to move the
scanning head in precise steps. After each step, the transport device stops, and a
scan is sampled. The scanning head involves some form of a line camera that
measures the reflectivity of a scanned line. The scanned line is brought to the scan
sensor through a system of mirrors and lenses. The output of the scanning head is
processed by the control software to create a map of the scanned document. This
map is further analyzed to reveal all of the features in the document and to filter
any noise signals from the captured data. The control software sequences the
operation of the scanner and communicates with the PC. When the scanning job is
completed, the scanned image is then transferred to a PC using a USB or a parallel-
port connection. This mechatronic system involves all of the elements of a typical
control system: sensor, actuator, and controller.
Parking Gate
A parking garage gate is another example of a mechatronic system that involves a
number of elements. The system has an electric motor to raise and lower the gate
arm. It also has a proximity sensor to prevent the gate from striking people and
vehicles. In addition, it has a microcontroller in which software is used to run
the gate in different operating modes. Typically, a parking-garage gate operates
as follows: The user presses a button to get a ticket or swipes a card in a card
scanner. Once the ticket is picked up by the user or the card is validated, the gate
arm rotates upward. The gate arm remains in a raised position until the vehicle
has completely cleared the gate, at which point the gate drops down. The
operation of each stage of this system is dependent on sensor feedback and timing
information. The controller for this system cycles between the different operating
stages each time a vehicle needs to enter the parking garage.
TUTORIAL QUESTION
1. Explain the term “mechatronics”.
2. With the aid of a diagram, state the components of a mechatronics system.
3. Give 10 examples of a mechatronic system.
4. What are the key elements of a mechatronic system?
5. Give a typical system that comprises of the key elements of mechatronic
system.
CHAPTER 2
Mechatronics system II
2.1 System
2.2 Types of systems.
2.3 System measurement.
2.4 Control System.
2.5 Microprocessor.
2.6 Applications of Mechatronic system
2.1 SYSTEM
A system is a collection of components that interact with one another and with
their environment. A system usually contains three main parts: input, process and
output.
A system (or plant) is a naturally occurring or man-made entity which transforms
cause (or inputs) into effects (or outputs). System behaviour can be modified by
interactions with other systems e.g. A CD player takes the signal on the CD and
transforms it into a signal sent to the loud speaker.
The measurement system can be defined as all the components included from the
interface to the physical property being measured, pressure, vibration etc, to the
recorded data storage. This not only includes the physical devices, but the user as
well.
Figure 2.1: Complete measurement system
The measurement system in its simplest form generates a human readable interface
that can be used for simple monitoring. In this simple system any data must be
recorded by the operator. The measurement system may include an electrical
interface, allowing the data to be converted to some other format or in some other
location before it is presented to the operator. Data in this configuration is still
recorded by the operator, but the additional level of complexity allows for a certain
amount of pre-processing to be completed. As stated, this configuration also allows
the measurement to be transmitted to some remote location. A simple example might
be reading a temperature. It should be obvious that there is simply no good way to
read a glass thermometer from a control room several hundred feet away, let alone
several states or countries away. However, if we convert this measurement to an
electrical measurement, we have techniques that will allow this information to be
transmitted to this remote control room, and under some conditions anywhere in the
world. From figure 2.1, there are a number of levels of interface that must occur
between the physical condition being measured, and the operator. Each of these
blocks represents some form of conversion of the data, mechanical, physical or
electronic. Each of these also represents an opportunity for error (difference between
the actual value and the measured value) to occur in the measurement. The goal of any
good measurement system is to get the best possible data, while minimizing the
impact to the system being measured.
Resolution Error: this is having a measurement device, or system that does not
have adequate resolution. Resolution of the measurement system is defined as
the smallest increment of change the system is capable of indicating. Say for
example, we are using a glass thermometer to measure the temperature of
water. This thermometer might have graduations at 1 degree increments.
This is the resolution of the measurement device. If the process we are trying to
measure needs to be recorded in 0.1 degree increments, the tendency would be to try
to interpolate the small space between the 1 degree graduations into tenths of a degree,
extending the resolution. The error introduced by this attempt is known as resolution
error.
II. Random errors: These types of errors are simply impossible, in most cases, to
determine beforehand. These errors are most easily seen in a situation where
multiple readings of the same system are taken, and there is a variation in these
readings. Statistically you could calculate the total amount of error and
precision, after subtracting the known errors from this spread of points, you are
left with the random errors.
III. Illegitimate errors: This class of errors includes all the things that can go
wrong but shouldn’t, such as blunders by the person doing the experiment, or
incorrectly calculating results after the data has been taken. These types of
errors are rarely accounted for and are by far the most embarrassing to admit to.
A control system consists of subsystems and processes (or plants) assembled for the
purpose of obtaining a desired output with desired performance, given a specified
input. For example, consider an elevator. When the fourth-floor button is pressed on
the first floor, the elevator rises to the fourth floor with a speed and floor-leveling
accuracy designed for passenger comfort. The push of the fourth-floor button is an
input that represents our desired output.
A washing machine is an example of an open loop control system. The input and
output of an open loop system are unrelated. An example is that the operation of a
washing machine does not depend on the cleanness of the clothes, but rather on the
pre-set time. Both the structure and the control process of an open loop control
system are very simple, but the result of the output depends on whether the input
signal is appropriate or not.
Washing/ Spraying/
Washing Input time Timer Discharging Output
Drying
Machine (preset time) procedures controller
Fig 2.3 Block diagram of an open loop control system (washing machine)
Another example of an open loop control system is the burglar alarm system. The
function of the sensor is to collect data regarding the concerned house. When the
electronic sensor is triggered off (for example, by the entry of an unauthorized
person), it will send a signal to the receiver. The receiver will then activate the
alarm, which will in turn generate an alarm signal. The alarm signal will not cease
until the alarm is stopped manually.
Features of a Microprocessor
Cost-effective − The microprocessor chips are available at low prices
Size − It is of small size chip, hence is portable.
Low Power Consumption − They are manufactured by using metal oxide
semiconductor technology, which has low power consumption.
Versatility − The same chip can be used in a number of applications by
configuring the software program.
Reliability – it has low failure rate.
CLASSIFICATION OF MICROPROCESSOR
A microprocessor can be classified into three categories;
1. RISC (Reduced Instruction Set Computer) Processor: It is designed to
reduce the execution time by simplifying the instruction set of the computer.
Using RISC processors, each instruction requires only one clock cycle to
execute results in uniform execution time. The compiler also has to work more
to convert high-level language instructions into machine code. Examples are;
Power PC, DEC Alpha,: TS (R10000) RISC Processor, PA-RISC.
Characteristics of RISC
The major characteristics of a RISC processor are as follows;
It consists of simple instructions.
It supports various data-type formats.
It utilizes simple addressing modes and fixed length instructions for
pipelining.
It supports register to use in any context.
It consists of larger number of registers.
It consists of less number of transistors.
Characteristics of CISC
Variety of addressing modes.
Larger number of instructions.
Variable length of instruction formats.
Several cycles may be required to execute one instruction.
One instruction is required to support multiple addressing modes.
3. Special Processors: These are the processors which are designed for some
special purposes. Typical examples are;
A.Coprocessor
A coprocessor is a specially designed microprocessor, which can handle a
particular function many times faster than the ordinary microprocessor e.g. Math
Coprocessor.
B.Input/Output Processor
It is a specially designed microprocessor having a local memory of its own, which
is used to control I/O devices with minimum CPU involvement e.g. DMA (direct
Memory Access) controller, Keyboard/mouse controller, Graphic display
controller, SCSI port controller.
C.Transputer (Transistor Computer)
A transputer is a specially designed microprocessor with its own local memory
and having links to connect one transputer to another transputer for inter-
processor communications. It was first designed in 1980 by Inmos and is targeted
to the utilization of VLSI technology.
A transputer can be used as a single processor system or can be connected to
external links, which reduces the construction cost and increases the performance.
Examples are: 16-bit T212, 32-bit T425, the floating point (T800, T805 & T9000)
processors.
Advantages of microprocessor
It can be programmed to execute a number of tasks.
It has a good processing speed.
It can quickly move data between the various memory locations.
Disadvantages of microprocessor
It has a limitation on the size of data.
Most of the microprocessor does not support floating point operations.
The main disadvantage is it’s over heating physically.
It should not contact with the other external devices.
It does not have any internal peripheral like ROM, RAM and other I/O devices.
APPLICATIONS OF MICROPROCESSOR
It is used in personal computers (PCs).
It is used in LASER printers for good speed and making automatic photo
copies.
It is used in modems, telephone, digital telephone sets, and also in air
reservation systems and railway reservation systems.
It is used in medical instrument to measure temperature and blood pressure.
It is also used in mobile phones and television.
It is used in calculators and game machine.
It is used in accounting system and data acquisition system.
It is used in military applications.
It is also used in traffic light control.
It is used in home appliances such as microwave ovens, washing machine etc.
Fig 2.6 below shows a typical mechatronics system with mechanical, electrical,
and computer components. The process of system data acquisition begins with the
measurement of a physical value by a sensor. The sensor is able to generate some
form of signal, generally an analog signal in the form of a voltage level or
waveform. This analog signal is sent to an analog-to-digital converter (ADC) to
produce a digital output. This digital value is composed of a set of binary values
called bits (often represented by 0s and 1s). The set of bits represents a decimal or
hexadecimal number that can be used by the microcontroller. The micro-controller
consists of a microprocessor plus memory and other attached devices. The
program in the microprocessor uses this digital value along with other inputs and
preloaded values called calibrations to determine output commands. Like the input
to the microprocessor, these outputs are in digital form and can be represented by a
set of bits. A digital-to-analog converter (DAC) is then often used to convert the
digital value into an analog signal. The analog signal is used by an actuator to
control a physical device or affect the physical environment. The sensor then takes
new measurements and the process repeated, thus completing a feedback control
loop. Timing for this entire operation is synchronized by the use of a clock.
Measurement Control
Physical
Device
Clock Pulse
TUTORIAL QUESTIONS
1. What is system measurement?
2. Define system.
3. State the different type of systems with examples.
4. State the advantages and disadvantages of a microprocessor.
5. State the difference between a closed loop and an open loop control system.
CHAPTER 3
Basic Electronics
3.0. Ohm’s law
3.1. Conductor and Semi-conductor
3.2. Functions of PN junction Diodes
3.3. Sources of Power Supplies
Tutorial Questions
1. Define a conductor and semiconductor.
2. State the difference between the two types of semiconductors.
3. State ohm’s law and write the mathematical expression.
4. State 4 functions of a PN junction diode.
5. State 4 differences between AC and DC power source.
CHAPTER 4
Transistors and operational amplifiers
4.1. Transistor
4.2. Thyristor
4.3. Operational Amplifier
4.1. Transistor
A transistor consists of two pn junctions formed by adding either p-type or n-type
semiconductor between a pair of opposite types. In the transistor, one junction is
forward biased and the other is reverse biased. The forward biased junction has a
low resistance path whereas a reverse biased junction has a high resistance path.
Therefore, a transistor transfers a signal from a low resistance to high resistance.
There are two basic types of transistors, namely;
i. BJT (Bipolar Junction Transistor) and ii. FET (Field Effect Transistor)
These two transistor types differ in both their operating characteristics and their
internal construction.
BJT has two types which are;
(i) NPN transistor (ii) PNP transistor
An NPN transistor is composed of two n-type semiconductors separated by a thin
section of p-type.
A PNP transistor is formed by two p-sections separated by a thin section of n-type.
Fig 4.0: (i) NPN transistor structure (ii) PNP transistor structure
(a) (b)
Fig 4.1: (i) NPN transistor symbol (ii) PNP transistor symbol
Uses of transistor
1. It acts as an amplifier i.e. raises the strength of a signal.
2. It is used in digital circuits as an electronic switch.
3. For controlling and generating electrical signals
Two of the most common standard BJT circuits are called the common emitter
circuit and the emitter follower circuit.
Input Characteristic: This is the curve between base current IB and base emitter
voltage VBE at constant collector-emitter Voltage VCE as shown in Figure 4.4 (a).
Input Characteristic: This is the curve between collector current Ic collector-
emitter voltage VCE at constant base current IB as shown if fig 4.4 (b) shows the
relationship between IC and VCE as a function of the base current (IB).
Fig 4.4: (a) Input characteristic curve (b) Output characteristic curve
4.2. THYRISTOR
A thyristor (silicon-controlled rectifier or SCR) is a three-terminal semiconductor
device that behaves like a diode but with an additional terminal. The additional
terminal is called a gate, and when a small current flows into the gate, it allows a
much larger current to flow from the anode to the cathode (provided that the voltage
between the anode and the cathode is forward biased).
Uses of thyristors
1. As static contactors i.e. as a switch.
2. for power control.
3. for speed control of DC shunt motor.
4. For overlight detection.
5. As a crowbar i.e. used in protecting a voltage sensitive load from excessive DC
power supply output voltage.
4.3. Operational Amplifier
An operational amplifier is a circuit that can perform such mathematical operations
such as addition, subtraction, integration and differentiation. The key electronic
circuit in an OP-Amp is the differential amplifier. A differential amplifier can
accept two input signals and amplifies the difference between these two input
signals.
Uses of Op-Amp
It is used in computers,
It is used as video and audio amplifiers in communication electronics
Properties of Op-Amp
i. It has an inverting and a non-inverting input.
ii. An OP-Amp can amplify DC as well as AC signals.
iii. It has very high input impedance (ideally infinite)
iv. It has very low output impedance (ideally zero).
v. It has very high open-loop voltage gain (ideally infinite), typically more than
200,000.
Tutorial Questions
1. Define transistor.
2. State the 2 uses each of transistors and thyristors.
3. Differentiate between a transistor and thyristor.
4. Draw the block diagram of an op-amp and state its five properties.
5. Draw the input and output characteristic curve of a common emitter circuit.