AND Gate from Transistors

Build an AND gate using two transistors in series—the output is HIGH only when both inputs are HIGH.

Overview

The AND gate outputs HIGH only when ALL inputs are HIGH. Think of it as "this AND that"—both conditions must be true. This project uses two transistors in series so that both must be on for current to flow. AND gates are essential for decision-making where multiple conditions must be met.

Components Needed

  • 2x Switch
  • 4x 10kΩ resistor
  • 1x LED
  • 2x 2N2222 transistor
  • severalx Wires

Instructions

  1. Gather Your Components

    You'll need two switches for inputs, two 2N2222 transistors, four 10kΩ resistors, an LED for output, wires, breadboard, and 5V power.

  2. Build the AND Gate Circuit

    Wire two transistors in series: the collector of the first connects to the emitter of the second. The second transistor's collector connects to the LED circuit. Both transistors must conduct for current to reach the LED. Each base connects to its switch through a resistor.

  3. Test: Both OFF → LED OFF

    With both switches OFF, neither transistor conducts. The series circuit is completely open—no current flows. The LED is OFF.

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

    Turn the left switch ON while keeping the right OFF. Only one transistor conducts, but the series circuit is still broken by the other transistor. LED stays OFF.

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

    Switch positions—left OFF, right ON. Again, only one transistor conducts. The circuit remains incomplete. LED is still OFF.

  6. Test: Both ON → LED ON

    Turn both switches ON. Now both transistors conduct, completing the series circuit. Current flows through to the LED, and it turns ON! This is the only input combination that produces a HIGH output.

Challenges

  • Build a 3-input AND gate by adding another transistor in series
  • Create a security circuit that requires multiple buttons pressed simultaneously
  • Combine AND with NOT to create a NAND gate
  • Measure the voltage drops across each transistor when conducting
  • Design a circuit where an LED only lights when ALL conditions are met