Raspberry Pi LEGO sorter | Technology Org

Raspberry Pi is at the heart of this AI–powered, automatic sorting equipment that is able

Raspberry Pi is at the heart of this AI–powered, automatic sorting equipment that is able of recognising and sorting any LEGO brick.

And its maker Daniel West believes it to be the to start with of its kind in the planet!

Very best ever

This mega-equipment was two several years in the making and is a LEGO creation alone, created from in excess of ten,000 LEGO bricks.

Picture: Daniel West.

It can form any LEGO brick you put in its enter bucket into a person of 18 output buckets, at the amount of a person brick each individual two seconds.

While Daniel was influenced by previous LEGO sorters, his creation is a substantial move up from them: it can recognise totally each individual LEGO brick ever created, even bricks it has in no way found prior to. Therefore the ‘universal’ in the title ‘common LEGO sorting machine’.


Picture: Daniel West.

Software package

The artificial intelligence algorithm powering the LEGO sorting is a convolutional neural network, the go-to for picture classification.

What can make Daniel’s venture a ‘world first’ is that he educated his classifier making use of 3D product images of LEGO bricks, which is how the equipment can classify totally any LEGO brick it is faced with, even if it has in no way found it in true existence prior to.

Daniel has built a complete excess online video (higher than) explaining how the AI in this venture is effective. He shouts out all the open up source application he applied to run the Raspberry Pi Digicam Module and obtain 3D education images and so forth. at this level in the online video.

LEGO brick separation

The vibration plate in action, feeding solitary parts into the scanner

Daniel required the enter bucket to very carefully select out a solitary LEGO brick from the mass he chucks in at when.

This is realized with a most important and secondary belt bit by bit pushing parts onto a vibration plate. The vibration plate makes use of a tremendous quickly LEGO motor to shake the bricks about so they are not sitting on top rated of just about every other when they reach the scanner.

Scanning and sorting

Picture: Daniel West.

A Raspberry Pi Digicam Module captures online video of just about every brick, which Raspberry Pi 3 Design B+ then processes and wirelessly sends to a additional highly effective laptop in a position to run the neural network that classifies the parts.

The classification final decision is then sent back to the sorting equipment so it can spit the brick, making use of a series of servo-controlled gates, into the ideal output bucket.

More-credit history research

Picture: Daniel West.

Daniel is these kinds of a boss maker that he wrote not a person, but two even more reading through posts for individuals of you who want to deep-dive into this mega LEGO creation:

Resource: Raspberry Pi weblog, by Ashley Whittaker.