Integrating smart grids with the renewable energy present in Colombia expands the country's energy matrix and strengthens it through distributed generation in non-interconnected areas. Therefore, integrating distributed generation sources is of great importance to meet the growing demand, security of electricity supply, and system efficiency. The integration of distributed generation sources needs several management algorithms, control schemes, and an adequate environment to verify the proper functioning. This paper shows the implementation in an emulated microgrid environment based on Solar, Wind, Water, Biomass, and Diesel generation. Each generation source and control was implemented on a Raspberry PI 3 and linked with a server to manage the microgrid. Implementation schemes, control algorithms, and microgrid testbed are displayed throughout the paper.