in this paper, we propose an improved control mechanism for a microgrid. This happens through adding a controlling measure and algorithm one step ahead of the combination of inertia emulation control technique and droop control. This controlling step is a self-adjusting control system designed for a stable electrical grid model. This control technique applied to a home that is furnished with Photo-voltaic (PV) system and Vehicle to Grid (V2G) capable Electric Vehicle (EV). This control could run in both grid-connected and islanded modes in a microgrid application. The model is used to achieve an improvement in frequency over the standard droop/inertia emulation control method, in case of load changes and faults. The provided control system can handle different scenarios such as sudden load changes and transient conditions through dealing with the power of the battery and PV to regulate the voltage and frequency in this microgrid system. This control technique will achieve a better result compared to the standard control technique. Both models are implemented in MATLAB/Simulink. The results for the simulations are presented, showing the improvements over the fixed values of the controller.