vbstudio.hu

Color Sorter LEGO GBC Module - Instructions and Schematics

To build the color sorter for yourself, you will need 3 things:

  1. The LEGO bricks.
  2. The necessary tools and means to make a simple electric circuit.
  3. An Arduino Uno [3], and a computer to upload the code from.

If you're only interested in the end results, click here for my previous article.

1) LEGO building instructions

For the instructions I use BrickLink's fantastic Studio app [1]. It's easy to use, has an up-to-date library of every LEGO piece ever released, has working hinges, a fully customizable instruction maker and a photorealistic renderer.

This is a 3D render, not a photo. Note that the custom electric components are missing since it only features official LEGO parts.

2) Schematic diagram

I made this into an Arduino shield [2] for the Arduino Uno [3], but you can make it in any format you like. I'm going to assume you know how to put circuits together, so I'll just go ahead and provide the schematics. The Arduino pins on the diagram correspond to the pins set in the code.

Schematic diagram for the color sorter. Click on the image to enlarge it.

3) Arduino code

This is the easiest part. Download the code from GitHub. Detailed instructions are provided in the repository:

References

  1. BrickLink's Studio 2.0
  2. What are Arduino Shields - learn.sparkfun.com
  3. Arduino Uno Board "arduino uno atmega328p usb board" - eBay