The Sewing Machine is built from the Lego Wedo 2.0 educational kit. The Sewing machine uses a crank mechanism, due to which the sewing machine needle makes reciprocating movements. Auxillary transmission is bevel gear. You can control movement by using the distance sensor.
The set includes step-by-step building instruction and an example of program (in Lego Wedo 2.0 environment).