The 74HC04 is a 14-pin (DIP-14) logic IC that contains six NOT gates, also called inverters. A NOT gate has a single input, and its output is the opposite of that input: when the input is 1 the output is 0, and when the input is 0 the output is 1. The input of the first gate is pin 1 and its output is pin 2. 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 to invert a signal, to make an LED that lights while a button is not pressed, or to build a simple oscillator from two inverters, a resistor and a capacitor.

