Solar panels capture energy from the sun through photovoltaic cells, converting sunlight directly into electricity. The sun is the ultimate source, with panels using either thermal or photovoltaic technology to harness this energy. The moon, water, and stoves are not energy sources for solar panels.