Вы находитесь на странице: 1из 9

CIRCUIT

CELLAR
THE COMPUTER APPLICATIONS JOURNAL

Constantin von Altrock


INK
®

tive advantage is soon commonly used.


In this article, I point to case stud-
ies in antilock braking systems (ABS),
engine control, and automatic gearbox

Fuzzy Logic in control. I show how superior perfor-


mance is achieved via fuzzy-logic and
neural-fuzzy design techniques. I also
discuss development methodologies,

Automotive Engineering tools, and code speed/size require-


ments.

ABS WITH FUZZY LOGIC


In 1947, Boeing developed the first
ABS for airplanes as a mechanical

f
system. Today, ABS is standard equip-
Automotive engineering ment on most cars. A microcontroller
uzzy logic is a and electronic sensors measure the
is one area where fuzzy powerful way to put speed of every wheel and control the
engineering expertise fluid pressure for the brake cylinders.
logic has made into products in a short Mathematical models for a car’s
amount of time. It’s highly beneficial braking system exist, but the interaction
significant inroads. in automotive engineering, where of the braking system with the road is
many system designs involve the expe- far too complex to model adequately.
Constantin brings us up rience of design engineers as well as Hence, today’s ABS contains the engi-
test drivers. neering experience of years of testing
to date with the latest Over the past years, fuzzy logic has in different roads and climates.
become is a common design technology
developments. He in Japan, Korea, Germany, Sweden, PRODUCING FUZZY ABS
and France. The reasons are manifold. Because fuzzy logic is an efficient
examines fuzzy logic’s First, control systems in cars are way to put engineering knowledge into
complex and involve multiple param- a technical solution, it’s no surprise
impact on ABS braking, eters. that many ABS applications are already
Second, the optimization of most on the market. Currently, Nissan and
engine control systems, systems is based on engineering exper- Mitsubishi ship cars with fuzzy ABS.
tise rather than mathematical models. Honda, Mazda, Hyundai, BMW, Bosch,
transmissions, and “Good handling,” “Fahrvergnügen,” and Mercedes-Benz, and Peugeot are work-
“riding comfort” are optimization goals ing on solutions as well.
antiskid steering. that can’t be defined mathematically. ABS also benefits from fuzzy logic’s
Third, automotive engineering is high computational efficiency. During
competitive on an international scale. a control loop time of 2–5 ms, the con-
A technology that proves a competi- trollers must fetch all sensor data, pre-

Circuit Cellar INK® Issue 88 November 1997 1


