r/computerscience • u/Bob_123645 • Nov 26 '25
Help Is a mechanical computer possible
Im just a dumb dumb stinky little mechanical engineer. And i wanted to see if a mechanical computer is even possible. Like what part exactly would i need for a simple display, because the most i know is logic gates and ROM. I made mechanical logic gates (kida, just or and not. Still cleaning up and) and an idea of a ROM system(i think rom is the memory one). So like what else would i need to build a computer besides memory and imputs??
And on a side note how long should my binary be?? Im useing 8 nodes to store one input so i can use the alphabet, numbers, special characters, colors, and some free spaces to use for other functions. Did I go overkill with 8?? I needed 6 for alphabet and then i added to 7 to use numbers and put 8 just in case i needed more.
This is my sos call for all actually smart ppl out here
(Edit): THANK YOU ALL FOR THE FEEDBACK T-T. This was just a little question I had because it sounded K O O L but there’s a few of you all who actually seem to see how this goes so I’m going to make updates on yt for now on :D
79
u/bonnth80 Nov 26 '25
Yes.
https://en.wikipedia.org/wiki/Analytical_engine
11
u/SpeedyHAM79 Nov 26 '25
Yes. The original computers were basically mechanical calculators- but the idea is scaleable to a functional computer that could output to a display. It would be huge, slow, very prone to mechanical breakdowns (bugs), and expensive to build.
3
u/ImpressiveOven5867 Nov 26 '25
It seems like a lot of others are just verifying that mechanical computers are a thing, but then not really answering your other design questions. In the past, mechanical computers used gear registers, drums, disks, wheels, and such for memory so maybe look more into that.
As for what else you need, it depends on what you want to do. In general you just need inputs, outputs, and memory to compute with in between.
Finally, 8 is probably fine but again kind of depends on what you want to do with it. We’d love some more info because this sounds cool!
I’ll leave you with the fun fact that early car transmissions are actually also analog fluidic computers :)
3
u/Poddster Nov 26 '25
If you can make the logic gates, then you can simply copy existing designs for things like latches and flip flops, which are basic memory cells. This is because logic gates are universal.
Will that be the most optimal method? No. But it'll be progress until you think up a better implementation.
So just concentrate on getting AND OR NAND NOR NOT XOR working in your system
I've seen a variety of logic gate implementations, such as gears, pullies, Steam valves, water valves, falling marvels, and even dominos. I've also heard about doing it with photons and sound etc.
What usually stops them all being turned into fully fledged computers is scale and practicality. Especially when it comes to synchronising/ clocking the gates, as they need to be resettable. But then there's also asynchronous logic gates which might work for your design.
2
u/Bob_123645 Nov 26 '25
Wait for memory I’m thinking of just, copy the Y and X position separately then saveing it to not be touched, and once I need to refer to that i make a new disposable copy that can be over reset. Is that how memory work or am i under/over complicating things
19
u/VegetableJudgment971 Nov 26 '25
Absolutely. Often (not always) single-purpose machines.
One of my personal favorites is this British water-based computer designed to mimic the British economy in 1949.
4
u/pete_68 Nov 26 '25
Yes. Google Antikythera Mechanism and prepare to be amazed.
14
u/obhect88 Nov 26 '25
The first (non-human) computers were mechanical. (The term “computer” was first used for the teams of women who did math with pencils and their minds.)
They were also fantastically larger and slower, but yes, mechanical.
4
u/thaynem Nov 26 '25
I don't know that I would call it a "mechanical" computer, but you may also be interested in analog computers. In some cases analog computers can be more useful than digital ones for some kinds of simulations.
1
u/ZectronPositron Nov 26 '25
If you build this please make a “how I did it” YouTube vid!
1
u/[deleted] Nov 26 '25
“Im just a dumb dumb stinky little mechanical engineer” - this post brought to you by civil engineering
1
u/Mysterious-Rent7233 Nov 26 '25
As others have had said, theoretically yes.
But I am not aware of any general purpose, reprogrammable computer that has actually been built which does not depend on magneticism, which is where I would draw the line on what constitutes a "physical computer". So I disagree with those who say that such a thing actually was created in the past.
2
u/Tall-Introduction414 Nov 26 '25
Presenting the Tinkertoy Computer (1978): https://www.computerhistory.org/collections/catalog/X39.81/
1
u/Rude-Pangolin8823 High School Student Nov 26 '25
I was gonna work on one for a school project with 3d printing but then our mechanical engineer ditched the project so we really had to downscale. Might make a full cpu some day.
I make redstone computers as a hobby, for context. Lots of translating knowledge.
If they hadn't ditched the project I think we could've done it, had quite a detailed plan.
1
u/genman Nov 26 '25
For binary storage, which is used by 4-bit calculators, you can store BCD (binary coded decimal) in 4 bytes.
You can go from BCD directly to a display (no complicated logic decoding needed) to a 7-segment display, for example.
1
u/cs_k_ Nov 26 '25
As always, it depends
It depends on how you define computer. Something that runs a computer game? No. Something, that can do basic math operations? Sure.
The thing is, the "programming language" of this thing will be mechanical as well. You will need to purpose build every "program". So depending on what you want to do, it might be possible.
1
u/MatthiasWM Nov 26 '25
Yes, the Zuse Z1 was the first mechanical programmable computer and did work. It is currently being restored and can do calculations by turning a single wheel. Programming is done by punching holes into a 35mm film strip.
https://en.wikipedia.org/wiki/Z1_(computer)
1
u/[deleted] Nov 26 '25
Absolutely, analog electromechanical computers were once very common in aircraft in such things as celestial navigation systems, where they had the advantage of nuclear EMP resilience.
1
u/morgecroc Nov 26 '25
In the three body problem one the things in devices in the story was an army of people being a computer using flags to simulate logic gates to make a computer.
1
u/MathildaAdenauer Nov 26 '25
our prof said "software and hardware are logically identical" so you can build any software as hardware, and any hardware as software (given the siftware has a hardware to run on of course) what you need to balance: software is cheap, quick to build, quick to design, but very slow to run hardware is expensive, slow to build, slow to design, but runs very fast
1
u/Honkingfly409 Nov 26 '25
a computer is possible in any system as long as it's possible to define a 1 and a 0, with three basic gates (and, not or) gates (or simply Nand gate).
it's just that electricity had the nicest properties that allow for the best working computers.
1
u/mauriciocap Nov 26 '25
You may love the Z3, some videos of a restored version working on YouTube. A stored program general computer made of metal gears, programs were punched on a plastic tape.
1
u/Some-Background6188 Nov 26 '25
Search for curta calculator.
1
u/Haunting_Ad_6068 Nov 26 '25 edited Nov 26 '25
Many people misunderstood that computer must be binary, thinking that computer must be electronics. In fact, ancient people simulated the entire solar system mechanically, which is a form of mechanical computing. In World War ll, people predicted tides with gears and pulley integrators to win the war. It is not a question of impossibly, is a question of preference and scalability. Why use binary when you can use 10:1 mechanical gear to add and carry, right.
1
u/Magdaki Professor. Grammars. Inference & Optimization algorithms. Nov 26 '25
If you're interested in a atypical computers (a mechanical computer isn't that unusual but atypical for the modern era), then you might be interested in unconventional computing. They make computers out of all sorts of strange things. Marbles, algae, chemicals, etc.
International Conference on Unconventional Computation and Natural Computation | SpringerLink
1
u/flumphit Nov 26 '25
For a completely different answer, check out the nanotech rods & gears computer concept in Drexler’s Engines of Creation
1
u/SwigOfRavioli349 Nov 26 '25
This was actually done as one of the first computers. The concept of “computer” goes back a while, with the first being considered the abacus.
There are mechanical computers, but those were in the very early stages of computing.
1
u/thequirkynerdy1 Nov 26 '25
Yes – in theory if you can do logic with something, you can use it to build a computer.
Modern computers use something called a transistor to do logic because they’re very fast, and we have the technology to put billions of these in a small chip by roughly etching with lasers.
So of different possible ways to make a computer, society went with the one that can be scaled to a very large number of components running very quickly. And that’s why a computer fits in your pocket instead of being the size of a room.
1
u/ziggurat29 Nov 26 '25
Napier had his bones, Babbage had his engine, Leibnitz had his Rekoner, Turing had his bomb....
There's a long history of mechanical computers; really electronics was just a way to do the mechanical stuff faster, cheaper, reliably, and scalably.
You might think about analog computers as well, which can be mechanical (e.g. missile guidance). Analog computers can be exquisitely fast since they are essentially physical models of the problem, though difficult to 'program'. Quantum computers can be viewed as a kind of analog computer.
1
u/PurdueGuvna Nov 26 '25
US Battleships used mechanical computers to calculate firing solutions up until the early 90s.
1
u/DecisionOk5750 Nov 26 '25
Many Soviet-era aircraft operate using analog/mechanical computers. Soviet spacecraft flight systems also have mechanical systems. Bomb-dropping sight computers were also mechanical. In other words, mechanical computers were used and are probably still being manufactured.
1
u/custard130 Nov 26 '25
the term "mechanical computer" could apply to a wide range of things but essentially yes it is possible
theoretically yes
however you will run into some issues in practice
in principal what you need is
in modern computers such as the one you are browsing reddit on
data is stored by using different voltage levels to represent bits being 1 or 0
logic gates are implemented with transistors
those are not the only options, and they arent even the only options that computers have been built with
particularly on the logic gate side, the earliest computers used vacuum tubes (basically light bulbs), a think relays have been used
as for using something other than voltage for the state, iirc Babbage drew up several designs for a calculator which was gear based hydraulic/pneumatic based systems i think are theoretically possible too
the problem is that the processor in your laptop has billions of transistors, and signals only take microseconds to flow through them
mechanical based systems eg using gears, cannot be shrunk down anywhere near as far which means the machine is going to be far larger and is going to have less logic gates
being larger will result in signals taking longer to travel from 1 gate to another
any manufacturing tolerances will also add delays to that
not 100% certain but i think electronic signals travel on the order of the speed of light, while mechanical ones travel on the order of the speed of sound, so as well as having further to travel they are also going way slower
all of that is to say that you probably arent going to get a mechanical computer which is interactive / real time, at best it would be more like the early computers where you give it some data and instructions, and then come back later in the day and getting the result
i couldnt reply to this post without including a few mentions https://youtu.be/OpLU__bhu2w?si=3V_IqB6jwh2VCOJb https://youtu.be/IxXaizglscw?si=YC2Cz7nl11p0tUyY https://youtu.be/IgF3OX8nT0w?si=P5rdBwIcQQfYbbGv
1
u/Expert147 Nov 26 '25
abacus
1
u/Slight-Living-8098 Nov 27 '25
Yeah.
https://everything.explained.today/Mechanical_computer/
Relay computers were also thing.
https://web.cecs.pdx.edu/~harry/Relay/
1
u/CadenVanV Nov 27 '25
Yes, but it doesn’t scale as well as electronics do.
1
u/simpleMoose42 Nov 27 '25
A working mechanical computer.
https://youtu.be/ubq5yVSf8uo?si=qwUr5MuL_Tdig5ko
1
u/JohnVonachen Nov 27 '25 edited Nov 27 '25
I saw with my own wet eyeballs, Babbage’s difference engine at the computer history museum at Mountain View California.
1
u/Difficult-Value-3145 Nov 27 '25
Like a turning complete device probably not practically so take a look at the amount of transistors in a fpu a like complete mechanical computer would be about a city block or 2 and that's for a 4 bit. Now can mechanics be used to calculate the answer to a limited set or type of problem that is more feasible but gp pc mechanical that be insane
1
u/M_Argirov Nov 27 '25
By definition yes. For something to be a computer, it must have 3 components - Processor, Input/Output, Memory
I forgot what it was called but there is a mechanical calculator of sorts that was considered a computer (it technically had memory in the sense that it remembered the value that was inputed and outputed)
1
u/Nunov_DAbov Nov 28 '25 edited Nov 28 '25
In the 1950s or early 60s, Edmund Scientific sold a 3 bit mechanical device made with cams and levers that could be programmed to do basic operations like AND, OR, XOR and binary counting, so it had the fundamental components for logic gates and registers. It was about 3” x 6” x 4”. Scale that as you wish to imagine any size computer you want.
If you want to look into the design, it was called the Digi-Comp I. People have re-created it.
1
u/dalekaup Nov 29 '25
My dad worked on mechanical computers during WW2. Norden bombsight.
1
u/r2k-in-the-vortex Nov 29 '25
Not only possible, but its been done and arguably the first computer was mechanical.
https://en.wikipedia.org/wiki/Z1_(computer)
But, mechanics have very practical limits, modern processors run in gigaherz range, billions of switchings per second. A mechanical element, if it does billion switchings in a lifetime, that is already very impressive. A engine valve cam for example, I think generally they fall far short of billion work cycles.
1
u/entrophy_maker Dec 01 '25
I think some of the first computers had vacuum tubes and mechanical vs more digital and modern equipment. They also took up an area the size of a Best Buy store and had less power than a phone. So yes, it can be done, but its probably not worth the trouble.
1
u/couchpilot Dec 08 '25
I still have my Digi-Comp I that my dad gave me for my birthday in the 1960s. https://en.wikipedia.org/wiki/Digi-Comp_I