3D printed Enigma lamp board.

October 29th, 2017

Just a quick update. I have made the lamp board for the 3D printed Enigma machine and made a film here:

Posted in 3D printed ENIGMA machine | Top Of Page | Comments Off on 3D printed Enigma lamp board.

3D printed Enigma October update.

October 2nd, 2017

Just a quick update. I made another blurry film.

I have made progress on the keyboard and have that mechanism all worked out now. I am not sure I am 100% happy with it so it might get redesigned and reprinted! The mechanism of it is fine. Just minor changes to make it easier to assemble. In fact after making that film I already changed the little springs to something different.

I also created and printed onto clear plastic sheet the fonts for the keys and the lamp board.

I have also decided my machine will be based on the Polish Enigma Double rather than the German Enigma just because German Enigmas have been done before (in fact you can buy incredibly accurate replicas here already: http://enigmamuseum.com/replica/) and I don’t believe the Poles get enough recognition for what they achieved.

I’ve posted links to it before and there is a ton of information online about it if you search.

3D printed Enigma keyboard.

August 6th, 2017

First another film. Sorry for the blurriness again, really need a better camera! Canon Ixus 175 is rubbish! Don’t buy one!

I have been busy working on the keyboard mechanism of my machine. This will vary a lot in actual mechanical details from an original machine as I am using totally different switches. The original Enigma used metal contacts actuated by pins though the shafts of the keys. Two rows of keys (of the three on the keyboard) use compression springs on the key shafts but the third, top row, actually uses small tension springs. My mechanism is considerably different.

I am using modern micro switches in mine as they are easy to obtain and come in standard sizes. To wire the Enigma up correctly you need what is called a double throw switch. This switch has three contacts, a common and then two outputs, one active in each switch position. In the real Enigma machine the key switches swap the current from being an input to an output. The switch is wired so the common goes to the entry wheel (via the plug board). The NC (normally closed – key up) contact goes to the lamp matching the letter of the key and the NO (normally open – key down) goes to the battery positive. When a key is pressed the switch in it connects that letter to the battery. The current then flows through the plug board, into the scrambler (entry wheel, three rotors and reflector) then back out of the scrambler to a different key (NEVER the same key – one of Enigmas weaknesses). That key, being up, directs the current to its correct letter lamp.

I started by modelling up small parts of the mechanism. I am using the same external dimensions as the real machine for the keyboard itself and the keys. I made a base plate with little pockets that the micro switches press fit into. I only printed a part of the whole plate for these tests.


I then set about making some kind of cam to actuate the switch as the key is pressed. For the shaft of the keys I am using 1/4 inch aluminium rod. I can 3D print shafts but they aren’t really smooth or strong enough so don’t provide a very nice action. I know some dozy twat will come along and say “the machine isn’t fully 3D printed then” but having one 100% 3D printed is somewhat impossible so I am not claiming it’s fully 3D printed. I could 3D print a static model I guess but a working one will always need some non plastic parts of course.

I started working out how to do a cam and the basic idea is very simple. A press fit collar on the key shaft that has an appropriate profile to actuate the switch as the key is pressed. I started playing about with ideas. Luckily small parts like this are quick to print so you can try many ideas (rapid prototyping).


A simple round collar with a flat on the side worked but the issue then was that the key shaft is free to rotate. You could use square shafts in square holes to solve that issue but that’s a lot harder to engineer. To stop the rotation happening I ended up using the body of the switch itself. I extended the cam collar so it had little flat extensions to it. These are sized to be just wider than the width of the switch itself and they slide up and down the sides of the switch freely but prevent the key shaft from rotating.

IMG_0880_1 IMG_0876_1

The other thing I did was make the hole in the base of the cam wider than the shaft. This is so there is room for a spring that fits around the shaft and up inside the cam. This spring will cause the key to pop back up after it is pressed. I have ordered some appropriate springs from China (thank you Aliexpress!) so am waiting for them to arrive now.

To test the whole mechanism I printed a small model of one key. You can see it below with the key fully down then fully up.

IMG_0870_1 IMG_0871_1

I think on my machine the keys won’t move up and down as much as on a real machine. You only need around 10 mm maximum movement to actuate the mechanism to step the rotors. My key mech gives me 11mm of movement currently. I can add up to another 5mm to that if needed. The other tricky thing is each of the three rows of keys moves a slightly different amount. I should be able to compensate for this by changing the profile of my cams. This will take some trial and error but should be workable. Of course the key needs to move the rotors THEN actuate the switch. I do know from a film that James did for me that the keys on a real machine go all the way down to the body. On mine they will probably stop a little short.

The whole mechanism holding the keys consists of three parts. The bottom part holds the switches. Then there is an upper part that has supports to press down on the switches to hold them in place. That sits directly under the actual keyboard, which I have printed to the same dimensions and profile as the original so the keyboard layout will be identical although my mounting holes are in different places. The whole lot is held together with the same aluminium rod as the key shafts. I drilled and tapped these on the lathe to make spacers.


There are spacers under the bottom layer that attach the keyboard to the base and hold it the correct height above the see-saw. These I tapped both ends then I added threaded rods (cut down machine screws) into one end. These threads are Loctited in place. These threads pass through the switch plate then the top spacers are screwed onto these sandwiching the switch plate between the spacers. The top plate sliders over the spacers. Then the keyboard itself sits on top of this plate and on top of the spacers. Screws though the keyboard hold everything in place. The pictures below should help explain.

IMG_0881_1 IMG_0882_1 IMG_0884_1

When I make the base I will add in stops that go under the see-saw part to provide physical limits on that. I will also add in some extra supports for the middle section of the keyboard to stop that sagging. The original machines did have an extra middle support there.

The key tops need some work too. I mentioned in the film using my little laser cutter to make plastic windows for the key tops. This will definitely work and I might do that but I have ordered some 12mm glass microscope cover slips and I am hoping those will work so I can have real glass in the keys. I need to do some work with the actual key top printing. These are printed in two parts and I have the model complete but I need to play with my printer settings to get them to print very cleanly. This is so they will press fit together nicely. I also need to create the font for the key tops in the same was as I did the font for the letter on the rings of the rotors. Then I need another font for the lamp board. They are all different and it really annoys me! I thought the Germans were more ordered than that.

I have discovered there is a book called “Inside Enigma” by Professor Tom Perera which you can buy from the Radio Society of Great Britain online shop that apparently has pictures of the insides of the machines. This probably would have been a great help before I started. I have ordered one but it hasn’t arrived yet. Prof. Perera is also involved with the enigmamuseum.com site where you can buy real machines (if you have around a quarter million $US to spend)!

I know there were many different models of Enigma, I am not sure exactly how many, so I am really looking forward to this book arriving.

Making the keyboard made me realise how much wiring there is going to be in this bloody thing. It’s actually going to be quite tricky wiring and assembling everything. I still need to make all the little brass contact pins for the rotors (156 of them) as well as the 26 key shafts, caps and the cams. I also need to model the lamp board but that should be fairly straight forward (I hope) and the second part of the base that the keyboard and lamp board attach to.

So still lots to do!

Enigma progress update.

July 15th, 2017

Right, an update and another badly made film!

I am at the point now where the basic mechanism of my Enigma machine is proved to work. I don’t have a keyboard yet but the mechanism the keys operate on, the pawls and rotors and so on, are all working mechanically. I won’t do the electrical parts until later.

Apologies for the bad filming and the gloves. My camera is not great and it’s bloody cold here!

In other news I have started a new job, back to software testing and eventually test automation. It’s nice to not be going backwards financially again! I am working in the city for a startup based on The Terrace which is amusing as when I first moved to Wellington I lived on a flat on The Terrace and used to travel by bus to Miramar to get to Weta each day. Now I get to do the exact opposite and travel from Miramar to The Terrace. I find working in town is great, even with the commute (30 minutes on the express bus), since I get to use the library again and then get time to read. So I have been reading everything I can about Bletchley Park, Enigma, Ultra, cryptography and so on. All fascinating stuff.

I am currently reading “Enigma: How the German Machine Cipher Was Broken and How It Was Read by the Allies in World War Two” by Wladyslaw Kozaczuk. This is a great book explaining exactly what the Poles did with Enigma, something that has been woefully under reported over the years. Basically, before the war, they completely broke Enigma and it was their work that really helped the British with their own code breaking during the war.

The three mathematicians were Marian Rejewski, Jerzy Różycki and Henryk Zygalski but there were others who played a huge part in it all including French military intelligence. There is a brief description about it all here: https://en.wikipedia.org/wiki/Biuro_Szyfr%C3%B3w

The story of what they did and and how it all came about and what they actually went through is totally fascinating. It would make a excellent film if they stuck to the facts (so don’t let Americans make it and if the British do, someone keep a close eye on them). As I learn more and more about the history behind the Enigma machine the film The Imitation Game annoys me more and more! But I suppose I have it to thank for getting me interested in all this in the first place.

I am currently looking for a copy of that book (the 1984 edition – the later reprint isn’t as good) but it’s quite expensive!

Anyway, these are some close up pictures of bits of the machine to make up for the blurry, wobbly film!

IMG_0824_1 IMG_0856_1

Printing the new side piece with extra stiffening. And the mounting foot printed as a separate piece.


The pawls with brass weights so they always fall into the rotors. You can see the little buffers they pivot on when the keys aren’t pressed. On the real machine the pawls are spring loaded but I was too lazy to do all that! Given my Enigma machine doesn’t have to operate in the back of a half-track while invading France I feel it is OK to do a little simplification!

IMG_0841_1 IMG_0854_1 IMG_0855_1

The sprung loaded pieces that keep the rotors in their fixed positions but that allow them to ‘click’ around. I still have a little wracking on the two brass shafts that these spring loaded levers work against so I will add a printed stiffening piece joining the two brass tubes to the right of the levers in the picture above.


The reflector and the lever and ramps that push it into the rotor stack. The brass rod at the top stops the reflector from rotating.


The keyboard plate axle mount. The base plate is printed with raised edges into which the mounting brackets fit tightly against to ensure the positioning is totally accurate.

IMG_0842_1 IMG_0847_1 IMG_0849_1 

Showing how the pawls engage the ratchets on the rotors. You can see in the last picture how the left most rotor is in it’s notch position which means on the next key press the middle rotor will move along with the first. The third rotor won’t move since it’s pawl is riding on the edge of the rotor and so it can’t engage the third rotors ratchet to move it.

So, next I want to start looking at the keyboard and how that will work. I have a ton of small micro switches so need to work out how to make the keys, how to add springs so only the key being pressed drops and how to make it so the key travel first moves the rotors and only then engages the switch. I should probably order a bunch of spring off Aliexpress now I think of it!

I am also going to reprint the reflector and entry wheel at some point. Each has a tiny lip on the outside edge that catches the rotor stack when you try to insert/remove it. It doesn’t affect the operation of the machine, it just annoys me! I will also add in pockets for more hex spacers to attach the bolts to. Currently the plastic is just tapped for the screws and while this works I like the idea of having nylon threaded inserts in there better. That method worked very well on the rotors themselves.

Finally it is hard to say how many hours I have spent on this project so far. Learning Fusion 360 takes time and there is much printing of parts, seeing how they work then modifying them. I don’t think any part I have made is exactly the same as in the real Enigma. Everything has to be redesigned and remade.


This is my box of experimental parts. There is a good 1.2kg of printed plastic in that so far. These are all parts that didn’t work in the machine, not failed prints. I actually get very few failed prints these days. The printer is working extremely well! I happily leave it going for days at a time. With a web camera pointed at it and Repetier server running on it I can remotely monitor and stop it if needed.

More Enigma progress.

June 11th, 2017

Sorry it’s a very badly composed film. It’s a bit tricky getting the angle right! Am slowly making progress on the machine. It’s a slow process because I need to design, print, test then often redesign and re-print the parts. But I am getting there.

I need to thank Paul Zetzmann who is undertaking his own truly amazing Enigma replica build. It makes mine look like a toy in comparison. His site is here: http://www.enigma-maschine.de/en/

Paul, like James Grime, was kind enough to explain some details about the machine as well as make a small video for me explaining some of the details. I must also thank him for pointing out my embarrassing mistake of gluing the letters onto the rotor rings in the reverse order (fixed now)!

I also just discovered this site: http://enigmahut.co.uk/

They have a replica three rotor Enigma that looks amazing although it isn’t a 100% replica as it doesn’t fully function. It is built to replicate the look and feel of the machine and show some of the machine functions. It has some limitations (they describe it on the site here) as well as a modern computer inside to to do the encryption/decryption. Unfortunately their site doesn’t show the innards of the machine so I can’t see exactly how it works. It looks as though only the fast rotor moves and that you can only encrypt/decrypt 20 characters. I wonder what they are using as the computer? Some sort of Arduino or a Raspberry Pi I imagine? The machine definitely looks the part though!

Am currently somewhat pre-occupied with trying to find a new job. Unfortunately I am not earning enough at the workshop to break even and when there is no work on that problem is of course compounded. Unfortunately other animatronics jobs aren’t exactly easy to come by! So I am busy trying to get back to my old career of software testing/test automation. The good thing will be when I do find something new it should mean more money and more time. No more 10 hours standard work days – more time for projects!

« Previous PageNext Page »