However, the point of maximum ates the reaction of the car to the brak-
Road Condition Optimum Slack (s)
brake effect depends on the type of ing and estimates current road surface.
Dry 0.2 road. Table 1 lists typical values. Considering this estimate, the ABS
Slippery or Wet 0.12 corrects the set value for the slack to
Ice or Snow 0.05
ROAD SURFACE achieve the best braking effect in the
Table 1—The slack value for maximum brake effect Conventional ABS controls the interval from s = 0.05 to s = 0.2.
depends on the road condition. bypass valves of the brake fluid so the The fuzzy-logic system only uses
slack equals a set value. Most manu- input data stemming from the existing
process it, compute the ABS algorithm, facturers program this set value to a sensors of the ABS. Such input variables
drive the bypass valves, and conduct the slack of 0.1, which is a good compro- are deceleration and speed of the car,
test routines. Any additional function mise for all road conditions. deceleration and speed of the wheels,
thus has to be computationally efficient. But, as Figure 1 and Table 1 show, and hydraulic pressure of the brake
Most ABS systems use 16-bit con- this set value is not optimal for every fluid. These variables indirectly indi-
trollers, which can compute a medium road type. By knowing the road type, the cate the current operation point of the
size fuzzy-logic system in about 0.5 ms, braking effect can be enhanced further. braking and its behavior over time.
using only about 2-KB ROM space [1]. So, how do you determine what the Experiments show that a first proto-
You can check out a comparison of road type is? Asking the driver to push type with just six fuzzy-logic rules
computing times of fuzzy-logic systems a button on the dashboard before an improves performance significantly.
on different microcontrollers [2]. emergency brake is not feasible. On a test track alternating from snowy
Sensors provide one logical alterna- to wet roads, the fuzzy ABS detected
BRAKING BASICS tive. Many companies have evaluated the road-surface changes even during
There are different ways in which different types of sensors and concluded braking.
fuzzy logic is used in ABS design. The that sensors which deliver good road-
implementation of Nippondenso [3] surface identification are too expensive A FUZZY BRAKE?
that I present exhibits an intelligent or not sufficiently robust. Due to the high competition in this
combination of conventional tech- However, consider sitting in a car area, most manufacturers are reluctant
niques with fuzzy logic. equipped with a standard ABS. After to publish any details about the tech-
Let’s first discuss some basics of the driving at a known speed, you could jam nologies they use. The cited applica-
braking process. If a wheel rotates on the brake so the ABS starts to work. tion only shows results from an
exactly as fast as it corresponds to the Even if you didn’t know what the experimental fuzzy-logic system. The
speed of the car, the wheel has no road surface was like, you could make details about the final product aren’t
braking effect at all. If the wheel a good guess from the car’s reaction. If published.
doesn’t rotate at all, it is blocked. a driver can estimate the road surface Also, some car makers (especially in
The blocking situation has two dis- from the car’s reaction, fuzzy logic can the U.S.) worry about the negative con-
advantages. First, a car with blocking implement the same ideas into the ABS. notation of the word “fuzzy.” Since it
wheels is hard to steer. Second, the Nippondenso did exactly this. When implies imprecision and inexactness,
brake effect is not optimal. The point the ABS first detects the wheel block- manufacturers are afraid that drivers
of optimum brake effect is between ing, it starts to control the brake-fluid may think a fuzzy ABS is inferior.
these two extremes. valves so each wheel rotates with a Others are threatened by the possibil-
The speed difference between the slack of 0.1. ity of a suit in which a clever lawyer
car and the wheel during braking is The fuzzy-logic system then evalu- suggests to a layman’s jury that a fuzzy-
called “slack.” Its definition is: logic ABS is something hazard-
ous.
V –V µ
s = car wheel In Japan, where an apprecia-
Vcar 1 Control Region
tion for ambiguity lies in the
where s is slack (between 0 [no culture, “fuzzy” doesn’t have a
0.8
braking] and 1 [blocking]), Vcar Dry Road
negative connotation. By con-
is the car’s velocity, and Vwheel 0.6
trast, it’s an advantage, as it
is the wheel’s velocity. enables intelligent systems.
Figure 1 plots the relation 0.4 Hence, companies are proud of
between brake effect and slack Wet Road its use and promote it in their
for different road surfaces. For s 0.2 advertising.
Snowy Road
= 0, the wheel’s speed equals In Germany, on the other
the car’s. In the case of s = 1, 0 S hand, the concepts of
0 0.25 0.5 0.75 1
the wheel blocks completely. fuzziness and engineering
The curves show that the masterpiece do not fit together
optimum brake effect lies be- Figure 1—This plot illustrates brake effect over the wheel slack s for dry, wet, and well in the public perception.
tween these two extremes. snowy road surfaces. ( µ is the friction coefficient, or measure of brake effect.) Hence, most manufacturers

2 Issue 88 November 1997 Circuit Cellar INK®


using fuzzy logic in ABS hide the fact.
Throttle
After all, a fuzzy-logic system is only a Position Determination of
segment of assembly code in a Temperature of
Injection Amount
Fuel Injection
microcontroller. Once implemented, Coolant (Fuzzy Logic)

who can tell that this code contains Vacum in


Air Intake
fuzzy logic?
O2 Concentration
in Exhaust
VERIFICATION AND STABILITY Fuel Cutoff
When many publications about fuzzy (Fuzzy Logic)

logic appeared for the first time about


Tachometer
Determination of
five years ago, even reputed scientists Ignition Timing Ignition Timing
Electronic
Ignition
and professors in the U.S. stated that Knock Sensor
(Fuzzy Logic)

fuzzy logic shouldn’t be used for critical Angle of


Ignition
applications. They claimed that it Crankshaft

produces inherently instable systems.


This attitude is truly shameful. They Figure 2—As you can see, the engine controller of NOK Corporation contains three fuzzy-logic modules.
demonstrated only that they did not ENGINE CONTROL sent the control strategy. The table is
understand what fuzzy logic is about. The control of car and truck engines generated from the results of extensive
A fuzzy-logic system is a time invari- is becoming increasingly more complex testing and engineer’s experience.
ant, deterministic, and nonlinear sys- with more stringent emission standards The generation of such a look-up
tem—nothing fuzzy about that. Such and constant effort to gain higher fuel table, however, is only suitable for
systems are already known and applied efficiency. Twenty years ago, control three dimensions (two inputs and one
in control engineering, and conventional systems were mechanical (i.e., carbure- output). Also, the generation and inter-
stability theory covers them well [4]. tor, distributor, and breaker contact). pretation of such tables is difficult and
In the case of a fuzzy ABS, stability Now, microcontroller-based systems considered a black art.
isn’t even an issue. Conventional ABS control fuel injection and ignition. Although fuzzy logic can replace
was considered stable for any slack set Since the control strategy for an these look-up-tables, most manufactur-
value in the interval from 0.05 to 0.2. engine depends strongly on the current ers will not publish any details on a
Hence, a fuzzy-logic road-surface esti- operating point (e.g., revolutions, mo- fuzzy-logic engine-control solution.
mator that tunes this value to the opti- mentum, etc.), linear control models, This secretiveness is due to the fact
mum cannot make the ABS instable. (e.g., PID) are not suitable. that the rules of the fuzzy-logic system
Let’s move on to see how fuzzy logic On the other hand, no mathematical make the entire engine-control knowl-
easily implements human experience model describing the complete behav- edge of the company completely trans-
in an embedded engine-control system. ior of an engine exists. Most engine parent. They are afraid competitors
controllers use a look-up table to repre- will learn too much about the solution
by disassembling the fuzzy-logic rules.

