In this paper, the development of microgrid technology is discussed in close connection with the growing energy demand and the real needs of energy structure adjustment in the context of the times. Guided by green energy saving, the research focuses on constructing a hybrid energy storage DC microgrid model, especially the integrated photovoltaic power generation model and the related control strategy and power characteristics. The article further adopts a fuzzy PID control strategy to optimize the energy efficiency configuration of hybrid energy storage devices in DC microgrids. By carefully analyzing and optimizing the energy storage system in the DC microgrid, remarkable results are obtained: the optimized capacitive charge states range from 0.1 to 0.9, indicating a significant fluctuation of capacitive charge states, but at the same time avoiding the phenomenon of light abandonment and ensuring the reliability of power supply. More notably, during the increase of SOC (state of the energy storage system) from 0.40 to 0.70, the system can perform mode transitions under continuous load changes. This point shows the effectiveness of the optimization method in improving the energy storage efficiency and enhancing the system performance of the DC microgrid. Overall, the optimization method proposed in this paper provides a practical energy storage optimization scheme for developing microgrids, which is of great practical significance in promoting the research and application of microgrid technology. This not only helps to improve the efficiency of energy use, but also is a crucial step to realize sustainable energy development.