Microcontroller Technology
Microcontroller Technology
Microcontroller Technology
COURSE OUTLINE:
1. INTRODUCTION TO MICROCONTROLLER TECHNOLOGY
- Elements of microcontroller architecture
- Microcontroller series
- Family members of microcontroller series
2. PROCESS CONTROL SYSTEMS
- Need for process control
- Process control terms
- Block diagram of process control
- Control modes
- Implementation of controllers
- Functions of actuators
- Types of actuators
3. SEQUENTIAL CONTROL SYSTEMS
- Description of sequential control systems
- Time delay units
- Application of decoders/encoders in sequential control
- Practical interlock systems
- Programmable logic controllers (PLC’s)
- Application of flow chart and ladder diagrams
programming methods
- Application of PLC’ s in functional and practical systems
4. DIGITAL CONTROL SYSTEMS
- Basic digital methods
- Computer data logging
- Human Machine Interface (HMI)
- Applications of digital computers
5. ROBOTS FUNDAMENTALS
- Definition of a robot
- Types of robots
- Elements of robotic systems
- Need for robots
- Robotic classification
- Functions of control systems in Robots
- Robot’s performance capabilities specification
- Key features of Robots
- Programming methods
6. ROBOT PROGRAMMING
- Programming methods
- Robot programming functions
- Robot programming environment
- Programming activities
- Basic types of robot programming languages
- On-line and Off-line programming languages
TOPIC 1: INTRODUCTION TO MICROCONTROLLER
TECHNOLOGY
Microcomputer is a complete computer system comprising at least
three major components, the microprocessor (CPU), Memory and IO
peripheral components.
- A microcomputer could be a general-purpose computer (like a PC) or a
system designed to fulfill a special task (for example a controller system
inside an instrument, microcontroller).
Registers. These are high speed memory storage areas. These are
useful for interim calculation results (this reduces the number of
read/write operations to external memory which is usually slower)
4. Timers/counters
A microcontroller has timers and counters that provide all timing
and counting functions. The major operations of this section are to
perform clock functions, modulations, pulse generations, frequency
measuring, making oscillations etc.
Timers are typically constructed using clock source and a counter.
Counters count clock periods that are input to them.
6. Interrupt control
Interrupts are signals that cause the CPU to suspend its current
activity and perform some other tasks. CPU’ s is commonly designed
to handle interrupts from various sources. Each interrupt signal is
associated with a particular memory location which contains the
address of the subroutine that should be executed on receipt of this
interrupt.
Advantages of microcontrollers
The main advantages of microcontrollers are given as:
- Microcontrollers act as a microcomputer without any digital parts.
- As the higher integration inside microcontroller reduce cost and
size
of the system.
- Usage of microcontroller is simple, easy for troubleshoot and
system maintaining.
- Most of the pins are programmable by the user for performing
different functions.
- Easily interface additional RAM, ROM, I/O ports.
- Low time required for performing operations.
Disadvantages of microcontrollers
- Microcontrollers have got more complex architecture than that of
microprocessors.
- Only perform limited number of executions simultaneously.
- Mostly used in micro-equipment.
- Cannot interface high power devices directly.
Application of microcontrollers
Microcontrollers are widely used in modern electronics equipment. Some
basic applications of microcontroller are given below.
- Used in biomedical instruments.
- Widely used in communication systems.
- Used as peripheral controller in PC.
- Used in robotics.
- Used in automobile fields
Classification of microcontrollers
Microcontrollers can be classified on the basis of internal bus width,
architecture, memory and instruction set.
1. Classified on the Basis of Internal Bus Width
a) The 8-Bit Microcontroller
- When the ALU performs arithmetic and logical operations on a byte
(8-bits)
at an instruction, the microcontroller is an 8-bit microcontroller. The
internal
bus width of 8-bit microcontroller is of 8-bit.
- Examples of 8-bit microcontrollers are Intel 8051 family and
Motorola
MC68HC11 family.
a) Embedded Microcontrollers
- When an embedded system has a microcontroller unit that has all
the
functional blocks (including program as well as data memory)
available on a
chip is called an embedded microcontroller.
- For example, 8051 having Program & Data Memory, I/O Ports,
Serial
Communication, Counters and Timers and Interrupt Control logic on
the
chip is an embedded microcontroller.
a) Von-Neuman Architecture
- Microcontrollers based on the Von-Neuman architecture have a
single ‘data’ bus that is used to fetch both instructions and data.
Program instructions and data are stored in a common main
memory.
- When such a controller addresses main memory, it first fetches an
instruction, and then it fetches the data to support the instruction.
The two separate fetches slow up the controller’s operation.
- The Von-Neuman architecture’s main advantage is that it simplifies
the microcontroller design because only one memory is accessed.
- In microcontrollers, the contents of RAM can be used for data
storage and
program instruction storage.
b) Harvard Architecture
- Microcontrollers based on the Harvard Architecture have separate
data bus and an instruction bus. This allows execution to occur in
parallel.
- As an instruction is being “pre-fetched”, the current instruction is
executing on the data bus. Once the current instruction is complete,
the next instruction is ready to go.
- This pre-fetch theoretically allows for much faster execution than
Von-Neuman architecture, on the expense of complexity.
- The Harvard Architecture executes instructions in fewer instruction
cycles than the Von-Neuman architecture
- I/O Ports: All 8051 microcontrollers have 4 I/O ports each comprising 8-
bits which can be configured as inputs or outputs. Accordingly, in total of
32 input/output pins enabling the microcontroller to be connected to
peripheral devices are available for use.
- Memory Organization: The 8051 has two types of memory and these
are Program Memory and Data Memory. Program Memory (ROM) is used
to permanently save the program being executed, while Data Memory
(RAM) is used for temporarily storing data and intermediate results
created and used during the operation of the microcontroller.
- All 8051 microcontrollers have a 16-bit addressing bus and are capable
of addressing 64 kb memory.
4. Immediate addressing
In this addressing mode source operand is a constant rather than a
variable. So, the constant can be incorporated in the instruction.
Sign ‘#’ indicates it is an immediate addressing mode
5. Register specific
This refers to a specific register such as accumulator or data pointer
register (DPTR)
6. Index
Only program memory can be accessed in the index addressing.
Either the DPTR or Program Counter (PC) can be used as an index
register
8051 memory mapping
0 00H-07H 0 0
1 08H-0FH 0 1
2 10H-17H 1 0
3 18H-1FH 1 1
Accumulator
it is an 8-bit special purpose register used to access the CPU
it’s address is 0E0H in RAM
B-register
it is an 8-bit general purpose register on address 0F0H
PSW (program status word)
it is also called the flag register. It is found in location 0D0H to 0D7H.
It is an 8-bit registers
CY (D7) AC (D6) F0 (D5) RS1 (D4) RS0 (D3) OV (D2) _ (D1) P (D0)
Process Control
- Process control technology is the tool that enables manufacturers
to keep their operations running within specified limits and to set
more precise limits to maximize profitability, ensure quality and
safety.
- Process control refers to the methods that are used to control
process variables when manufacturing a product.
- It consists of monitoring the state of a critical parameter, detecting
when it varies from desired state, and taking action to restore it. It
involves the process variable, set points and manipulated variable.
- Thus the definition of process control is a controllable process that
must behave in a predictable manner. For a given change in the
manipulated variable the process variable must respond in a
predictable and consistent manner.
- Most basic process control systems consist of a control loop.
Control loops in the process control industry work in the same way,
requiring three tasks to occur: Measurement, Comparison and
Adjustment. This has four main components which are:
A measurement of the state or condition of a process
A controller calculating an action based on this measured value
against
a pre-set or desired value (set point)
An output signal resulting from the controller calculation which is
used
to manipulate the process action through some form of actuator
The process itself reacting to this signal, and changing its state or
condition
Controlling a process requires knowledge of four basic elements, the
process itself, the sensor that measures the process value, the
final control element that changes the manipulated variable, and
the controller.
- In industrial process control, the Process Variable (PV) is
measured by an instrument in the field and acts as an input to an
automatic controller which takes action based on the value of it.
- Devices that measure PV are transducers or sensors. In many
cases, the PV sensor consists of a direct measurement device called
an element and a separate signal processor called a transmitter.
- The controller is the device that processes the error signal,
determines the required control action and provides a control output
Manipulated Variable (MV) to the process. The device that
converts the control output into control action is the actuator
Control Error.
- The traditional PID control equation is based entirely on the control error
E, which is the difference between the set point SP and the process
variable PV.
- The sign of the control error depends on the controller action:
E = SP - PV for a reverse acting controller
E = PV - SP for a direct acting controller
- Direct action means that, when the controller sees an increasing signal
from the transmitter, its output will increase (e.g. increased coolant flow
when process fluid is too hot).
- For reverse action, increasing measurement signals cause the
controller output to decrease (decreased steam flow when process fluid is
too hot).
- Many digital systems permit the proportional mode and/or the derivative
mode to be based on the process variable instead of the control error.
Proportional control (P)
- This is the principal means of control. The controller produces action that
is proportional to the error E. That is, the proportional component Mp of
the controller output M is equal to a coefficient-times the current value of
the control error E
- Proportional Control opens and closes a control valve by an amount
which is proportional to the error in the measured variable, i.e., the
magnitude of the deviation from the set point.
- The automatic controller needs to correct the controller output, with an
action proportional to E. The correction starts from an output value at the
beginning of automatic control action.
- When the controller contains only the proportional mode, the controlled
variable is not necessarily equal to the set point when the loop lines out.
- This behaviour, known as droop or offset. When the integral or reset
mode is present, the controlled variable must equal the set point when
the loop lines out.
- This type of behaviour is desirable in most loops, so the integral or reset
mode is usually present.
- Integral action is used to control towards no offset in the output signal.
This means that it controls towards no error (E = 0). Integral control is
normally used to assist proportional control. The combination of both is
called as PI-control.
Derivative control (D)
- The derivative component MD of the controller output M is equal to a
coefficient times the rate of change of the control error E. The control
action is proportional to the rate at which the error is changing dE/dt
- The derivative mode enhances the stability margin for the control loop,
which reduces the overshoot and degree of oscillations.
- When used effectively, the derivative mode permits the controller gain to
be increased, thereby providing a faster response to set – point changes
and disturbances.
- As D-Control on its own has no purpose, it is always used in combination
with P-Control or PI-Control. This results in a PD-Control or PID-Control. PID
Control is mostly used if D-Control is required.
PD Controller
- D mode is used when prediction of the error can improve control or when
it necessary to stabilize the system.
- Often derivative is not taken from the error signal but from the system
output variable. This is done to avoid effects of the sudden change of the
reference input that will cause sudden change in the value of error signal.
- Sudden change in error signal will cause sudden change in control
output. To avoid that, it is suitable to design D mode to be proportional to
the change of the output variable.
- The addition of a derivative mode to a proportional controller modifies its
response to inputs. The PD equation:
The procedure with this method is to open the control loop so that no control
action occurs.
Generally, the break is made between the controller and a correction device
(atuator)
A test signal is then applied to the correction unit and the response of the
measured process variable determined i.e. the error signal
The test should be as small as possible
The figure below shows the form of test signal and a typical response
the graph of measured signal plotted against time is called process reaction
curve
In this case the furnace temperature sensor moves a flapper that controls the air
flow from a nozzle. When the temperature in the furnace reaches its set point
the sensor moves the flapper toward the nozzle to stop the air flow and allow
pressure to build up in the bellows. The bellows operates an air control relay that
shuts OFF the air flowing to the control valve turning OFF the fuel to the furnace.
When the temperature in the furnace drops below a set level the flapper is
opened by the sensor, reducing the air pressure in the bellows, which in turn
opens the air control valve allowing the air pressure to drop and the control
valve to open, turning ON the fuel to the furnace.
ON/OFF action electrical controller
An example of an ON/OFF action electrical room temperature controller is shown
below. In this case the room temperature is sensed by a bimetallic sensor. The
sensor operates a mercury switch. As the temperature decreases the bimetallic
element tilts the mercury switch down causing the mercury to flow to the end of
the glass envelope and in so doing shorts the two contacts together in the
mercury switch. The contact closure operates a low voltage relay turning ON the
blower motor and the heating element. When the room temperature rises to a
predetermined set point the bimetallic strip tilts the mercury switch back causing
the mercury to flow away from the contacts. The low voltage electrical circuit is
turned OFF, the relay opens, and the power to the heater and the blower motor
is disconnected.
PID action pneumatic controller
-In the figure below, a fluid is pumped into one side of the cylinder under
pressure causing that side of the cylinder to expand, and advancing the piston.
-The fluid on the other side of the piston must be allowed to escape freely - if the
incompressible fluid was trapped the cylinder could not advance. The force the
cylinder can exert is proportional to the cross sectional area of the cylinder
- Under normal operating conditions, both ends of the cylinder are filled with
fluid. If additional fluid enters port A, the piston will move toward the right, but
the fluid must be able to escape through port B
- Some actuators can create rotary motion and are very similar to the pump
designs. The figure below shows a gear motor rotary actuator.
For the motor, fluid is pumped in the left side of the case, putting that area
under pressure. Within the pressurized area, all surfaces receive a force, but only
those three surfaces indicated with arrow will effect rotation.
The pressure on the teeth next to the case will case the gears to rotate. The
pressure on the meshing teeth in the centre would cause the gears to turn in the
opposite direction, but this torque is overpowered because two teeth are pushing
the other way.
Pneumatic Actuators
- They convert air pressure into mechanical motion. There are two basic types:
Linear actuators (cylinder/piston or diaphragm types) and rotary actuators.
- Piston and rotary actuators are functionally similar to their hydraulic
counterparts.
- Pneumatic cylinder consists of a piston in a cylinder in one of two basic internal
configurations.
- The double acting cylinder connects to the valve with two tubes and can be
driven in either direction.
- The single acting cylinder can only be driven in one direction with air pressure
and is returned by a spring.
-
Rotary actuators convert air pressure into rotary mechanical motion. One
common design is the vane motor.
The motor consist of a rotor that is offset in housing. Protruding from the rotor
are spring-loaded vanes that seal against the housing and slide in and out of the
rotor as it turns.
Motion is achieved because the vanes on the top have more exposed surface
area than on the bottom and hence receive more force, causing the rotor to turn
clockwise.
In most cases rotary actuators are not chosen for their efficiencies, but for their
power, speed and torque
Advantages of pneumatic actuators
•They are fast on ON/OFF type tasks.
• Have big forces with elasticity.
• No hydraulic oil leak problems.
Disadvantage:
• Speed control is not possible because the air pressure depends on many
variables that are out of control
Valves
- A valve is a device that starts, stops, or regulates the flow of a fluid/air by
adjusting the position of a movable part.
- Valves may be applied for either ON–OFF service (often called block valves) or
for regulatory service (often called control valves).
- Based on the nature of the moving part, valves are broadly classified into two
categories:
Rising stem (sliding stem) valves: Examples include globe, angle, and
diaphragm valves.
Rotary stem valves: Examples include ball and butterfly valves.
- The stem is the movable part that affects the flow through the valve. The term
“ valve position ” refers to the position of the stem. The valve position M is
usually expressed in percent, but expressing M as a fraction is more convenient
in some equations.
- The choice regarding type of valve is based on factors such as cost, pressure
recovery, minimum pressure within the valve, tendency to leak when closed.
- A control valve requires an actuator that is capable of positioning the movable
part to any value between the two extremes of fully open and fully closed.
Positioning actuators are generally classified as to the source of power —
pneumatic, electric, and occasionally hydraulic.
- The figure below shows the means by which valves can be switched between
positions.
Typical Applications
- Conveyor systems
- Transfer machines
- Automatic turret lathes
- Milling and boring machines
- Radial drills
Encoder
- The encoder is a device that senses a physical parameter and converts it to a
digital code.
- An encoder is a sensor of mechanical motion that generates digital signals in
response to motion. As an electro-mechanical device, an encoder is able to
provide motion control system users with information concerning position,
velocity and direction.
- There are two different types of encoders: linear and rotary.
- Linear encoder responds to motion along a path, while a rotary encoder
responds to rotational motion. An encoder is generally categorized by the means
of its output.
- Incremental encoder generates a train of pulses which can be used to
determine position and speed.
- Absolute encoder generates unique bit configurations to track positions
directly.
Advantages of an Encoder
- Highly reliable and accurate
- Low-cost feedback
- High resolution
- Integrated electronics
- Can be incorporated into existing applications
- Compact size
Disadvantages of an Encoder
- Subject to magnetic or radio interference (Magnetic Encoders)
- Direct light source interference (Optical Encoders)
- Susceptible to dirt, oil and dust contaminates
a) Linear encoders
- Linear encoder is a sensor or transducer paired with a scale that encodes
position.
- The sensor reads the scale in order to convert the encoded position into an
analog or digital signal, which can then be decoded into position by a digital
readout (DRO) or motion controller.
- Motion can be determined by change in position over time. Linear encoder
technologies include optical, magnetic, inductive, capacitive and eddy current.
b) Rotary encoders
- Rotary Encoders are another type of position sensor which resemble
potentiometers but are non-contact optical devices used for converting the
angular position of a rotating shaft into an analogue or digital data code.
- In other words, they convert mechanical movement into an electrical signal
(preferably digital).
- All optical encoders work on the same basic principle. Light from an LED or
infra-red light source is passed through a rotating high-resolution encoded disk
that contains the required code patterns, either binary, grey code or BCD.
- Photo detectors scan the disk as it rotates and an electronic circuit processes
the information into a digital form as a stream of binary output pulses that are
fed to counters or controllers which determine the actual angular position of the
shaft.
Flowcharts
- Flowchart is a graphical or symbolic representation of an algorithm. It is the
diagrammatic representation of the step-by-step solution to a given problem.
- It is ideal for a process that has sequential process steps. The steps will be
executed in a simple order that may change as the result of some simple
decisions.
- The symbols used for flowcharts are shown below. These blocks are connected
using arrows to indicate the sequence of the steps. The different blocks imply
different types of program actions.
General rules for flowcharts
- All symbols of the flowchart are connected by flow lines (note arrows, not lines)
- Flow lines enter the top of the symbol and exit out the bottom, except for the
Decision symbol, which can have flow lines exiting from the bottom or the sides
- Flowcharts are drawn so flow generally goes from top to bottom
- The beginning and the end of the flowchart is indicated using the terminal
symbol
Example 1
- A flowchart is shown below for a control system for a large water tank.
- When a start button is pushed the tank will start to fill, and the flow out will be
stopped.
- When full, or the stop button is pushed the outlet will open up, and the flow in
will be stopped.
- In the flowchart the general flow of execution starts at the top. The first
operation is to open the outlet valve and close the inlet valve.
- Next, a single decision block is used to wait for a button to be pushed. When
the button is pushed the yes branch is followed and the inlet valve is opened,
and the outlet valve is closed.
- Then the flow chart goes into a loop that uses two decision blocks to wait until
the tank is full, or the stop button is pushed.
- If either case occurs the inlet valve is closed and the outlet valve is opened. The
system then goes back to wait for the start button to be pushed again.
- When the controller is on the program should always be running, so only a start
block is needed.
1. Draw a flow chart for cutting the grass, then develop ladder logic for three of
the actions/decisions.
2. Design a garage door controller using a flowchart. The behavior of the garage
door controller is as follows,
- there is a single button in the garage, and a single button remote control.
- when the button is pushed the door will move up or down.
- if the button is pushed once while moving, the door will stop, a second push will
start motion again in the opposite direction.
- there are top/bottom limit switches to stop the motion of the door.
- there is a light beam across the bottom of the door. If the beam is cut while the
door is closing the door will stop and reverse.
- there is a garage light that will be on for 5 minutes after the door opens or
closes.
Topic 4: Digital control system
In continuous time control systems, all the system variables are continuous
signals. Whether the system is linear or nonlinear, all variables are continuously
present and therefore known (available) at all times.
Principles of operation
- The computer typically receives a measurement of the controlled variable, also
often receives the reference input, and produces its output using an algorithm.
- This output is usually converted to an analog signal using a D/A converter, and
then amplified by a power amplifier to drive the plant.
The error signal is discretized and fed to the computer by using an A/D
converter. The controller output is again a discrete signal which is applied to the
plant after using a D/A converter. Error signal e(t) is sampled at intervals of T.
Analog to Digital converter (ADC)
ADC is an electronic device that converts an input analog voltage (or current) to
a digital number proportional to the magnitude of the voltage or current.
In order to covert an analogue quantity to a digital number, three processes
takes place; sampling, quantization and binary encoding.
Filtering:
- Before sampling, the analog input must be filtered with an anti-aliasing filter.
- The anti-aliasing filter is a low-pass filter that limits high frequencies in the
input signal to only those that meet the requirements of the sampling theorem.
- The filter eliminates frequencies that exceed a certain limit that is determined
by the sampling rate
Sampling:
- The first step in converting a signal to digital form is to use a sample-and-hold
circuit.
- This circuit samples the input signal at a rate determined by a clock signal and
holds the level on a capacitor until the next clock pulse. The amplitude of an
analog signal is first sampled.
- The purpose of the sample and hold circuit is to take a sample of the input
signal (analog) and hold it essentially constant while the A/D conversion is taking
place.
- This function is usually implemented with a switch and capacitor. The switch
connects the capacitor to the signal conditioning circuit once every sample
period.
- The capacitor then holds the voltage value measured until a new sample is
acquired.
Quantization:
- This is the process of approximating a continuous range of values by relatively
small set discrete symbols or integer values.
- To store or transmit the sampled values via a digital system, the sample values
are represented in numerical form.
- This requires quantizing where each discrete sample value is rounded off to the
closest numerical value in a set of digital words in use.
- Each sampled amplitude must be converted to one of a finite number of
possible values, or levels. For ease in conversion to binary form, the number of
levels is usually a power of 2 depending on the degree of precision required.
- The quantized signal stays at the sample value until the next sampling instants.
In this quantizing process the information in accurate signal values is lost
because of rounds off and the original signal cannot be reproduced exactly any
more.
Binary encoding
- In the next step in the digitization process, the output of the quantizer is
mapped into a binary sequence.
- It is apparent that 8 levels require three binary digits, or bits; 16 levels require
four bits; and 256 levels require eight bits. In general 2 n levels require n bits.
Types of ADC
- There are several types of analog to digital converter.
o Successive approximation (Potentiometric) ADC
o Ramp type ADC
o Integrating Type ADC
o Dual –slope integrating type
Digital to analog conversion
- Today microcomputers are widely used for industrial control. The output of the
microcomputer is a digital quantity.
- In many applications the digital output of the microcomputer has to be
converted into analog quantity which is used for the control of relay, small
motor, actuator etc.
- In communication system digital transmission is faster and convenient but the
digital signals have to be converted back to analog signals at the receiving
terminal.
- DAC converters are also used as a part of the circuitry of several ADC
converters.
- Thus, digital to analog converter is used to convert digital quantity into analog
quantity. DAC converter produces an output current of voltage proportional to
digital quantity (binary word) applied to its input.
- It functions as a zero-order hold, holding its output at a constant value until it
receives the next discrete input.
- There are several ways of making a digital to analog converter. Some of them
are given as under.
1. Binary weighted resistor DAC
2. R-2R Ladder network
3. Serial DAC converter
The Data Acquisition System
- This is electronic instrument, or group of interconnected electronic hardware
items, dedicated to the measurement and quantization of analog signals for
digital analysis or processing.
- Once the parameter to be measure is translated into the analog-electrical
domain, the DAS performs the translation to the digital-electrical domain.
- In some cases the DAS simply records, or stores the digital data. While more
sophisticated systems may be capable of analysis or further processing.
- For instance, a DAS may be as simple as a digital voltmeter (DVM) which
displays its output as a decimal readout, or it may be complex enough to contain
a large-scale computer as part of its hardware.
Elements of DAS
- Analog multiplexer: permits a number of original sources to be automatically
measure by the same data acquisition hardware.
- It consists of a series of switches whose inputs are tied to the various analog
signals and whole outputs are tied to a common measuring point.
- Each input is individually connected to the measuring point in a predetermined
sequence. The number of channels in a multiplexer may vary from two to several
hundred.
Signal conditioning: Very often the signals presented to the inputs of the data
acquisition system are not in a form appropriate for conversion, and so they
must be preconditioned. The required signal conditioning could consist of linear
amplification, logarithmic amplification, filtering, peak detection, or sample-and-
hold.
Controller
- The controller is the part of a robot that coordinates all movements of the
mechanical system.
- It also receives input from the immediate environment through various sensors.
- The heart of the robot’s controller is generally a microprocessor linked to
input/output and monitoring devices.
- The commands issued by the controller activate the motion control mechanism,
consisting of various controllers, amplifiers, and actuators.
- An actuator is a motor or valve that converts power into robot movement.
- This movement is initiated by a series of instructions, called a program, stored
in the controller’s memory.
- The controller has three levels of hierarchical control. Hierarchical control
assigns levels of organization to the controllers within a robotic system.
- Each level sends control signals to the level below and feedback signals to the
level above. The levels become more elemental as they progress toward the
actuator. Each level is dependent on the level above it for instructions.
- The three levels are:
• Level I—Actuator Control. The most elementary level at which separate
movements of the robot along various planes, such as the X, Y, and Z axes
are controlled.
• Level II—Path Control. The path control (intermediate) level coordinates
the separate movements along the planes determined in Level I into the
desired trajectory or path.
• Level III—Main Control. The primary function of this highest control level is
to interpret the written instructions from the human programmer
regarding the tasks required. The instructions are then combined with
various environmental signals and translated by the controller into the
more elementary instructions that Level II can understand.
Manipulator
- The manipulator consists of segments that may be jointed and that move
about, allowing the robot to do work.
- The manipulator is the arm of the robot which must move materials, parts,
tools, or special devices through various motions to provide useful work.
- A manipulator can be identified by method of control, power source, actuation
of the joints, and other factors. These factors help identify the best type of robot
for the task at hand.
- For example, you would not use an electric robot in an environment where
combustible fumes exist and a spark could cause an explosion.
- The manipulator is made up of a series of segments and joints
- Joints connect two segments together and allow them to move relative to one
another. The joints provide either linear (straight line) or rotary (circular)
movement. A robot uses actuators to move its arm along programmed paths and
then to hold its joints rigid once the correct position is reached.
- Manipulation is carried out using mechanical devices such as linkages, gears,
actuators, and feedback devices. There are two basic types of motion provided
by actuators: linear and rotary.
- Linear actuators provide motion along a straight line; they extend or retract
their attached loads.
- Rotary actuators provide rotation, moving their loads in an arc or circle. Rotary
motion can be converted into linear motion using a lead screw or other
mechanical means of conversion.
- A robot movement can be divided into two general categories: arm and body
(shoulder and elbow) motions and wrist motions.
- The individual joint motions associated with these categories are referred to as
degree of freedom. Each axis is equal to one degree of freedom. typically an
industrial robots are equipped with 4-6 degrees of freedom
- The wrist can reach a point in space with specific orientation by any of three
motions: a pitch (or up-and-down-motion); a yaw (or side-to-side motion); and a
roll (or rotating motion). The joint labeled pitch, yaw, and roll are called
orientation axes.
- The points that manipulator bends, slides, or rotates are called joints or position
axes. Position axes are called as world coordinates, is identified as being fixed
location within the manipulator that serves as absolute frame of reference
• The x-axis travel moves the manipulator in an in-and-out motion.
• The y-axis motion causes the manipulator to move side-to-side.
• The z axis motion causes the manipulator to move in and up and-down
motion
The mechanical design of a robot manipulator relates directly to its work
envelope and motion characteristics.
End Effector
- The end effector is the robot’s hand, or the end-of-arm tooling on the robot.
- It is a device attached to the wrist of the manipulator for the purpose of
grasping, lifting, transporting, maneuvering, or performing operations on a
workpiece.
- The end effector is one of the most important components of a robot system.
The robot’s performance is a direct result of how well the end effector meets the
task requirements.
- The area within reach of the robot’s end effector is called its work envelope.
Power Supply
- The power supply provides the energy to drive the controller and actuators. It
may convert ac voltage to the dc voltage required by the robot’s internal circuits,
or it may be a pump or compressor providing hydraulic or pneumatic power.
- The three basic types of power supplies are electrical, hydraulic, and
pneumatic. The most common energy source available, where industrial robots
are used, is electricity. The second most common is compressed air, and the
least common is hydraulic power.
- These primary sources of energy must be converted into the form and amount
required by the type of robot being used. The electronic part of the control unit,
and any electric drive actuator, requires electrical power.
- A robot containing hydraulic actuators requires the conversion of electrical
power into hydraulic energy through the use of an electric, motor-driven,
hydraulic pump.
- A robot with pneumatic actuators requires compressed air, which is usually
supplied by a compressor driven by an electric motor.
Degrees of Freedom
- Degrees of freedom (DOF) is a term used to describe a robot’s freedom of
motion in three dimensional space—specifically, the ability to move forward and
backward, up and down, and to the left and to the right.
- For each degree of freedom, a joint is required. A robot requires six degrees of
freedom to be completely versatile.
- The number of degrees of freedom defines the robot’s configuration. For
example, many simple applications require movement along three axes: X, Y,
and Z.
These tasks require three joints, or three degrees of freedom. The three degrees
of freedom in the robot arm are the rotational traverse, the radial traverse, and
the vertical traverse.
• The rotational traverse (x-axis travel) is movement on a vertical axis. This
is the side-to-side swivel of the robot’s arm on its base.
• The radial traverse (y-axis motion)is the extension and retraction of the
arm, creating in-and-out motion relative to the base.
• The vertical traverse (z-axis motion) provides up-and-down motion.
For applications that require more freedom, additional degrees can be obtained
from the wrist, which gives the end effector its flexibility.
The three degrees of freedom in the wrist have aeronautical names: pitch, yaw,
and roll.
o The pitch, or bend, is the
up-and-down movement of
the wrist.
o The yaw is the side-to-side
movement.
o The roll, or swivel,
involves rotation.
A robot requires a total of six degrees of freedom to locate and orient its hand at
any point in its work envelope.
Although six degrees of freedom are required for maximum flexibility, most
applications require only three to five.
When more degrees of freedom are required, the robot’s motions and controller
design become more complex.
Classifying Robots
- Robots can be classified in various ways, depending on their components,
configuration, and use.
- Three common methods of classifying robots are by the types of control
system used, the type of actuator drive used, and the shape of the work
envelope.
Type of Control System
Robots may use one of two control systems—non-servo and servo.
Non-Servo Robots
- Non-servo robots are the simplest robots and are often referred to as “limited
sequence,” “pick-and-place,” or “fixed-stop robots.”
- The non-servo robot is an open-loop system. In an open-loop system, no
feedback mechanism is used to compare programmed positions to actual
positions.
- Non-servo robots are also limited in their movement and these limitations are
usually in the form of a mechanical stop. This form of robot is excellent in
repetitive tasks, such as material transfer.
- The diagram in Figure below represents a pneumatic (air-controlled), non-servo
robot.
- At the beginning of the cycle, the controller sends a signal to the control valve
of the manipulator.
- As the valve opens, air passes into the air cylinder, causing the rod in the
cylinder to move. As long as the valve remains open, this rod continues to move
until it is restrained by the end stop.
- After the rod reaches the limit of its travel, a limit switch tells the controller to
close the control valve.
- The controller sends the control valve a signal to close.
- The controller then moves to the next step in the program and initiates the
necessary signals. If the signals go to the robot’s end effector, for example, they
might cause the gripper to close in order to grasp an object.
The process is repeated until all the steps in the program have been completed.
Characteristics of non-servo robots:
• Relatively inexpensive compared to servo robots.
• Simple to understand and operate.
• Precise and reliable.
• Simple to maintain.
• Capable of fairly high speeds of operation.
• Small in size.
• Limited to relatively simple programs.
Servo Robots
- The servo robot is a closed-loop system because it allows for feedback. In a
closed-loop system, the feedback signal sent to the servo amplifier affects the
output of the system.
- A servo amplifier translates signals from the controller into motor voltage and
current signals. Servo amplifiers are used in motion control systems where
precise control of position or velocity is necessary.
- In a sense, a servomechanism is a type of control system that detects and
corrects for errors.
- Figure below shows a block diagram of a servo robot system.
The diagram in figure above details one of the axes used in a hydraulic robot and
helps to explain its operation.
• When the cycle begins, the controller searches the robot’s programming
for the desired locations along each axis.
• Using the feedback signals, the controller determines the actual locations
on the various axes of the manipulator.
• The desired locations and actual locations are compared.
• When these locations do not match, an error signal is generated and fed
back to the servo amplifier. The greater the error, the higher the intensity
of the signal.
• These error signals are increased by the servo amplifier and applied to the
control valve on the appropriate axis.
• The valve opens in proportion to the intensity of the signal received. The
opened valve admits fluid to the proper actuator to move the various
segments of the manipulator.
• New signals are generated as the manipulator moves.
• The servo control valves close when there are no more error signals,
shutting off the flow of fluid.
• The manipulator comes to rest at the desired position.
• The controller then addresses the next instruction in the program, which
may be to move to another location or operate some peripheral
equipment.
The process is repeated until all steps of the program are completed.
Characteristics of servo robots are :
- Relatively expensive to purchase, operate, and maintain.
- Use a sophisticated, closed-loop controller.
- Wide range of capabilities.
- Can transfer objects from one point to another, as well as along a controlled,
continuous path.
- Respond to very sophisticated programming.
- Use a manipulator arm that can be programmed to avoid obstructions within
the work envelope.
Electric Drive
- Three types of motors are commonly used for electric actuator drives: ac servo
motors, dc servo motors, and stepper motors.
- Both ac and dc servo motors have built-in methods for controlling exact
position.
- Many newer robots use servo motors rather than hydraulic or pneumatic ones.
- Small and medium-size robots commonly use dc servo motors. Because of their
high torque capabilities, ac servo motors are found in heavy-duty robots.
- A stepper motor is an incrementally controlled dc motor. Stepper motors are
rarely used in commercial industrial robots, but are commonly found in
educational robots.
- Conventional, electric-drive motors are quiet, simple, and can be used in clean-
air environments. Robots that use electric actuator drives require less floor
space, and their energy source is readily available.
- The rotary motion of most electric actuator drives must be geared down
(reduced) to provide the speed or torque required by the manipulator.
- However, the conventionally geared drive causes problems of backlash, friction,
compliance, and wear. These problems cause inaccuracy, poor dynamic
response, need for regular maintenance, poor torque control capability, and
limited maximum speed on longer moves.
- Loads that are heavy enough to stall (stop) the motor can cause damage.
Conventional electric-drive motors also have poor output power compared to
their weight. This means that a larger, heavier motor must be mounted on the
robot arm when a large amount of torque is needed.
Hydraulic Drive
- A hydraulic drive system uses fluid and consists of a pump connected to a
reservoir tank, control valves, and a hydraulic actuator.
- Hydraulic drive systems provide both linear and rotary motion using a much
simpler arrangement than conventional electric-drive systems.
- The storage tank supplies a large amount of instant power, which is not
available from electric-drive systems.
- Hydraulic actuator drives have several advantages.
• They provide precise motion control over a wide range of speeds.
• They can handle heavy loads on the end of the manipulator arm, can be
used around highly explosive materials,
• They are not easily damaged when quickly stopped while carrying a heavy
load.
- However, they are expensive to purchase and maintain and are not energy
efficient.
- Hydraulic actuator drivers are also noisier than electric-drive actuators and are
not recommended for clean-room environments due to the possibility of
hydraulic fluid leaks.
Pneumatic Drive
- Pneumatic drive systems make use of air-driven actuators. Since air is also a
fluid, many of the same principles that apply to hydraulic systems are applicable
to pneumatic systems.
- Pneumatic and hydraulic motors and cylinders are very similar. Since most
industrial plants have a compressed air system running throughout assembly
areas, air is an economical and readily available energy source.
- This makes the installation of robots that use pneumatic actuator drives easier
and less costly than that of hydraulic robots.
- For lightweight pick-and-place applications that require both speed and
accuracy, a pneumatic robot is potentially a good choice.
- Pneumatic actuator drives work at high speeds and are most useful for small-
to-medium loads.
- They are economical to operate and maintain and can be used in explosive
atmospheres.
- However, since air is compressible, precise placement and positioning require
additional components to achieve the smooth control possible with a hydraulic
system.
- It is also difficult to keep the air as clean and dry as the control system
requires.
- Robots that use pneumatic actuator drives are noisy and vibrate as the air
cylinders and motors stop.
Robotic Joints
- A robot joint is a mechanism that permits relative movement between parts of
a robot arm.
- The basic movements required for a desired motion of most industrial robots
are:
• Rotational movement: This enables the robot to place its arm in any
direction on a horizontal plane.
• Radial movement: This enables the robot to move its end-effector radially
to reach distant points.
• Vertical movement: This enables the robot to take its end-effector to
different heights.
These degrees of freedom, independently or in combination with others, define
the complete motion of the end-effector.
These motions are accomplished by movements of individual joints of the robot
arm. The joint movements are basically the same as relative motion of adjoining
links.
Depending on the nature of this relative motion, the joints are classified as
prismatic or revolute.
Disadvantages:
• Requires large operating volume.
• Exposed guiding surfaces require covering in corrosive or dusty environments.
• can only reach front of itself
• axes hard to seal
Disadvantages:
• can't reach above itself
• linear axes is hard to seal
• won’t reach around obstacles
• exposed drives are difficult to cover from dust and liquids
3. Polar configuration:
- This configuration also goes by the name “spherical coordinate” because the
workspace within which it can move its arm is a partial sphere.
- Thus, the polar robots have a work space of spherical shape and the arm is
connected to the base with a twisting (T) joint and rotatory (R) and linear (L)
joints follow.
- Robot with 1 prismatic joint and 2 rotary joints – the axes consistent with a
polar coordinate system.
The designation of the arm for this configuration can be TRL or TRR. Robots with
the designation TRL are also called spherical robots. This robots are commonly
used for:
• handling at die casting or fettling machines
• handling machine tools
• arc/spot welding
Advantages:
• Large working envelope.
• Two rotary drives are easily sealed against liquids/dust.
Disadvantages:
• Complex coordinates more difficult to visualize, control, and program.
• Exposed linear drive.
• low accuracy.