The power balancing is the issue that creates when voltage fluctuations occur in the DC microgrid. In order to compensate for the DC bus voltages in the DC microgrid, the energy storage system is used. This system absorbs or releases the power to make the DC bus voltages is stable. In this research, a bidirectional series resonant (BSR) converter is proposed which operates at the fixed frequency for the energy storage system. A simple PWM control technique is used for the power flow regulation in the system. The gain voltage of the BSR converter depends only on the duty cycle of the applied voltage and does not change the direction and amplitude of the power flow. Theoretically, after the calculations, the gain voltage of the BSR converter changed from minimum (zero) to maximum (unlimited) which means the designed converter is a buck-boost converter as well. This property of the BSR converter will help the researcher to use a wide range of voltage applications. The operations mode i.e. forward and backward modes, and the direction of the power flow can be changed smoothly by Pulse Width Modulation control. Zero voltage switching for all the voltage ranges of the active switches is also achieved in this research.