Switch with hysteresis

11575379 · 2023-02-07

Assignee

Inventors

Cpc classification

International classification

Abstract

Switch circuitry including an input terminal (1), said input terminal connected to the base of a first transistor (Q1) via a first resistor (R3), said first transistor being an NPN Bipolar Gate Transistor (Q1), said circuitry further comprising a second resistor (R5) connected between the base of said first transistor (Q1) and ground, and including an output line or terminal (3) connected to the collector of said first transistor (Q1), and wherein the emitter of said first transistor (Q1) is connected to ground (earth), said circuitry further including a second transistor (Q2), said second transistor being a PNP Bipolar Gate Transistor, wherein the collector of said second transistor (Q2) is connected via a third resistor (R8) to the base of said first transistor (Q1), and the emitter of said second transistor (Q2) is connected to said input terminal (1), and wherein the emitter of said second transistor (Q2) is additionally connected to the base of said second transistor (Q2) via a fourth resistor (R11); and the base of said second transistor (Q2) being additionally connected to the output terminal (3) via a fifth resistor (R10) and a diode (D1).

Claims

1. Switch circuitry comprising an input terminal (1), said input terminal connected to the base of a first transistor (Q1) via a first resistor (R3), said first transistor being an NPN Bipolar Gate Transistor (Q1), said circuitry further comprising a second resistor (R5) connected between the base of said first transistor (Q1) and ground, and including an output line or terminal (3) connected to the collector of said first transistor (Q1), and wherein the emitter of said first transistor (Q1) is connected to said ground (earth), said circuitry further including a second transistor (Q2), said second transistor being a PNP Bipolar Gate Transistor, wherein the collector of said second transistor (Q2) is connected via a third resistor (R8) to the base of said first transistor (Q1), and the emitter of said second transistor (Q2) is connected to said input terminal (1), and wherein the emitter of said second transistor (Q2) is additionally connected to the base of said second transistor (Q2) via a fourth resistor (R11); and the base of said second transistor (Q2) being additionally connected to the output terminal (3) via a fifth resistor (R10) and a diode (D1).

2. Circuitry as claimed in claim 1, wherein said diode (D1) is electrically connected between said fourth resistor (R10) and said output line or terminal (3).

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) The present invention is now described by way of example with reference to the accompanying drawings in which:

(2) FIG. 1 shows a known simple switch arrangement;

(3) FIG. 2 shows a known switch arrangement with a comparator;

(4) FIG. 3 shows an example of the invention;

(5) FIG. 4 shows operation of the circuitry of FIG. 3;

DESCRIPTION OF THE PREFERRED EMBODIMENTS

(6) FIG. 1 shows a known simple switch arrangement with input line 1 or terminal (e.g. from a switching source 2) connected via resistor R3 to the base of BJT (NPN) designated Q1. There is included resistor R5 between the base and ground. The output line/terminal 3 is shown, effectively connected to the collector of Q1. Thus, this describes a conventional open collector NPN BJT switch with BJT Q1. R3 is used to limit the current to base and R5 to ensure Q1 is off when there is no voltage at the input.

(7) As mentioned, this circuit has no hysteresis so in a typical open collector NPN switch below there is no Schmitt trigger or hysteresis. Noise on the input can toggle the switch on and off means it can be unstable.

(8) A known solution is to use add a comparator for to add hysteresis. FIG. 2 shows such an arrangement. In addition, the comparator 4 needs another power supply as the comparator needs regulated voltage. These additional requirements/components mean the circuitry is more complicated and expensive.

(9) Invention

(10) In one example, the circuitry provides a switch with hysteresis which is efficient and reliable. FIG. 3 shows an example. As with FIG. 1 there is an input line or terminal 1 (e.g. electrically connected or connectable to a switching source 2) which is connected via resistor R3 to the base of a BJT (NPN) designated Q1. There is included in the circuitry resistor R5, connected between the base of Q1 and ground. The output line or terminal 3 is shown, effectively connected to the collector of Q1, and can be considered an open collector output. The emitter of Q1 is directly connected to ground (earth).

(11) In addition, the circuit includes a further BJT designated Q2 which is a PNP transistor. The collector of Q2 is connected via a resistor R8 to the base of Q1, and the emitter of Q2 is connected to the input line/terminal 1. The emitter of Q2 is also connected to the base of Q2 via resistor R11; the base of Q2 also being connected to the output terminal via a resistor R10 and a diode D1; diode D1 being located between resistor R10 and output line/terminal 3. Optionally the positions of the resistor R10 and diode may be interchanged ie. The resistor R10 may be located (i.e. electrically connected between the diode and terminal 3.

(12) So, the circuitry effectively provides a Schmitt trigger switch by adding a second BJT Q2 which is a PNP BJT, as well as resistors R8, R11, R10 and a diode.

(13) Operation

(14) Input voltage rises to threshold voltage just enough to turn on Q1 through R3. When Q1 turns on, it will also turn on Q2 through R10 and diode. When Q2 turns on, more current is provided to the base of Q1 through R8. This forces the Q1 to “turn on” state. This enhances the turn on current to base of Q1.

(15) Operation

(16) FIG. 4 shows an example of operation of the circuitry of FIG. 3. The set-up is as follows; i) Input toggling on/off with a slow ramp up and down ii) a DC voltage source though a resistor is connected to the Open Collector Output 3. Plots A, B, C show the voltage at points A, B, C respectively in FIG. 3.

(17) As Q1 NPN turns on (output voltage go to zero), the Q1 NPN base voltage shoots up from 0.5V to 0.7V. This is a result of Q2 providing more current to the base. In this example, the turn on voltage (low to high) is 6.2V and the turn off voltage (high to low) is 2.8V. Threshold voltage and hysteresis range can be adjusted by adjusting the resistance values (of which resistors).