EDIT: This Instructable has won Second prize in the 2013 Radio Shack Microcontroller Contest. Thank You to all who voted!

EDIT2: An Open Enigma with fake Standup Nixie Tubes like the ones pictured in this Instructable will soon be available as a Special Kickstarter edition.

This is our very first Instructable and this step by step guide will show you how to build a fully functional electronic replica of the world famous German Enigma machine. This Arduino based Open Source project is able to encrypt & decrypt any Enigma M4 encoded message.

This first ever fully functional Open Source Enigma "exact " Replica was inspired by the Kid's Game to Arduino Enigma Machine by sketchsk3tch.

Using Multiplexing for the LEDs, this circuit with 115 light emitting diodes uses only 38 pins and the 36 push buttons use only 4 pins total thanks to properly placed resistors (and the P-Channel MOSFETs) in the keyboard loop. These 4 16-Segment displays & an LED for each keyboard button would add up quickly the total number of pins required and even the Arduino Mega would have ran out of pins without the 2 methods mentioned above....

In response to the overwhelming demand, we designed the PCB and made it available through www.stgeotronics.com. Skip to Step 10 & beyond for more info. We also offer it as a complete electronics kit & an assembled & tested complete product.

Step 1: Proof of Concept on Breadboard

Before going all out on the development of this electronic Enigma replica, we wanted to make sure we could properly drive the 16 Segment LEDs. If we can do that, than we will be able to do everything as the rest is only Math...
Boards are tested, working great and available now for shipping. Kits &amp; assembled/tested/boxed Enigma Replicas are also available. www.stgeotronics.com to order. <br>
This is amazing! <br> <br>You deserve a reward!
If you don't mind me asking, how much did all of this cost you?
Thank You DIY9393 for the kind words.<br>I guess we should have mentioned the hardware costs in the instructable. All in all, we spent less than $200 in materials. But QUITE a few hours...
No problem! <br> <br>Thanks for the info!
The PCB drawing phase is completed. We have ordered them from the Fab &amp; are anxiously awaiting their arrival so we can populate &amp; test 1 set ensuring that everything works fine. As soon as this crucial step is completed, they will be available for ordering/shipping. <br> <br>NOTE: There was NOT enough space on the Enigma PCB to have all necessary components AND connect to the Arduino Mega2560, so we had to create a daughter card for the Mosfets &amp; to receive the Duino. This daughter card will be sandwiched between the motherboard &amp; the Mega2560. <br>
We just posted the second and last Circuit Schematic (for the lampfield and keyboard) at the end of the instructable. <br> <br>We will start soon working on the PCB design, so stay tuned. Don't forget to vote, every vote counts. Thank You!
Thank you!!
reflector wheel=b <br>wheel order 1,2,3ring setting A,A,A <br>ground setting RAF <br>HLCI LVSV GXOH YCIE GIYW UQLO JWHT LETL S
In response to the popular demand, we just added the first of 2 Circuit Schematic at the end of the Instructable. You can now find how each of the 4 16-Segment Displays are wired. Stay tuned: We are currently working on the 2nd Circuit Schematic, which will show the rest of the Perfboard wiring: how the 26 keyboard buttons, the 10 function keys, the 26 keyboard lamps &amp; the 5 LEDs are all hooked up. After that, we will design &amp; post the PCB file. <br> <br>Thank You for the overwhelming positive feedback &amp; don't forget to vote for this Instructable in both contests if you enjoyed it. <br> <br>
I just can't wait for the PCB!! Astounding. You deserve a Bletchley Park Medal.
I am really deeply impressed!! <br>Take a bow <br> <br>Yours Aeon Junophor
Most intriguing instructable I've seen. Must be a record for lines of code in an instructable. Your patience in the wiring is commendable. I would be interested in the PCB you mentioned. Thanks for posting.
<p>Hey, I'm confused on how the leds and the alpha buttons are wired. Do you have any pictures or suggestions on how to wire them?</p>
<p>Hello Again! When I copy and paste the code into my Arduino program, I get an error stating &quot;stray '/302' in program&quot;. Is there any way I can fix this?</p>
<p>Is it possible to use dual 16 segment displays instead of single 16 segment displays?</p>
<p>It is not possible on our Printed Circuit Board, but if you are building is from scratch, you can certainly use the dual or the quad...</p>
Thank you!!!!
<p>Hi! I'm trying to build this enigma machine as a school project. I can't seem to find the IRF9Z24N P-Channel MOSFET anywhere. Any idea where I can find it?</p>
Yes, If you go on eBay and look for IRF9Z34N (which are the same), you will find them for $1 to $2 a piece or less...<br>
Thank you!
<p>Hi, I am in the process of trying to figure out how to build this from this instructable. And I am so confused by the alpha buttons. What are they? I have tried searching on the internet to figure out what exactly they are but I cannot seem to figure it out. I know that they are simply LEDs that will represent the alphabet.... but what's the like..... holding thing called.... In the photograph it is black with a white protrusion. Also, I have not been able to find banana plugs that have banana plugs on both ends. Am I just looking for the wrong thing? Thanks so much! This is a wicked awesome instructable!</p>
<p>WalkingD2, because the alpha buttons we used for this prototype were so difficult to find and expensive, we decided instead to use simple surface mount LEDs. So you can use any through-hole White LED or the 3528 SMT we use. You simply print a paper keyboard to go on top and the proper letter will be illuminated.</p><p>For Plugboard Jumpers, we buy single Banana plugs and 8&quot; of cloth covered wire. We screw the male banana plug at each end and test for continuity...</p><p>Good Luck! Please post pictures of your build.</p>
Splendid! Thank you so much for the quick response!! I will try to post pictures when I finish. :)
<p>Hi, I am in the process of trying to figure out how to build this from this instructable. And I am so confused by the alpha buttons. What are they? I have tried searching on the internet to figure out what exactly they are but I cannot seem to figure it out. I know that they are simply LEDs that will represent the alphabet.... but what's the like..... holding thing called.... In the photograph it is black with a white protrusion. Also, I have not been able to find banana plugs that have banana plugs on both ends. Am I just looking for the wrong thing? Thanks so much! This is a wicked awesome instructable!</p>
<p>Hi i am building a replica enigma machine for a middle school project and i was wondering if there are any ways to make just the outside of th emachine so it will still look the same but it wont function, hopefully this would also cut down the cost. thanks</p>
<p>Here cheapest replica:</p><p><a href="https://sites.google.com/site/enigmuino/home" rel="nofollow">https://sites.google.com/site/enigmuino/home</a></p>
<p>I was wondering about the plugboard. If i haven't got that wrong, it isn't really connected, it's only for imitation proupose, isn't it? All the plugboard thing is handed by the programm?</p>
<p>Originally, and as described in this Instructable, you are correct, the plugboard was only for show as it was implemented in software only. However, we have since modified the daughter PCB to receive a fully functional plugboard. This 3 PCB combo is now available as circuits boards only, kit, and fully assembled unit at <a href="http://www.stgeotronics.com" rel="nofollow"> www.stgeotronics.com</a></p>
<p>Schematics for the plugboard would be excellent. Any plans to release?</p>
<p>I was wondering, though, will you ever give us the schematics for the project with the fully functional plugboard?? I'm relatively new to electronics so figure out a solution to implement the plugboard is quite a difficult task :(</p>
<p>That's really amazing, but just for the sake of the challenge, i wanna build it on perfboard, but i still love the fact that you make available the pcb as well as the project schematics! Keep up the awsome work</p>
<p>Wow, this is amazing and an epic code... good work. </p><p>I was wondering if you able to provide a schematics for the project with a fully functional plugboard. i would like to know how the plug board is wired and how it fits into the Arduino or daughter board?</p><p>Regards</p>
I am currently building this, but can you tell me which switch on the board is switch 0, switch 1 etc. Is it like the attached image with mode button as sw0? I dont want to wire it up wrong. Excuse the crude editing, it was done using android!<br><br>Thanks, David
<p>What exactly are the &quot;Alpha buttons&quot; and where can I find them?</p><p>Are LEDs attached to them to light up the correct letter, or how does it work?</p>
DavidO2, for the first unit we ever made described in this instructable, (and the next couple), we used normally open buttons containing a blue led with a cap with a character of the alphabet. We found these on ebay but seem to no longer be available. These were a pain to install and solder, not to mention very expensive.<br><br>Since then (and for every machine sold in our kickstarter), we simply used surface mount white LEDs and added a printed sheet on top that contains every key in sequence of the keyboard. This provides more light and looks a lot more like a real Enigma...<br><br>Visit www.stgeotronics.com for components, kits and assembled/tested units...
<p>What kind of buttons did you use? I'm trying to make one... :) This is a really great looking replica by the way</p>
Razapple12, Like most everything else, we found them on eBay:<br><br>Search for something like: &quot;Momentary Tactile Push Button Switch 12x12x11mm DIP + Black Round Cap&quot;<br><br>This is an example:<br><br>http://www.ebay.com/itm/20pcs-Momentary-Tact-Tactile-Push-Button-Switch-12x12x11mm-DIP-Black-Round-Cap-/310569400583?pt=LH_DefaultDomain_0&amp;hash=item484f60f907<br><br>
Where did you buy your buttons?
<p>Razapple12, Like most everything else, we found them on eBay:</p><p>Search for something like: &quot;Momentary Tact Tactile Push Button Switch 12x12x11mm DIP + Black Round Cap&quot;</p><p>This is an example:</p><p><a href="http://www.ebay.com/itm/20pcs-Momentary-Tact-Tactile-Push-Button-Switch-12x12x11mm-DIP-Black-Round-Cap/310569400583?_trksid=p2047675.c100005.m1851&_trkparms=aid%3D222003%26algo%3DSIC.FIT%26ao%3D1%26asc%3D20131003132420%26meid%3D6735924921448777204%26pid%3D100005%26prg%3D20131003132420%26rk%3D1%26rkt%3D6%26sd%3D271418608767&rt=nc" rel="nofollow">http://www.ebay.com/itm/20pcs-Momentary-Tact-Tacti...</a></p>
<p>This is great, but it always astonishes me greatly when folks embed a prototyping board in a custom printed circuit board design. If you're going to all the trouble to design a custom printed circuit board, then why not just embed the ATMega chip directly into your design? It just can't help but be cheaper, lighter and smaller that way.</p>
<p>How does the arduino measure the resistance if there is no current traveling through the resistor and pushbutton setup? Shouldn't there be a ground somewhere?</p>
I guess i can peak at the code but how did you translate the 7 segment digit dispays to nixie ?
QBrown2, we didn't:<br><br>The 7 Segment displays are actually 16-Segment displays (17 if you count the decimal point) and we are using these as opposed to 7 Segment so we can have a nice Alphabet.<br><br>We decided to wire them standing up &amp; encapsulate them inside a test tube to give it somewhat the look of period accurate Nixie Tubes.<br><br>So, no Nixies were used in this project...<br>P.S. the printed circuit board we made allows for 16-Segments LEDs to be horizontal or vertical, but still has not been designed with Nixies in mind...<br>
HURRAY! HURRAY! <br>Thanksgiving Holiday brought us our Prototype boards. We are now busy populating &amp; testing one to make sure it works as great as the proof of concept does. We are now accepting orders at www.stgeotronics.com &amp; expect very soon to start shipping. We added Step 10 to this Instructable to show pictures &amp; more details. <br> <br>
We are finished drawing the motherboard PCB (top), and have started drawing the daughter car (interface between top PCB &amp; Arduino). Daughter card is required cause we can't fit all components on motherboard. As soon as daughter board is complete and we verify they fit together in Enigma machine, we will send them for production. We expect both boards in our hands sometime in December. <br>
Thank you. Will you upload the PCB design file?

About This Instructable




Bio: We love to tinker. There is nothing that we can't do if it involves Arduino. Challenge us: Do you have an idea for something ... More »
More by ST-Geotronics:The Twins Electronic Game GPS Data Logger Make it Blow! 
Add instructable to: