SlideShare a Scribd company logo
1 of 8
Download to read offline
Design and Implementation of Real Time
                DC Motor Speed Control using Fuzzy Logic

                           Waleed Abd El-Meged El-Badry
                                 Mechatronics Department
                               Faculty of Engineering, MUST
                                  wbadry@must.edu.eg
                                       3rd June, 2008


Abstract
        In this paper, we try to implement a fuzzy logic controller (FLC) for DC motor
        using Laptop, tower or industrial PC. The feedback is taken via tachometer
        connected directly to motor of interest by coupling. Interfacing between PC and
        DC Motor-Tachometer is done using NI USB 6008 and additional signal
        conditioning circuitry. This system could assist students and novices to evaluate
        rapidly Fuzzy Logic concepts and application using this low cost case study.

1. Introduction
        Speed control of DC motors has been one of the crucial topics in Mechatronics
        engineering, starting from simple Cartesian Robots, to giant industries such as
        steel where maintaining motor speed of rollers affects drastically the shape of
        rolled bars[1-2]. Due to non linearity of DC motors, designing control system
        based on system identification is difficult and all system parameters are
        approximated [2].

        The heuristic knowledge based system, Fuzzy Logic proved to have the flexibility
        of modelling nonlinear systems with fair or no knowledge of systems
        identification. As the fuzzy logic core is based on “how people can do it”, many
        legacy control systems are nowadays converted to be “fuzzy based systems” for
        ease of maintenance and enhancement.

        Fuzzy Logic Controllers can be practically implemented using several techniques,
        using Microcontroller [3] where all fuzzy rules are placed by means of assembly
        language, or a FL chip that is configurable using accompanying software, and
        finally using PC where education mainly takes place in development process.




    1
