Brick colour sorter: sort ten Lego bricks
Автор: Coding & Robotics
Загружено: 2022-10-03
Просмотров: 964
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: • LEGO Spike Prime Color Sorter
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: https://bricksafe.com/files/Philo/spi...
Brick Sorter details: https://rebrickable.com/mocs/MOC-3604...
Philo’s links
Other robot designs: https://rebrickable.com/users/Philoo/...
Website: https://philohome.com/
YouTube channel: / philoyt
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: