Docsity

Fuzzy Logic Controllers: Understanding the Basics and Applications, Slides of Robotics

Toggle sidebar
bg1
1
Fuzzy Logic Controllers
Fuzzy Logic Controllers
•Description of Fuzzy Logic
•What Fuzzy Logic Controllers Are Used for
•How Fuzzy Controllers Work
•Controller Examples
Fuzzy Logic by
Fuzzy Logic by Lotfi Zadeh
Lotfi Zadeh
•Professor at University of
California
•First proposed in 1965 as a way
to process imprecise data
•Its usefulness was not seen until
more powerful computers and
controllers were available
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Fuzzy Logic Controllers: Understanding the Basics and Applications and more Slides Robotics in PDF only on Docsity!

Fuzzy Logic ControllersFuzzy Logic Controllers

  • Description of Fuzzy Logic
  • What Fuzzy Logic Controllers Are Used for
  • How Fuzzy Controllers Work
  • Controller Examples

Fuzzy Logic byFuzzy Logic by Lotfi ZadehLotfi Zadeh

  • Professor at University of California
  • First proposed in 1965 as a way to process imprecise data
  • Its usefulness was not seen until more powerful computers and controllers were available

Docsity.com

t 2

Basic Concept of Fuzzy LogicBasic Concept of Fuzzy Logic

  • Zadeh – ā€œAttempt to mimic human control logicā€
  • Do away with crisp sets, Boolean, true/false, etc.
  • Allow for fractions, partial data, imprecise data
  • Fuzzify the data you have
  • How red is this? ½? ¾? 1?

RGB value 150/

What Is a Fuzzy Controller?What Is a Fuzzy Controller?

  • Simply put, it is fuzzy code designed to control something, usually mechanical.
  • They can be in software or hardware and can be used in anything from

small circuits to large mainframes.

Docsity.com

Why Should We Use FuzzyWhy Should We Use Fuzzy

Controllers?Controllers?

  • Very robust
  • Can be easily modified
  • Can use multiple inputs and outputs

sources

  • Much simpler than its predecessors (linear

algebraic equations)

  • Very quick and cheaper to implement

Constructing a Fuzzy ControllerConstructing a Fuzzy Controller

  1. Create the membership values

(fuzzify).

  1. Specify the rule table.
  2. Determine your procedure for

defuzzifying the result.

Create the Membership ValueCreate the Membership Value

  • First we have to fuzzify the data or create

membership values for the data and put them into fuzzy sets.

  • Put simply, we have to divide each set of

data into ranges.

  • The Y value will always be on a range of

0 to 1 (theoretically 0 to 100%).

  • The X will be an arbitrary range that we

determine

Membership for InvertedMembership for Inverted

PendulumPendulum

  • Typically a fuzzy controller has at least 2 inputs and one output.
  • For the inverted pendulum experiment, we will have angle and angular velocity as our inputs and speed as our output (the activity we want to control).
  • The ranges you determine for each set of data can drastically determine how well the controller works.

List of RulesList of Rules

If angle is Z and angular velocity is Z then speed is Z If angle is Z and angular velocity is NH then speed is NH If angle is Z and angular velocity is NL then speed is NL If angle is Z and angular velocity is PL then speed is PL If angle is Z and angular velocity is PH then speed is PH If angle is NH and angular velocity is Z then speed is NH If angle is NL and angular velocity is Z then speed is NL If angle is PL and angular velocity is Z then speed is PL If angle is PH and angular velocity is Z then speed is PH If angle is NL and angular velocity is PL then speed is Z If angle is PL and angular velocity is NL then speed is Z

DefuzzifyDefuzzify the Resultthe Result

Now we have to figure out what to do

with the result we get from the rules and the fuzzy sets.

The typical way is to defuzzify using

Mamdani’s Center of Gravity method.

Mamdani’sMamdani’s COGCOG

  • Mandani’s prinicipal takes the input values (angle and

angular velocity) and finds where they intersect their sets.

  • The intersection creates a cuts-off line known as the alpha-

cut.

  • We fire our rules to find the corresponding output rule.
  • The rule is then cut off by the alpha-cut, giving us several

trapazoidal shapes.

  • These shapes are added together to find their total center of

gravity.

COG (^) Wierman

Implementing PendulumImplementing Pendulum

ControllerController

For our first input we get our values for angle and angular velocity. These values intersect the fuzzy sets a certain points which are our alpha-cuts.

Shahariz

Resulting Fuzzy SetsResulting Fuzzy Sets

Shahariz

Apply COG EquationApply COG Equation

ExamplesExamples

  • Online pendulum java script

http://www.aptronix.com/fuzzynet/java/pend/pendjava

.htm

  • Truck docking program

The The

EndEnd