4 Mechantronics and Applications
4 Mechantronics and Applications
4 Mechatronics and
Applications
4.1 Automation and Control
J. K. Schueller
Abstract. Sensors, actuators, and controllers can form automation or control sys-
tems to control machines or systems in their desired tasks. Classical or modern con-
trol theory can aid design and analysis of many systems. The components and tech-
niques are discussed and some examples presented.
Keywords. Automation, Control, Sensors, Actuators.
4.1.1 Introduction
Machines or systems which have the capability to self-act or self-regulate are called
automated. Automation allows these machines and systems to perform their tasks in a
productive, efficient, reliable, and accurate manner without great amounts of human
intervention. Control is the exercise of regulation, whether by machine or human in-
tervention. Automation allows machines to control themselves. The development of
information technologies has brought more capabilities to automation and control.
Although there have long been some automatic controls, such as the float regulators
on ancient Greek water clocks, control theory and an engineering understanding of
automation have been rather recent developments. James Watt’s centrifugal fly ball
governor for steam engines was an early development and a vital contributor to the
Industrial Revolution. While some fundamental theory was developed in the 1800s by
Maxwell, Lyapunov, and others, most control theory was developed in the 1900s in
response to the needs of long-distance telephony, World War II military, and the aero-
space industry.
Agricultural and biological engineers have used automatic controls and control the-
ory in their efforts to get their machines and systems to respond properly within the
complex biological/chemical/physical environments in which they must operate. The
most famous early agricultural control example is the Ferguson System, developed by
Harry S. Ferguson in the 1920s, which allowed tractors to vary implement soil work-
ing depth to maintain a constant load on the tractor. There are now many examples of
successful agricultural and biological automatic control implementations. Fertilizer
applicators mix and apply the right fertilizer mixture according to a variable rate map
and GPS position location. Environmental controls of livestock buildings keep ani-
mals healthy and productive. Automated irrigation systems apply the correct amount
of water when and where it is needed. These are some examples of how automatic
controls are widely applied in agricultural engineering.
186 Chapter 4 Mechatronics and Applications
CONTROLLER
SENSOR
Physical systems can be modeled by writing the differential equations for the vari-
ous components, be they electrical, mechanical, fluid, heat transfer, electromechanical,
hydraulic, or some other system. The equations can then be transformed to the Laplace
domain to get a transfer function which describes the dynamic input-output relation-
ship.
A block diagram, such as Figure 2, with mathematical transfer functions replacing
the component names can be generated to combine the various components into a
complete system. Block diagram algebra can then be used to simplify the representa-
tion and calculate the overall transfer function. Blocks indicate multiplication or divi-
sion and summers indicate addition or subtraction.
T P T
Valve
q=KvXv
Xv
Linkage
Xv=(X-Xc)/2
Cylinder
dXc/dt = (1/A)q
Xc
Linkage
Valve Cylinder
Xv q Xc
X
Kv 1/As
Most practical control theory, including all of it discussed here, is only applicable
to linear systems, those that have a linear relationship between the input and the out-
put. However, nonlinear systems can often be approximated by linearizing them at the
points of normal operation. Although agricultural and biological systems may also be
very complex, many times there are dominant behavioral characteristics. Many such
systems can be modeled as approximately being a gain, delay, integrator, first-order,
or second-order system. The output responses of such systems can be approximated by
modeling the inputs as being impulses, steps, or ramps.
The types of systems studied by agricultural and biological engineers are often so
complex or unknown that they cannot be modeled analytically. However, their re-
sponse behavior can be determined experimentally. Such systems can be subjected to
known inputs, such as steps, sinusoids, or random excitations, to find their behavioral
characteristics. The transient, frequency, or stochastic responses allow a dynamic
model to be developed. Care must be taken to avoid overfitting, exciting nonlinearities
(especially saturations and dead zones), and exceeding dynamic and frequency ranges
of the system or the instrumentation. But such step, swept-sine, and stochastic model-
ing can be very powerful.
Many contemporary systems are controlled by computers. If the computer control
system is dynamically very fast compared to the system being controlled, it may be
modeled as a continuous controller. However, many times the theory of discrete, or
digital, control is used. This type of control recognizes that the computer only inter-
faces with the system at fixed instances in time. Most often, z-transforms are used in
place of Laplace transforms as the classical discrete analytical tool.
Modern control theory is replacing classical control theory in many situations.
Modern control theory uses state-space techniques in which the state of the system is
modeled by equations which describe how the state variables change. Computers and
the refinement of linear algebra have made modern control analyses tractable. Section
3.2 (Control and Optimization) of this handbook has more details on modern control
theory as well as some of the contemporary advances in the areas of robust control and
fuzzy control. Modern, robust, fuzzy, and other recently developed control techniques
are areas of much current research, development, and application to practice. They
have much promise in improving the performance and reliability of automated ma-
chines and systems.
4.1.3 Control and Automation Implementation
Automatic control was historically implemented by mechanical components. For
example, Watt’s governor used centrifugal force on rotating masses to move a linkage,
which actuated a steam valve. In a similar manner, Ferguson’s tractor draft control
system used the force against a spring to cause a mechanical displacement, which con-
trolled a hydraulic valve, in turn causing the draft-causing implement to be raised or
lowered. Many systems still use mechanical elements in the control system. But the
development of electronics and computers has widened the use of automatic controls
and improved performance.
4.1 Automation and Control 189
Sensed
Pressure
Voltage
Pressure
Sensor
gears. Recent advances have produced new kinds of sensors. The global positioning
system (GPS) can be used for large-scale displacements. Machine vision and optical
sensors are becoming more powerful and more commonly used as sensors.
The output feedback from the sensor is compared to the desired output (input) in
the controller. Based upon the error between the desired output and the actual output
feedback, and often the time history of that error, the controller issues a command.
Determining what command the controller should issue for different errors and error
histories is a task for the engineer designing the control system.
Control systems may be implemented in electronic components without the use of
computers. Many such systems use operational amplifiers to compare the input and
output feedback and then generate a command proportional to the error. It is possible
to add circuitry to make the command also partially proportional to the integral of the
error or the derivative of the error. This common type of control is known as PID-
proportional, integral, and derivative. Increasing the proportional gain (the amount of
command generated per unit of error) will cause the system to respond faster and have
less steady-state error, but it may also decrease stability and lead to more overshoot of
the desired output. Adding integral control may remove the steady-state error, but de-
crease stability. Adding derivative control may stabilize the system, but make it more
susceptible to noise and saturation. Tuning the controller to the best control settings
may improve the system’s performance without adding hardware.
Small computers are often used as controllers. Microprocessors, microcontrollers,
and digital signal processors (DSPs) can quickly and efficiently implement simple or
complex software control routines. Often the computers run simple programs which
input the desired output and the actual output, calculate the appropriate control com-
mand, and then output the command in a continuous loop. The reliance on computers
is often not obvious to the users of these embedded controllers. The software may be
either interrupt-driven or program-driven.
Personal computers and larger computers can also be used for control applications.
Depending upon the needs of the control system, the computers may either run con-
ventional operating systems or operating systems specifically designed for real-time
control. When such general-purpose computers are used, control interfacing becomes
an issue. Analog sensor signals and actuators requiring analog commands imply that
the control systems have analog-to-digital and digital-to-analog converters to interface
the computers with the analog hardware. Digital sensors or actuators don’t require
such converters, but the communications connections or buses must be compatible.
Many controllers provide an output which can be immediately input into the plant.
However, in many other cases the controller output is the not appropriate physical
quantity (for example, current instead of force), does not have enough power, or is of
inappropriate scale for the plant input. Actuators are often used to convert the control
command into a control action that can influence the behavior of the plant. It is impor-
tant that the actuator provide the proper control action when commanded. In addition,
it must have significantly better dynamic response than the plant to avoid degrading
closed-loop control system performance. Although actuators are seldom discussed in
control theory, they are important in the types of systems encountered by agricultural
4.1 Automation and Control 191
TANK
RECIRCULATING
PUMP
ACID
PUMP
pH
SENSOR
ACID
CONTROLLER DESIRED
pH
Figure 4. Example of a pH control system.
There are very many examples of automation and control being applied to agricul-
ture and related fields. Some are simple and some are sophisticated. Table 1 lists some
of the examples which can be found in other volumes of this Handbook. Many others
can be found in books, papers, conference proceedings, and other literature.
The early control systems used on agricultural equipment were mechanical or hy-
dromechanical, such as the Ferguson system and the self-leveling system for hillside
combines. Now, electronic and computer controls dominate new designs. The integra-
tion of mechanical, electronic, and software elements used in most automation system
is often known as mechatronics, especially in Europe and East Asia [7, 8].
Mechatronic systems depend on goals or commands entered into their control com-
puters to guide their actions. Sensors also provide inputs on the state of the system and
Table 1. Some control systems in other volumes of the CIGR Handbook series.
Volume Page Controlled System
I 362 Irrigation
498 Irrigation water delivery
II 304 Aquaculture
III 45 Diesel engine injection
171 Ferguson system hitch
309 Direct injection pesticide sprayer
477 Greenhouse climate
610 Precision agriculture application
IV 42 Grain dryer
345 Cold storage refrigeration
4.1 Automation and Control 193
its environment. The mechatronic systems then use software to decide on the appro-
priate signals to be output to the actuators. Such systems are very flexible in that sim-
ple software changes can change the system behavior. They also allow more compli-
cated and sophisticated control algorithms.
One area in which mechatronics is achieving greater usage is the movement to X-
by-wire in vehicles. X-by-wire systems replace mechanical or hydromechanical func-
tions in a vehicle with a combination of mechanical, electronic, and software compo-
nents. For example, conventional vehicle brakes may be replaced with a system in
which there is no direct connection between the brake pedal and the brakes. Such sys-
tems require high reliability of the components and the overall system for safety.
Figure 5 shows a simplified schematic example of a system for steering a vehicle.
The driver’s positioning of the steering wheel is sensed and transmitted to a computer
that then determines and communicates a command to another computer that controls
the steering actuator. The actuator’s position is closed-loop controlled by the second
computer’s sensing of the position of the vehicle wheels. Feedback can be supplied to
the driver by the first computer through an actuator’s effects on the steering wheel.
Sensor Actuator
Feedback
Actuator
Steered
Wheels
Steering
Wheel
Computer Computer
Sensor
Data Bus
Figure 5. Simplified schematic of a vehicle steering-by-wire system.
194 Chapter 4 Mechatronics and Applications
Such a system is very flexible, due to the wide variety of algorithms which may be
implemented in the computers and the other information which may be accessed from
the data bus. For example, the steering system may have a variable ratio between the
steering wheel and the angle of the vehicle wheels, which in turn changes with vehicle
speed.
Since agricultural equipment operates in complex environments with weather,
fields, plants, or animals that can vary widely, there is a great advantage to equipment
with control systems that can respond to such variations. Historically, operating pa-
rameters of agricultural equipment, such as speeds and geometric clearances, were
either fixed or adjusted infrequently by human operators. Automation and control sys-
tems now allow the operating parameters to be adjusted automatically in response to
changing conditions to improve productivity, efficiency, and quality. In order for such
control systems to be used, the machine must be capable of being adjusted. For exam-
ple, fixed-ratio mechanical (such as belt, chain, or gear) drives might need to be re-
placed with variable-speed hydraulic or electrical drives with appropriate valving or
drivers.
Agricultural equipment has evolved to accommodate such control systems [9,10].
A contemporary grain combine harvester is a good example. It may have automatic
control of such items as header height, reel speed, travel speed, rotor speed, concave
opening, and sieve opening. The harvester has to be designed with drives and actuators
to permit control systems to do their jobs. The components of the control systems of-
ten allow more flexibility in the design and layout of agricultural equipment since
electrical, and to a lesser extent hydraulic, power and signals can be transferred more
easily from one part of the equipment to another than mechanical power and adjust-
ments. For example, a rotating shaft goes straight from one component to another, but
a hydraulic hose or electrical wire can bend along a convoluted path. Returning to the
grain combine harvester example, the operator can now control the many functions
from the operator station and the engine can be located far from power-consuming
components.
Due to the demands of increased performance from agricultural equipment and the
improvements in automation and control systems, especially sensors, actuators, and
algorithms, automation and control systems will continue to become more prevalent in
agricultural systems. The trend of networking control systems together under stan-
dards such as SAE J1939, DIN 9684, and ISO 11783 will continue to accelerate.
More, better, and coordinated automation and control will contribute to better agricul-
tural equipment.
References
1. Dorf, R. C., and R. H. Bishop. 2005. Modern Control Systems, 10th ed. Upper
Saddle River, NJ: Prentice-Hall.
2. Ogata, K. 2002. Modern Control Engineering, 4th ed. Upper Saddle River, NJ:
Prentice-Hall.
4.2 Positioning and Navigation 195
4.2.1 Introduction
In the agricultural environment special characteristics appear for the navigation
process of vehicles. This environment offers a very different set of circumstances to
those encountered by a laboratory or indoor vehicle. A number of additional complica-
tions are raised [1]:
• Operating areas can be large and geographically separated;
• Ground surfaces are often uneven with varying tractive conditions;
• Depending on the operation, wheel slippage may be far from negligible;
• Environmental conditions (rain, fog, dust, etc.) may affect sensor observations;
• Low cost systems are required.
Fortunately, agricultural operations are carried out in semi-natural environments; a
farm can generally be described by fields with known boundaries and crop plants