Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering

Fuzzy Logic : Working

By Ashutosh Bhatt

How Fuzzy Logic works can be understood in a simple example of driving in a lane within speed limits. While the driver may take precise inputs (not fuzzy) from the speedometer, he also keeps an eye on the drivers behind him, ahead of him and an overall trend of the speed of the traffic, density pouring in from side lanes etc. to have a rough estimate of conditions. The whole information is processed and summarized into a crisp output of the speed decision he maintains, whether to speed or not. This is a simple example of fuzzy logic.
 
Like any other mathematical modeling process, FL too uses a few steps to achieve the final goal. The various steps are outlined as:
1.      System Requirements: Define control objectives, specifications, criteria, type of response needed, possible failure modes etc.
2.      Input/Output relationship: Choosing the minimum number of fuzzy variables for inputs and their relation to the output. These can be linguistic variables, for example for error measurements, large positive error, zero error, small negative error etc.
3.      Create FL Membership Functions: These define the values of Input/output terms used in the rules. These represent graphically, the magnitude of participation of an input and associate a weight to each input which determines their influence on the final output. These functions seldom have simple shapes, and may range from triangular to bell shaped, trapezoidal or exponential. The degree of membership is determined by having the input on the x-axis and projecting it to the upper boundary of membership function.
 
membership function for velocity in speed controller
 
4.      Rule Based Engine Structure: FL systems are based more on intuitive reasoning with If-Then clauses for all the possible cases. There is no Else clause, which means that all the conditions are checked. A rule matrix is initially formed to tabulate all the possible number of rules. Though all might not be needed, it helps mapping out the possible inputs while keeping the system under control.
5.      Create Routines: In case of software, pre and post-processing routines, and in hardware programs, putting rules into the FL Engine.
6.      Defuzzification: The firing strength of each rule is determined and logical products of each rule are inferred through techniques like max-min’d, root-sum-squared, max-dot’d etc. before passing them to the defuzzification phase. Defuzzification involves the conversion of the fuzzy data into a crisp output using the Fuzzy Centroid Algorithm.
7.      Testing and Evaluation: The objective is to try and try again until the goal is achieved. The rules are changed and new rules may be added to tune the system to achieve the desired performance.
 
Fuzzy logic has always been a controversial subject. Researchers often argue that it is just another way of expressing probability. This however, is not true. While probability is the mathematical modeling of degree of ignorance and deals with the stochastic uncertainty of an event happening or not, Fuzzy logic is the modeling of degree of semblance which expresses the uncertainty of the clear definition of the event itself. While many argue over the similarity of the two subjects, its pioneer Lotfi, argues that both are different and none is the replacement of the other.
 
There are a few requirements for a Software Development Kit (SDK) to qualify as a good fuzzy logic SDK. Firstly, it should support all the design phases ranging from design to the implementation phase. Secondly, it should support all the targeted platforms and the various industry standard interfaces like DLL/DDE/OLE. The hard way to do it is to use a programming language and do it all manually which is not only exhaustive and tiring, but every minute change in the design would require rewriting the entire code. Since the time of 8 bit MCUs, dedicated hardware for fuzzy systems has been favored because of the advantages involved like reduced processing time.
 

 


Filed Under: Recent Articles

 

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


Featured Tutorials

  • Introduction to Brain Waves & its Types (Part 1/13)
  • Understanding NeuroSky EEG Chip in Detail (Part 2/13)
  • Performing Experiments with Brainwaves (Part 3/13)
  • Amplification of EEG Signal and Interfacing with Arduino (Part 4/13)
  • Controlling Led brightness using Meditation and attention level (Part 5/13)
  • Control Motor’s Speed using Meditation and Attention Level of Brain (Part 6/13)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • What are the battery-selection criteria for low-power design?
  • Key factors to optimize power consumption in an embedded device
  • EdgeLock A5000 Secure Authenticator
  • How to interface a DS18B20 temperature sensor with MicroPython’s Onewire driver
  • Introduction to Brain Waves & its Types (Part 1/13)

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr bluetooth dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics renesaselectronicscorporation Research samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • Vco cadencd
  • 12V 5A needed
  • Slope compensation ramp calculation for UCC38084
  • Parts storage / inventory best practices and organization
  • Unusual gap shape of ETD59 ferrite core?

RSS Electro-Tech-Online.com Discussions

  • HV Diodes
  • intro to PI
  • surge arresters
  • NOR gate oscillator in LTspice not working
  • Very logical explanation on low calue C3
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering