1 / 60

Fuzzy Control

Fuzzy Control. Design of Embedded Systems Using 68HC12/11 Microcontrollers Chapter 14 Richard E. Haskell, Prentice Hall, 2000. Fuzzy Control. Fuzzy Sets Design of a Fuzzy Controller Fuzzification of inputs: get_inputs() Fuzzy Inference Processing the Rules: find_rules()

deo
Télécharger la présentation

Fuzzy Control

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Fuzzy Control Design of Embedded Systems Using 68HC12/11 Microcontrollers Chapter 14 Richard E. Haskell, Prentice Hall, 2000

  2. Fuzzy Control • Fuzzy Sets • Design of a Fuzzy Controller • Fuzzification of inputs: get_inputs() • Fuzzy Inference • Processing the Rules: find_rules() • Centroid Defuzzification • Output Defuzzification: find_output() • A Fuzzy Control Example -- • Floating Ping-Pong Ball

  3. Fuzzy Logic

  4. Fuzzy Sets Is this sentence true or false?

  5. The Barber Paradox Sign on a Barber Shop: “I shave all who do not shave themselves.” Who shaves the barber?

  6. Fuzzy Control • Fuzzy Sets • Design of a Fuzzy Controller • Fuzzification of inputs: get_inputs() • Fuzzy Inference • Processing the Rules: find_rules() • Centroid Defuzzification • Output Defuzzification: find_output() • A Fuzzy Control Example -- • Floating Ping-Pong Ball

  7. A Fuzzy Controller

  8. Fuzzy Control • Fuzzy Sets • Design of a Fuzzy Controller • Fuzzification of inputs: get_inputs() • Fuzzy Inference • Processing the Rules: find_rules() • Centroid Defuzzification • Output Defuzzification: find_output() • A Fuzzy Control Example -- • Floating Ping-Pong Ball

  9. The 68HC12 MEM Instruction

  10. The 68HC12 MEM Instruction

  11. Fuzzy Control • Fuzzy Sets • Design of a Fuzzy Controller • Fuzzification of inputs: get_inputs() • Fuzzy Inference • Processing the Rules: find_rules() • Centroid Defuzzification • Output Defuzzification: find_output() • A Fuzzy Control Example -- • Floating Ping-Pong Ball

  12. Fuzzy Inference

  13. Fuzzy Control • Fuzzy Sets • Design of a Fuzzy Controller • Fuzzification of inputs: get_inputs() • Fuzzy Inference • Processing the Rules: find_rules() • Centroid Defuzzification • Output Defuzzification: find_output() • A Fuzzy Control Example -- • Floating Ping-Pong Ball

  14. The 68HC12 REV Instruction

  15. * Fire all rules * firerules ( in.out.array rules -- ) FIRERULES LDD 2,X+ D -> rules LDY 2,X+ Y -> in.out.array PSHX TFR D,X X -> rules INX INX X -> Out0 addr PSHY save Y LDY 2,X+ Y -> Out0, X -> 1st rule LDAB 0,Y B = #out.memb.fncs FR0 CLR 1,+Y clear Out array DBNE B, FR0 PULY Y -> in.out.array LDAA #$FF REV rule evaluation PULX RTS Figure 14.19 68HC12 code for WHYP word firerules ( in.out.array rules-- )

  16. Listing 14.2 Fuzzy Control in WHYP -- Making rules \ Fuzzy Logic Control Using WHYP12 File: FUZZY12.WHP \ ********** Defining word for making rules ********** : make.rules ( +++ ) CREATE HERE 0 , \ leave room for #rules 0 , \ leave room for ^Out0 DOES> ( pfa -- ) ; HEX : C: ( pfa ix -- pfa ) C, FE C, ; : C; ( pfa ix -- pfa ) C, FE C, 1 OVER +! ; \ inc #rules : C. ( pfa ix -- pfa ) C, FF C , 1 OVER +! ; \ inc #rules DECIMAL : end.rules ( pfa -- ) DROP ; \ drop addr of #rules

  17. Fuzzy Control • Fuzzy Sets • Design of a Fuzzy Controller • Fuzzification of inputs: get_inputs() • Fuzzy Inference • Processing the Rules: find_rules() • Centroid Defuzzification • Output Defuzzification: find_output() • A Fuzzy Control Example -- • Floating Ping-Pong Ball

  18. Fuzzy Control • Fuzzy Sets • Design of a Fuzzy Controller • Fuzzification of inputs: get_inputs() • Fuzzy Inference • Processing the Rules: find_rules() • Centroid Defuzzification • Output Defuzzification: find_output() • A Fuzzy Control Example -- • Floating Ping-Pong Ball

  19. The 68HC12 REV Instruction

  20. Fuzzy Control • Fuzzy Sets • Design of a Fuzzy Controller • Fuzzification of inputs: get_inputs() • Fuzzy Inference • Processing the Rules: find_rules() • Centroid Defuzzification • Output Defuzzification: find_output() • A Fuzzy Control Example -- • Floating Ping-Pong Ball

More Related