Listing 1—The current operation point of the engine is classified by the linguistic variable Situation .
Each linguistic term denotes a typical operation point. Because each term is represented as a fuzzy-logic
IDENTIFY DRIVING CONDITION
membership function, the linguistic variable can classify all other operation points, too. Nok and Nissan’s case study [5] gives
the benefits of fuzzy logic in engine
linguistic variable Situation { control. Figure 2 depicts the compo-
nents of this engine controller, which
Term 1: Start
Control strategy is that the cold engine runs smooth. Ignition is contains three fuzzy-logic modules.
timed early, and the mix is fat; The system first notes the engine’s
operational condition by the linguistic
Term 2: Idle
Control ignition timing and fuel injection depending on engine variable Situation. This variable has
temperature to ensure that the engine runs smooth; the linguistic terms in Listing 1.
The determination of Situation is
Term 3: Normal drive, low or medium load
Maximize fuel efficiency by meager mix, watch knocking; a state estimation of the operation
point. Because Situation is a linguis-
Term 4: Normal drive, high load tic variable, more than one term can
Fat mix and early ignition to maximize performance. The only
constraint is the permitted emission maximum; be valid at the same time, so combina-
tions of the operational points can be
Term 5: Coasting expressed as defined by the terms.
Fuel cut-off, depending on situation;
A possible value of Situation could
Term 6: Acceleration be {0.8; 0; 1; 0; 0; 0.3}. Linguistically,
Depending on load, fattening of the mix } this value represents the driving condi-
tion “engine started a short while ago,

Circuit Cellar INK® Issue 88 November 1997 3


Photo 1—This model car is used and engineering knowledge rather than
in high-speed driving experi-
mathematical models. Fuzzy logic
ments.
therefore proves to efficiently imple-
Now, when most ment the technology.
car engines can deliver In 1991, Nissan introduced fuzzy-
much more power logic–controlled automatic five-speed
than necessary to keep transmission systems [7, 8]. Honda
the car in pace with followed in 1992 [9], and GM/Saturn in
traffic, automatic 1993.
transmission systems The job for the fuzzy-logic system
have up to five speeds, in these applications is similar:
and fuel efficiency has
become an important • avoid “nervous” shifting back and
issue, controlling shift forth on winding or hilly roads
normal drive condition at medium or points is much more complex. • understand whether the driver wants
low load, slightly accelerating.” From Five speeds and higher engine power economical or sporty performance
this operation-point identification, the give the automatic-transmission system • avoid unnecessary overdrive, if switch-
individual fuzzy-logic modules control a much higher degree of freedom. Driv- ing to the next lower gear does not
injection, fuel cutoff, and ignition. ing at 35 MPH, a three-speed automatic deliver more acceleration
Like ABS, engine control needs a very transmission has to select second gear.
short loop time. Some systems are as A five-speed transmission with a pow- Figure 3 shows a typical situation
fast as 1 ms for an entire control loop. erful engine can select second gear for on a fast, winding road. With a standard
Some manufacturers design the system maximum acceleration, third gear for shift, you’d leave it in fourth gear, but
using fuzzy logic but then translate it normal driving condition, and fourth a five-speed automatic transmission
into a look-up table for faster processing. gear for minimal acceleration. switches between the fourth and fifth
Although a look-up table computes gears depending on the speed of the car.
faster, memory requirements may pro- ACCELERATE OR SAVE FUEL The fuzzy-logic transmission con-
hibit its use. A look-up table with two Unfortunately, the goal for the con- troller evaluates more than just the
inputs and one output, all 8-bit resolu- trol strategy is in a dilemma. For maxi- current speed of the car. It also analyzes
tion, already requires 64 KB of ROM. mum fuel efficiency, you want to select how the driver accelerates and brakes.
Restricting the resolution of the the next higher gear as early as possible. To detect a winding road, the fuzzy-
input variables to 6 bits each, the look- But for maximum performance, you logic controller looks at the number of
up-table still requires 4 KB. A table with switch to the next higher gear later. accelerator pedal changes within a
three inputs and one output, all inputs If you have a standard shift, you period. Figure 4 shows the definition of
6-bit resolution, requires 1⁄4 MB. choose your strategy depending on the the linguistic variable Accelerator
Some engineers implemented a look- traffic condition. An automatic gearbox pedal changes. The variance of the
up table with a limited resolution and has no understanding of the traffic accelerator pedal changes is input to
used an interpolation algorithm. How- condition or the driver’s wishes. the fuzzy-logic controller.
ever, the interpolation needs about as However, intelligent control tech- Some of the rules estimating the
much computing time as the fuzzy- niques can enhance automatic trans- road and driving conditions from these
logic system itself [2]. missions as it is based on experience input variables are:
Another published application of
fuzzy logic in engine control is an idle
Photo 2— The first
control unit by Ford Motor Corp. [6].
version of the fuzzy-logic
Next, let’s check out automatic- controller has 200 rules
transmission control to show how in two rule blocks. The
fuzzy-logic systems can adapt their four left boxes indicate
input interfaces for
control strategy to drivers.
sensors, the two right
boxes indicate output
ADAPTIVE AUTOMATICS interfaces for the
When the first three-speed automatic actuators, and the two
large boxes in the
transmissions appeared on the market
middle represent fuzzy-
about 30 years ago, the engine power of logic rule blocks.
most cars was just sufficient to keep
the car in pace with traffic. The neces-
sity of getting maximum momentum
from the engine determined the shift
points for the gears.

