A solar generator is a system that changes over light into electrical energy. The three main components of a solar generator are an inverter, solar panels, and a battery. The inverter is liable for changing over the solar panels’ direct current (DC) yield into an alternating current (AC) that can be utilized to drive domestic devices. Battery stores the electrical energy produced by the solar panels so that it can be used when there is no sunlight available. By sending power from the solar panels to the battery, charge controllers prevent overcharging the battery. It also protects the battery from being damaged by overcharging.