Here is a Web site by a guy who designed working versions of all the basic logic gates, that is the NOT, OR, NOR, AND, and NAND gates, with Lego blocks.