AND Gate Using CD4081 IC

Build an AND gate using the CD4081 quad 2-input AND gate IC—outputs HIGH only when both inputs are HIGH.

Overview

The CD4081 contains four independent 2-input AND gates. An AND gate outputs HIGH only when ALL inputs are HIGH—think of it as "this AND that." This project demonstrates all four input combinations and shows how the gate requires both conditions to be true.

Components Needed

  • 2x Switch
  • 1x LED
  • 1x CD4081 IC
  • 1x 10kΩ resistor
  • severalx Wires

Instructions

  1. Gather Your Components

    Collect the CD4081 IC, two switches, one LED, a 10kΩ resistor, wires, breadboard, and 5V power source.

  2. Identify the CD4081 IC

    The CD4081 has four 2-input AND gates in a 14-pin package. Pins 1 and 2 are inputs to the first gate, pin 3 is its output. Pin 7 is ground (VSS), pin 14 is power (VDD).

  3. Wire the Circuit

    Place the IC on the breadboard. Connect pin 14 to 5V and pin 7 to ground. Connect the two switches to pins 1 and 2. Connect pin 3 (output) to the LED. Use pull-down resistors on the inputs.

  4. Test: Both OFF → LED OFF

    With both switches OFF (to the right), both inputs are LOW. The AND gate requires both inputs HIGH, so with both LOW, the output is LOW and the LED is OFF.

  5. Test: Left ON, Right OFF → LED OFF

    Turn the left switch ON (to the left). Only one input is HIGH—this isn't enough for an AND gate. The LED remains OFF.

  6. Test: Left OFF, Right ON → LED OFF

    Switch positions—left OFF, right ON. Again, only one input is HIGH. The AND gate still outputs LOW, and the LED stays OFF.

  7. Test: Both ON → LED ON

    Turn both switches ON (to the left). Now both inputs are HIGH—the AND condition is met! The output goes HIGH and the LED turns ON. This is the only combination that produces a HIGH output.

Challenges

  • Build a 3-input AND gate using two 2-input AND gates
  • Create a circuit that requires pressing three buttons simultaneously
  • Combine with a NOT gate to create a NAND gate
  • Design a simple combination lock using AND gates