4 Issue 88 November 1997 Circuit Cellar INK®


The opposite case is simi- acceleration, the next logical step is
lar. If the automatic trans- skid-controlled steering. An antiskid
Road mission detects that the steering system (ASS) reduces the steer-
driver accelerates carefully ing angle applied by the driver through
and takes the foot off the the steering wheel to the amount the
accelerator long before red road can take. It optimizes the steering
Accelerator Pedal
lights, chances are that the action and avoids sliding since a slid-
driver wants high fuel effi- ing car is very difficult to restabilize,
ciency. especially for drivers not accustomed
Gear 4 5 4 5 4 to such situations.
Figure 3—A five-speed automatic transmission with fixed shift points
WHY FUZZY LOGIC? Though an ASS makes a lot of sense
always switches between fourth and fifth gear on a winding road. A The question remains, from a technical point of view, such a
driver with a shift gearbox would leave it in fourth gear. why do you need fuzzy logic system is harder to market. For an ABS,
to implement these intelli- you can prove that it never performs
gent functions? My answer: while you worse than a traditional braking system.
• many pedal changes within a period can use other techniques to implement For an ASS, this is hard to prove.
indicate a fast and winding road these control strategies, fuzzy logic is Also, it may be difficult to sell cars
• few pedal changes within a period likely to be the most efficient. that “take over the steering” in emer-
indicate a freeway Intelligent control strategies are gency situations. Even ABS faced a
• many pedal changes within a period built on experience and experiments long period of rejection by customers
and a high variance of pedal changes rather than from mathematical mod- because they felt uneasy about a system
indicate a slow and winding road els. Hence, a linguistic formulation is “inhibiting” their brake action.
• medium variance of pedal changes more efficient. For these reasons, it may take a long
indicates a fast and winding road These strategies mostly involve a time before ASS will be implemented in
• low variance of the pedal changes large number of inputs. Most of the a production car. All results shown in
indicates a freeway inputs are only relevant for some spe- this section stem from the research of
cific condition. Using fuzzy logic, a German car manufacturer [10]. Be-
The interesting part of this applica- these inputs are only considered in the cause this system is one of the most
tion is that the fuzzy-logic controller relevant rules, keeping even complex complex fuzzy-logic embedded systems
uses the driver as the sensor. It inter- control-system designs transparent. ever developed, it effectively demon-
prets the driver’s reaction to the road Another consideration is that intel- strates the potential of the technology.
and driving conditions and adapts the ligent control strategies implemented
car’s performance accordingly. in mass-market products have to be THE TEST VEHICLE
This behavior could be used to define implemented cost efficiently. In com- Real experiments were made on a
an intelligent control system. The parison to conventional solutions, modified Audi sedan and the 20″ model
technical system tries to understand fuzzy logic is often much more compu- car shown in Photo 1. In the following
whether the human is satisfied with its tational and code-space efficient. discussion, I only present the results
performance and adapts itself to suit Let’s look now at how fuzzy logic derived from the model-car experiments.
the needs of the human using it. enables the design of new functional- A midmounted 1-hp electric motor
ity for automatic steering control. powers the car, rendering the power-to-
“INTELLIGENT” TRANSMISSIONS weight ratio of a race car. This setup
Another example of an automatic ANTISKID STEERING enables the researchers to perform
transmission system currently under Active stability control systems in skidding and sliding experiments in
development in Germany illustrates cars have a long history. First, ABS extreme situations at high speeds.
this possibility even better. improved braking performance by
If drivers want to accelerate, but reducing the amount of brake force µ
Low Medium High
aren’t satisfied with their cars’ responce, applied by the driver to what the road 1
they unconsciously push the pedal surface can take. This system avoids
down even more wintin 1–1.5s. This skidding and sliding, resulting in shorter
scenario represents the subconscious braking distances.
reaction of most drivers to unsatisfac- Second, traction-control systems,
tory acceleration. which do essentially the same thing as
0
Most drivers don’t even realize that ABS, improve acceleration. By reducing 0 10 20 30 40
they like the car to accelerate faster. If engine power applied to the wheels to Accelerator Pedal Changes Within a Period
an automatic transmission system is what the road can take, a traction-
Figure 4—Here, driving condition is classified using a
capable of detecting this, it can move control system maximizes acceleration
linguistic variable. The variable linguistically interprets
the shift points higher to achieve more and minimizes tire wear. the amplitude of accelerator pedal changes within a
acceleration. After skid-controlled braking and certain period.

