The key physical principles governing solar panels include photon absorption, electron excitation, and charge separation. The band gap of semiconductor materials, usually silicon, determines the range of photon energies that can be absorbed efficiently.
A photovoltaic system with storage consists of solar panels, an inverter (which converts energy from direct current to alternating current), a management system, and, indeed, batteries.