Have you ever dreamed of building your own Turing machine? Mike Davey did—and, instead of stopping at the dream, he built one. The result combines function with elegant design, turning the theoretical machine imagined by Alan Turing in 1936 into a real device. Davey has made the plans available to the public, so you can build one yourself. Fancy giving it a try?
From a mathematical model to a real machine
The Turing machine is a computational model introduced by Alan Turing in 1936. In his paper “On computable numbers, with an application to the Entscheidungsproblem,” published by the London Mathematical Society, Turing tackled a question raised by David Hilbert: are mathematics “decidable”? In other words, is there a definite method that can be applied to any mathematical statement and tell us whether it is true?
To show that some problems cannot be solved by a machine, Turing devised a formal model of a computer. He had no means of building a physical machine at the time, so this theoretical design became known as the Turing machine.
Turing’s imagined machine was remarkably simple. Its hardware consisted of a read/write head, while a theoretically infinite paper tape held both the program and the data. The head could read the contents of a tape position, erase them or write a new value.
Its available movements were limited to moving the read/write head one position to the left or right. At each new position, the machine performed a computation determined by a state table of the form * (state, value) → (new state, new value, direction).* The inputs are the machine’s current state and the character read from the tape; the result specifies the next state, which way to move the head and what value to write.
Despite its extreme simplicity, this machine can perform any computation that a digital computer can perform, albeit much more slowly. In 1936, of course, the Turing machine was only an abstract mathematical model formalizing the idea of an algorithm.
How Davey built his machine
Mike Davey has brought Alan Turing’s idea into the physical world. He is not the first to build this kind of machine, but his design stands out for its careful engineering—and because he has made the plans, circuits and programs available to anyone who wants to construct their own Turing machine.
At the heart of the system is, naturally, the read/write head. Davey uses a conventional marker driven by servomechanisms and controlled by a Propeller microcontroller from Parallax to write zeros and ones on the tape. A small camera “reads” the tape’s “cells,” while a motorized roller erases data when needed.
The tape is a long reel of blank film, pulled through the head by a transport mechanism driven by a stepper motor, also controlled by the Propeller. The microcontroller does not “know” what is on the tape: it only has the information it “sees” through the camera, adhering strictly to Turing’s concept.
Loading data and monitoring the computation
The machine’s initial state is determined by the starting contents of the tape and the position of the head. These are entered using an “SD”-type flash memory card, and the system writes the zeros and ones onto the tape. Once everything is ready, the machine starts working.
Davey equipped the device with a set of seven-segment displays so the operator can see what it is doing at any moment. It also has a four-line LCD screen, which can show the current state, upcoming states or menus for loading and saving states to the memory card. As we said at the outset, you now have everything you need to build one of these machines at home. Are you up for it?
Mike Davey