1. The problem statement, all variables and given/known data I would like to know how to find a small fuzzy logic library or modify an existing one so that it only contains the bare essentials. I need a Mamdani type fuzzy inference system that uses min-max composition, minima for ands, maxima for ors, and centroid defuzzification. I only need triangular and perhaps trapezoidal membership functions as well. 2. Relevant equations I am using an Arduino. And I could use any program. Such as, MATLAB, if needed. 3. The attempt at a solution I havent attempted this because I have no idea how to begin. I am not looking for an answer. I would appreciate any help on how to begin. I have no previous knowledge in Fuzzy inference and have basic knowledge of writing codes.