Ever since 3D printers got here alongside, at-home manufacturing of random elements has change into exponentially simpler. The sorts of fast and soiled hacks individuals used previously are not obligatory. There isn’t any want for an elaborate LEGO construct to make a case for a DIY digital gadget when a 3D printer can produce one that could be a excellent match and exactly tailor-made to the applying in each manner.
However whereas LEGOs are not wanted for at-home manufacturing, they’re objectively cooler than 3D prints. It’s secure to say that individuals with a love for engineering is not going to cease shopping for LEGOs any time quickly. As such, there are lots of companies which have sprung up over time to provide these people with the precise elements they want — irrespective of how unique or uncommon.
These distributors must kind and classify LEGO bricks by the ton in order that the whole lot is in its correct place when it comes time to fill a buyer’s order. However as everybody that has ever performed with LEGOs is aware of, cleansing up will not be the enjoyable half. In actual fact, with that type of quantity, it’s a nightmare.
Laptop imaginative and prescient helps management the circulate of bricks (📷: LegoSpencer)
YouTuber LegoSpencer realized there was a possibility for enchancment on this space. Handbook sorting of bricks is a big ache, however with a machine to do the work, it might take no effort in any respect. So he got down to construct a machine with a design that’s each reproducible and extensible, such that anybody may use it to kind an arbitrarily massive variety of random LEGO bricks.
Attending to that aim would require perfecting three fundamental elements: a feeder to separate piles of bricks, an identification system to categorise every brick, and a distribution system to place every distinctive brick sort in its personal storage bin.
For the feeder, LegoSpencer used a slowly-moving conveyor belt to assist separate items as they dropped onto a vibrating channel. The vibrations assist to additional separate the items, however this alone was not sufficient to do the job. A drop onto a second vibrating channel was launched to completely separate the bricks, however in some instances, it was discovered that the circulate from the primary channel wanted to be delayed to stop elements from piling up. To get round this downside, a pc imaginative and prescient algorithm was developed to detect LEGO bricks sitting at first of the second channel. Utilizing this data, elements are solely allowed to drop when the realm beneath is obvious.
A have a look at the management circuit (📷: LegoSpencer)
Constructing the identification system was the simplest a part of all, as a result of it’s already a solved downside. An API for a service referred to as Brickognize was leveraged. When provided with a brick picture, it returns the title of the half.
To make the distribution system scalable, elements have been dropped right into a two-dimensional grid of storage containers. Every recognized half is dropped right into a chute resulting in its container. Every container in that chute has a servo-controlled door that it may possibly near direct that half to the appropriate location. PWM boards have been daisy-chained collectively such that the system’s single Arduino board can management over 700 doorways.
When all was stated and carried out, the LEGO sorter proved to be fairly dependable. It might be left alone for hours fortunately sorting elements by itself. Nonetheless, at a fee of solely 2 items per minute, it is probably not prepared for business use but. Oh properly, that is nothing that just a few upgrades can’t repair!