Circuit Cellar INK® Issue 88 November 1997 5


On dry surface, the car possible situation.
reaches a velocity of 20 MPH In a fuzzy-logic system,
in 3.5 s, with top speeds up to every element is self-explana-
50 MPH. The speed for most tory. Linguistic variables are
Orientation
experiments ranges from 20 to close to the human representa-
30 MPH. Each wheel features Position tion of continuous concepts.
individual suspension and has a Fuzzy if-then rules combine
separate shock absorber. The these concepts much the same
car has disk brakes and a lock- way humans do.
able differential [10]. Ultrasound Beams Fuzzy logic is nonlinear and
The car’s controller uses the multiparametric by nature. So,
motherboard of a notebook PC Figure 5—Three ultrasound sensors guide the car in the track. it can better cope with complex
connected to an interface board control problems that are also
driving the actuators and sensors. Ac- stacle too late. nonlinear and involve multiple param-
tuators are power steering servo, disk To not hit the obstacle, the car has eters.
brake servo, and pulse-width modu- to decide for a very rapid turn. To And finally, fuzzy logic can be effi-
lated motor control. optimize the steering effect, the anti- ciently implemented in embedded
Sensors are three ultrasound (US) skid controller must reduce the desired control applications. Even on a standard
distance sensors for tracking guidance steering angle to the maximum the microcontroller, a fuzzy-logic system
(see Figure 5) and infrared (IR) reflex road can take, avoiding both sliding can outperform a comparable conven-
sensors in each wheel for speed. The and hitting the obstacle. tional solution both by code size and
control loop time—from reading in computing speed.
sensor signals to setting the values for MODEL BASED VS. FUZZY LOGIC
the actuators—is 10 ms. In theory, you can build a mechanical DESIGN AND IMPLEMENTATION
To measure the dynamic state of model for a car and derive a mathemati- Photo 2 shows the first version of a
the car (e.g., skidding and sliding), IR cal model with differential equations to fuzzy-logic controller for the car. The
sensors measure the individual speed implement a model-based controller. objective for this controller was autono-
of all four wheels. Evaluating wheel- In reality, the complexity of this ap- mous guidance of the car in the track
speed differences, the fuzzy-logic sys- proach is overwhelming, and the result- at slow speed, where no skidding and
tem interprets the current situation. ing controller would be difficult to tune. sliding yet occurs.
Three fixed-mounted US sensors Here is the point for fuzzy logic: In Photo 2, the lower rule block
measure the distance to the next ob- race-car drivers can control a car in uses the distances measured by the
stacle to the front, left, and right. This extreme situations very well without three US sensors to determine the
setup permits autonomous operation solving differential equations. Hence, steering angle. The upper rule block
of the car. Low-cost sensors were in- there must be an alternative way for implements a simple speed control by
tentionally used in this study—rather anti-skid steering control. using the distance to the next obstacle
than CCD cameras and image-recogni- This alternative way is to represent measured by the front US sensor and
tion techniques—to show that expen- the driving strategy in engineering the speed of one front wheel only.
sive sensors can be replaced by a heuristics. Although there are multiple Due to the slow speeds, no skidding
fuzzy-logic control strategy. ways of expressing engineering heuris- or sliding occurs. All wheel speeds are
Figure 6 shows a sample experiment tics, fuzzy logic has proven very effec- the same.
involving the model car. The obstacle tive for the following reasons. This first version of the fuzzy-logic
is placed right after the curve, so the You can often formulate engineer- controller contained about 200 rules
US sensors of the car detect the ob- ing heuristics in if-then causalities. In and took only a few hours to imple-
contrast to other methods of ment.
expressing if-then causalities The second version of the fuzzy-
(e.g., expert systems), the logic controller implements a more
computation in a fuzzy-logic complex fuzzy system for dynamic
system is quantitative rather stability control. It includes antilock
than symbolic. braking as well as traction and
In a fuzzy-logic system, antiskid steering control (see Photo 3).
you use a few rules to ex- This 600-rule fuzzy-logic controller
press general situations, and has two stages of the fuzzy inference.
then the fuzzy-logic algo- The first stage, represented by the
rithm deduces decisions for three left rule blocks, estimates the
Figure 6—In this example of an experiment, the car’s ultrasound the real situations that oc- state variables of the car’s dynamic
sensors will detect the obstacle placed right after the curve very late, cur. A conventional expert situation from sensor data. The two
making a rapid turn necessary. system needs a rule for each lower rule blocks estimate skidding

