Solar panels work fine if their terminals are sealed properly against corrosion, which many are not. But the power is not very much and is very expensive. We also use windmills, tidal energy turbines, wave energy generators, and transformers as power sources. Wind will work fine in many places, as long as they are strong and frequent enough, which is often not the case in the tropics.