Color Sorter with Teachable MAchine and BBC Micro:Bit

Color Sorter

Overview

Tools:

  • Ruller
  • Scissors
  • Screwdriver
  • Nuts and bolts
  • Rubber bands

Electronics:

  • BBC Micro:Bit
  • Micro:Bit adapter
  • 1 x 180deg micro servo (3,3V compatible)

Building time:

30 min

Difficulty:

Beginner

Project info

This color sorting machine is a part of a collection of PING PONG BALL CONTRAPTIONS which allow to build crazy factory lines to transport and sort colorful ping pong balls. These contraptions are a great project for a bigger workshop with large group of participants – our record was 100 participants at a time building a factory with 24 machines.

If you would like to organize such workshop as a team building experience for your company or organization – LET ME KNOW ;-)

How it works?

Machine is operated with a Teachable Micro:Bit App that runs a machine learning model trained with Teachable Machine. The model aims to detect color of the ping pong ball in the machine cup. Colors detected by the app are sent over bluetooth to Micro:Bit which turns a servo motor to roll the ball either left or right.

How to make it?

  • Build the color sorting machine
  • Train a machine learning model in Teachable Machine to detect ping pong ball colors
  • To use remote camera from your smartphone and stream it to Teachable Machine app you can use CAMO app
  • Once the model is trained export it to cloud and copy sharable link
  • Open Teachable Micro:Bit App on your smartphone, click start and paste the sharable link into prompt window – when the model opens you should see detected class names
  • Code the Micro:Bit to react accordingly on class names received
  • Connect the Teachable Micro:Bit app with the Micro:Bit over bluetooth

Building manual

Design plan

Screenshot