The Wind Turbine is built from the Lego Spike Prime educational kit. The speed of rotation of wind turbine blades is set by the distance between the model and some object (due to distance sensor). Main gear is a bevel gear.
The set includes step-by-step building instruction and an example of program (in Spike environment).