Professional Documents
Culture Documents
Danang, 2019
TABLE OF CONTENTS
5.2. Classification................................................................................................................ 39
MECHANICAL SYSTEMS................................................................................... 43
10.5 Self-Aligning............................................................................................................... 81
REFERENCES ................................................................................................................88
CHAPTER 1: MECHATRONICS
Logic gates are the basic components in digital electronics. They are used to
create digital circuits and even complex integrated circuits. For example, complex
Suppose we have a gate giving a high output only when both input A and input B are
high; for all other conditions it gives a low output. This is an AND logic gate. We can
visualize the AND gate as an electric circuit involving two switches in series. Only
when switch A and B are closed, there is a current.
2.2 OR Gate
An OR gate with inputs A and B gives an output of a 1 when A or B is 1. We can
visualize such a gate as an electric circuit involving two switches in parallel. When
switch A or B is closed, then there is a current. OR gates can also have more than
inputs. We can write the Boolean equation for an OR gate as:
A+B=Y
A=Y
A bar over a symbol is used to indicate that the inverse, or complement, is being
taken; thus the bar over the A indicates that the output Y is the inverse value of A.
Input Output
1
0
A+ B =Y
2.6 XOR Gate
A XOR stands for exclusive OR. XOR gate compares two values and if they are
different its output will be “1.” XOR operation is represented by the symbol ⊕. So
Y = A ⊕ B is the Boolean equation for the XOR gate.
A (·) B = Y
3.1 Resistance
The electrical resistance of an object is a measure of its opposition to the passage
of a steady electric current. An object of uniform cross section will have a resistance
proportional to its length and inversely proportional to its cross-sectional area, and
proportional to the resistivity of the material.
Discovered by Georg Ohm in the late 1820s, electrical resistance shares some
conceptual parallels with the mechanical notion of friction. The SI unit of electrical
resistance is the ohm, symbol Ω. Resistance's reciprocal quantity is electrical
conductance measured in Siemens, symbol S.
The resistance of a resistive object determines the amount of current through the
object for a given potential difference across the object, in accordance with Ohm’s
laws:
V
I=
R
where
R is the resistance of the object, measured in ohms, equivalent to J·s/C2
V is the potential difference across the object, measured in volts
I is the current through the object, measured in amperes
We all know that voltmeter and ammeter are used for measuring the voltage and
the current respectively. For the resistance, the meters that use to measure it is the
ohmmeter. But what if we don't have an ohmmeter to use?
Color coding system for resistors consists of three colors to indicate the
resistance value in ohms of a certain resistor, sometimes the fourth color indicate the
tolerance value of the resistor. By reading the color coded in correct order and
substituting the correct value of each corresponding color coded as shown in the
table below, you can immediately tell all you need to know about the resistor. Each
color band represents a number and the order of the color band will represent a
number value. The first 2 color bands indicate a number. The 3rd color band indicates
the multiplier or in other words the number of zeros. The fourth band indicates the
tolerance of the resistor. In most cases, there are 4 color bands. However, certain
3.2 Diode
A diode is a type of two-terminal electronic component with nonlinear resistance
and conductance (i.e., a nonlinear current–voltage characteristic), distinguishing it
from components such as two-terminal linear resistors which obey Ohm's law. A
semiconductor diode, the most common type today, is a crystalline piece of
semiconductor material connected to two electrical terminals. A vacuum tube diode
(now rarely used except in some high-power technologies) is a vacuum tube with
two electrodes: a plate and a cathode.
The most common function of a diode is to allow an electric current to pass in one
direction (called the diode's forward direction), while blocking current in the
opposite direction (the reverse direction). Thus, the diode can be thought of as an
electronic version of a check valve. This unidirectional behavior is called
rectification, and is used to convert alternating current to direct current, and to
extract modulation from radio signals in radio receivers—these diodes are forms of
rectifiers.
Current–voltage characteristic
Depending on the voltage applied across it, a diode will operate in one of three
regions:
1. Forward bias: When the voltage across the diode is positive the diode is "on"
and current can run through. The voltage should be greater than the forward
voltage (VF) in order for the current to be anything significant.
2. Reverse bias: This is the "off" mode of the diode, where the voltage is less than
VF but greater than -VBR. In this mode current flow is (mostly) blocked, and the
Forward Voltage
In order to "turn on" and conduct current in the forward direction, a diode
requires a certain amount of positive voltage to be applied across it. The typical
voltage required to turn the diode on is called the forward voltage (VF). It might also
be called either the cut-in voltage or on-voltage.
As we know from the i-v curve, the current through and voltage across a diode are
interdependent. More current means more voltage, less voltage means less current.
Once the voltage gets to about the forward voltage rating, though, large increases in
current should still only mean a very small increase in voltage. If a diode is fully
conducting, it can usually be assumed that the voltage across it is the forward voltage
rating.
A specific diode's VF depends on what semiconductor material it's made out of.
Typically, a silicon diode will have a VF around 0.6-1V. A germanium-based diode
Breakdown Voltage
If a large enough negative voltage is applied to the diode, it will give in and allow
current to flow in the reverse direction. This large negative voltage is called
the breakdown voltage. Some diodes are actually designed to operate in the
breakdown region, but for most normal diodes it's not very healthy for them to be
subjected to large negative voltages.
For normal diodes this breakdown voltage is around -50V to -100V, or even more
negative.
Diode Datasheets
All of the above characteristics should be detailed in the datasheet for every
diode. For example, this datasheet for a 1N4148 diode lists the maximum forward
voltage (1V) and the breakdown voltage (100V) (among a lot of other information):
The Zener diode behaves just like a normal general-purpose diode consisting of a
silicon PN junction and when biased in the forward direction, that is anode positive
with respect to its cathode, it behaves just like a normal signal diode passing the
rated current.
However, unlike a conventional diode that blocks any flow of current through
itself when reverse biased, that is the Cathode becomes more positive than the
Anode, as soon as the reverse voltage reaches a pre-determined value, the Zener
diode begins to conduct in the reverse direction.
The current now flowing through the Zener diode increases dramatically to the
maximum circuit value (which is usually limited by a series resistor) and once
achieved, this reverse saturation current remains fairly constant over a wide range of
reverse voltages. The voltage point at which the voltage across the Zener diode
becomes stable is called the “Zener voltage”, (Vz ) and for Zener diodes this voltage
can range from less than one volt to a few hundred volts.
3.3 LED
A light-emitting diode (LED) is a semiconductor light source. LEDs are used as
indicator lamps in many devices and are increasingly used for other lighting.
Introduced as a practical electronic component in 1962, early LEDs emitted low-
intensity red light, but modern versions are available across the visible, ultraviolet,
and infrared wavelengths, with very high brightness.
When a light-emitting diode is forward-biased (switched on), electrons are able to
recombine with electron holes within the device, releasing energy in the form of
photons. This effect is called electroluminescence and the color of the light
(corresponding to the energy of the photon) is determined by the energy gap of the
semiconductor. LEDs are often small in area (less than 1 mm2), and integrated optical
components may be used to shape its radiation pattern. LEDs present many
advantages over incandescent light sources including lower energy consumption,
longer lifetime, improved robustness, smaller size, and faster switching. LEDs
powerful enough for room lighting are relatively expensive and require more precise
current and heat management than compact fluorescent lamp sources of comparable
output.
COM
E D C Dp
Analog Features:
✓ 10-bit, up to 8-channel Analog-to-Digital Converter (A/D)
✓ Brown-out Reset (BOR)
✓ Analog Comparator module with:
• Two analog comparators
• Programmable on-chip voltage reference (VREF) module
• Programmable input multiplexing from device inputs and internal
voltage reference
• Comparator outputs are externally accessible
It is not different from another microcontroller’s CPU and the PIC microcontroller
CPU consists of the ALU, CU, MU and accumulator, etc. Arithmetic logic unit is mainly
used for arithmetic operations and to take logical decisions. Memory is used for
storing the instructions after processing. To control the internal and external
peripherals, control unit is used which are connected to the CPU and the accumulator
is used for storing the results and further process.
RAM is an unstable memory which is used to store the data temporarily in its
registers. The RAM memory is classified into two banks, and each bank consists of so
many registers. The RAM registers are classified into two types: Special Function
Registers (SFR) and General-Purpose Registers (GPR).
Read only memory is a stable memory which is used to store the data
permanently. In PIC microcontroller architecture, the architecture ROM stores the
instructions or program, according to the program the microcontroller acts. The ROM
is also called as program memory, wherein the user will write the program
for microcontroller and saves it permanently, and finally the program is executed by
the CPU. The microcontrollers’ performance depends on the instruction, which is
executed by the CPU.
Flash Memory
Flash memory is also programmable read only memory (PROM). PROM can be
read, written and erased multiple times. Generally, the PIC microcontroller is
equipped with this type of PROM.
Stack
When an interrupt occurs, first the PIC microcontroller has to execute the
interrupt and the existing process address. Then that is being executed is stored in
I/O Ports
The series of PIC16 consists of five ports such as Port A, Port B, Port C, Port D &
Port E.
Port A is a 16-bit port that can be used as input or output port based on the status
of the TRISA register. Port B is an 8- bit port that can be used as both input and
output port. Port C is an 8-bit and the input of output operation is decided by the
status of the TRISC register. Port D is an 8-bit port acts as a slave port for connection
to the microprocessor BUS. Port E is a 3-bit port which serves the additional function
of the control signals to the analog to digital converter.
Bus
BUS is used to transfer and receive the data from one peripheral to another. It is
classified into two types such as data bus and address.
▪ Data Bus: It is used for only transfer or receive the data.
▪ Address Bus: Address bus is used to transmit the memory address from the
peripherals to the CPU. I/O pins are used to interface the external peripherals;
UART and USART both are serial communication protocols which are used for
interfacing serial devices like GSM, GPS, Bluetooth, IR, etc.
A/D Converters
The main intention of this analog to digital converter is to convert analog voltage
values to digital voltage values. A/D module of PIC microcontroller consists of 5
inputs for 28 pin devices and 8 inputs for 40 pin devices. The operation of the analog
to digital converter is controlled by ADCON0 and ADCON1 special registers. The
upper bits of the converter are stored in register ADRESH and lower bits of the
converter are stored in register ADRESL. For this operation, it requires 5V of an
analog reference voltage.
PIC microcontroller has four timer/counters wherein the one 8-bit timer and the
remaining timers have the choice to select 8 or 16-bit mode. Timers are used for
generating accuracy actions, for example, creating specific time delays between two
operations.
Interrupts
Serial Communication
USART: The name USART stands for Universal synchronous and Asynchronous
Receiver and Transmitter which is a serial communication for two protocols. It is
used for transmitting and receiving the data bit by bit over a single wire with respect
to clock pulses. The PIC microcontroller has two pins TXD and RXD. These pins are
used for transmitting and receiving the data serially.
SPI Protocol: The term SPI stands for Serial Peripheral Interface. This protocol is
used to send data between PIC microcontroller and other peripherals such as SD
I2C Protocol: The term I2C stands for Inter Integrated Circuit, and it is a serial
protocol which is used to connect low speed devices such as EEPROMS,
microcontrollers, A/D converters, etc. PIC microcontroller supports two wires
Interface or I2C communication between two devices which can work as both Master
and Slave device.
The name CCP module stands for capture/compare/PWM where it works in three
modes such as capture mode, compare mode and PWM mode.
Safety
All the instructions fit into a 12 or 14 bit program memory word. There is no
likelihood of software jumping onto the DATA section of a program and trying to
execute DATA as instructions.
Instruction set
There are basic 33 instructions for writing a software program to load on the
16C5x family. The lesser number of instructions, the easier the programming task is.
Speed
The PIC has an internal divide by 4 connected between the oscillator and the
internal clock bus (note: there is a divide by 2 in a 8085 microprocessor when
connecting a 6Mhz clock in order to operate the microprocessor at a speed of 3Mhz).
The speed of PIC16F877A is 20 MHz but it can even be operated at a speed of 30Mhz.
Some PIC in 18Fx family can be operated at a speed of 40 Mhz.
Static Operation
The PIC is a fully static microcontroller, in other words, if the clocking signal is
stopped, all the register contents are maintained. However, it is not applicable in
practice, the PIC is usually put into a Sleep mode which will stops the lock and sets up
various flags within the PIC and allows the users to know what state it was in before
the Sleep mode. In Sleep mode, the PIC takes only its standby current which can be
less than 1µA. The need for sleep mode can be easily understood by considering the
fire alarm circuit, since the circuit has to be activated only when there is a fire. The
Drive Capability
The PIC has a high output drive capability and can directly drive LEDs and TRIACs
etc. Any I/O pin can sink 25mA or 100mA for the whole device.
Options
A range of speed, temperature, package, I/O lines, timer functions, and serial
communication, A/D and memory sizes is available from the PIC family to suit many
applications. PIC microcontroller is programmed mainly using embedded C language.
Some of the compilers, which can be used to make the PIC program, are Mikro C, CCS
C compiler and MPLAB. It is easier to program in embedded C rather than
programming in assembly language. The demo version of these compilers can
compile up to 2KB of program memory.
5.1. Introduction
History has shown that advancements in materials science and engineering
have been important drivers in the development of sensor technologies. For instance,
the temperature sensitivity of electrical resistance in a variety of materials was noted
in the early 1800s and was applied by Wilhelm von Siemens in 1860 to develop a
temperature sensor based on a copper resistor. The high resonance stability of
single-crystal quartz, as well as its piezoelectric properties, have made possible an
extraordinarily wide range of high performance, affordable sensors that have played
an important role in everyday life and national defense. More recently, a new era in
sensor technology was ushered in by the development of large-scale silicon
processing, permitting the exploitation of silicon to create new methods for
transducing physical phenomena into electrical output that can be readily processed
by a computer. Ongoing developments in materials technology will permit better
control of material properties and behavior, thereby offering possibilities for new
sensors with advanced features, such as greater fidelity, lower cost, and increased
reliability.
5.3. Characteristics
In order to describe and characterize the performance of a sensor, a large and
specific vocabulary is required as described in the table below.
Static Dynamic
Accuracy Dynamic error response
Distortion Hysteresis
Hysteresis Instability and drift
Minimum detectable signal Noise
Nonlinearity Operating range
Selectivity/Specificity Repeatability
Sensitivity Step response
Threshold
5.4. Application
The latest sensor equipment includes heart rate, electrical voltage, gas, light,
sound, temperature, and distance sensors. Data is collected via the sensors and then
transmitted to the computer. Up to date software is used to collect, display and store
the experimental data. The computer software can then display this data in different
formats - such as graphs, tables or meter readings, which make it easy for students to
understand the process and bring science to life.
The significance of sensor technology is constantly growing. Sensors allow us
to monitor our surroundings in ways we could barely imagine a few years ago. New
sensor applications are being identified everyday which broadens the scope of the
technology and expands its impact on everyday life. The sensors have been applied in
industry, education, smart city, for security and safety, etc.
6.1 Mechanisms
Mechanisms are devices which can be
considered to be motion converters in that
they transform motion from one form to
some other required form. They might, for
example, transform linear motion into
rotational motion, or motion in one
direction into a motion in a direction at
right angles, or perhaps a linear
reciprocating motion into rotary motion, as
in the internal combustion engine where the
reciprocating motion of the pistons is
converted into rotation of the crank and
Figure 6.1: 4-stroke engine
hence the drive shaft.
Many of actions which previously were obtained by the use of mechanisms are,
however, often nowadays being obtained, as a result of a mechatronics approach, by
the use of microprocessor systems.
For example, cams on a rotating shaft were previously used for domestic washing
machines in order to give a timed sequence of actions such as opening a valve to let
water into the drum, switching the water off, switching a heater on, etc. Modern
The problem is design is often to reduce the number of degrees of freedom and
this then requires an appropriate number and orientation of constraints. Without
any constraints a body would have six degrees of freedom. A constraint is needed for
each degree of freedom that is to be prevented from occurring. Provided we have no
redundant constraints then the number of degrees of freedom would be 6 minus the
number of constraints. However, redundant constraints often occur and so for
constraints on a single rigid body we have the basic rule.
Thus if a body is required to be fixed, i.e. have zero degrees of freedom, then if no
redundant constraints are introduced the number of constraints required is 6.
7.1 Introduction
A CAM is a body which rotates or oscillates and in doing so impacts a
reciprocating or oscillatory motion to a second body, called the follower, with which
it is in contact. As the cam rotates so the follower is made to rise, dwell and fall, the
lengths of times spent at each of these positions depending on the shape of the cam.
The rise section of the cam is the part that drives
the follower upwards, its profile determining how
quickly the cam follower will be lifted. The fall
section of the cam is the part that lowers the
follower, its profile determining how quickly the
cam follower will fall. The dwell section of the cam
is the part that allows the followers to remain at
the same level for a significant period of time. The
dwell section of the cam is where it is circular with
a radius that does not change. Figure 7.1: Rotating CAM
Diagrams one to six show a rotating cam pushing a follower up and then
allowing it to slowly fall back down.
There are different types of follower, but they all slide or roll on the edge of the
cam. Various types are shown below.
The diagrams in Figure 7.10 below show the rotation of the snail/drop cam. When
rotating for one complete revolution the follower stays level for approximately the
first 120 degrees (diagrams 1 to 4). The follower then rises slowly (diagrams 5 to 6)
and then suddenly drops when it reaches and passes the peak (diagram 7).
Thus the angular velocity A of the wheel A must be twice that B of wheel B, i.e.
A number of teeth on B 40
= = =2
B number of teeth on A 20
Since the number of teeth on a wheel is proportional to its diameter, we can write
A number of teeth on B d B
= =
B number of teeth on A d A
Thus for the data we have been considering, wheel B must have twice the
diameter of wheel A. The term gear ratio is used for the ratio of the angular speeds of
a pair of intermeshed gear wheels. Thus the gear ratio for this example is 2.
The rack and pinion arrangement is commonly found in the steering mechanism
of cars or other wheeled, steered vehicles. This arrangement provides a lesser
mechanical advantage than other mechanisms such as recalculating ball, but much
less backlash and greater feedback, or steering "feel". A generating rack is a rack
outline used to indicate tooth details and dimensions for the design of a generating
tool, such as a hob or a gear shaper cutter.
B
A
Driven
Driver
Idler
Consider a compound gear train with A, the first driver, having 40 teeth, B 20
teeth, C 30 teeth and D, the final driven wheel, 10 teeth. Since the angular velocity of
a wheel is inversely proportional to the number of teeth on the wheel, the overall
gear ratio is:
20 10 1
G= =
40 30 6
Thus, if the input to wheel A is an angular velocity of 40 rpm, then the output
angular velocity of wheel is 40:(1/6) = 160 rpm.
They are often used in lieu of chains or gears, so there is less noise and a
lubrication bath are not necessary. Camshafts of automobiles, miniature timing
systems, and stepper motors often utilize these belts. Timing belts need the least
tension of all belts and are among the most efficient. They can bear up to 200 hp
(150 kW) at speeds of 16,000 ft/min.
Whenever there is relative motion of one surface in contact with another, either
by rotating of sliding, the resulting frictional forces generate heat which wastes
energy and results in wear. The function of a bearing is to guide with minimum
friction and maximum accuracy the movement of one relative to another.
Of importance is the need to give suitable support to rotating shafts, i.e. support
radial loads. The term thrust bearing is used for bearings that are designed to
withstand forces along the axis of a shaft when the relative motion is primarily
rotation.
There are two common type of bearing, which are ball bearing and roller bearing.
With this type of bearing, the main load is transferred from the rotating shaft to its
support by rolling contact rather than sliding contact. A rolling element bearing
consists of four main elements: an inner race, an outer race, the rolling element of
either balls or rollers, and a cage to keep the rolling element apart. The inner and
outer races contain hardened tracks in which the rolling elements roll.
Physical Characteristics
• Its cylindrical rollers, which are thin and long in relation to their diameter.
They are referred to as needle rollers.
• Needle Rollers are used for needle roller bearings and are rigid and highly
accurate.
• In spite of their low cross section the bearings have a high load carrying
capacity.
• Available with or without an inner ring.
• The needle rollers are a maximum of 5 mm in diameter and are 3 to 10 times
as long as they are in diameter.