**4. Conclusions**

In this work, a methodology was proposed to implement a fuzzy controller of the Mamdani type on different platforms (software or hardware). The methodology is based on the IF-THEN and FOR control statements, and mathematical operations such as addition, subtraction, multiplication, and division, which are used to establish each of the stages of a fuzzy controller (fuzzification, fuzzy rules, or defuzzification). The key ideas explored are the use of programming languages such as VHDL, C++, and MATLAB™. The operation of the fuzzy controller based on the proposed methodology is tested using different examples, which are compared with the Fuzzy Logic Toolbox™ (MATLAB™ tool). The results show that the fuzzy controller methodology can improve the convergence of the system and improve the error properties. In addition, the proposed methodology reduces the computational difficulty and the computational load. Also, the procedure to implement the fuzzy controller in a process is described. Compared to other works, the greatest contribution of this work is to describe the elements to program and implement each of the stages of a fuzzy controller in software or hardware. This will allow estimating the optimal parameters,

*Methodology for the Implementation of a Fuzzy Controller on Arduino, MATLAB™… DOI: http://dx.doi.org/10.5772/intechopen.109760*

uncertainties, and nonlinearities of a dynamic system to control a system without the mathematical model. Finally, simulations were shown to verify that the proposed methodology, and the theoretical and experimental results are valid.
