The Centrifuge is built from the Lego Spike Essential educational kit. The rotation speed of the centrifuge depends on the color of the parts in front of the color sensor.
The set includes step-by-step building instruction and an example of program (in Spike environment).