Everything in this site is original, copyright protected material.
Here is an adder, a machine that adds numbers. Click on the green + and - buttons to operate it. The adder takes the two numbers just below the buttons, adds them together, and spews the result at the bottom.
Here’s how the adder works. It is made of electronic logic gates. Electronic logic gates use electric wires to move numbers around. When a current flows in the wire (marked in cyan), it represents the number 1, and when the current is off (black) it represents the number 0.
There are different kinds of logic gates:
Logic gates can only work on the numbers 1 and 0, but using the Binary numeral system, we can combine 0s and 1s to form larger numbers. Here is a table listing the Binary representation of the numbers 0-7.
So here’s how our adder machine works. We cannot feed it our input numbers directly, but use their binary representation, according to the table above. Those 0s and 1s start flowing in the wires into the logic gates. Each logic gate functions according to its type: either ‘and’ or ‘xor’ (you can distinguish between them according to their shape). The logic gates are cleverly connected to each other, so that the correct result flows out at the bottom!