This document describes a microgrid system with distributed generators including solar panels, wind turbines, and a diesel generator. Energy storage devices like batteries and fuel cells are also included. Frequency control of the system is challenging due to varying renewable energy output. The document proposes using an Artificial Neuro-Fuzzy Inference System (ANFIS) controller to improve frequency control performance compared to conventional controllers like PI. MATLAB/Simulink models are developed to simulate the microgrid components and evaluate the ANFIS controller.