In this post I have explained how to make a simple transistor latch circuit using just two BJTs and a few resistors.
Introduction
A transistor latch is a circuit which latches ON with a permanent high output in response to a momentary input high signal, and continues to stay in this position as long as its in the powered condition, regardless of the input signal.
A latch circuit can be used to lock or latch the output of the circuit in response to an input signal and sustain the position even after the input signal is removed.
The output may be used to operate a load controlled through a relay, SCR, Triac or simply by the output transistor itself.
Working Description:
The simple latch circuit using transistors I have I have explained in this article can be made very cheaply using just a couple of transistors and some other passive component.
As shown in the figure transistor T1 and T2 are configured in such a manner that T2 follows T1 to either conduct and or to stop the conduction depending upon the trigger received at the input of T1.
T2 also acts as a buffer and produces better response even to very small signals.
When a small positive signal is applied at the input of T1, T1 instantly conducts and pulls the base of T2 to ground.
This initiates T2 which also starts conducting with the received negative biasing offered by the conduction of T1.
It must be noted here that T being NPN device responds to positive signals while T2 being a PNP responds to negative potential generated by the conduction of T1.
Uptill here the function looks pretty ordinary as we witness a very normal and obvious transistor functioning.
How the Feedback from R3 Works to Latch the Circuit
However the introduction of a feedback voltage through R3 makes a huge difference to the configuration and helps to generate the required feature in the circuit, that is the BJT circuit instantly latches or freezes its output with a constant positive supply.
If a relay is used here it would also operate and stay in that position even after the input trigger is completely removed.
The moment T2 follows T1, R3 connects or feeds back some voltage from the collector of T2 back to the base of T1 making it conduct virtually “for ever”.
C1 prevents the circuit from getting activated with false triggers generated from stray pick-ups, and during switch ON transients.
The situation can be restored back either by restarting power to the circuit or by grounding the base of T1 through a push button arrangement.
The circuit can be used for many important applications, especially in security systems and in alarm systems.
Calculations and Formulas:
Threshold Voltage for BJT Activation
The threshold voltage values for turning ON or OFF the NPN and PNP transistors remain the same:
- NPN Transistor Turn-On Voltage (
VBE(on)
):VBE(on) ≈ 0.7V
(for silicon BJTs) - PNP Transistor Turn-On Voltage (
VEB(on)
):VEB(on) ≈ 0.7V
(for silicon BJTs)
These values determine when the base-emitter junction of either transistor is forward biased, enabling current flow and turning the transistor ON.
Base Current (I_B) Calculation
For both NPN and PNP transistors, the base current is still calculated in relation to the collector current:
- Base Current for NPN Transistor (IB(NPN)):
IB(NPN) = IC / βNPN
- Base Current for PNP Transistor (IB(PNP)):
IB(PNP) = IC / βPNP
Where:
IC
is the collector currentβ
is the current gain of the transistor (typically 50–300)
This is relevant for understanding how the transistors maintain their ON or OFF states once latched.
Collector-Emitter Voltage (V_CE)
The voltage across the collector-emitter junction of each transistor is very important for ensuring the transistors remain in the active or saturation regions:
- NPN Transistor Saturation Voltage (VCE(sat)):
VCE(sat) ≈ 0.2V
(when fully ON) - PNP Transistor Saturation Voltage (VEC(sat)):
VEC(sat) ≈ 0.2V
(when fully ON)
These values are relevant when the latch is "set" or "reset," which ensures that both transistors are either fully conducting or completely turned off.
Latch Holding Condition
Once the latch is set or reset, the feedback ensures that the state is maintained regardless of the input signal:
- Feedback Current (IFB):
IFB > IB(required)
Where, the
is the base current needed to keep the transistor latched in its ON state.IB(required)
This feedback signal ensures that once the NPN or PNP transistor is turned on, the circuit remains latched in that state until forced to reset.
Resistor Calculations
Resistors will control the currents flowing through the transistor and define the behavior of the circuit:
- Base Resistor (RB):
RB = (Vinput - VBE(on)) / IB
- Collector Resistor (R_C):
RC = (VCC - VCE(sat)) / IC
Where:
Vinput
is the voltage applied to the base of the transistorVCC
is the supply voltageIB
andIC
are the base and collector currents, respectively
These resistor values help in controlling the current levels to properly switch and latch the circuit.
Switching Time
The switching time for the latch circuit or the time it takes for the latch to change states is determined by the charging and discharging of junction capacitances:
- Rise Time (tr):
tr ≈ (RB * Cj)
- Fall Time (tf):
tf ≈ (RC * Cj)
Where Cj
is the junction capacitance of the transistor which determines how quickly the transistor can switch between states.
Hysteresis Voltage
Hysteresis ensures that once the circuit is latched in a particular state... it remains stable:
- Hysteresis Voltage (Vh):
Vh = IFB * Rfeedback
Where:
Rfeedback
is the feedback resistor value.
This feedback voltage creates a gap between the switching thresholds which helps to prevent oscillation and ensurs stable operation.
Testing procedure can seen in the following video tutorial:
Parts List
- R1, R2, R4 = 10K,
- R3 = 100K,
- T1 = BC547,
- T2 = BC557
- C1 = 1uF/25V
- D1 = 1N4007,
- Relay = As preferred.
Have Questions? Please Comment below to Solve your Queries! Comments must be Related to the above Topic!!