A microgrid controller may control the generation, distribution, storage and use of electrical power on a microgrid. Embodiments of a microgrid controller may include inputs for different types of power (e.g. AC and DC) or power sources (e.g. wind and solar), an input for utility grid power, electrical equipment for conditioning the electrical power received from the multiple sources (e.g. rectifiers and inverters), outputs to multiple types of loads (e.g. three-phase AC and single-phase AC) and control circuitry designed to control the generation, storage, distribution and usage of electrical power on the microgrid. Embodiments of microgrid systems may include multiple types of electrical generation sources (e.g. wind, solar, electromechanical and fuel cell), multiple types of electrical loads (e.g. inductive and resistive), electrical storage units (e.g. batteries) and a microgrid controller.