How do computers know what to do with binary 1’s and 0’s?

326 views

I’m very interested in learning how computers work, but can’t seem to find the exact information I’m looking for. My understanding is, and **please** correct me if I’m wrong, is that if you press the letter “A” on a keyboard, a circuit underneath will close which sends electricity to wires, and based on the combination of voltages on the wires, the computer outputs an “A”. But how does the computer know what do to with voltages? What do the voltages represent? At what point does any of this information get converted into binary, and once it does, what happens?

I don’t expect someone to be able to explain this like I’m five. For me, it’s a difficult, but really interesting subject. Any clarification and dumbing down is appreciated! I’m really hoping to get a better grasp on my understanding of all this.

Edit: I should’ve made the title “How do computers work?” Still wondering how computers know what to do with 1’s and 0’s, though.

In: 0

13 Answers

Anonymous 0 Comments

> But how does the computer know what do to with voltages?

It doesn’t know anything at that level. Voltage at a given point just does stuff based on physics. When you turn a light on, the light bulb doesn’t “know” to turn on. It makes light based on that the physics of enough current flowing through a filament makes light. Computers on the lowest level are like that.

You can visualize a computer as a giant machine where dropping a marble just pushes on stuff which pushes on other stuff and so on.

> What do the voltages represent?

In digital electronics, high voltages (eg, 5V) = 1, low voltages (eg, 0.7V and below) = 0

> At what point does any of this information get converted into binary, and once it does, what happens?

A huge chain of logic circuits. Here’s a machine that [adds in binary](https://www.youtube.com/watch?v=GcDshWmhF4A) made from wood and marbles. Digital electronics is very similar to that, just electric and much, much bigger.

As to how you get to say text, this is extremely oversimplified, but.

1. At a point in the past a bunch of people got in a room and came up with an alphabet, and decided that ‘A’ is in place #65.
2. 65 in decimal is 1000001 is binary, that’s just math.
3. When you press the A key, that’s wired to sending 1000001 over a set of wires. That is wire #1 gets a 5V, wire #2 gets no voltage, and so on. The keyboard is just physically wired such that pressing on a given key sends a given signal to a computer.
4. Inside a computer’s memory, there’s a table where there’s a picture of an ‘A’ in the 65th cell in that table.
5. The video hardware ends up drawing that picture on the screen.

That any of this does something useful comes down to that a bunch of people made some rules and systems that produce something useful when you press a key.

You are viewing 1 out of 13 answers, click here to view all answers.