Picture of Logic Gates: the AND
Logic gates are the building blocks of computers, and transistors have made logic gates cheap, light weight, and reliable.The transistors' three metal legs -- the collector, base, and emitter -- control the flow of electrons and determine whether the charge is high or low, and these zeros and ones make our digital words, pictures  and sounds.

I'll show you the first logic gate I built. I made it at TechShop.

Microprocessors have millions of gates, but some spare change yields a handful of electronics parts, enough to make a logic gate and to see the beauty of computing one bit at a time.

With two transistors you can create your first logic gate, an AND gate. An AND gate responds when both inputs are high or true. If you’re looking for your black cat, Damian, the thing you want must be both a) black and b) a cat.

Is it black?       Is it a cat?      Could it be Damian?
No                     No                    No
No                     Yes                   No
Yes                    No                    No
Yes                    Yes                   Yes

Now let’s go electric!

Step 1: Parts

Two NPN 2222 transistors

Two push button switches (I got mine from a spare parts box at Tech Shop).

Three resistors (two 1 kilo ohm and one 100 ohm)

A battery and connector

4 bits of wire

Step 2: Planning

Picture of Planning
Using a circuit simulator, I checked out how the parts would work together. I had planned using a coin cell battery for its low profile, which worked in a simulation. But reality was a bit trickier, so I tripled the power source. The triple current will probably lessen the LED and transistor life, but they've lasted through dozens of trials.

Remove these adsRemove these ads by Signing Up
Very great and neat project, will any NPN transistor work ?