The development of a solar controller to give data and give control to a UPS system