2. Motivation
        Several reasons were beyond selection of this implementation, these are
        summarised below:
         Development of Class Library can be utilised by students to develop fuzzy
           logic systems easily with any .NET language (C#, VB, C++, Delphi and COBOL).
           This would enable many students whose skills are in one or more of the
           preceded languages rather than compulsory knowledge of MATLAB.
         Implementing knowledge gained from “Fuzzy Logic” course tutored.
         Studying the impact of fuzzy controller designed in real time environment.

3. Project Framework
        DC motor speed control was inspired by an article entitled “Fuzzy Logic for Plain
        Folks. Fig. 1 illustrates the proposed circuit connection [4].




                              Fig. 1 Proposed Circuit Connection

        The proposed system can be summarised in the below block diagram

                                         Knowledge Base

                         Fuzzification     Fuzzy Rules        Defuzzification

                                          Computer
         BJT Amplifier
                                           Coupling
                  D/A               M                     T                A/D

                          Fig.2 DC Motor Speed Control Block Diagram



    2
4. Project Setup
  Two Identical DC motor were used to implement the project (one as DC motor and
  the other works as tachometer), they are Toshiba 24V, 1.5A and Maximum of 180
  RPM. Other parameters were obtained experimentally. The NI USB 6008 has built in
  12 bits Analogue to Digital converter that can generate output voltage from 0- 5V
  with maximum sourcing current of 150 mA. It also has a 0-10V, 12 bits Analogue to
  Digital converter that were sufficient to measure the tachometer voltage directly.

  Additional Circuit were used to accomplish two objectives, to start with, to amplify
  the output analogue voltage generated from USB D/A from 0-5V into 0-12V, and
  secondly, to supplement the DC Motor with current necessary that USB device can’t
  afford. The figure shown illustrates how these problems were tackled by using
  TIP41C NPN transistor with variable resistor for tuning [5]. Value of resistance were
  evaluated experimentally
                                                                                +12V




         Fig. 3 Mapping 0-5V 150mA into
                                                                                   Q1
                 0-12V 2A Circuit                                      43%
                                                                                   TIP41

             (Created Using Proteus VSM)               From USB 6008




5. Experimental Work
  Common-Emitter BJT amplifier described in preceded section has a nonlinear
  relationship between Base Voltage (Vb) and Collector Voltage (Vc), the below chart
  describes the relation between output USB analogue voltage (0-5V) from NI USB
  6008 and Actual applied DC Motor voltage after amplification stage. The chart was
  drawn by applying different voltages from USB Card and measuring the
  corresponding applied voltage on DC motor simultaneously.




    3
Fig. 3 Relationship between PC output voltage and Actual Applied Motor Voltage

     Below 2V, “dead zone” is observed due coupling weight and friction, meanwhile,
     saturation takes place after 4V.

     Same procedure were followed to obtain chart depicts the DC Motor-
     Tachometer Relationship. The below figure yields the experimental results:

                                        9
     Tachometer Corresponding Voltage




                                        8



                                        7
                                                                                     Experimental Data
                                                                                     Trend Line
                                        6



                                        5



                                        4



                                        3
                                            6   7   8      9            10      11    12                 13
                                                        Applied Motor Voltage

                       Fig. 4 Motor-Tachometer Relationship
     Data obtained experimentally from both charts were added to “the knowledge
     base“was stored on software program to be utilised lately in implementation,
     data between points were extracted using interpolation. Charts were generated
     plotted using MATLAB.




 4
6. Fuzzy Variables and Rules
   Two fuzzy variables were used based on knowledge base:
   a- Input: Speed in (RPM) that maps current RPM and Desired RPM. Speed is
      normalised.




                               Fig. 5 Input Membership Functions

   b- Output: Output Voltage (V) for DC Motor. Voltage is normalised as well.




                              Fig. 6 Output Membership Functions

        The first and last fuzzy terms holds greater range from the universe of discourse
        for “fast response”, the other fuzzy terms were tuned by trial and error.




    5
Five fuzzy rules were used which maps each input linguistic value to and output
         linguistic peer as follows
                         If Speed is Very Slow then Speed Up Motor        (1)
                         If Speed is Slow then Slightly Speed Up Motor    (2)
                         If Speed is About Right then No Change Motor     (3)
                         If Speed is Fast then Slightly Slow Down Motor   (4)
                         If Speed is Very Fast then Slow Down Motor       (5)



7. Results and Conclusion
   The Fuzzy Logic Class Library was developed using Microsoft Visual Studio 2008. The
   library can be used for implementation of both Mamdani and Takagi-Sugeno Fuzzy
   Systems with both triangular and trapezoidal membership functions. A simple
   software were created for testing purposes to compare results with another made
   with MATLAB




                           Same result were
                           obtained using MATLAB
                           and developed fuzzy logic
                           library by researcher




            Fig. 7 Same result yielded by both MATLAB and developed Class Library

Fuzzy Variables and rules for DC motor control were programmed using Visual Basic
2008.




     6
Code Snippet 1 Formulation of Membership functions




                       Code Snippet 2 Formulation of Fuzzy Rules

The preceded code snippets were captured from the source code for case study;
researcher succeeded to obtain “user friendly” class library that is expected to be easily
comprehended by students.

A software were developed to control Motor Speed at 45 RPM, the below curve depicts
the fuzzy logic controller step input response.




                     Fig. 8 Screenshot from the developed software

     7
Fig. 9 Motor Response at Set Point 45 RPM
8. References
  1- Thiang and Andru Hendra, “Remote Fuzzy Logic Control System For a DC Motor
     Speed Control”, Jurnal Teknik Elektro Vol. 2, No. 1, Maret 2002: 8 – 12
  2- Bogumila Mrozek and Zbigniew Mrozek, “Modelling and Fuzzy Control of DC
     Drive”, 14-th European Simulation Multiconference ESM 2000, May 23-26,
     Ghent, pp186-190
  3- Yodyium Tipsuwan, “Fuzzy Logic Microcontroller Implementation for DC Motor Speed
     Control” .
  4- http://www.Fuzzy-Logic.com
  5- Jan Axelson, “Parallel Port Complete”, 2nd Ed., Lakeview Research.




    8

More Related Content

What's hot

Speed control of dc motor by fuzzy controller
Speed control of dc motor by fuzzy controllerSpeed control of dc motor by fuzzy controller
Speed control of dc motor by fuzzy controller
Murugappa Group
 
Fpga based motor controller
Fpga based motor controllerFpga based motor controller
Fpga based motor controller
Uday Wankar
 
Speed Control of Brushless Dc Motor Using Fuzzy Logic Controller
Speed Control of Brushless Dc Motor Using Fuzzy Logic ControllerSpeed Control of Brushless Dc Motor Using Fuzzy Logic Controller
Speed Control of Brushless Dc Motor Using Fuzzy Logic Controller
iosrjce
 
Thompson tchobanian ni_li)
Thompson tchobanian ni_li)Thompson tchobanian ni_li)
Thompson tchobanian ni_li)
trtrungviet
 