6 Issue 88 November 1997 Circuit Cellar INK®


and sliding states from speed system was modified on-
sensor signals, while the Online Code the-fly for optimization.
upper rule block estimates Communication The fuzzy-logic code is
Manager
the car’s position and orien- Development separated into two seg-
System (PC) Online
tation in the test track. Serial Link ments. One contains all
Changes
Note that the output of Parser
static parts—code that
Real-Time
the left three rule blocks— Data of the
doesn’t need to be modi-
the state variable estima- Fuzzy System Dynamic Dynamic fied for system alterations.
Code A Code B
tion—is linguistic rather The other segment con-
than numerical. An esti- Control Loop tains all dynamic parts—
Pre- and
mated state of the car can Auto Postprocessing Static Code Module the code containing
(Conventional Code) (Fuzzy Control Algorithm)
therefore be “the position is membership functions of
rather left, while the orienta- the linguistic variables, the
tion is strongly to the right, Figure 7—The fuzzyTECH Online Edition features both visualization of running system inference structure, and
and the car skids over the left and modifications on-the-fly. the rules.
front wheel.” ABS, traction control, and ASS (see The dynamic segment is doubled,
The second stage, represented by Photo 3). with only one of the segments active
the three right rule blocks, uses these However, this version required a at the same time. In this situation, the
estimations as inputs to determine the much longer design time before the parser, linked to the development PC
best control action for that driving results were completely satisfactory. via a communications manager, can
situation. The upper rule block deter- The second version also uses advanced modify the inactive code segment.
mines the steering angle, the middle fuzzy-logic technologies such as FAM This technique enables modifica-
one the engine power to be applied, inference [11] and the Gamma tions on the running system without
and the lower one the brake force. aggregational operator [12]. halting or compiling. At the same time,
Such a two-stage control strategy is the entire inference flow inside the
similar to the human behavior. It first ONLINE DEVELOPMENT fuzzy-logic controller is graphically
analyzes the situation and then deter- The development of the fuzzy-logic visualized on the PC, since the com-
mines the action. It also allows for system used the fuzzyTECH software munications manager also transfers all
efficient optimization, since the total product [11]. Given the graphical defi- real-time data.
of 600 rule structures in six rule blocks nition of the system structure (cf. The ASS example demonstrates the
can be designed and optimized inde- Photos 2 and 3), the linguistic variables, applicability of fuzzy-logic technologies
pendently. and the rule bases, fuzzyTECH’s com- for a complex control problem found
The first version of the controller piler generates the system as C or in the automotive industry. The system
was only able to guide the car on au- assembly code. was a straightforward design based on
tonomous cruise (see Photo 2). The This code was implemented on a experimental experience without a
second version also succeeded to dy- PC board mounted on the car. Figure 7 mathematical model of the process.
namically stabilize the car’s cruise via shows how the running fuzzy-logic During optimization, the control
strategy was easy to optimize due to
the linguistic representation inherent
in the fuzzy-logic system. Tests and
verification were expedited due to the
controller’s transparency. And, the poor
computational performance of early
fuzzy-logic software solutions was
overcome via a new generation of
software-implementation tools [2, 13].
In the remainder of this article, I
provide an overview of other automo-
tive applications where fuzzy logic has
been used successfully.

HVAC IN CARS
Fuzzy-logic design technologies are
well-established in heating and air
conditioning of residences and offices.
Hence, it’s no surprise that many car
Photo 3—Here’s the second version of the fuzzy-logic controller. The controller uses advanced fuzzy-logic design manufacturers also use fuzzy logic in
technologies and contains a total of 600 rules. their HVAC-system designs.

