Relays Calculate Square Roots

After seeing an exhibit of an old relay-based computer as a kid, [Simon] was inspired to build a simple two-relay latching circuit. Since then, he’s been fascinated by how relays can function to do computation. He’s come quite a long way from that first latching circuit, however, and recently finished a huge five-year project which uses electromechanical relays to calculate square roots.

DSC_0240-e1394580570356

The frame of the square root calculator can hold up to 30 identical relay modules, each of which hold 16 relays on PCBs, for a total of 480 relays. The module-based setup makes repair and maintenance a breeze. Numbers are entered into the computer by a rotary dial from an old phone and stored in the calculator’s relay memory. A nixie tube display completes the bygone era-theme of the device and shows either the current number that’s being entered, or the square root of that number as it’s being calculated.

The real magic of this project is that each relay has an LED which illuminates whenever the relay is energized, which shows the user exactly where all of the bits of the machine are going. [Simon] worked on this project from 2009 and recently completed it in 2014, and it has been featured at the San Mateo Maker Faire and at Microsoft Research in Redmond, WA. We’ve seen smaller versions of this before, but never on this scale and never for one specific operation like square roots.

Video below. Thanks to [Bonsaichop] for the tip!

23 thoughts on “Relays Calculate Square Roots

  1. Impressive, quite a talking piece I should imagine. If I had the money or a barrel load of relays I would love to have one or these.
    Blinking lights, clicking relays, I especially like the use of a rotary phone dial. I guess it makes sence as all the timing is aalready done for you.

    1. Reminds me of one of Professor Farnsworth’s machines:

      Fry: Isn’t that the same machine that makes noses?
      Farnsworth: It can do other things. Why shouldn’t it? [He throws the switch.] Of course, even if it is possible to analyse the message, there’s no way of knowing how long it would take. It could take an hour or it could take a hundred million years.
      [The machines dings.]
      Fry: Is it done?
      Farnsworth: Certainly not. Two dings means it’s done. [Two dings.] But not like that. Slightly more rapid.
      [Two slightly more rapid dings. Fry gasps. Farnsworth shakes his head.]

  2. As I have a bit of a headache, if it was mentioned in the boulder’s write ups I may have missed it. I’d be curious as to the power consumption, and if the consumption would vary according to how large or small the number it’s calculating the square root of. I’m sure the sound is fun for awhile becoming maddening as time goes on.

  3. A splendid monstrosity. An American intelligence officer brought a relay-based computer to Bletchley Park during the war. It became known as the Dragon for the amount of noise it generated, described as resembling “a monster munching through tin-plate”. After a few weeks of work on the Lorenz cipher it wore its own relays out and was replaced by a machine that used thermionic valves. Eventually, of course, the job was taken over by the Colossus computers.

  4. As great as his work is, his documentation of it may even be better. Wow! Lots of great stuff. (If he’s reading this: I’d love to read about it on my book reader… perhaps a .pdf of it all?)

Leave a Reply to DainBramageCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.