The technology transformation of industry 4.0 comprises computers, power converters such as variable speed devices, and microprocessors, which distract from the quality of power. The integration of distribution-generation technologies, such as solar photovoltaic (PV) and wind systems with source grids, frequently uses power converters, which increases the issues with power quality. DSTATCOM is the FACTS device most proficient in recompensing current-related power quality concerns. A model of DSTATCOM with an ANN controller was developed and implemented using a backpropagation online learning-based algorithm for balanced non-linear loads. This algorithm minimized the mathematical burden and the complications of control. It demonstrated a dynamic role in improving the quality of the power at the grid. The algorithm was implemented in MATLAB using an ANN model controller and the results were validated with an experimental set-up using an FPGA controller.