Logic Frame Co. / How a computer works
ExplainerHow a computer works, built up on a breadboard
Every computer is made of the same few pieces: gates that make decisions, adders that do math, a clock that keeps time, latches that remember and decoders that show the answer. Here's each one on a breadboard, in plain words.
The pictures are drawings that show how each circuit behaves. They aren't photos of a build.
I'm designing a 4-bit computer on breadboards to hang on a wall. Get the build log when something real happens.
A short welcome first, then the build log when something real happens (about two emails a month at most), and the order link first when the Working Edition or kit opens. No deposit, unsubscribe anytime. You'll get one email to confirm first. Details
Start with switches
Inside a computer everything is a signal that is either on or off, high or low, 1 or 0. A logic chip takes those signals in and turns other signals on or off by a fixed rule. Stack enough of those rules and you get something that can add, count and remember.
On a breadboard you can watch it happen: push buttons are the inputs, LEDs are the outputs, and the chips in the middle do the deciding.
1. Logic gates make the decisions

AND and OR
An AND gate turns its output on only when both inputs are on. An OR gate turns it on when either input is on. With buttons you can build both without a chip: two buttons in a row (series) act like AND, because the current has to get through both. Two buttons side by side act like OR, because either one gives it a path.

NOT
A NOT gate, or inverter, flips its one input. When the button isn't pressed, the input is held low by a resistor, so the output is high and the LED is on. Press the button and the LED goes out. It sounds too simple to matter, but every other gate can be built from NOT combined with AND or OR.

XOR
XOR (exclusive OR) is on when the two inputs are different: one pressed and the other not. If neither or both are pressed, it stays off. That "are these different?" test turns out to be exactly what you need to add two binary digits, which is the next step.
2. Two gates make an adder

The half adder
Adding two single binary digits has four cases: 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1 and 1 + 1 = 10 (that's two in binary: a 0 with a 1 carried). The right-hand digit is the sum, and it's on only when the inputs differ, so it's an XOR gate. The carry is on only when both inputs are on, so it's an AND gate.
A full adder adds a third input, the carry coming in from the column to its right. Chain four full adders and you can add two 4-bit numbers, which is what the math part of a small computer (its ALU) does every time it adds.
3. A counter counts in binary

Lights that count
Read a row of LEDs as a binary number and count up one step at a time. The last light flips on every step. The one next to it flips every second step, the next every fourth step, and so on. A counter chip does exactly that each time it gets a tick from the clock.
In a computer, a counter like this is the program counter: it points at the next instruction in memory and moves on by one after each step.
4. A clock keeps everything in step

The tick
A timer chip with a resistor and a capacitor turns itself on and off over and over, which makes a square wave. The capacitor and resistors set how fast. Hook an LED to it and it blinks.
That blink is the computer's clock. On each tick, the counters, latches and registers all take their next step at the same moment, so the parts never get out of order. A slow clock on a breadboard computer lets you watch each step happen.
5. A latch remembers

One bit of memory
Press set and the LED turns on. Let go and it stays on. Press reset and it goes off and stays off. Inside, two gates feed their outputs back into each other, so once the circuit is pushed one way it holds itself there.
That's one bit of memory. Line up four of them with a shared clock and you have a register that holds a 4-bit number, like the result of the adder above.
6. A decoder shows the answer

From binary to a digit
A seven-segment digit is seven LED bars, each with its own wire, plus one shared pin. A decoder chip takes a 4-bit binary pattern in and turns on the bars that draw that number. Change the switches and the digit changes.
That's how a computer's result, or a clock's time, ends up as numbers you can read.
Where these go in my designs

I'm designing two of these as wall pieces, and neither one is built yet.
The Working Edition is a 4-bit computer on breadboards, built from logic chips like the ones on this page, with every wire placed by hand. I've designed it and checked the wiring in simulation, and it isn't built yet. See the design.
The Logic Frame clock is a clock counted by logic chips instead of a microcontroller, with decoder chips driving big red digits. It's designed, not built. See the clock.
The framed piece I sell now, the Display Edition, is circuit art. It's laid out like a breadboard build, but it doesn't power on or compute.
Questions
What is a logic gate?
A tiny circuit that looks at one or two on/off inputs and turns its output on or off by a fixed rule. AND needs both inputs on, OR needs either one, NOT flips its one input, and XOR is on when the two inputs differ.
How does a computer add numbers with logic gates?
In binary, one column at a time. A half adder adds two bits: an XOR gate gives the sum bit and an AND gate gives the carry. A full adder also takes the carry from the column before, and a row of full adders adds whole numbers.
What does the clock do in a computer?
It is a steady on-off signal. Every tick tells the counters, latches and registers to take their next step at the same moment, so the whole circuit moves forward together.
What is a latch in a computer?
The smallest kind of memory. A set-reset latch turns on when you press set and stays on after you let go, until you press reset. It holds one bit.
Can you build a computer on breadboards?
Yes. People build working 8-bit and 4-bit computers on breadboards from standard logic chips. My own breadboard computer, the Working Edition, is designed but not built yet.
Get the build log
One email when something real happens with the breadboard computer: the first board wired, the first program that runs, and when it can be ordered.
A short welcome first, then the build log when something real happens (about two emails a month at most), and the order link first when the Working Edition or kit opens. No deposit, unsubscribe anytime. You'll get one email to confirm first. Details