TTL AND gate using NAND chip.
The pin connections for the NAND gate IC (called pinouts) are the same as for the OR gate IC Q1: How can you use a NAND gate to make a NOT gate? Hint: look at the truth tables for a NAND and for NOT gate, keeping in mind that one has two inputs and the other only has one input (Hint: there are two ways to do this!). In the lab: use the Quad 2-input NAND chip to build an AND gate. Have the AND gate control an LED as you did with the OR gate.
Interface TTL logic to 120 VAC lamp. In this part of the lab, you will interface lowpower solid state electronics to the "outside world" by switching the 120 VAC lamp on and off using the AND gate from the previous experiment. The AND gate has voltage and current levels compatible with a computer and can not directly control an appliance like a household lamp. Q2: Why? (Hint: think about the voltage and current requirements for a 100W lamp using the formula for power P). You will use the electromechanical relay to control the lamp from the output of the TTL chip. However, since the relay coil requires 12 VDC and the TTL output is only 5 VDC (ON or logic 1), a transistor driver is
needed. Wire up the circuit shown in Figure 3 and test it out. Keep in mind that you will need both 5 V and 12 V on your Protoboard; use both sides of the dual power supply to get these two voltage levels. You also will need to have one common (ground) connection, so be sure that you connect the DC minus terminals of the two sides of the supply together, either directly on the power supply or on the protoboard.