The invention provides a wind-driven generator which comprises propellers, a hub, a
tower, a
propeller regulation device and a protection device, wherein the protection device comprises a second proximity switch, a second limit stop and a
limit switch; the second proximity switch and the
limit switch are fixed on a bracket of a
propeller regulation motor; the second limit stop is fixed on a
propeller regulation disc; and the second proximity switch is used for detecting whether each propeller is at a
feathering shutdown angle. In the wind-driven generator provided by the invention, a
rotary encoder is used for acquiring propeller parameters such as propeller rotation speed, propeller
pitch angle and the like, and a first proximity switch or the second proximity switch is used for judging the accuracy of the propeller
pitch angle of the propellers detected by the
rotary encoder, so that failure of the
rotary encoder can be found in time. Besides, the
limit switch can be triggered when the propeller
pitch angle is at a limit protection angle, thereby providing dual protection for the wind-driven generator, avoiding propeller breaking, runaway or other accidents, lowering the maintenance cost of the wind-driven generator and greatly reducing the triggering frequency of the limit switch.