An OR gate outputs a logic HIGH when one or more of its inputs are HIGH. While you can buy a 74HC32 integrated circuit for under $0.50, understanding how to design and read a discrete circuit diagram of OR gate configurations is critical for custom sensor interfacing, high-voltage logic translation, and repairing legacy industrial controls. In this guide, we will build a robust parallel emitter-follower OR gate using standard bipolar junction transistors (BJTs), analyze its failure modes, and walk through a precise breadboard testing procedure.
The Standard Discrete OR Gate Topology
For discrete logic, we avoid complex multi-emitter transistor setups and instead use a parallel emitter-follower configuration. This topology provides high input impedance and excellent current gain, allowing the gate to drive heavier loads than passive alternatives.
Node Labels and Component Values
- Node A & Node B: Logic Inputs (0V or 5V)
- Node Y: Logic Output
- Node VCC: +5V DC Power Supply
- Node GND: 0V Common Ground
- Q1, Q2: 2N3904 NPN Transistors (General purpose, hFE ≈ 100-300)
- R1, R2: 10kΩ Base Resistors (Limits base current to ~0.43mA)
- R3: 10kΩ Emitter Pull-Down Resistor (Ensures a hard LOW state)
- R4: 330Ω LED Current Limiter
- D1: Standard 5mm Red LED (Visual indicator for Node Y)
Topology Description: Input Node A connects to the base of Q1 through R1 (10kΩ). Input Node B connects to the base of Q2 through R2 (10kΩ). The collectors of both Q1 and Q2 are tied directly to Node VCC (+5V). The emitters of Q1 and Q2 are tied together to form Node Y (the output). Node Y is pulled down to Node GND via R3 (10kΩ). Finally, Node Y connects to the anode of D1 through R4 (330Ω), with the cathode of D1 going to GND.
Why Emitter-Follower Topology Over Diode-OR?
When designing a logic OR gate from scratch, the most common alternative is the passive Diode-OR (two diodes with anodes tied to inputs and cathodes tied to the output). However, the emitter-follower BJT topology wins for almost all practical discrete applications.
| Criteria | Passive Diode-OR | Emitter-Follower BJT OR |
|---|---|---|
| Voltage Drop | 0.7V drop per diode. A 5V input yields a 4.3V output, degrading further if cascaded. | 0.7V VBE drop (4.3V output), but transistor provides current gain to restore signal integrity. |
| Fan-Out / Loading | Poor. Heavy loads on the output drag the input voltage down through the diode. | Excellent. The load is driven by VCC through the collector, isolating the input source. |
| Cascading | Fails after 2-3 stages due to cumulative forward voltage drops. | Can be cascaded multiple times, though logic levels shift by 0.7V per stage. |
| Component Count | 2 Diodes, 1 Pull-down resistor. | 2 Transistors, 3 Resistors. |
The emitter-follower acts as a current buffer. If your OR gate needs to trigger a relay or drive a long cable, the BJT topology sources current directly from the VCC rail via the collectors, preventing your delicate microcontroller GPIO pins from overcurrenting.
Behavior Matrix & Extreme Failure Modes
Understanding how the circuit behaves under normal conditions is only half the battle. On the bench, you must know what breaks at the extremes. Below is the truth table combined with the electrical behavior of the nodes, followed by specific component failure modes.
Normal Operation Behavior Table
| Input A | Input B | Q1 State | Q2 State | Node Y (Output) | What Changes at Node Y? |
|---|---|---|---|---|---|
| LOW (0V) | LOW (0V) | Cut-off | Cut-off | 0V (LOW) | R3 pulls Node Y to GND. LED is OFF. |
| HIGH (5V) | LOW (0V) | Active | Cut-off | 4.3V (HIGH) | Q1 conducts. VCC pushes current through Q1 to Node Y. LED turns ON. |
| LOW (0V) | HIGH (5V) | Cut-off | Active | 4.3V (HIGH) | Q2 conducts. VCC pushes current through Q2 to Node Y. LED turns ON. |
| HIGH (5V) | HIGH (5V) | Active | Active | 4.3V (HIGH) | Both conduct. Current is shared between Q1 and Q2. LED stays ON. |
Extreme Failure Modes (What Breaks)
- Open R3 (Emitter Pull-Down): If R3 fails open or is forgotten, Node Y floats when both inputs are LOW. Your multimeter will read a ghost voltage (typically 1.2V to 2.5V) due to BJT leakage current and the high input impedance of the DMM. The LED may glow faintly.
- Short Q1 Base-to-Emitter: Input Node A becomes clamped to roughly 0.7V. The gate loses its ability to read a HIGH on Input A, effectively turning the OR gate into a simple buffer for Input B only.
- Short Q1 Collector-to-Emitter: Node Y is permanently tied to VCC (+5V) through the low resistance of the shorted transistor. The output ignores both inputs and stays HIGH. The LED remains ON continuously, and R4 will dissipate excess heat.
- Reversed Q2 (Collector/Emitter swapped): The 2N3904 will still conduct in reverse-active mode, but with a drastically reduced hFE (often < 5). Node Y will struggle to reach 4.3V under load, and the LED will be noticeably dimmer when only Input B is HIGH.
Step-by-Step Breadboard Testing Procedure
When transitioning from a schematic to physical hardware, systematic verification prevents chasing ghost faults. Follow these exact steps to breadboard and validate the circuit.
- Prep the Power Rails: Connect your bench power supply to the breadboard rails. Set it to exactly 5.0V. Verify with a multimeter across the red and blue rails before inserting any semiconductors.
- Seat the Transistors: Insert Q1 and Q2 (2N3904) into the breadboard, ensuring their flat sides face you. The pinout from left to right is Emitter (E), Base (B), Collector (C). Space them at least 4 rows apart to avoid crowding.
- Wire the Collectors: Use 22 AWG solid jumper wire to tie the Collector pins of both Q1 and Q2 directly to the +5V red rail.
- Install Base Resistors: Insert one leg of R1 (10kΩ) into the same row as Q1's Base, and the other leg into an empty row to serve as Input Node A. Repeat with R2 for Q2's Base to create Input Node B.
- Tie the Emitters and Pull-Down: Jumper the Emitter pins of Q1 and Q2 together. This junction is Node Y. Insert R3 (10kΩ) from Node Y to the blue GND rail.
- Add the Output Indicator: Insert the anode (long leg) of the LED into Node Y. Place R4 (330Ω) in series with the cathode (short leg), routing the other end of R4 to the GND rail.
- Verify the LOW State: With Inputs A and B left unconnected (floating/LOW via internal leakage, though best practice is to tie them to GND via 10kΩ for testing), measure Node Y. It must read < 0.1V. The LED must be completely dark.
- Inject HIGH Signals: Use a jumper wire to momentarily touch Input Node A to the +5V rail. Node Y should immediately jump to ~4.3V, and the LED should illuminate. Repeat for Node B, then apply +5V to both simultaneously to verify current sharing.
Note on Logic Levels: If you plan to cascade this discrete output into a standard CMOS IC like the 74HC32, be aware that the 4.3V HIGH output is well within the 74HC family's VIH minimum threshold of 3.15V (at a 4.5V supply), ensuring reliable interoperability.
Frequently Asked Questions
Can I use PNP transistors for this circuit diagram of OR gate?
No, not without completely inverting the logic and the power rail references. PNP transistors turn on when the base is pulled lower than the emitter by 0.7V. If you substitute 2N3906 PNP transistors in this exact physical layout, you will create a negative-logic AND gate (or a NOR gate depending on how you define the reference). For standard positive-logic OR operations where a HIGH input yields a HIGH output, NPN transistors in an emitter-follower configuration are required.
Why is my OR gate outputting 4.3V instead of a full 5V HIGH?
This is an inherent characteristic of the BJT emitter-follower topology. The base-emitter junction acts as a forward-biased diode. When 5V is applied to the base, the emitter can only rise to VBase - VBE (5V - 0.7V = 4.3V). If your downstream circuit strictly requires a full 5V rail-to-rail swing, you must add a second common-emitter transistor stage to invert and level-shift the signal, or switch to a dedicated CMOS logic IC.
How do I cascade this discrete OR gate to a standard 74HC32 IC?
You can connect Node Y directly to the input pin of a 74HC32 IC. The 4.3V output from the discrete gate exceeds the 74HC family's minimum HIGH input voltage (VIH), which is typically 3.15V when the IC is powered by 5V. However, do not connect it to a 74HCT32 if the HCT chip is powered by 3.3V, as the 4.3V signal will exceed the absolute maximum ratings of the 3.3V CMOS input protection diodes. Always match voltage domains or use a level shifter.
What happens if I swap the 10kΩ pull-down for a 1kΩ resistor?
Changing R3 from 10kΩ to 1kΩ makes the pull-down 10 times stronger, which improves noise immunity and speeds up the HIGH-to-LOW transition time (fall time) by discharging parasitic capacitance faster. However, it drastically increases the current draw when the output is HIGH. When Node Y is at 4.3V, a 1kΩ pull-down will sink 4.3mA to ground continuously. The 2N3904 can easily handle this, but it wastes power and reduces the available current to drive your actual load (like the LED). Stick to 10kΩ for general-purpose logic, and drop to 1kΩ only if you are switching high-frequency signals (>10kHz).






