LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I built a simple bitshifter in Minecraft yesterday. I wondered if something like this could be built with LEGO?

Maybe there is a possibility to build gates with rubber bands and those movable mechanic stuff. Did anyone of you do something like this?

share|improve this question
up vote 40 down vote accepted

Various people have done this - however most of the links seem to point to a [then defunct] blog by Martin Howard (Randomwraith) from 2004.

A more recent, and available, post on this, using newer pieces can be seen here:

LEGO Logic by Keshav Saharia

Based on a lack of gears and rack and pinion elements, Keshav decided to rebuild the logic gates using an approach based around levers. Extra care was taken to ensure that the movements were uniform so that the outputs moved the same distance as the inputs.

Starting with the simplest gate, a NOT Gate was built:

2 NOT Gates

Then going back to first principles, a NOR Gate:

A NOR Gate

Combining a NOR with two NOTs gives an AND Gate:

A NOR and 2 NOTs make an AND

Finally Keshav built the XOR Gate out of 3 NORs and 2 NOTs (or 2 NORs and an AND):

The whole XOR Gate

Detail of XOR Schematic

All images used with permission

share|improve this answer
Thats a great link.. maybe someone could build a computer ;) – Sibbo Oct 25 '11 at 21:43
What would be really great is if you summarized the content here on this site, so when that blog post also dies, your answer is still valuable. – user23 Oct 25 '11 at 22:41
@JoeWreschnig Agreed, but without a clear copyright statement on the blog (or rather a CC license of some kind), I don't really want to rip the images onto imgr :( – Zhaph - Ben Duguid Oct 25 '11 at 22:53
Thanks for the link to my blog! By the way, you have my permission to use my images. I'm not really into the whole copyright thing so feel free to use them. Credit would be nice :) – Keshav Saharia Mar 11 '12 at 1:35
Ironically the link to Keshav Saharia's page is now dead too. has a copy of both Martin Howard's old site and Keshav's page. – jamesdlin Jul 17 at 6:06

Not directly an answer, but I thought that people interested in this question would also be interested in an inspirational post...

I've seen a binary calculator like this live and have since then thought on building it with lego. Ah, sweet plans...

share|improve this answer
Thats a good idea, but I was thinking of the elements of digital technology, like simple signal tracks, OR and NOT gates. – Sibbo Oct 25 '11 at 21:14

Credit where it’s due, Keshav Saharia’s gates were an attempt to simplify those found here:

If you look carefully Keshav's gates you'll see that they suffer from a fundamental flaw in that they can't be reset, the input rods are completely decoupled so pulling them out does nothing.


share|improve this answer
Glad your site is back up now - at the time I'd linked to Keshav's post, the link to your original blog was dead :( I'm also not sure what you mean with the decoupled comment - it looks to me that you can indeed move the input rods back out and effect the output, due to the hinging effect on the levers. – Zhaph - Ben Duguid May 29 '12 at 20:13

There's this project, and with a mechanism like that you have a pretty high limit on the complexity of what you can do:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.