In this article Flexible AC Transmission Systems (FACTS) devices are addressed, especially the design and implementation of a D-STATCOM prototype, making a comparison between the theoretical behavior and the aforementioned prototype. A fuzzy logic-based strategy was used for voltage control, employing the Matlab Fuzzy Logic Designer tool. The neural network was trainned with the network voltage, the voltage of the inverter stage, the current, the active and reactive power, and the power factor as inputs. Initially, the load power factor was 0.62 and the prototype operation allowed the voltage to be increased above the grid voltage, which is reflected in the forward current, modifying the power factor to a value of 0.91 while maintaining the same voltage. Finally, the results demonstrate the relationship between the increase of the inverter stage of the prototype above the electrical power line, obtaining a variable capacitor thus adjusting the power factor.