Current mirror-based NTC thermistor linear sampling circuitTechnical Field
The invention belongs to the field of hardware circuit design, and particularly relates to a current mirror-based NTC thermistor linear sampling circuit.
Background
At present, a conventional NTC (negative Temperature coefficient) thermistor sampling circuit is formed by connecting a common resistor and an NTC thermistor in series, that is, the common resistor and the NTC thermistor form a voltage dividing circuit, and voltage sampling is performed at two ends of the NTC thermistor. Because the resistance value of the NTC thermistor (negative temperature coefficient thermistor) is reduced along with the increase of the temperature, the nonlinear relation between the sampling voltage and the resistance value of the NTC thermistor is caused, the current resistance value of the NTC thermistor can not be accurately obtained through the sampling voltage, and the temperature detection is inaccurate.
Disclosure of Invention
In order to solve the problems, the invention provides a current mirror-based NTC thermistor linear sampling circuit.
In order to achieve the purpose, the invention adopts the following technical scheme:
a current mirror-based NTC thermistor linear sampling circuit comprises a reference current generating circuit, two basic current mirrors and an NTC sampling resistor R3, wherein the reference current generating circuit generates reference current Iref, the reference current Iref is copied to a sampling end through the two basic current mirrors, the output current Iout and the reference current Iref of the sampling end are equal at the moment, the sampling end samples the voltage at two ends of an NTC thermistor R3 and outputs the voltage Vout, the resistance value of the NTC thermistor R3 is obtained, the current temperature is obtained according to the relation between the resistance value of the NTC thermistor R3 and the temperature, and therefore linear sampling of the temperature is achieved.
Further, the reference current generating circuit comprises a voltage of 5V, a first PNP type triode Q1 and a first resistor R1, wherein the base electrode and the collector electrode of the first PNP type triode Q1 are connected, the first PNP type triode Q1 works in a saturation region, and the reference current Iref is uniquely determined by the resistor R1.
Furthermore, the two basic current mirrors comprise a positive polarity current mirror and a negative polarity current mirror, the reference current Iref is copied once by the negative polarity current mirror and copied once again to the sampling end by the positive polarity current mirror, and at this time, the output current Iout of the sampling end is equal to the reference current Iref.
Further, the negative polarity basic current mirror is composed of a first PNP type triode Q1 and a second PNP type triode Q2, the base of the first PNP type triode Q1 is connected with the base of the second PNP type triode Q2, the emitter of the first PNP type triode Q1 and the emitter of the second PNP type triode Q2 are both grounded, and the collector of the second PNP type triode Q2 is connected with one end of a second resistor R2; the positive polarity current mirror is composed of a third NPN type triode Q3 and a fourth NPN type triode Q4, the base electrode and the collector electrode of a third NPN type triode Q3 are connected, the base electrode of a third NPN type triode Q3 is connected with the base electrode of a fourth NPN type triode Q4, the emitter electrode of a third NPN type triode Q3 and the emitter electrode of a fourth NPN type triode Q4 are both connected with 5V voltage, and the collector electrode of a third NPN type triode Q3 is connected with the other end of a second resistor R2.
Has the advantages that:
in the NTC thermistor linear sampling circuit based on the current mirror, the sampling voltage and the resistance value of the NTC thermistor present a linear relation, so that the linear temperature acquisition can be realized, and the temperature sampling accuracy is improved compared with the traditional voltage division circuit.
Drawings
FIG. 1 is a schematic hardware circuit diagram of an NTC thermistor linear sampling circuit based on a current mirror according to the present invention;
FIG. 2 is a schematic diagram of a hardware circuit of the reference current generating circuit according to the present invention;
FIG. 3 is a schematic diagram of a hardware circuit of a negative polarity basic current mirror according to the present invention;
description of related elements symbols: the circuit comprises a first resistor R1, a first PNP type triode Q1, a second PNP type triode Q2, a second resistor R2, a third NPN type triode Q3, a fourth NPN type triode Q4, an NTC thermistor R3, an output current Iout, a reference current Iref and an output voltage Vout.
Detailed Description
The invention is further illustrated with reference to the following figures and examples.
The invention provides a current mirror-based NTC thermistor linear sampling circuit, as shown in figure 1, which comprises a reference current generating circuit, a positive polarity current mirror, a negative polarity current mirror and an NTC sampling resistor R3, wherein the reference current generating circuit generates a reference current Iref, the reference current Iref is copied by the negative polarity current mirror once, the positive polarity current mirror copies the reference current Iref to a sampling end again, the output current Iout of the sampling end is equal to the reference current Iref, the sampling end samples the voltage at the two ends of an NTC thermistor R3 and outputs a voltage Vout, the output current Iout of the sampling end is determined by the reference current generating circuit at the front end and is equal to the reference current Iref, so the output voltage Vout is uniquely related to the resistance of the NTC thermistor R3, the resistance of the NTC thermistor R3 is obtained by calculation, and the current sampling temperature is obtained according to the relationship between the resistance of the NTC thermistor R3 and the, thereby achieving linear sampling of temperature.
As shown in fig. 2, the reference current generating circuit includes a voltage of 5V, a first PNP transistor Q1 and a first resistor R1, the base and collector of the first PNP transistor Q1 are connected, the first PNP transistor Q1 operates substantially in the saturation region, and the reference current Iref is uniquely determined by the resistor R1.
As shown in fig. 1 and 3, the negative polarity basic current mirror is composed of a first PNP transistor Q1 and a second PNP transistor Q2, the base of the first PNP transistor Q1 is connected to the base of the second PNP transistor Q2, the emitter of the first PNP transistor Q1 and the emitter of the second PNP transistor Q2 are both grounded, and the collector of the second PNP transistor Q2 is connected to one end of a second resistor R2.
As shown in fig. 1, the positive polarity current mirror is composed of a third NPN transistor Q3 and a fourth NPN transistor Q4, a base and a collector of the third NPN transistor Q3 are connected, a base of the third NPN transistor Q3 is connected to a base of the fourth NPN transistor Q4, an emitter of the third NPN transistor Q3 and an emitter of the fourth NPN transistor Q4 are both connected to a voltage of 5V, and a collector of the third NPN transistor Q3 is connected to the other end of the second resistor R2.
The limitation of the protection scope of the present invention is understood by those skilled in the art, and various modifications or changes which can be made by those skilled in the art without inventive efforts based on the technical solution of the present invention are still within the protection scope of the present invention.