A discrete transistor flip flop circuit diagram uses two cross-coupled NPN transistors (like the 2N3904) to create a bistable multivibrator, commonly known as an SR (Set-Reset) latch. The standard 5V configuration requires two 330Ω collector resistors, two 10kΩ base bias resistors, and two 100kΩ pull-up trigger resistors. This topology stores one bit of state without a clock signal, toggling its output only when a momentary low-voltage pulse is applied to the base nodes. Below is the complete design, node analysis, and breadboard validation procedure.
Topology Description and Node Labels
The core of this asynchronous SR flip flop relies on positive feedback. Two NPN transistors (Q1 and Q2) are cross-coupled: the collector of Q1 feeds the base of Q2, and the collector of Q2 feeds the base of Q1. When power is applied, minor manufacturing asymmetries cause one transistor to conduct slightly more, driving its collector voltage down. This low voltage is fed to the opposite base, keeping that transistor cut off, which in turn allows its collector to pull high, further saturating the first transistor. The circuit rapidly snaps into one of two stable states.
- Node C1: Q1 Collector (Output Q')
- Node B1: Q1 Base (Reset Input)
- Node C2: Q2 Collector (Output Q)
- Node B2: Q2 Base (Set Input)
Design Walkthrough: Picking Real Component Values
Designing a reliable latch requires calculating resistor values based on the transistor's DC current gain (hFE) and the load requirements. We will assume a 5V DC supply, standard 2N3904 NPN transistors (minimum hFE of 100 at 10mA), and standard red indicator LEDs (Forward Voltage Vf = 2.0V, Target Current If = 10mA).
1. Collector Resistors (Rc1, Rc2)
The collector resistors limit current through the LEDs and provide the pull-up voltage for the opposite transistor's base. Using Ohm's Law:
Rc = (Vcc - Vf_LED - Vce_sat) / If
Rc = (5.0V - 2.0V - 0.2V) / 0.010A = 280Ω
We select the nearest standard E12 value: 330Ω. This yields a safe LED current of ~8.5mA.
2. Base Bias Resistors (Rb1, Rb2)
These resistors connect the cross-coupled collectors to the opposite bases. They must supply enough base current (Ib) to drive the transistor into hard saturation. We apply an overdrive factor of 5 to ensure the transistor acts as a solid switch, immune to hFE variations.
Required Ib = (If / hFE) * Overdrive = (10mA / 100) * 5 = 0.5mA
Rb = (Vcc - Vbe) / Ib = (5.0V - 0.7V) / 0.0005A = 8,600Ω
We select the nearest standard value: 10kΩ. This provides ~0.43mA of base drive, sufficient for saturation.
3. Trigger Input Resistors (Rt1, Rt2)
These connect the base nodes to Vcc through momentary pushbuttons (which pull to ground). They act as pull-ups to keep the base high when the switch is open, and limit current when the switch is closed. A value of 100kΩ is ideal: it easily overcomes the 10kΩ cross-coupling pull-down when the opposite transistor is saturated, but limits switch current to a negligible 50µA.
Behavior Table and State Transitions
Unlike edge-triggered D flip flops (like the Texas Instruments SN74HC74), this discrete SR latch is level-sensitive and asynchronous. The outputs respond immediately to input changes.
| Set Switch (Node B2) | Reset Switch (Node B1) | Q1 State (Node C1) | Q2 State (Node C2) | System Behavior |
|---|---|---|---|---|
| Open (High) | Momentary Close (Low) | OFF (High) | ON (Low) | Reset: Q2 LED illuminates, state latches. |
| Momentary Close (Low) | Open (High) | ON (Low) | OFF (High) | Set: Q1 LED illuminates, state latches. |
| Open (High) | Open (High) | Previous | Previous | Memory: Circuit holds the last stable state. |
| Closed (Low) | Closed (Low) | ON (Dim) | ON (Dim) | Invalid: Both bases forced low, both LEDs glow dimly. Releasing both simultaneously causes a race condition. |
Discrete Transistors vs. Logic ICs (74HC74)
Why build a discrete transistor flip flop circuit diagram when dedicated logic ICs exist? The choice depends on your drive requirements and educational goals.
| Criteria | Discrete 2N3904 SR Latch | 74HC74 D Flip-Flop IC |
|---|---|---|
| Current Drive | High (~10-20mA direct from collector) | Low (~4mA max per pin, requires ULN2803 for relays) |
| Triggering | Asynchronous (Level-triggered SR) | Synchronous (Edge-triggered via Clock pin) |
| Component Count | High (2 transistors, 6 resistors, 2 switches) | Low (1 IC, 2 switches, decoupling cap) |
| Failure Visibility | Excellent (can probe every node and junction) | Poor (internal silicon nodes are inaccessible) |
Choose Discrete When: You need to directly drive small relays, high-brightness LEDs, or you are teaching fundamental semiconductor physics and positive feedback loops.
Choose 74HC74 When: You are building synchronous digital state machines, shift registers, or need to cascade multiple flip flops on a shared clock bus.
Extreme Failure Modes: Opens and Shorts
Understanding what breaks at the extremes is critical for bench debugging. Here is how the topology fails when specific elements degrade.
- Rb1 Opens (Base Bias Resistor 1): Q1's base loses its pull-up path from Q2's collector. Q1 cuts off. Consequently, Node C1 floats high to Vcc (minus LED drop), which feeds massive current through Rb2 into Q2's base. Q2 saturates hard. The circuit permanently locks into the Reset state. Diagnostic: Measure Node B1; it will read ~0.6V (leakage) instead of the expected ~0.7V or 0V.
- Node C1 Shorts to Ground: Q1's collector is forced to 0V. This pulls Q2's base low via Rb2, cutting Q2 off. With Q2 off, Node C2 rises to Vcc, feeding current through Rb1 to saturate Q1. However, because Node C1 is physically shorted to ground, Q1 will overheat and likely destroy the transistor junction due to unchecked current flow through Rc1. Diagnostic: Rc1 will be hot to the touch; measure 0V at Node C1 regardless of switch inputs.
- Trigger Switch Shorted (Rt1 path permanently grounded): Q1's base is held low. Q1 remains cut off, Q2 remains saturated. The circuit ignores the Set switch entirely, locked in Reset.
Step-by-Step Breadboard Testing Procedure
Follow this sequence to build and verify the circuit without chasing ghost faults.
- Power and Decoupling: Connect 5V to the positive rail and GND to the negative rail. Place a 100nF ceramic decoupling capacitor across the rails near the center of the board to prevent high-frequency parasitic oscillation.
- Place Active Devices: Insert the two 2N3904 transistors (flat side facing you: Emitter, Base, Collector). Connect both Emitters directly to GND.
- Collector Loads: Insert the 330Ω resistors from the 5V rail to each Collector. Insert the LEDs in series with the collector resistors (Anode to resistor, Cathode to collector). Verify: Power on. Both LEDs should illuminate dimly or one will snap fully ON while the other stays OFF due to breadboard parasitics.
- Cross-Coupling: Connect the 10kΩ resistors. Run one from Q1 Collector to Q2 Base, and the second from Q2 Collector to Q1 Base. Verify: The circuit should now snap definitively into one stable state (one LED bright, one dark).
- Trigger Network: Connect the 100kΩ resistors from 5V to each Base. Connect momentary pushbuttons from each Base to GND.
- Final Validation: Use a digital multimeter (DMM) in DC voltage mode. Probe Node C1 and Node C2. Press the Set switch. The DMM should read ~0.2V (Vce_sat) on the active side and ~3.0V (Vcc - Vf_LED) on the inactive side. Toggle the Reset switch to confirm the voltages swap.
Frequently Asked Questions
How do I add a clock signal to this flip flop circuit diagram?
Converting an asynchronous SR latch into a clocked flip flop requires adding a steering network. You can achieve this by placing two additional NAND gates (using a 74HC00) at the inputs, feeding the clock signal into the second input of each gate. However, if you need a true edge-triggered master-slave configuration, the discrete component count becomes unwieldy (requiring 6+ transistors and precise RC timing networks). At that point, it is vastly more reliable to abandon the discrete topology and use a dedicated 74HC74 IC.
Why is my flip flop circuit diagram oscillating instead of latching?
If your LEDs are flashing alternately like an astable multivibrator, your circuit is suffering from parasitic capacitance or delayed feedback. This usually happens on solderless breadboards due to long, looping jumper wires acting as antennas, or from using high-value base resistors (e.g., 100kΩ instead of 10kΩ) which slow down the transistor switching speed. Ensure your base resistors are 10kΩ or lower, keep cross-coupling leads as short as possible, and verify your 100nF decoupling capacitor is physically close to the transistor emitters.
Can I use PNP transistors instead of NPN in this flip flop topology?
Yes, but the entire circuit polarity must be inverted. For a PNP (e.g., 2N3906) bistable multivibrator, the Emitters connect to the positive 5V rail, and the Collector resistors pull down to GND. The cross-coupling remains identical (Collector to opposite Base), but the trigger switches must now pull the Base nodes High (to Vcc) to turn the transistors off, while the base bias resistors pull the bases Low to turn them on. The logic states will also be inverted: a 'Set' condition will result in a High voltage at the collector rather than a Low voltage.






