Site icon Homemade Circuit Projects

How to make a Transistor Latch Circuit

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.

Note: Moving C1 from the existing position to across base/emitter of T1 will be more effective in tackling spurious switching response of the circuit, and this will also allow C1 value to be much smaller, may be 0.22uF


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:

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:

Where:

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:

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:

Where, the IB(required) is the base current needed to keep the transistor latched in its ON state.

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:

Where:

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:

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:

Where:

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

PCB Design

Exit mobile version