Circuit Cellar INK® Issue 88 November 1997 7


with automatic gearbox and ABS as
test vehicle. The fuzzy-logic controller
runs on an 8-bit microcontroller.
The car uses a speed sensor and a
single-beam telemeter for the distance
to the next car. The actuators com-
mand brake pressure and accelerator.
Tests show the fuzzy-logic controller
can handle the cruise under all the
tested conditions.
Future regulations in the European
Community (EC) require a speed con-
trol for limiting truck speeds on roads
in Europe. Today’s speed limiters use
adaptive PID-type controller. However,
the resulting truck behavior is unsatis-
Photo 4—This graph depicts the control surface of the air conditioner’s blower-speed control. Blower speed is factory, compared to an experienced
determined by temperature error and engine-coolant temperature. driver.
Therefore, a number of recent de-
While most car manufacturers work temperature error is zero, low blower signs use fuzzy-logic control to achieve
on these systems, very few publish speed is desired. If its too hot inside (i.e., robust performance, even under the
their efforts. The control approach in positive temperature error), high blower strong load changes of commercial
general and hence the use of fuzzy speed is needed to cool the cabin. trucks [16, 17].
logic in the design differ significantly If the error is negative, indicating A paper from Ford Electronics de-
for each manufacturer. In this section, that it’s too cold inside, and the engine scribes the design of a traction-control
I use an example that Ford Motor is cold, little blower speed is needed system for a radio-controlled model car
Company developed in the U.S. [14]. for defrost. If the error is negative but [18]. The fact that Ford publishes model-
The fundamental goal of HVAC in the engine is warm, high blower speed car applications is symptomatic of the
cars is to make vehicle occupants is needed to heat up the cabin. fear of many automotive manufactur-
comfortable. Human comfort, however, ers to admit that they use fuzzy logic
is a complex reaction, involving physi- OTHER APPLICATIONS as a design technique for “real” cars.
cal, biological, and psychological re- This section briefly introduces
sponses to the given conditions. The some other examples of fuzzy-logic THE FUTURE IS FUZZY
performance criterion—comfort—is not control in automotive engineering. For Over the past five years, fuzzy logic
some well-defined mathematical for- details, refer to the papers cited. has significantly influenced the design
mula but a sometimes inconsistent Peugeot Citroën of France devel- of automotive control systems. Since
and empirically determined goal. oped a fuzzy-logic system for an intel- using fuzzy logic involves a paradigm
Typical HVAC-system sensors ligent cruise control [15]. The system shift in the design of a control system,
measure cabin temperature, ambient combines multiple functions for au- five years is a short period. The move
temperature, sun heating load, humid- tonomous intelligent cruise control from analog to digital solutions has
ity, and other factors. Typical actuators (i.e., following another vehicle, stop taken a much longer time.
are variable speed blowers, means for and go procedures, and emergency The key reason for fuzzy logic’s suc-
varying air temperature, ducting, and stop). The system uses three fuzzy- cess in automotive engineering lies in
doors to control the direction of air- logic blocks with four inputs, one the implications of its paradigm shift.
flow, and the ratio of fresh to recircu- output, and 30 rules each. Previously, engineers spent much time
lated air. This multiple-input, Optimization and verification of the creating mathematical models of me-
multiple-output control problem rule base used a Citroën XM sedan chanical systems. More time went to
doesn’t fall into any convenient cat-
egory of traditional control theory. Photo 5—The rule base
Photo 4 shows the control surface for blower-speed control
of a part of a HVAC system—the shows how the two
blower-speed control. Blower speed variables of engine
temperature and tempera-
depends on two input variables—the ture error affect blower
temperature error (i.e., the in-car tem- speed.
perature minus the set-point tempera-
ture) and the engine-coolant
temperature.
Photo 5 shows the rule base. If the

8 Issue 88 November 1997 Circuit Cellar INK®


