The Brick Sorter is built from the Lego Spike Essential educational kit. The sorter drive is made on a belt drives. After loading bricks before the colour sensor, the last one recognizes the correspondence to a particular color, after which the “tape” directs the brick to the left or right.
The set includes step-by-step building instruction and an example of program (in Spike environment).