This paper presents the results obtained in the simulation of a speed control of a combustion engine by means of a diffuse controller, developed by MatLab in the form of a code and in graphic form by the MatLab Simulink tool. It is implemented in the STM32F411RE card that contains an ARM Cortex-M4 processor, which has advantages in its rapid processing of PIL processes.