real-world road tests that tuned the [3] N. Matsumoto et al., “Expert Blancard, and P. Jarri, “Autonomous
fudge factors of the control algorithms. antiskid system,” IEEE IECON’87, Intelligent Cruise Control with
If they succeeded, they ended up 810–816, 1987. Fuzzy Logic,” EUFIT’93–1st Eur.
with a control algorithm of mathemati- [4] C. von Altrock, Fuzzy Logic and Congress on Fuzzy and Intelligent
cal formulas involving many experi- NeuroFuzzy Applications Ex- Technologies, Aachen, 1–7, 1993.
mental parameters. Modifying or later plained, Prentice Hall, Englewood [16] V.M. Thurm, P. Schaefer, and
optimizing such a solution is very diffi- Cliffs, NJ, 1995. W. Schielen, “Fuzzy Control of a
cult because of its lack of transparency. [5] H. Kawai et al., “Engine control Speed Limiter,” ISATA Conf., 1993.
Fuzzy logic makes this design process system,” Proc. of the Int’l Conf. on [17] www.fuzzytech.com/e_a_spe.htm.
faster, easier, and more transparent. It Fuzzy Logic and Neural Networks, [18] R. Russ, “Designing a Fuzzy
can implement control strategies using Iizuka, Japan, 929–937, 1990. Logic Traction Control System,”
elements of everyday language. Every- [6] L. Feldkamp and G. Puskorius, Proc. of the Embedded Systems
one familiar with the control problem “Trainable fuzzy and neural-fuzzy Conf., 2, 183–196, 1994.
can read the fuzzy rules and understand systems for idle-speed control,” [19] www.fuzzytech.com/e_iec.htm.
what the system is doing and why. 2nd IEEE Int’l. Conf. on Fuzzy
It also works for control systems Systems, 45–51, 1993.
with many control parameters. Design- [7] H. Takahashi, K. Ikeura, and T.
Yamamori, “5-speed automatic
SOURCES
ers can build innovative control sys-
tems that would have been intractable transmission installed fuzzy reason- fuzzyTECH Development System
using traditional design techniques. ing,” IFES’91–Fuzzy Engineering Inform Software Corp.
The future for fuzzy logic in auto- toward Human Friendly Systems, 2001 Midwest Rd.
motive engineering is bright. Semicon- 1136–1137, 1991. Oak Brook, IL 60523
ductor manufacturers are [8] H. Ikeda et al., “An intelligent (630) 268-7550
incorporating fuzzy-logic instruction automatic transmission control Fax: (630) 268-7554
sets in their controllers. Motorola just using a one-chip fuzzy inference www.fuzzytech.com
introduced the new 68HC12 family of engine,” Proc. of the Int’l. Fuzzy Fuzzy-logic 68HC12 microcontroller
16-bit micros that integrate a com- Systems and Intelligent Control Motorola MCU Information
plete instruction set for fuzzy logic at Conf. in Louisville, 44–50, 1992. P.O. Box 13026
no extra cost. [9] P. Sakaguchi et al., “Application Austin, TX 78711
Another new development is the of fuzzy logic to shift scheduling (512) 328-2268, x985
upcoming IEC 1131-7 fuzzy-logic stan- method for automatic transmis- www.mcu.motsps.com
dard [19]. This international standard sion,” 2nd IEEE Int’l. Conf. on www.fuzzytech.com/motorola.htm
defines consistent fuzzy-logic develop- Fuzzy Systems, 52–58, 1993.
ment and documentation procedures. [10] C. von Altrock, B. Krause, and
With these two developments, de- H.-J. Zimmermann, “Advanced
signing with fuzzy logic becomes a fuzzy logic control of a model car
much simpler task. ¥ in extreme situations,” Fuzzy Sets
and Systems, 48:1, 41–52, 1992.
[11] INFORM GmbH/Inform Soft-
Constantin von Altrock began re- ware Corp., fuzzyTECH and
search on fuzzy logic with Hewlett- NeuroFuzzy Module 5.0 User’s
Packard in 1984. In 1989, he founded Manual, Chicago, IL, 1997.
and still manages the Fuzzy Technolo- [12] H.-J. Zimmermann and U. Thole,
gies Division of Inform Software “On the suitability of minimum
Corp., a market leader in fuzzy-logic and product operators for the inter-
development tools and turn-key appli- section of fuzzy sets,” Fuzzy Sets
cations. You may reach Constantin at and Systems, 2, 173–186, 1979.
cva@inform-ac.com. [13] C. von Altrock and B. Krause,
“On-Line-Development Tools for
REFERENCES Fuzzy Knowledge-Base Systems of
Higher Order,” 2nd Int’l Conf. on
[1] Intel, “Fuzzy Anti-Lock Braking Fuzzy Logic and Neural Networks
System,” developer.intel.com/ Proceedings, Iizuka, Japan, 1992.
design/MCS96/DESIGNEX/2351. [14] L.I. Davis et al., “Fuzzy Logic
htm, 1996. for Vehicle Climate Control,” 3rd
[2] “Benchmark Suites for Fuzzy IEEE Int’l. Conf. on Fuzzy Sys- ©Circuit Cellar INK, the Computer Applications Journal.
Logic,” www.fuzzytech.com/ tems, 530–534, 1994. Reprinted by permission. For subscription information,
e_dwnld.htm, 1997. [15] J.-P. Aurrand-Lions, M. des Saint call (860) 875-2199 or subscribe ©circellar.com

Circuit Cellar INK® Issue 88 November 1997 9

Вам также может понравиться