D0255033039
D0255033039D0255033039
D0255033039
theijes
 
Speed con trol of dc motor
Speed con trol of dc motorSpeed con trol of dc motor
Speed con trol of dc motor
Amit Ranjan
 

What's hot (20)

Speed control of dc motor by fuzzy controller
Speed control of dc motor by fuzzy controllerSpeed control of dc motor by fuzzy controller
Speed control of dc motor by fuzzy controller
 
DC Drive Speed Control using Fuzzy Logic Controller
DC Drive Speed Control using Fuzzy Logic ControllerDC Drive Speed Control using Fuzzy Logic Controller
DC Drive Speed Control using Fuzzy Logic Controller
 
Fpga based motor controller
Fpga based motor controllerFpga based motor controller
Fpga based motor controller
 
A comparative study of pi, fuzzy and hybrid pi fuzzy controller for speed con...
A comparative study of pi, fuzzy and hybrid pi fuzzy controller for speed con...A comparative study of pi, fuzzy and hybrid pi fuzzy controller for speed con...
A comparative study of pi, fuzzy and hybrid pi fuzzy controller for speed con...
 
A Review on Rapid Control of a Brushless Motor in an Hybrid System
A Review on Rapid Control of a Brushless Motor in an Hybrid SystemA Review on Rapid Control of a Brushless Motor in an Hybrid System
A Review on Rapid Control of a Brushless Motor in an Hybrid System
 
Dc drives smnar ppt
Dc drives smnar pptDc drives smnar ppt
Dc drives smnar ppt
 
Thesis shailesh
Thesis shaileshThesis shailesh
Thesis shailesh
 
Integrated fuzzy logic controller for a Brushless DC Servomotor system
Integrated fuzzylogic controller for a Brushless DC Servomotor systemIntegrated fuzzylogic controller for a Brushless DC Servomotor system
Integrated fuzzy logic controller for a Brushless DC Servomotor system
 
Speed Control of Brushless Dc Motor Using Fuzzy Logic Controller
Speed Control of Brushless Dc Motor Using Fuzzy Logic ControllerSpeed Control of Brushless Dc Motor Using Fuzzy Logic Controller
Speed Control of Brushless Dc Motor Using Fuzzy Logic Controller
 
Thompson tchobanian ni_li)
Thompson tchobanian ni_li)Thompson tchobanian ni_li)
Thompson tchobanian ni_li)
 
Report pid controller dc motor
Report pid controller dc motorReport pid controller dc motor
Report pid controller dc motor
 
Bi directional speed control of dc motor and stepper
Bi directional speed control of dc motor and stepperBi directional speed control of dc motor and stepper
Bi directional speed control of dc motor and stepper
 
Hybrid PI-Fuzzy Controller for Brushless DC motor speed control
Hybrid PI-Fuzzy Controller for Brushless DC motor speed controlHybrid PI-Fuzzy Controller for Brushless DC motor speed control
Hybrid PI-Fuzzy Controller for Brushless DC motor speed control
 
D0255033039
D0255033039D0255033039
D0255033039
 
Fuzzy imp in part
Fuzzy imp in partFuzzy imp in part
Fuzzy imp in part
 
BLDC control using PID & FUZZY logic controller-CSD PPT
BLDC control using PID & FUZZY logic controller-CSD PPTBLDC control using PID & FUZZY logic controller-CSD PPT
BLDC control using PID & FUZZY logic controller-CSD PPT
 
Rotor Resistance Adaptation Scheme Using Neural Learning Algorithm for a Fuzz...
Rotor Resistance Adaptation Scheme Using Neural Learning Algorithm for a Fuzz...Rotor Resistance Adaptation Scheme Using Neural Learning Algorithm for a Fuzz...
Rotor Resistance Adaptation Scheme Using Neural Learning Algorithm for a Fuzz...
 
Speed con trol of dc motor
Speed con trol of dc motorSpeed con trol of dc motor
Speed con trol of dc motor
 
Simulation DC Motor Speed Control System by using PID Controller
Simulation DC Motor Speed Control System by using PID ControllerSimulation DC Motor Speed Control System by using PID Controller
Simulation DC Motor Speed Control System by using PID Controller
 
