Thread: C program with Fuzzy Logic Controller

  1. #1
    Registered User
    Join Date
    Oct 2012
    Posts
    1

    C program with Fuzzy Logic Controller

    hi everybody...does anybody could give me the c program with fuzzy logic controller to control the speed of DC motor??please...i want it desperately.

  2. #2
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    That is a ridiculous, impossible, and greedy request.

    It's like you think there is only one type of DC motor on the planet, and only one possible way one could somehow attach one to a computer and control it, and only one possible place to get the logic inputs from, and only one possible thing you could ever make a fuzzy logic algorithm do.

    We cannot help with vastly open-ended requests. You may as well be asking for someone to get you a metal 'thing' for a red car.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Quote Originally Posted by Miss Fine View Post
    hi everybody...does anybody could give me the c program with fuzzy logic controller to control the speed of DC motor??please...i want it desperately.
    Welcome to the forum, Miss Fine!

    Have you thoroughly tried to get help from both Google and the maker of the motor?

    Because DC motors are quite different in characteristics, and so their controllers logic will vary widely, as well. What works for one OK, might burn up another type.

    With the C program, we can help you over most any problem you are having, but divining what you need for the characteristics of your motor - no. We're very doubtful on that.

    You may as well be asking for someone to get you a metal 'thing' for a red car.
    Malcolm, I know you know what metal thing she wants for a red car. You may as well admit it!
    Last edited by Adak; 10-14-2012 at 01:02 AM.

  4. #4
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    You could use a stepper motor to have a fine control over the speed of the motor. But since you're asking for completed code, I'm guessing this won't be of much help to you.

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Look-up PWM Pulse Width Modulation it might be what you want.
    It also, might be the wrong direction to take.

    Some, MCU support PWM and some do not.
    Some DC motor work great with PWM, I have never used PWM (except for a simple lab exercise) no idea if there are DC motor that do not work with it.

    No idea, what fuzzy logic mean when it applies to driving DC motors.

    Feedback logic applies to driving DC motors.
    Or non-Feedback logic applies to driving DC motors.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how is the logic of this program???
    By riris in forum C Programming
    Replies: 16
    Last Post: 03-16-2012, 12:51 PM
  2. Please help me with the 'Logic' of this program
    By andy8 in forum C++ Programming
    Replies: 6
    Last Post: 08-23-2011, 10:23 AM
  3. What is the logic for this program
    By Shidlingayya in forum C Programming
    Replies: 4
    Last Post: 08-27-2007, 06:03 AM
  4. Fuzzy Logic
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 10-13-2002, 04:58 PM
  5. fuzzy logic
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 03-11-2002, 10:30 PM