The 74HC08 is a 14-pin (DIP-14) logic IC that contains four two-input AND gates. The output of an AND gate is 1 only when both of its inputs are 1; if either input is 0, the output is 0. The inputs of the first gate are pins 1 and 2 and its output is pin 3. It runs from 2 to 6 V; pin 14 goes to the supply (VCC) and pin 7 to GND. Unused inputs must not be left floating: tie them to GND or VCC, otherwise the output behaves unpredictably and the chip draws needless current. Connect an LED with a 470 Ω to 1 kΩ resistor to an output to see the result directly. More than 6 V damages the chip, so put a 5 V regulator in between when you use a 9V battery. It is used where two conditions must hold at the same time, for example an LED that lights only while two buttons are pressed together, or a signal that an enable input lets through or blocks.