Reviews of Cascade Control of Dc Motor with Advance Controller
Reviews of Cascade Control of Dc Motor with Advance ControllerReviews of Cascade Control of Dc Motor with Advance Controller
Reviews of Cascade Control of Dc Motor with Advance Controller
 

Viewers also liked

Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051
embdnew
 
Pid controller tuning using fuzzy logic
Pid controller tuning using fuzzy logicPid controller tuning using fuzzy logic
Pid controller tuning using fuzzy logic
Roni Roshni
 
PID Controller Tuning
PID Controller TuningPID Controller Tuning
PID Controller Tuning
Ahmad Taan
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERFOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
Journal For Research
 
Dc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontrollerDc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontroller
Umar Shuaib
 
Project Introduction
Project IntroductionProject Introduction
Project Introduction
Chun Ho Wong
 

Viewers also liked (19)

PID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB ApproachPID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB Approach
 
Dc motor speed control
Dc motor speed controlDc motor speed control
Dc motor speed control
 
Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051
 
Pid controller tuning using fuzzy logic
Pid controller tuning using fuzzy logicPid controller tuning using fuzzy logic
Pid controller tuning using fuzzy logic
 
PID Controller Tuning
PID Controller TuningPID Controller Tuning
PID Controller Tuning
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERFOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
 
BLDC Motor Speed Control with RPM Display and PWM
BLDC Motor Speed Control with RPM Display and PWMBLDC Motor Speed Control with RPM Display and PWM
BLDC Motor Speed Control with RPM Display and PWM
 
Speed Controller for DC Motor
Speed Controller for DC MotorSpeed Controller for DC Motor
Speed Controller for DC Motor
 
Instructions on how to configure NI SoftMotion with SOLIDWORKS
Instructions on how to configure NI SoftMotion with SOLIDWORKSInstructions on how to configure NI SoftMotion with SOLIDWORKS
Instructions on how to configure NI SoftMotion with SOLIDWORKS
 
The Development of Mechatronic Machine Vision System for Inspection of Cerami...
The Development of Mechatronic Machine Vision System for Inspection of Cerami...The Development of Mechatronic Machine Vision System for Inspection of Cerami...
The Development of Mechatronic Machine Vision System for Inspection of Cerami...
 
Report on speed control of d.c. motor using pwm method
Report on speed control of d.c. motor using pwm methodReport on speed control of d.c. motor using pwm method
Report on speed control of d.c. motor using pwm method
 
Dc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontrollerDc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontroller
 
Project Introduction
Project IntroductionProject Introduction
Project Introduction
 
Tutorial 1 (comunicación de lab view con solidworks)
Tutorial 1 (comunicación de lab view con solidworks)Tutorial 1 (comunicación de lab view con solidworks)
Tutorial 1 (comunicación de lab view con solidworks)
 
Arduino Neural Networks
Arduino Neural NetworksArduino Neural Networks
Arduino Neural Networks
 
Deepak-Resume(modified)
Deepak-Resume(modified)Deepak-Resume(modified)
Deepak-Resume(modified)
 
6. performance analysis of pd, pid controllers for speed control of dc motor
6. performance analysis of pd, pid controllers for speed control of dc motor6. performance analysis of pd, pid controllers for speed control of dc motor
6. performance analysis of pd, pid controllers for speed control of dc motor
 
REAL TIME PROJECTS IEEE BASED PROJECTS EMBEDDED SYSTEMS PAPER PUBLICATIONS M...
REAL TIME PROJECTS  IEEE BASED PROJECTS EMBEDDED SYSTEMS PAPER PUBLICATIONS M...REAL TIME PROJECTS  IEEE BASED PROJECTS EMBEDDED SYSTEMS PAPER PUBLICATIONS M...
REAL TIME PROJECTS IEEE BASED PROJECTS EMBEDDED SYSTEMS PAPER PUBLICATIONS M...
 
Matlab e Arduino
Matlab e ArduinoMatlab e Arduino
Matlab e Arduino
 

Similar to Design and Implementation of DC Motor Speed Control using Fuzzy Logic

Low cost Real Time Centralized Speed Control of DC Motor Using Lab View -NI U...
Low cost Real Time Centralized Speed Control of DC Motor Using Lab View -NI U...Low cost Real Time Centralized Speed Control of DC Motor Using Lab View -NI U...
Low cost Real Time Centralized Speed Control of DC Motor Using Lab View -NI U...
IJPEDS-IAES
 
