Making fuzzy logic program in arduino

hey all.. i want to ask about my task. i searching about fuzzy logic arduino program and only find for Triangular member function, while the task that I am working on is trapezoidal member function. can you all help me?? :confused:

thanks alot

Why don't you get that code working then figure out how to change it yourself?

neiklot:
Why don't you get that code working then figure out how to change it yourself?

i just need reference... or we can't set in arduino using triangular MF or trapezoidal MF?
i making simulation on labview. percentage output in labview and arduino have more than 7%different.

i using fuzzy for controlling open-close the roof by stepper motor

Faizabdul:
or we can't set in arduino using triangular MF or trapezoidal MF?

If by that you mean "has someone already written a library or example code to use a trapezoid not a triangle" I wouldn't know. But if nobody has, that's not to say it can't be done in Arduino, just means you have to roll your own.

Have a look here

lesept:
Have a look here

i see... thanks alot all :slight_smile: