At a high level, solar panels are made up of solar cells, which absorb sunlight. They use this sunlight to create direct current (DC) electricity through a process called "the photovoltaic effect. ".
These systems are independent of the utility grid and rely on batteries to store excess solar energy for use when sunlight isn't available. Off-grid setups require more panels and storage capacity, often costing more but offering full energy independence for air conditioning.