1. Logic Basics
Electricity
There are protons that are positively charged. There are electrons that are negatively charged. The electrons orbit the protons. Opposite charged attract. Like charges repel, wait thats were we get electricity!
Get a piece of metal, oh look the charge is balanced, let's knock it out of its balanced state.
Shove some electrons in and boom, we get some unhappy electrons.
Now add some wires and we get electrcity.
Voltage meansures electron unhappiness.
Current measures how many electrons per second are moving past a point.
In the past, we've used valves. Now we use transistors.
Specifically, we are using the MOSFETs. The G means gate, D is drain or output, and S is the source. Voltage represents bits (9V=1, 0V=0).
They come in two different types.
Now we can combine these types to make gates. Let's make a NOT gate.
We can also bundle wires to cut down on a million NOT gates.
NAND Gate
AND Gate
NOR Gate
OR Gate
We can combine these gates to get specific outputs.
Now there is a cool little property with NAND, its universal. So we can make all other gates with just an NAND