Comparison of dc motor speed control performance using fuzzy logic and model ...
Comparison of dc motor speed control performance using fuzzy logic and model ...Comparison of dc motor speed control performance using fuzzy logic and model ...
Comparison of dc motor speed control performance using fuzzy logic and model ...
Mustefa Jibril
 
Relative stability enhancement for brushed DC motor using a PLL interfaced wi...
Relative stability enhancement for brushed DC motor using a PLL interfaced wi...Relative stability enhancement for brushed DC motor using a PLL interfaced wi...
Relative stability enhancement for brushed DC motor using a PLL interfaced wi...
International Journal of Power Electronics and Drive Systems
 
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
PUBLISHERJOURNAL
 
Team2_Final_Project_Documentation
Team2_Final_Project_DocumentationTeam2_Final_Project_Documentation
Team2_Final_Project_Documentation
Tristan Roberts
 
Design and development of matlab gui based fuzzy logic controllers for ac motor
Design and development of matlab gui based fuzzy logic controllers for ac motorDesign and development of matlab gui based fuzzy logic controllers for ac motor
Design and development of matlab gui based fuzzy logic controllers for ac motor
IAEME Publication
 

Similar to Design and Implementation of DC Motor Speed Control using Fuzzy Logic (20)

Dp32725728
Dp32725728Dp32725728
Dp32725728
 
Low cost Real Time Centralized Speed Control of DC Motor Using Lab View -NI U...
Low cost Real Time Centralized Speed Control of DC Motor Using Lab View -NI U...Low cost Real Time Centralized Speed Control of DC Motor Using Lab View -NI U...
Low cost Real Time Centralized Speed Control of DC Motor Using Lab View -NI U...
 
Ijetae 0312 24
Ijetae 0312 24Ijetae 0312 24
Ijetae 0312 24
 
Comparison of dc motor speed control performance using fuzzy logic and model ...
Comparison of dc motor speed control performance using fuzzy logic and model ...Comparison of dc motor speed control performance using fuzzy logic and model ...
Comparison of dc motor speed control performance using fuzzy logic and model ...
 
Bosch Internship presentation
Bosch Internship presentationBosch Internship presentation
Bosch Internship presentation
 
Project ppt
Project pptProject ppt
Project ppt
 
Modelling and Analysis of Induction Motor using LabVIEW
Modelling and Analysis of Induction Motor using LabVIEWModelling and Analysis of Induction Motor using LabVIEW
Modelling and Analysis of Induction Motor using LabVIEW
 
Relative stability enhancement for brushed DC motor using a PLL interfaced wi...
Relative stability enhancement for brushed DC motor using a PLL interfaced wi...Relative stability enhancement for brushed DC motor using a PLL interfaced wi...
Relative stability enhancement for brushed DC motor using a PLL interfaced wi...
 
Project ppt on Rapid Battery Charger using Fuzzy Controller
Project ppt on Rapid Battery Charger using Fuzzy ControllerProject ppt on Rapid Battery Charger using Fuzzy Controller
Project ppt on Rapid Battery Charger using Fuzzy Controller
 
Comparison of different controllers for the improvement of Dynamic response o...
Comparison of different controllers for the improvement of Dynamic response o...Comparison of different controllers for the improvement of Dynamic response o...
Comparison of different controllers for the improvement of Dynamic response o...
 
Modeling and Real-Time Simulation of Induction Motor Using RT-LAB
Modeling and Real-Time Simulation of Induction Motor Using RT-LABModeling and Real-Time Simulation of Induction Motor Using RT-LAB
Modeling and Real-Time Simulation of Induction Motor Using RT-LAB
 
Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.
 
Speed control of Separately Excited DC Motor using various Conventional Contr...
Speed control of Separately Excited DC Motor using various Conventional Contr...Speed control of Separately Excited DC Motor using various Conventional Contr...
Speed control of Separately Excited DC Motor using various Conventional Contr...
 
Proposal and implementation of a novel perturb and observe algorithm using em...
Proposal and implementation of a novel perturb and observe algorithm using em...Proposal and implementation of a novel perturb and observe algorithm using em...
Proposal and implementation of a novel perturb and observe algorithm using em...
 
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
 
