A functional discrete nand gate circuit diagram using Resistor-Transistor Logic (RTL) requires two NPN bipolar junction transistors (BJTs) wired in series for the pull-down network. For a standard 5V logic system, use two 2N3904 NPN transistors, two 10kΩ base resistors, and a single 1kΩ collector pull-up resistor. The logic output is taken directly from the top transistor's collector. When both inputs are HIGH (5V), both transistors saturate, pulling the output LOW (≈0.2V). If either input is LOW, the series path to ground breaks, and the pull-up resistor forces the output HIGH.
RTL NAND Gate Topology and Node Labels
Unlike integrated circuits where the internal silicon topology is hidden, a discrete RTL design forces you to manage every node and current path. The series configuration of the NPN transistors is what creates the NAND logic function. If we used a parallel configuration, we would build a NOR gate instead.
Here is the exact node mapping for the breadboard layout:
- Node VCC: 5V DC supply rail.
- Node GND: 0V common ground.
- Node IN_A / IN_B: Logic inputs (0V or 5V).
- Node BASE_A / BASE_B: Junction between the input switches and the 10kΩ base resistors.
- Node MID: The critical series junction connecting the Emitter of Q1 to the Collector of Q2.
- Node OUT: The Collector of Q1, tied to the 1kΩ pull-up resistor and the output indicator LED.
Before wiring, verify your components against this specification sheet to ensure the biasing currents remain within safe limits for small-signal transistors.
| Designator | Component / Value | Key Specifications | Circuit Purpose |
|---|---|---|---|
| Q1, Q2 | 2N3904 NPN BJT | Vce_max=40V, Ic_max=200mA, hFE≈100 | Series pull-down switches; Q1 is top, Q2 is bottom. |
| R1, R2 | 10kΩ Carbon Film | 5% tol, 1/4W | Base current limiting. Limits Ib to ≈0.43mA when input is 5V (assuming 0.7V Vbe drop). |
| R3 | 1kΩ Carbon Film | 5% tol, 1/4W | Collector pull-up to VCC. Sources ≈4.8mA when output is pulled to ground. |
| R4 | 330Ω Carbon Film | 5% tol, 1/4W | Output LED current limiting. Sets LED current to ≈9mA. |
| D1 | 5mm Red LED | Vf=2.0V, If_max=20mA | Visual logic state indicator (illuminates when OUT is HIGH). |
Logic Behavior and Failure-Mode Matrix
Understanding what happens when the circuit operates normally is only half the battle. On the bench, you need to know exactly how node voltages shift when a component fails or a solder joint goes cold. The following tables map both the ideal logic behavior and the extreme failure modes.
| IN_A | IN_B | Q1 / Q2 State | Node MID Voltage | Node OUT Voltage | Logic OUT |
|---|---|---|---|---|---|
| 0V (LOW) | 0V (LOW) | Cutoff / Cutoff | 0V (Floating) | 5.0V (HIGH) | 1 |
| 5V (HIGH) | 0V (LOW) | Saturation / Cutoff | ≈0.2V (Vce_sat of Q1) | 5.0V (HIGH) | 1 |
| 0V (LOW) | 5V (HIGH) | Cutoff / Cutoff | 0V | 5.0V (HIGH) | 1 |
| 5V (HIGH) | 5V (HIGH) | Saturation / Saturation | ≈0.9V (Vce_sat Q2 + Vce_sat Q1) | ≈0.2V (LOW) | 0 |
Notice the anomaly in the (0V, 5V) state: Q2 is technically biased ON, but because Q1 is in cutoff, no collector current can flow through Q2. Q2 operates in an unsaturated, quasi-active state with virtually zero current, leaving Node MID at 0V.
Never leave IN_A or IN_B floating (unconnected) on a discrete BJT gate. Unlike CMOS inputs which have high impedance and will oscillate wildly if floating, a floating BJT base can act as an antenna, picking up 50/60Hz mains hum and causing the transistor to partially conduct, resulting in a degraded, unstable output voltage.
| Fault Condition | Effect on Node OUT | Resulting Logic Behavior |
|---|---|---|
| R1 (Base A) Shorted | Q1 base tied directly to IN_A. If IN_A hits 5V, excessive Ib flows, potentially destroying Q1's base-emitter junction. | Catastrophic failure. Output stuck LOW or component emits magic smoke. |
| R3 (Pull-up) Open | Node OUT loses its path to VCC. The 330Ω LED resistor becomes the only weak pull-up. | Output floats when inputs are not both HIGH; LED glows dimly or fails to illuminate entirely. |
| Q1 C-E Shorted | Node MID tied directly to Node OUT. The series chain is bypassed. | Gate degrades into a simple buffer for Q2. Output goes LOW if IN_B is HIGH, completely ignoring IN_A. |
| Q2 C-E Open | Path to GND is permanently broken, regardless of Q1's state. | Output stuck HIGH (5V) regardless of input states. NAND function is defeated. |
Why Discrete RTL Over 74HC00 CMOS?
If you just need a NAND gate for a digital project, you would grab a 74HC00 quad NAND IC. So why build a discrete nand gate circuit diagram from scratch? The choice comes down to educational value, custom voltage thresholds, and high-current drive scaling.
| Criteria | Discrete 2N3904 RTL | 74HC00 CMOS IC |
|---|---|---|
| Propagation Delay | Slow (≈1µs to 5µs due to BJT storage time and Miller capacitance). | Fast (≈15ns at 5V). |
| Input Threshold | Fixed at Vbe ≈ 0.65V. Highly predictable for analog-to-digital interfacing. | Typically 50% of VCC (≈2.5V), varies with temperature and silicon lot. |
| Output Drive (Sink) | Easily scalable. Swap R3 for 100Ω and sink 50mA directly to drive a relay coil. | Limited to ≈25mA per pin. Requires an external driver transistor for heavy loads. |
| Static Power Draw | High. Draws continuous current through R3 and the saturated transistors when output is LOW. | Negligible (nanoamps). Only draws significant current during logic transitions. |
Choose the discrete RTL topology when you are teaching semiconductor physics, need a custom switching threshold below 1V, or need to sink a heavy load without adding a secondary driver stage. Choose the 74HC00 when you need speed, low power, and high fan-out (the ability to drive multiple subsequent logic gates without voltage sag).
Step-by-Step Breadboard Testing Procedure
Follow this exact sequence to build and verify the circuit. Skipping the verification steps is the most common reason hobbyists end up chasing ghost bugs in multi-stage logic projects.
- Establish Power Rails: Connect your bench power supply to the breadboard rails. Set it to 5.0V DC. Verify with a multimeter before inserting any semiconductors.
- Place the Transistors: Insert Q1 and Q2 into the breadboard with their flat sides facing you. The pinout from left to right is Emitter, Base, Collector. Leave at least three rows of space between Q1 and Q2 to accommodate the series jumper.
- Wire the Series Pull-Down: Use a short jumper wire to connect the Emitter of Q1 (top left pin) directly to the Collector of Q2 (bottom right pin). This forms Node MID.
- Install Base Resistors: Insert one end of R1 and R2 into the Base pins of Q1 and Q2, respectively. Route the other ends to separate empty rows to serve as your IN_A and IN_B terminals.
- Wire the Pull-Up and Load: Connect R3 between the VCC rail and the Collector of Q1. Connect the anode (long leg) of D1 to the Collector of Q1, and route the cathode through R4 to GND.
- Ground the Emitters: Connect the Emitter of Q2 (bottom left pin) directly to the GND rail.
- Test the (0,0) State: Tie both IN_A and IN_B to GND. Power the circuit. The LED should illuminate brightly. Measure Node OUT with your DMM; it should read 5.0V.
- Test the (1,1) State: Move both IN_A and IN_B jumpers to the 5V rail. The LED must turn off completely. Measure Node OUT; it should read between 0.1V and 0.3V (the combined Vce_sat of both transistors).
If your Node OUT reads 0.8V or higher in the (1,1) state, your transistors are not fully saturating. This happens if the base current (Ib) is too low relative to the collector current (Ic). To fix this, drop R1 and R2 from 10kΩ to 4.7kΩ to double the base drive current, forcing the BJTs deeper into saturation and pulling the output closer to a true 0V logic LOW.
Building a discrete nand gate circuit diagram bridges the gap between abstract Boolean algebra and physical electron flow. By mapping the node voltages and understanding the failure modes of the series BJT topology, you gain the diagnostic intuition required to troubleshoot complex digital systems at the component level.






