Smart grid applications aims to employ many optimization and artificial intelligence methods for optimal energy management. Results of these algorithms need to be implemented by power systems in practice. This study presents Time Rate Multiple Pulse Width Modulation (TRM-PWM) methods for multi-source energy mixing for DC microgrids, which is integrating several renewable energy resources. In the paper, we implement TRM-PWM multi- source energy mixer component for integration of energy flow coming from solar and wind energy systems, battery system and grid in MATLAB simulink. Simulation results show that proposed energy mixer component can adjust rate of energy mixing from different sources. By using this component, optimal energy mixing, which can be adjusted by optimization and artificial intelligence methods, can be realized in smart grid applications.