Modelling systems are a new sort of electrical network that can be easily adapted. Dispersed generators are linked to a microgrid using voltage source inverters. Nonlinear modelling systems are used in this study to create an inverter voltage mode controller for power systems to control power supply volatility. Controller for a nonlinear inverter that operates in voltage control mode is proposed. The primary goal is to ensure that the output voltage of the system matches a predetermined standard. Once the system model is completed, the controller is constructed using the backstepping method. After the control law is developed, several simulations are run to test the proposed controller's performance. According to simulation findings and formal analysis, the output voltage matches the reference voltage with global asymptotic stability. The accomplishment of this work is that the controller built, works in both grid-connected and inverter voltage modes of microgrid operation.