Philo Hurbain’s Spike Prime Brick Sorter is a fun model to build and program (only needs the core set). The design is excellent, clever and has great cable management. The Brick Sorter reads the colours of ten bricks and ejects them at the correct locations depending on their colour on the rainbow spectrum.
I was inspired by this video: [ Ссылка ]
I coded mine in Python for the additional challenge. I used Python’s Dictionary, which allows one to group pairs of information:
bricks_locations = {'red': 1, 'yellow': 2, 'green': 3, 'blue': 4, 'violet': 5}
To eject the Lego bricks in the sequence of rainbow colours, I simply used the numbers to drive so many rotations to the colour’s location. Once all the bricks have been sorted, the robot goes back to the start point.
I made the brick ramp steeper (step 12 - using a 7 beam instead of a 5) as there's a bit too much friction with the bricks touching the sides of the ramp. The steeper angle really helps: prevents the bricks from getting stuck in the queue. For example, on this video [ Ссылка ] the bricks have to be manually shifted.
Spike Prime Brick Sorter
Brick Sorter building instructions: [ Ссылка ]
Brick Sorter details: [ Ссылка ]
Philo’s links
Other robot designs: [ Ссылка ]
Website: [ Ссылка ]
YouTube channel: [ Ссылка ]
![](https://i.ytimg.com/vi/sj31C-UcXog/maxresdefault.jpg)