loading

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>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>COOOOOOOL!!!</p>
<p>awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!</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?
Yes englishfire, we will upload both PCB design files (Motherboard &amp; Daughter Card) once they are both complete &amp; tested. We are aiming for sometime in December. <br>
Any news about the PCB?
stringstretcher: Reflector wheel= C Wheel order = 3,2,1 ring setting A,A,A Ground setting = USA IYRF TTQP DUPA AIMC DBTG YTNF<br><br><br>
It would be interesting to use Wamco KW-105AL numitrons. They operate at 5 Volt and are alphanumeric.
Love Enigma. Love Arduino. Love LEDs. Love Nixie-tubes. Gotta love LEDs pretending to be Nixie-tubes. Love this project! :-) <br> <br>Would love to see the rest of the circuit - can you explain the charlieplexing and the analog keyboard?
NoseyNick, the full circuit schematic is now posted in the instructable. <br> <br>We need to make a correction, as &quot;JuMP&quot; pointed out about the Hackaday article on our Enigma (http://hackaday.com/2013/10/07/arduino-based-enigma-replica-is-fully-functional/), for this project, we are not Charlie-Plexing, we are simply Multiplexing. <br> <br>Multiplex is just a little simpler to code as we only deal with two states of logic: high or low. It also lets us drive the common anodes easily with a p channel mosfet. This allows more current so a brighter display while observing the rated maximum current limitations of the atmega 2560. <br>To truly &ldquo;charlieplex&rdquo; requires three state logic: high, low, and open. To achieve the open, the pin mode needs to be changed from output to input thus releasing the 2560&prime;s internal pull up and pull down circuits. True charlieplexing would have saved us 7 pins however we did not feel that it was appropriate to sink the anodes of up to 17 LEDs to only one IO pin. <br> <br>The Analog keyboard refers to all 26 keyboard buttons plus 10 function keys only using 4 analog pins: All 10 functions keys are daisy-chained to Analog 0 with a 1Kohm resistor between each button. Same thing with the first row of 9 keyboard buttons being separated by 1KOhn resistor and daisy-chained to Analog 1. And so on for middle &amp; bottom rows of keyboard... <br> <br>Then, all we do to know which key has been pressed is read the resistor value at the Analog Pin. Since each button needs to go through a different qty of resistors before it hits the Analog pin, you end up with a different value that is consistent for each key. Very reliable, simple design... We possibly could put even more keys one 1 analog pin, but figured that 1 row per pin was good enough... <br> <br>
Neat idea, thanks for sharing. So, I enter a letter at a time and it is encrypted and shown on the display. Correct? <br>Does your version have the capability to enter a string of characters, encrypt each character, then cat the encrypted characters into a string and either save it in a file or send it out the serial line?

About This Instructable

169,387views

561favorites

License:

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: