I am a Mechanical Engineer and have less idea on Generators. In wind turbines as the generators would be driven at variable speed by the wind, some type of controllers are used to provide a steady output, say, maintaining a constant voltage. My question is what is the function of this controller? means what it actually does? Also, in generators (small scale and large scale) which is the most preferred one? AC or DC? and why? Regards.