This is a third generation brick sorter posted by Laurens Valk. It uses two motors and a light sensor to sort bricks into three different piles based on color. You can read more here (there is also a video there). The program is posted and building instructions are promised for later.
You can also see several other of Laurens' creations at http://www.freewebs.com/laurens200/.