To enable more wide-scale exploitation of renewable energy sources (RESs), distributed generations (DGs) as in microgrids have gained prominence recently. This study describes the design, modeling, implementation, and operation of a microgrid, in which a standalone hybrid power system has been installed for an education and research laboratory. The unstable nature of RESs results in power compatibility issues on DGs. Therefore, providing a decent power flow from renewables to loads is the scope of this paper. To satisfy defined load profiles and sustain the power with the desired level, the design and operation of power converters are a remarkable part of performing microgrids as well. For a robust microgrid structure, the presented control algorithm includes an energy management system (EMS) between renewables, batteries, and loads. Primarily, modeling of the system has been developed in MATLAB/Simulink environment. Additionally, case studies have been exemplified to further demonstrate the simulated system. Within this scope, certain load profiles not only have been fed but also power flow has been managed and analyzed to ensure effective and flexible operation with two different EMS cases. The real-time operation has been also provided to validate the system under various input and output conditions during a lab course.INDEX TERMS Education laboratory, energy management system, distributed generation, microgrid, power electronic converters, renewable energy sources.ALPER NABI AKPOLAT (Graduate Student Member, IEEE) received the B.Sc. degree in electrical and electronics engineering and the M.Sc. degree in mechatronics engineering from Firat University, Elazig, Turkey, in 2012 and 2015, respectively. He is currently pursuing the Ph.D. degree in electrical and electronics engineering with the Faculty of Technology, Marmara University, Istanbul, Turkey.Since March 2019, he has been a Guest Ph.D.