Modeling of Micro-Hydro Power Plant and its Direct Based on Neural system
Modeling of Micro-Hydro Power Plant and its Direct Based on Neural systemModeling of Micro-Hydro Power Plant and its Direct Based on Neural system
Modeling of Micro-Hydro Power Plant and its Direct Based on Neural system
 
IRJET- Fuzzy Logic based Fault Detection in Induction Machines using Cloud
IRJET- Fuzzy Logic based Fault Detection in Induction Machines using CloudIRJET- Fuzzy Logic based Fault Detection in Induction Machines using Cloud
IRJET- Fuzzy Logic based Fault Detection in Induction Machines using Cloud
 
Team2_Final_Project_Documentation
Team2_Final_Project_DocumentationTeam2_Final_Project_Documentation
Team2_Final_Project_Documentation
 
Design and development of matlab gui based fuzzy logic controllers for ac motor
Design and development of matlab gui based fuzzy logic controllers for ac motorDesign and development of matlab gui based fuzzy logic controllers for ac motor
Design and development of matlab gui based fuzzy logic controllers for ac motor
 
Paper on experimental setup for verifying - "Slow Learners are Fast"
Paper  on experimental setup for verifying  - "Slow Learners are Fast"Paper  on experimental setup for verifying  - "Slow Learners are Fast"
Paper on experimental setup for verifying - "Slow Learners are Fast"
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 

