In the era marked by rapid advancements in "green energy" and storage technologies, microgrids integrated with distributed generation principles emerge as a promising avenue for efficient power management. DC microgrids have attracted significant interest among researchers and engineers owing to the escalating adoption of renewable energy sources coupled with energy storage systems, improved utilization of DC power electronics devices, and the additional benefits of mitigating harmonics and synchronization challenges. A crucial aspect necessitates the establishment of an efficient, optimized, and dependable control system for the integrated infrastructure. This article introduces a versatile and adaptable control system for microgrid resources, aimed at fulfilling the local households' electricity demand while addressing economic considerations. The proposed approach adopts a decentralized control structure, deploying controllers in each household, leveraging open-source optimizers and cost-effective hardware. To mitigate the likelihood of failure, the authors developed a redundant solution, incorporating redundant communication channels and hot standby control devices. A comprehensive validation process was conducted via simulations on a sample microgrid encompassing diverse methods of generation and storage, ensuring robustness and reliability.