25

I'd like to make a working pin tumbler lock out of LEGO bricks. I have already designed a key I'd like to use that should be compatible with five cylinder lock.

Technic Key

Ambo100
  • 17,591
  • 7
  • 78
  • 169
  • 2
    I must admit I have some doubts on the key design - the idea of the tumbler lock is that the key is a series of flats and gentle slopes so that the key pins can be pushed gently one way out of the way (against the strength of a spring, no less). I'd rather suggest two layers of 1xn plates, with 1x1 slopes above it or something. – Joubarc Nov 07 '11 at 19:40
  • 8
    Are you married to that key design? I don't see a good way to get that to slide into anything - the angle is too large and would catch the tumblers rather than push through. I would look at trying pieces like 54200 and 3044 instead, which still gives you 3 options per 2 studs = 243 possible 10 stud keys. –  Nov 07 '11 at 19:42
  • @Joubarc: The key is half the problem. I can see why it wouldn't work. I tried your advice, but the cheese slopes don't align themselves. – Ambo100 Nov 07 '11 at 20:15

1 Answers1

29

This would push the pins up and down like a normal key would.

enter image description here

Here is the basic system. I don't have time to build to whole thing but this resolves the main problem and proves the feasibility.

The main problem was to reproduce the pins system with LEGO bricks since each pins needs to have different lengths. Early in this project, I wanted to have a 'analog' approach of setting the pins length so to not be constrained by only stacking plates. For that I used axle perpendicular-joiner (6536) on an axle to build the driver pins (top pins):

enter image description here

The key pins (lower pins) are caped with angles connectors (32013) creating the needed round tips on which the key can push.

In a standard pin tumbler lock system, if the right key is not pushing on the pins, both the driver pins and the key pins can prevent the rotation motion. If the key tooth is too low, the driver pins is blocking and, if the key tooth is too high, the key pin is blocking. In my system the driver pins are doing both functions.

In the prototype the red rounded beam and the driver pins would be fixed while the rest would rotating with the key. In the following picture you can see the lock without the key. In that state all the driver pins go through the black Technic beam (under the red rounded beam). This would prevent the key from turning.

enter image description here

In the following picture the key is now inserted and all the driver pins are now flushed. In this position ther driver keys are not engaged into the beams that are part of the rotating module. This enables the key to turn.

enter image description here

If the wrong key is used or the key is not inserted correctly, the pins would be either too low or too high engaging into the beams that are part of the rotating module and thus preventing rotation.

enter image description here

Movie time! Here's a video demonstrating the mechanism.

The biggest downsides of this system are the size and the fact that the driver pins are not pushed down by spring but by gravity. Both of those troubles are put to shame by the total awesomeness of having a functioning pin tumble lock made of LEGO bricks.

Ambo100
  • 17,591
  • 7
  • 78
  • 169
pcantin
  • 13,483
  • 8
  • 46
  • 90
  • 2
    Good demonstration, but I'd try to align the tumblers with the spot between two studs. Then you can use 3044 for a full brick height and 54200 (which you've used) for a 2/3 height, and pack 50% more tumblers in the same space. –  Nov 08 '11 at 00:15
  • That's the kind of design I had in mind (maybe not multicolor though ;-)). @JoeWreschnig I was assuming there was one tumbler per brick, every 8mm thus — which seems reasonable enouch to me. But a 1x1 plate instead of tile might be gentle enough to work, depending on the design of the pins. – Joubarc Nov 08 '11 at 05:11
  • I was referencing to my design of the key when I mentioned it wouldn't work. This is exactly what I understood when you explained it. It looks like the cylinders would get stuck about four studs from the left, perhaps the tile could be replaced with a cheese slope? – Ambo100 Nov 08 '11 at 10:33
  • 1
    @Ambo100 if you build your cylinders with rounded ends they will accept the imperfections. you could use Technic axles and cap them with a Axle Towball (2736) – pcantin Nov 08 '11 at 11:17
  • @Joubarc: A tumbler per stud would make the tumbler rise an amount I'm not sure how to match - whatever the rise is halfway (or more likely, a bit more than halfway) up a 2/3 block, which is not simply 1/3, but some weird number. The only way I see to make it work at all is to have the tumbler supported on a position of an exact and buildable height, which means the top of the bricks between the studs, not over the studs. –  Nov 08 '11 at 15:48
  • 1
    @JoeWreschnig yes, that's certainly going to be an important factor, and as a matter of fact the key and the tumbler should be designed together — even if one has ideas for keys, it's only when building the tumbler that it's possible to see if the idea will be practical or not. I'm curious enough to try it too, honestly, but I don't know when I'll find the time. – Joubarc Nov 08 '11 at 18:53
  • I'd be happy to accept this as answer if it included more detail on both the lock key and mechanism. – Ambo100 Nov 16 '11 at 22:12
  • 2
    @Ambo100 There you go, I added an edit. – pcantin Nov 20 '11 at 16:31
  • Neat! Now you'll need to build the door around it. – Joubarc Nov 20 '11 at 19:23
  • I like the solution, as I made something similar, but not near as compact as this in the past. (I used rubber bands to provide the spring effect though.) However what I didn't solve however was how to make it rotate nicely while still keeping the pins in the right position, so they wouldn't fall down when you rotate it. Any ideas to this? – Sebastian Wahl Nov 21 '11 at 19:51
  • I thought of that. Sliding a beam under the read rounded beam would do the trick. The beam would be attached to the fixed part of the mechanism and, using LEGO elastics, would slide under the red beam when the mechanism rotates from under the driver pins. When the key is rotated back, that beam would be pushed out of the way, freeing the driver pins to move down. The beauty is that, when the right key is in, all the driver pins are flushed (same height). This is a lot easier to manage. – pcantin Nov 21 '11 at 20:07
  • 1
    This would be cool if you could attach it to the door. – MTK Plays Jan 05 '21 at 12:54