Design and Implementation of DC Motor Speed Control using Fuzzy Logic

  • 1. Design and Implementation of Real Time DC Motor Speed Control using Fuzzy Logic Waleed Abd El-Meged El-Badry Mechatronics Department Faculty of Engineering, MUST wbadry@must.edu.eg 3rd June, 2008 Abstract In this paper, we try to implement a fuzzy logic controller (FLC) for DC motor using Laptop, tower or industrial PC. The feedback is taken via tachometer connected directly to motor of interest by coupling. Interfacing between PC and DC Motor-Tachometer is done using NI USB 6008 and additional signal conditioning circuitry. This system could assist students and novices to evaluate rapidly Fuzzy Logic concepts and application using this low cost case study. 1. Introduction Speed control of DC motors has been one of the crucial topics in Mechatronics engineering, starting from simple Cartesian Robots, to giant industries such as steel where maintaining motor speed of rollers affects drastically the shape of rolled bars[1-2]. Due to non linearity of DC motors, designing control system based on system identification is difficult and all system parameters are approximated [2]. The heuristic knowledge based system, Fuzzy Logic proved to have the flexibility of modelling nonlinear systems with fair or no knowledge of systems identification. As the fuzzy logic core is based on “how people can do it”, many legacy control systems are nowadays converted to be “fuzzy based systems” for ease of maintenance and enhancement. Fuzzy Logic Controllers can be practically implemented using several techniques, using Microcontroller [3] where all fuzzy rules are placed by means of assembly language, or a FL chip that is configurable using accompanying software, and finally using PC where education mainly takes place in development process. 1
  • 2. 2. Motivation Several reasons were beyond selection of this implementation, these are summarised below:  Development of Class Library can be utilised by students to develop fuzzy logic systems easily with any .NET language (C#, VB, C++, Delphi and COBOL). This would enable many students whose skills are in one or more of the preceded languages rather than compulsory knowledge of MATLAB.  Implementing knowledge gained from “Fuzzy Logic” course tutored.  Studying the impact of fuzzy controller designed in real time environment. 3. Project Framework DC motor speed control was inspired by an article entitled “Fuzzy Logic for Plain Folks. Fig. 1 illustrates the proposed circuit connection [4]. Fig. 1 Proposed Circuit Connection The proposed system can be summarised in the below block diagram Knowledge Base Fuzzification Fuzzy Rules Defuzzification Computer BJT Amplifier Coupling D/A M T A/D Fig.2 DC Motor Speed Control Block Diagram 2
  • 3. 4. Project Setup Two Identical DC motor were used to implement the project (one as DC motor and the other works as tachometer), they are Toshiba 24V, 1.5A and Maximum of 180 RPM. Other parameters were obtained experimentally. The NI USB 6008 has built in 12 bits Analogue to Digital converter that can generate output voltage from 0- 5V with maximum sourcing current of 150 mA. It also has a 0-10V, 12 bits Analogue to Digital converter that were sufficient to measure the tachometer voltage directly. Additional Circuit were used to accomplish two objectives, to start with, to amplify the output analogue voltage generated from USB D/A from 0-5V into 0-12V, and secondly, to supplement the DC Motor with current necessary that USB device can’t afford. The figure shown illustrates how these problems were tackled by using TIP41C NPN transistor with variable resistor for tuning [5]. Value of resistance were evaluated experimentally +12V Fig. 3 Mapping 0-5V 150mA into Q1 0-12V 2A Circuit 43% TIP41 (Created Using Proteus VSM) From USB 6008 5. Experimental Work Common-Emitter BJT amplifier described in preceded section has a nonlinear relationship between Base Voltage (Vb) and Collector Voltage (Vc), the below chart describes the relation between output USB analogue voltage (0-5V) from NI USB 6008 and Actual applied DC Motor voltage after amplification stage. The chart was drawn by applying different voltages from USB Card and measuring the corresponding applied voltage on DC motor simultaneously. 3
  • 4. Fig. 3 Relationship between PC output voltage and Actual Applied Motor Voltage Below 2V, “dead zone” is observed due coupling weight and friction, meanwhile, saturation takes place after 4V. Same procedure were followed to obtain chart depicts the DC Motor- Tachometer Relationship. The below figure yields the experimental results: 9 Tachometer Corresponding Voltage 8 7 Experimental Data Trend Line 6 5 4 3 6 7 8 9 10 11 12 13 Applied Motor Voltage Fig. 4 Motor-Tachometer Relationship Data obtained experimentally from both charts were added to “the knowledge base“was stored on software program to be utilised lately in implementation, data between points were extracted using interpolation. Charts were generated plotted using MATLAB. 4
  • 5. 6. Fuzzy Variables and Rules Two fuzzy variables were used based on knowledge base: a- Input: Speed in (RPM) that maps current RPM and Desired RPM. Speed is normalised. Fig. 5 Input Membership Functions b- Output: Output Voltage (V) for DC Motor. Voltage is normalised as well. Fig. 6 Output Membership Functions The first and last fuzzy terms holds greater range from the universe of discourse for “fast response”, the other fuzzy terms were tuned by trial and error. 5
  • 6. Five fuzzy rules were used which maps each input linguistic value to and output linguistic peer as follows If Speed is Very Slow then Speed Up Motor (1) If Speed is Slow then Slightly Speed Up Motor (2) If Speed is About Right then No Change Motor (3) If Speed is Fast then Slightly Slow Down Motor (4) If Speed is Very Fast then Slow Down Motor (5) 7. Results and Conclusion The Fuzzy Logic Class Library was developed using Microsoft Visual Studio 2008. The library can be used for implementation of both Mamdani and Takagi-Sugeno Fuzzy Systems with both triangular and trapezoidal membership functions. A simple software were created for testing purposes to compare results with another made with MATLAB Same result were obtained using MATLAB and developed fuzzy logic library by researcher Fig. 7 Same result yielded by both MATLAB and developed Class Library Fuzzy Variables and rules for DC motor control were programmed using Visual Basic 2008. 6
  • 7. Code Snippet 1 Formulation of Membership functions Code Snippet 2 Formulation of Fuzzy Rules The preceded code snippets were captured from the source code for case study; researcher succeeded to obtain “user friendly” class library that is expected to be easily comprehended by students. A software were developed to control Motor Speed at 45 RPM, the below curve depicts the fuzzy logic controller step input response. Fig. 8 Screenshot from the developed software 7
  • 8. Fig. 9 Motor Response at Set Point 45 RPM 8. References 1- Thiang and Andru Hendra, “Remote Fuzzy Logic Control System For a DC Motor Speed Control”, Jurnal Teknik Elektro Vol. 2, No. 1, Maret 2002: 8 – 12 2- Bogumila Mrozek and Zbigniew Mrozek, “Modelling and Fuzzy Control of DC Drive”, 14-th European Simulation Multiconference ESM 2000, May 23-26, Ghent, pp186-190 3- Yodyium Tipsuwan, “Fuzzy Logic Microcontroller Implementation for DC Motor Speed Control” . 4- http://www.Fuzzy-Logic.com 5- Jan Axelson, “Parallel Port Complete”, 2nd Ed., Lakeview Research. 8