I read a ton of articles aout Enigma machine. And the one thing that I can't get is when the first rotor stars rotating. Some articles says the rotor rotates after the first letter of message has been encrypted. So if the first rotor is set to A, the first input would go through A, the second - through B, etc. But some articles say that the rotor starts rotating when you press a key. Only after that the machine encrypts the letter. I mean, I set the first rotor to A. The I press a key to input the first letter of my message. When I press a key, the rotor goes to B and the first letter goes through B. Which is right?
Having had the privilege of using one of the original machines, I can tell you the sequence is the following: set the plugs, and set the rotors. Once you push the key, you can feel the force of the rotors turn, and the light turns on for the encrypted letter. The light turn off when you take pressure off the key. This was on a 3-wheel Enigma, and I do not have any personal experience with the later models, but I will assume they work the same way.
When you press down a key the rightmost rotor turns first, when the key hits the bottom the electric circuit is made and one of the lam lights up. At some positions turning the rightmost will turn the middle one step also and then at some points the leftmost (on a 3 rotor enigma) turns.
On a 4 rotor enigma (used by the navy after 1942-2-2) the leftmost rotor never moves no matter how many letters are en/decrypted.
Now you may think it move one step each time but due to the mechanics most of the time it actually steps twice right after it other, this is called doublestepping and can be seen in https://www.youtube.com/watch?v=hcVhQeZ5gI4