Code, Course project, 2026

A machine that sorts loose LEGO

A machine that takes a pile of loose LEGO parts and sorts them three ways, by colour, by size and by recognising each piece with a camera.

Three ways to sort

The machine sorts in three different ways:

  1. By colour, with a colour sensor.
  2. By size, with a mechanical shaker that drops each part through the right hole.
  3. By shape, with a camera and an open source machine learning model that recognises the specific part.

My part

My role in this team is software advisor. I gave the team pointers on the software side, the build and the recognition itself are their work.