The colour sorter

Engineers (Advanced), mission M9 Factory Automation, lesson 4 of 6.

Hook

Red here, blue there. A sensor and a servo can sort faster than you!

Fair test

Code: if red → flip left, else → flip right. Measure sorting accuracy over 20 bricks.

Bonus challenge

Add a third colour. What changes in the code?

The build

Colour Sorter: A conveyor carries bricks past a colour sensor; a servo flipper pushes red bricks one way and blue the other.

More lessons in this mission