A method for smoothing alternating electric current from a plurality of power generating units, where the power generating units are electrically connected to an electric network, comprising:
- converting direct current to pulse width modulated alternating current for feeding to the network, the conversion by a transformer with pulse width modulation and which is included in each power generating unit,
- wherein times for feeding pulses of the pulse width modulated alternating current are different for respective power generating units in order to achieve a more even alternating current as a sum of respective outputs of alternating current from the power generating units.