The article describes the method for determining the optimal angular velocity and the number of turns of the generator winding on permanent magnets powered by a wind turbine operating in specific operating conditions according to the wind speed regime. The optimization criterion is the maximum potential of energy that can be used to charge the battery. The permissible power of the generator and wind turbine, current and battery charging voltage are accepted as limiting factors. The restriction is provided by connecting a ballast resistor to the generator output. The power developed by the turbine is determined taking into account the wind energy utilization factor, which depends on the angular velocity of its shaft and wind speed. Two variants of power limitation are compared: by limiting the angular velocity by aerodynamic means and by stopping the wind turbine. The return of energy to charging in both cases is determined taking into account the distribution of wind speeds, obeying the Weibull probability distribution law. As an example, the calculation of the possible annual power generation for charging a battery with a capacity of 200 A∙h with a voltage of 24 volts from a synchron generator with a number of poles of 48 driven by a wind turbine with a radius of 2 meters, operating in an area with an average wind speed of 5 m/s. The calculation shows that for the parameters and operating conditions of the electrical installation used in the example, the maximum annual energy output (3.3 × 103 kWh) is observed at optimal 11 turns of the winding at each of the poles of the generator. The deviation of the number of turns from the optimal one in both directions by 2 times leads, with the same dimensions of the wind turbine, to a decrease in annual energy output by 3...5 times, which is a clear proof of the need to carry out such a calculation for each specific wind turbine.