Principle of solar and wind power generation machine