Long before electricity, keyboards, or screens, the story of computing started with gears. In 1901, divers exploring a shipwreck off the Greek island of Antikythera found a rusted, coral-encrusted lump of bronze. When scientists eventually looked inside using modern X-rays, they were stunned. They had discovered a clockwork mechanism built over 2,000 years ago, unlike anything else known from the ancient world!
Scientists believe it was used to predict astronomical events such as the movements of the Sun, Moon, and planets, as well as eclipses. Although it was entirely mechanical, the device could perform complex calculations, leading many historians to describe it as the world’s first known .
What did all those gears actually do? On the front of the mechanism was a large dial. Pointers showed where the Sun and the Moon stood among the constellations of the zodiac, and a small ball, half light and half dark, turned to show the phase of the Moon. A handle on the side drove the main gear wheel round once a year. From there, trains of interlocking gears turned the Moon pointer faster, by exactly the right amount: 254 times round the sky for every 19 times the Sun went round.
Turn the Antikythera handle
Drag the handle round, use the buttons, or select the handle and press the arrow keys. Watch the Moon pointer pull ahead of the Sun pointer, and the little ball change phase.
- Sun in
- Aries
- Moon in
- Aries
- Moon lit
- 0%
- Sun pointer
- 0.00 turns
- Moon pointer
- 0.00 turns
- Full moons
- 0
New moon: the Sun and the Moon point the same way. Turn the handle and watch the Moon pointer pull ahead.
A simplified model of the front dial. The real mechanism probably showed the planets too, and its calendar ring counted the 365 days of the Egyptian year.
The back of the mechanism had more dials. One counted the months of the 19-year cycle. Another, a spiral of 223 months, marked the months when an eclipse could happen.
Long before electronic computers existed, people needed a way to perform calculations quickly and accurately. One of the earliest and most successful tools was the abacus, a simple counting device made of beads that slide along rods or wires.
For centuries, it remained one of humanity’s most important mathematical tools, proving that even the earliest computers began with the simple idea of helping people calculate.
Count on an abacus
Each rod has one bead worth five above the bar and four beads worth one below it, like the Japanese soroban. A bead counts when it touches the bar. Tap the beads, or select a rod and use the arrow keys. Then press Add 1 a few times and see what happens when a rod runs out of beads.
Show 7, the days in a week.
Tap a bead to push it against the bar. Try the challenge, or press Add 1 a few times.
When a rod passes 9, you clear it and push one bead up on the next rod. That step is called a carry, and on an abacus the person has to remember to do it. The next machine did it by itself.
In 1642, a young French mathematician named Blaise Pascal, still a teenager, began building a machine that could perform arithmetic using a series of interlocking gears and wheels. Known as the Pascaline, or the Arithmetic Machine, it was designed to help his father, a tax official, with the endless calculations his job required.
By turning numbered wheels, users could add and subtract numbers automatically. When one wheel completed a full rotation, it carried a value to the next wheel, much like how modern calculators handle place values.
The machine shows 07. Press Add 1 until the units wheel passes 9.
Although the machine was expensive and difficult to build, it demonstrated that calculations could be performed mechanically rather than by hand. Pascal’s invention marked an important step toward the development of modern computers, showing that machines could be designed to process numbers automatically.
Leibniz Takes It Further
A few decades after Pascal’s invention, German mathematician Gottfried Wilhelm Leibniz designed a machine capable of not only addition and subtraction, but also multiplication and division. His “Stepped Reckoner” demonstrated that increasingly complex calculations could be automated, bringing the dream of mechanical computing one step closer to reality.
Gears could now add, subtract, multiply and divide, but a person still had to turn them for every single step. The next dream was a machine that would follow a whole list of instructions by itself.
Sources for this part
The Antikythera Mechanism
- Antikythera Mechanism Research Project
- The Antikythera Mechanism – Linda Hall Library
- Antikythera mechanism – Encyclopaedia Britannica
The abacus
- Abacus – Encyclopaedia Britannica
- Soroban – Wikipedia: one bead worth five above the bar, four beads worth one below
Pascal and Leibniz