Temperature sampling circuit and system and automobile
By designing a temperature sampling circuit that is suitable for different types of temperature sensors, the problem that traditional circuits cannot be compatible with multiple sensors is solved, and the hardware version is reduced and the accuracy is improved, ensuring that the accuracy meets the standards in high and low temperature environments.
Patent Information
- Application Number
- CN202420566425.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-18
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2034-03-18
AI Technical Summary
Traditional temperature sampling circuits can only be used for one type of temperature sensor, which leads to the need to change hardware parameters when replacing the temperature sensor type, resulting in confusion in hardware version management and the accuracy does not meet the standards in high and low temperature environments.
A temperature sampling circuit is designed, including a voltage-dividing sampling circuit, an amplification circuit and a selection circuit. By adjusting the gate state according to the type of temperature sensor, the voltage-dividing sampling circuit and the amplification circuit are adapted to different types of temperature sensors to achieve accuracy. Match and provide multiple magnifications through gain adjustment circuits to accommodate different types of temperature sensors.
It realizes compatible sampling of various types of temperature sensors, reduces changes and maintenance of hardware versions, improves the adaptability and accuracy of the temperature sampling circuit, and ensures the accuracy meets the standards in high and low temperature environments.
Smart Images

Figure CN222087166U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of temperature detection technology, and in particular to a temperature sampling circuit, system and automobile. Background Art
[0002] Currently, the automotive field needs to sample multiple types of temperature sensors and meet the accuracy requirements of high and low temperature environments. However, traditional temperature sampling circuits can only be applied to one type of temperature sensor, and there is a situation where the accuracy does not meet the standard in high and low temperature environments. As a result, when the type of temperature sensor is changed, the hardware parameters of the temperature sampling circuit need to be changed again, which easily leads to confusion in hardware version management. Utility Model Content
[0003] Based on this, it is necessary to provide a temperature sampling circuit, system and automobile to address the above technical problems.
[0004] In a first aspect, the present application provides a temperature sampling circuit, comprising:
[0005] The voltage-dividing sampling circuit is used to connect the temperature sensor;
[0006] an amplifier circuit, used to amplify and output the received divided voltage sampling signal according to the type of the temperature sensor;
[0007] The selection circuit is connected between the amplification circuit and the voltage divider sampling circuit, and is used to adjust the selection state based on the type of the temperature sensor to connect the voltage divider sampling circuit and the amplification circuit, so that the voltage divider sampling circuit performs voltage divider sampling on the output signal of the temperature sensor based on the type of the temperature sensor and outputs the voltage divider sampling signal.
[0008] In one of the embodiments, the selection circuit includes a switch unit;
[0009] The first fixed end of the switch unit is connected to one end of the temperature sensor, the second fixed end of the switch unit is connected to the other end of the temperature sensor, and the movable end of the switch unit is connected to the amplifier circuit.
[0010] In one embodiment, the voltage division sampling circuit includes:
[0011] A first resistor, one end of the first resistor is connected between the other end of the temperature sensor and the second fixed end, and the other end of the first resistor is grounded;
[0012] a second resistor, one end of the second resistor being connected between one end of the temperature sensor and the first fixed end, and the other end of the second resistor being connected to a reference power supply;
[0013] a third resistor, one end of the third resistor being connected between one end of the temperature sensor and the first fixed end;
[0014] a fourth resistor, one end of which is connected between the other end of the temperature sensor and the second fixed end;
[0015] A first switch tube, wherein a first end of the first switch tube is connected to the other end of the third resistor, and a second end of the first switch tube is connected to a control end of the first switch tube and is connected to a reference power supply;
[0016] A second switch tube, wherein a first end of the second switch tube is connected to the other end of the fourth resistor, and a second end of the second switch tube is connected to the control end of the second switch tube and is grounded.
[0017] In one embodiment, the voltage division sampling circuit further includes:
[0018] a fifth resistor, one end of which is connected between the other end of the temperature sensor and the second fixed end;
[0019] A third switch tube, wherein a first end of the third switch tube is connected to the other end of the fifth resistor, and a second end of the third switch tube is connected to the control end of the third switch tube and is grounded.
[0020] In one embodiment, the first switch tube is a PMOS tube; the second switch tube and the third switch tube are both NMOS tubes.
[0021] In one embodiment, the amplifier circuit includes:
[0022] An operational amplifier, wherein a positive input terminal of the operational amplifier is connected to the selection circuit;
[0023] a sixth resistor, one end of the sixth resistor being connected to the inverting input terminal of the operational amplifier, and the other end of the sixth resistor being connected to the output terminal of the operational amplifier;
[0024] The gain adjustment circuit is connected to the inverting input terminal of the operational amplifier and is used to perform gain adjustment on the voltage-divided sampling signal based on the type of the temperature sensor.
[0025] In one embodiment, the gain adjustment circuit includes:
[0026] a seventh resistor, one end of the seventh resistor being connected between the inverting input terminal of the operational amplifier and one end of the sixth resistor;
[0027] A fourth switch tube, wherein a first end of the fourth switch tube is connected to the other end of the seventh resistor, and a second end of the fourth switch tube is connected to the control end of the fourth switch tube and is grounded.
[0028] In one embodiment, the gain adjustment circuit further includes:
[0029] an eighth resistor, one end of the eighth resistor being connected between the inverting input terminal of the operational amplifier and one end of the seventh resistor;
[0030] A fifth switch tube, wherein a first end of the fifth switch tube is connected to the other end of the eighth resistor, and a second end of the fifth switch tube is connected to the control end of the fifth switch tube and is grounded.
[0031] In a second aspect, the present application also provides a temperature sampling system, including a controller and the temperature sampling circuit provided in the first aspect of the present application; the controller is respectively connected to the control end of the voltage divider sampling circuit, the control end of the amplification circuit and the control end of the selection circuit.
[0032] In a third aspect, the present application also provides a car, comprising the temperature sampling system provided in the second aspect of the present application.
[0033] The above-mentioned temperature sampling circuit, system and automobile adjust the selection state according to the type of temperature sensor through the selection circuit, so that the voltage divider sampling circuit is adjusted to obtain the sampling accuracy matching the type of temperature sensor, and then the voltage divider sampling signal is output to the amplifier circuit, and the voltage divider sampling signal is amplified and output by the amplifier circuit based on the type of temperature sensor to adjust the matching gain, which effectively solves the problem of needing to change the hardware parameters again when the temperature sensor type is changed, which easily causes confusion in hardware version management. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a schematic diagram of the overall structure of a temperature sampling circuit in one embodiment;
[0035] Figure 2 A schematic diagram of a connection structure of a selection circuit of a temperature sampling circuit in one embodiment;
[0036] Figure 3 Schematic diagram of the structure of a voltage-dividing sampling circuit of a temperature sampling circuit in one embodiment;
[0037] Figure 4 It is a schematic diagram of the structure of a voltage-dividing sampling circuit of a temperature sampling circuit in another embodiment;
[0038] Figure 5 is a schematic diagram of the structure of an amplifier circuit of a temperature sampling circuit in an embodiment;
[0039] Figure 6 is a schematic structural diagram of an amplifier circuit of a temperature sampling circuit in another embodiment;
[0040] Figure 7 FIG. 1 is a schematic diagram of a specific structure of a temperature sampling circuit in an embodiment.
[0041] Description of reference numerals:
[0042] Voltage divider sampling circuit 102, amplifier circuit 104, selection circuit 106, first fixed end S1 of the switch unit, second fixed end S2 of the switch unit, movable end D of the switch unit, operational amplifier X1, first switch tube U1, second switch tube U2, third switch tube U3, fourth switch tube U4, fifth switch tube U5, first resistor R1, second resistor R2, third resistor R3, fourth resistor R4, fifth resistor R5, sixth resistor R6, seventh resistor R7, eighth resistor R8. DETAILED DESCRIPTION
[0043] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.
[0044] In the description of the present application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0045] In this application, unless otherwise clearly specified and limited, the terms "initial", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0046] It should be noted that when an element is considered to be "connected" to another element, it can be directly connected to the other element, or connected to the other element through an intermediate element. In addition, the "connection" in the following embodiments should be understood as "electrical connection", "communication connection", etc. if there is transmission of electrical signals or data between the connected objects.
[0047] At present, there are many types of temperature sensors for temperature sampling in the automotive field, such as NTC (Negative Temperature Coefficient) or PTC (Positive Temperature Coefficient), etc. However, in order to meet the accuracy requirements in high and low temperature environments at the same time (such as: requiring ±5°C in both high and low temperature environments), a temperature sampling circuit that is compatible with all temperature sensors is required. However, based on specific usage, the existing temperature sampling circuit can only be applied to one temperature sensor (such as: the circuit applicable to NTC thermistor sampling is not applicable to PTC thermistor, or the sampling circuit applicable to PTC thermistor is not applicable to NTC thermistor). At the same time, the temperature accuracy in high and low temperature environments is not up to standard, resulting in the temperature sensor having higher accuracy at low temperatures, but lower accuracy at high temperatures. Therefore, changing a temperature sensor requires changing the hardware parameters again, resulting in confusion in hardware version management.
[0048] like Figure 1 As shown, a temperature sampling circuit of an embodiment includes a voltage-dividing sampling circuit 102, an amplifying circuit 104 and a selecting circuit 106, wherein:
[0049] The voltage dividing sampling circuit 102 is used to connect the temperature sensor;
[0050] The amplifier circuit 104 is used to amplify and output the received divided voltage sampling signal according to the type of the temperature sensor;
[0051] The selection circuit 106 is connected between the amplifier circuit 204 and the voltage-dividing sampling circuit 202, and is used to adjust the selection state based on the type of the temperature sensor to connect the voltage-dividing sampling circuit 102 and the amplifier circuit 104, so that the voltage-dividing sampling circuit 102 performs voltage-dividing sampling on the output signal of the temperature sensor based on the type of the temperature sensor and outputs the voltage-dividing sampling signal.
[0052] Specifically, based on the temperature sampling circuit of the embodiment of the present application, different types of temperature sensors can be replaced. For example, the temperature sensor can be an NTC thermistor or a PTC thermistor, that is, the temperature sensor is switched between an NTC thermistor and a PTC thermistor; optionally, the temperature sensor can be a PT100 temperature sensor or a PT1000 temperature sensor. The embodiment of the present application does not limit the type of temperature sensor.
[0053] Taking the application in automobiles as an example, the temperature sampling circuit of the present application can be applicable to two types of temperature sensors, NTC and PTC. Among them, NTC is negatively related to temperature and has a large resistance span, ranging from several hundred Ω to 1MΩ, while PTC is positively correlated to temperature and has a small resistance span, generally ranging from several tens of ohms to two hundred ohms (PTC100) and several hundred ohms to 1KΩ (PTC1000). By providing a variety of specifications and configurations for matching through the voltage divider sampling circuit 102, the amplification circuit 104 and the selection circuit 106, the present application can be compatible with these two sensors in terms of the range of resistance and temperature changes.
[0054] Among them, the resistance variation range of NTC and PTC is greatly different, and the voltage division by simply configuring resistors is not ideal. In the embodiment of the present application, the voltage division sampling circuit 102 can be switched through multiple branches (for example, two branches), and one of them is used when NTC is used for sampling, and the other branch can be used if PTC is used for sampling, so as to distinguish the two. For different types of temperature sensors, the voltage division sampling circuit 102 can perform corresponding branch switching by selecting the gating state of the circuit 106, thereby achieving a sampling accuracy that matches the type of temperature sensor.
[0055] Furthermore, for different types of temperature sensors, the amplifier circuit 104 can provide different amplification factors, for example, by forming a follower effect through an operational amplifier to achieve sampling of the temperature sensor; taking the type of temperature sensor as PTC thermistor as an example, the amplification factors of different types of PTC thermistors are inconsistent. For example, the resistance of the PTC100 type sensor is small and requires a larger amplification factor, while the resistance of the PTC1000 type sensor is large and the required gain factor after voltage division is small; in the embodiment of the present application, based on the selection state of the selection circuit 106, the amplifier circuit 104 can provide multiple amplification factors to provide matching gains for different types of temperature sensors.
[0056] Accordingly, the embodiment of the present application may further include a controller connected to the temperature sampling circuit; illustratively, the controller may be an MCU (Microcontroller Unit); optionally, the controller may be connected to the voltage divider sampling circuit 102 to control the voltage divider sampling circuit 102 to match different voltage divider coefficients based on different types of temperature sensors; the controller may also be connected to the selection circuit 106 to control the selection circuit 106 to perform branch switching according to the type of the temperature sensor; the controller may also be connected to the amplifier circuit 104 to control the amplifier circuit 104 to process the received voltage divider sampling signal with an amplification factor that matches the type of the temperature sensor.
[0057] It is understandable that the voltage-dividing sampling circuit 102, the amplifying circuit 104 and the selecting circuit 106 may also adopt other forms, not limited to the forms mentioned in the above embodiments, as long as they can achieve the corresponding functions.
[0058] The temperature sampling circuit based on the present application can solve the problem that the temperature sensor is not compatible with the sampling, thereby reducing the change and maintenance of the hardware version, and can be applied to various types of temperature sensors such as NTC / PTC only through software configuration. Among them, no matter what type of temperature sensor is used, only one set of temperature sampling circuits provided by the present application is required. Compared with the prior art that uses different circuits for different types of temperature sensors, the types of circuits are reduced, the version is reduced, and the maintenance difficulty is reduced.
[0059] like Figure 2 As shown, the selection circuit 106 of one embodiment may include a switch unit 202;
[0060] The first fixed end ( S1 ) of the switch unit 202 is connected to one end of the temperature sensor, the second fixed end ( S2 ) of the switch unit 202 is connected to the other end of the temperature sensor, and the movable end (D) of the switch unit 202 is connected to the amplifier circuit 104 .
[0061] Specifically, the selection circuit 106 may use the switch unit 202 to adjust the gating state based on the type of the temperature sensor. Figure 2 As shown, taking the temperature sensor as an NTC thermistor as an example, one end of the temperature sensor is the positive electrode (TEMP1+) of the NTC thermistor, and the other end of the temperature sensor is the negative electrode (TEMP1-) of the NTC thermistor. In this case, the moving end (D) of the switch unit 202 is switched to be connected to the second fixed end (S2). For another example, taking the temperature sensor as a PTC thermistor as an example, one end of the temperature sensor is the positive electrode (TEMP1+) of the PTC thermistor, and the other end of the temperature sensor is the negative electrode (TEMP1-) of the PTC thermistor. In this case, the moving end (D) of the switch unit 202 is switched to be connected to the first fixed end (S1).
[0062] Exemplarily, the switch unit 202 may further include a control terminal (IN), which may be connected to the controller (MCU) as a control terminal of the selection circuit 106. Figure 2As shown, taking the temperature sensor as an NTC thermistor as an example, the controller can send the instruction "PTC / NTC_CTL" to select the channel of the switch unit 202 to the S2 channel, and S1 is disconnected (representing NTC sampling). For another example, taking the temperature sensor as a PTC thermistor as an example, the controller may not send the "PTC / NTC_CTL" instruction, and the S1 channel of the switch unit 202 is connected by default, and S2 is disconnected (representing PTC sampling).
[0063] Alternatively, if Figure 2 As shown, the switch unit 202 may also include a power supply terminal (VDD) and a ground terminal (GND). The power supply terminal (VDD) is connected to the positive electrode of the reference power supply (V1), and the negative electrode of the reference power supply (V1) is grounded. Exemplarily, the reference power supply (V1) can be used to provide a reference voltage of 5V.
[0064] The embodiment of the present application selects a variety of sampling modes through a switch unit, and can be directly compatible with sampling of various types of temperature sensors such as NTC and PTC, thereby reducing changes and maintenance of hardware versions and improving the adaptability of the temperature sampling circuit.
[0065] like Figure 3 As shown, a voltage-dividing sampling circuit of an embodiment may include:
[0066] A first resistor (R1), one end of the first resistor (R1) is connected between the other end of the temperature sensor and the second fixed end (S2), and the other end of the first resistor (R1) is grounded;
[0067] a second resistor (R2), one end of the second resistor (R2) being connected between one end of the temperature sensor and the first fixed end (S1), and the other end of the second resistor (R2) being connected to a reference power supply (V2);
[0068] a third resistor (R3), one end of the third resistor (R3) being connected between one end of the temperature sensor and the first fixed end (S1);
[0069] a fourth resistor (R4), one end of the fourth resistor (R4) being connected between the other end of the temperature sensor and the second fixed end (S2);
[0070] A first switch tube (U1), wherein a first end of the first switch tube (U1) is connected to the other end of a third resistor (R3), and a second end of the first switch tube (U1) is connected to a control end of the first switch tube (U1) and is connected to a reference power supply (V2);
[0071] A second switch tube (U2), wherein a first end of the second switch tube (U2) is connected to the other end of the fourth resistor (R4), and a second end of the second switch tube (U2) is connected to a control end of the second switch tube (U2) and is grounded.
[0072] Specifically, the voltage-dividing sampling circuit 102 can provide multiple branches for voltage division through resistors of various specifications, so as to adapt to various temperature sensors with greatly different resistance value variation ranges. Figure 3 As shown, the voltage-dividing sampling circuit 102 may include a first resistor (R1), a second resistor (R2), a third resistor (R3), a fourth resistor (R4), a first switch tube (U1), and a second switch tube (U2).
[0073] Wherein, the control end of the first switch tube (U1) can be connected to the controller (MCU), such as Figure 3 As shown, taking the temperature sensor as an NTC thermistor as an example, the controller can send the instruction "PTC / NTC_CTL" to select the channel of the switch unit to the S2 channel and disconnect S1 (representing NTC sampling). At the same time, the controller can send the instruction "PTC100 / NTC_CTL" to control the first switch tube (U1) to open, and then connect the second resistor (R2) / the third resistor (R3) in parallel with the temperature sensor NTC (connected to TEMP1+, TEMP1-) in series, and then form a series voltage division relationship with the first resistor (R1) to sample the temperature sensor NTC.
[0074] The control end of the second switch tube (U2) can also be connected to the controller (MCU), such as Figure 3 As shown, taking the temperature sensor as PTC1000 as an example, the controller may not send the "PTC / NTC_CTL" instruction, and the S1 channel of the switch unit is connected and S2 is disconnected by default (representing PTC sampling); at the same time, the controller does not send the instruction "PTC100 / NTC_CTL", and the third resistor (R3) is disconnected by default and not connected to the circuit, and only the second resistor (R2) and the temperature sensor PTC1000 (connected to TEMP1+, TEMP1-) are connected in series. At the same time, the controller can send the instruction "PTC_CTL" to pull the fourth resistor (R4) down to the ground, which can be regarded as one end of the temperature sensor PTC1000 is grounded, so that only the second resistor (R2) and PT1000 form a voltage divider. Among them, the fourth resistor (R4) can be a 0Ω resistor.
[0075] Furthermore, if Figure 3As shown, taking the temperature sensor as PT100 as an example, the controller may not send the "PTC / NTC_CTL" instruction, and the S1 channel of the default switch unit is turned on and S2 is turned off (representing PTC sampling); in addition, the controller may send the instruction "PTC100 / NTC_CTL" to control the first switch tube (U1) to open, so as to connect the second resistor (R2) / the third resistor (R3) in parallel with the temperature sensor PTC100 (connected to TEMP1+, TEMP1-), and at the same time, the controller may send the instruction "PTC_CTL" to pull the fourth resistor (R4) down to the ground, which can be regarded as one end of the temperature sensor PTC100 is grounded, so as to realize the voltage division between the second resistor (R2) and the temperature sensor PT1000. Among them, the fourth resistor (R4) can be a 0Ω resistor.
[0076] The above-mentioned voltage-dividing sampling circuit cooperates with the selection state of the circuit to realize multiple sampling modes through resistors of various specifications, realizes multi-branch switching of voltage-dividing sampling, solves the problem that temperature sensors such as NTC / PT100 / PT1000 are not compatible with sampling, and reduces the maintenance of hardware versions. It can be understood that the above-mentioned voltage-dividing sampling circuit can also adopt other forms, not limited to the forms mentioned in the above embodiments, as long as it can achieve the branch switching function of matching different types of temperature sensors to realize voltage-dividing sampling.
[0077] For example, the first switch tube (U1) may be a PMOS tube; Figure 3 As shown, the source end of the first switch tube (U1) is connected to the positive electrode of the reference power supply (V2), and the negative electrode of the reference power supply (V2) is grounded. The reference power supply (V2) can be used to provide a reference voltage of 5V. The temperature sampling circuit can also include a resistor R9 and a resistor R10, one end of the resistor R9 is connected between the positive electrode of the reference power supply (V2) and the source end of the first switch tube (U1), the other end of the resistor R9 is connected between one end of the resistor R10 and the gate end of the first switch tube (U1), and the other end of the resistor R10 is used to connect to the controller.
[0078] like Figure 3 As shown, the temperature sampling circuit may further include a first capacitor (C1) and a second capacitor (C2), wherein the first capacitor (C1) is installed between the two ends of the temperature sensor to realize functions such as filtering, one end of the second capacitor (C2) is connected between the other end (TEMP1-) of the temperature sensor and the second fixed end (S2) of the switch unit, and the other end of the second capacitor (C2) is grounded.
[0079] For example, the second switch tube (U2) may be an NMOS tube. Figure 3As shown, the temperature sampling circuit may further include a resistor R13, a resistor R14 and a third capacitor (C3), wherein one end of the resistor R13 and one end of the third capacitor (C3) are both connected between the gate end of the second switch tube (U2) and one end of the resistor R14, and the other end of the resistor R13 and the other end of the third capacitor (C3) are grounded. The other end of the resistor R14 is used to connect to the controller.
[0080] like Figure 4 As shown, the voltage-dividing sampling circuit of an embodiment may further include:
[0081] a fifth resistor (R5), one end of the fifth resistor (R5) being connected between the other end of the temperature sensor and the second fixed end (S2);
[0082] A third switch tube (U3), wherein a first end of the third switch tube (U3) is connected to the other end of the fifth resistor (R5), and a second end of the third switch tube (U3) is connected to a control end of the third switch tube (U3) and is grounded.
[0083] Specifically, the voltage-dividing sampling circuit in the present application can also adjust the sampling accuracy of the temperature sensor. Figure 4 As shown, taking the temperature sensor as an NTC thermistor as an example, the controller can send an instruction "NTC_CTL" to control the third switch tube (U3) to open, so as to realize the first resistor (R1) and the fifth resistor (R5) being connected in parallel under a high temperature environment. After the two are connected in parallel, the resistance becomes smaller, thereby improving the resolution of the temperature sensor NTC to achieve high-precision sampling requirements.
[0084] The voltage division sampling circuit in the present application may have a variety of voltage division coefficients (for example, two voltage division coefficients may be implemented for NTC), such as Figure 4 As shown, taking the temperature sensor as an NTC thermistor as an example, the third switch tube (U3) is connected in series to pull down the fifth resistor (R5) and the first resistor (R1) to form a parallel relationship. When the NTC resistance is reduced (high temperature), the third switch tube (U3) is turned on so that the first resistor (R1) and the fifth resistor (R5) form a parallel relationship (reducing the resistance of the pull-down resistor), thereby improving the resolution of the NTC resistor and achieving high-precision sampling, thereby avoiding the situation where the temperature sensor has high accuracy in a low temperature environment (large resistance) and poor sampling accuracy in a high temperature environment due to the large difference in the temperature resistance change curve of the NTC in high and low temperature environments.
[0085] The above voltage-dividing sampling circuit can improve the sampling accuracy of NTC, and by controlling different voltage-dividing coefficients at high temperature and low temperature, the accuracy of NTC in high temperature and low temperature regions is consistent. It can be understood that the above voltage-dividing sampling circuit can also adopt other forms, not limited to the forms mentioned in the above embodiments, as long as it can achieve the function of providing different voltage-dividing coefficients.
[0086] Exemplarily, the third switch tube is an NMOS tube. Figure 4 As shown, the temperature sampling circuit may further include a resistor R11, a resistor R12 and a fourth capacitor (C4), wherein one end of the resistor R11 and one end of the fourth capacitor (C4) are both connected between the gate end of the third switch tube (U3) and one end of the resistor R12, and the other end of the resistor R11 and the other end of the fourth capacitor (C4) are grounded. The other end of the resistor R12 is used to connect to the controller.
[0087] like Figure 5 As shown, the amplifier circuit of an embodiment may include:
[0088] An operational amplifier (X1), wherein a positive input terminal of the operational amplifier (X1) is connected to a selection circuit;
[0089] a sixth resistor (R6), one end of the sixth resistor (R6) being connected to the inverting input end of the operational amplifier (X1), and the other end of the sixth resistor (R6) being connected to the output end of the operational amplifier (X1);
[0090] The gain adjustment circuit 502 is connected to the inverting input terminal of the operational amplifier (X1) and is used to perform gain adjustment on the voltage-divided sampling signal based on the type of the temperature sensor.
[0091] Specifically, for different types of temperature sensors, based on the operational amplifier (X1), the amplifier circuit in the embodiment of the present application can provide different amplification factors. Among them, through the gain adjustment circuit 502, the amplifier circuit can set a variety of gain multiples to meet the use of different types of temperature sensors (for example, temperature sensor PT100 / PT1000).
[0092] Among them, the operational amplifier in the embodiment of the present application is a circuit unit with a very high amplification factor, which is provided with a non-inverting input terminal Vin (+) (also known as a non-inverting input terminal), an inverting input terminal Vin (-) and an output terminal Vout. Generally speaking, commonly used operational amplifiers include general-purpose operational amplifiers (such as LM358 and LM324, etc.), high-impedance operational amplifiers (such as LF355, CA3130 and CA3140, etc.), low-temperature drift operational amplifiers (such as OP07, OP27, AD508, etc.), high-speed operational amplifiers (such as LM318, μA715, etc.), low-power operational amplifiers (such as TL-022C, TL-060C, etc.), high-voltage and high-power operational amplifiers (such as D41) and programmable control types (such as PGA103A), etc. The operational amplifier used in this application can be any type of operational amplifier above, and is not specifically limited here.
[0093] For example, Figure 5 As shown, taking the temperature sensor as an NTC thermistor as an example, the controller may not enable the gain adjustment circuit 502, thereby making the operational amplifier (X1) form a "following" effect to achieve sampling of the temperature sensor NTC. Figure 5 As shown, taking the temperature sensor as PTC as an example, the controller can enable the gain adjustment circuit 502 to form an amplifier circuit with a corresponding gain multiple, thereby realizing sampling of the temperature sensor PTC1000.
[0094] Furthermore, if Figure 5 As shown, the temperature sampling circuit may further include a resistor R18, a resistor R19, a capacitor C7 and a capacitor C8, wherein the resistor R18 is connected between the fixed end (D) of the switch unit and the positive input end of the operational amplifier (X1); the resistor R19 is connected to the output end of the operational amplifier (X1); one end of the capacitor C7 is connected to the positive input end of the operational amplifier (X1), and the other end is grounded; one end of the capacitor C8 is connected to the output end of the operational amplifier (X1), and the other end is grounded.
[0095] like Figure 6 As shown, a gain adjustment circuit of an embodiment may include:
[0096] a seventh resistor (R7), one end of the seventh resistor (R7) being connected between the inverting input end of the operational amplifier (X1) and one end of the sixth resistor (R6);
[0097] A fourth switch tube (U4), wherein a first end of the fourth switch tube (U4) is connected to the other end of the seventh resistor (R7), and a second end of the fourth switch tube (U4) is connected to a control end of the fourth switch tube (U4) and is grounded.
[0098] Specifically, the gain adjustment circuit may include a seventh resistor (R7) and a fourth switch tube (U4), wherein a control end of the fourth switch tube (U4) may be connected to a controller (MCU); illustratively, the fourth switch tube (U4) may be an NMOS tube, and a gate end of the NMOS tube is connected to the controller as the control end of the fourth switch tube (U4).
[0099] like Figure 6 As shown, taking the temperature sensor as PTC1000 as an example, the controller can send the instruction "PTC1000_CTL_AG" so that the seventh resistor (R7) and the sixth resistor (R6) and the operational amplifier (X1) form an amplifier circuit with a certain gain multiple to implement sampling of the temperature sensor PTC1000. The amplifier circuit in the embodiment of the present application can provide a variety of amplification multiples for the PTC temperature sensor, thereby adapting to the small resistance variation range of the PTC temperature sensor.
[0100] Further, taking the fourth switch tube (U4) as an NMOS tube as an example, Figure 6 As shown, the gain adjustment circuit may further include a resistor R15, a resistor R16 and a capacitor C5, wherein the resistor R16 is connected to the gate end of the fourth switch tube (U4); one end of the resistor R15 and one end of the capacitor C5 are connected between the gate end of the fourth switch tube (U4) and the resistor R16, and the other end of the resistor R15 and the other end of the capacitor C5 are grounded.
[0101] like Figure 7 As shown, the gain adjustment circuit of an embodiment may further include:
[0102] an eighth resistor (R8), one end of the eighth resistor (R8) being connected between the inverting input end of the operational amplifier (X1) and one end of the seventh resistor (R7);
[0103] A fifth switch tube (U5), wherein a first end of the fifth switch tube (U5) is connected to the other end of the eighth resistor (R8), and a second end of the fifth switch tube (U5) is connected to a control end of the fifth switch tube (U5) and is grounded.
[0104] Specifically, the gain adjustment circuit may further include an eighth resistor (R8) and a fifth switch tube (U5), wherein the control end of the fifth switch tube (U5) may be connected to the controller (MCU); illustratively, the fifth switch tube (U5) may be an NMOS tube, and the gate end of the NMOS tube is connected to the controller as the control end of the fifth switch tube (U5).
[0105] like Figure 7As shown, taking the temperature sensor PTC1000 as an example, the controller can send the instruction "PTC1000_CTL_AG" and not send the instruction "PTC100_CTL_AG", so that the seventh resistor (R7) and the sixth resistor (R6) and the operational amplifier (X1) are combined to form an amplifier circuit with a certain gain multiple to implement sampling of the temperature sensor PTC1000.
[0106] Furthermore, if Figure 7 As shown, taking the temperature sensor as PTC100 as an example, the controller can send the command "PTC1000_CTL_AG" and the command "PTC100_CTL_AG" so that the eighth resistor (R8) and the seventh resistor (R7) are connected in parallel (the resistance value is reduced), and then combined with the sixth resistor (R6) and the operational amplifier (X1) to obtain a larger gain multiple circuit, thereby realizing the sampling of the temperature sensor PTC100. It should be noted that the amplification factors used for the temperature sensor PT100 and the temperature sensor PT1000 are inconsistent; among them, the resistance of the PTC100 type sensor is smaller than that of the PTC1000 type sensor, and a larger amplification factor is required, while the resistance of the PTC1000 type sensor is large, and the required gain multiple after voltage division is small, otherwise it will exceed the sampling range of the controller (MCU).
[0107] For example, taking the fifth switch tube (U5) as an NMOS tube, as an example, Figure 7 As shown, the gain adjustment circuit may further include a resistor R17, a resistor R20 and a capacitor C6, wherein the resistor R20 is connected to the gate end of the fifth switch tube (U5); one end of the resistor R17 and one end of the capacitor C6 are connected between the gate end of the fourth switch tube (U4) and the resistor R20, and the other end of the resistor R17 and the other end of the capacitor C6 are grounded.
[0108] As described above, through the amplification circuit, the temperature sampling circuit in the embodiment of the present application can directly set multiple gain multiples to meet the use of temperature sensors such as PT100 / PT1000. Among them, providing multiple amplification multiples through the gain adjustment circuit for the PTC temperature sensor can adapt to the small resistance change range of the PTC temperature sensor.
[0109] The temperature sampling circuit of the embodiment of the present application can solve the problem that the traditional sampling circuit is not suitable for sampling of various temperature sensors. Among them, various specifications of resistors are designed in the circuit of the present application, and various sampling methods are provided, which can be compatible with various amplification factors. By way of example, in view of the fact that the resistance ranges of the two temperature sensors PT100 / PT1000 are quite different and different gains are required for amplification after sampling, the temperature sampling circuit of the present application sets two amplification factors. Furthermore, in high and low temperature environments, different voltage division coefficients can be switched based on the temperature sampling circuit of the present application, thereby ensuring that the accuracy is up to standard in high and low temperature environments.
[0110] The embodiment of the present application also provides a temperature sampling system, including a controller and the above-mentioned temperature sampling circuit; the controller is respectively connected to the control end of the voltage divider sampling circuit, the control end of the amplification circuit and the control end of the selection circuit.
[0111] An embodiment of the present application also provides an automobile, comprising the temperature sampling system provided in an embodiment of the present application.
[0112] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0113] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A temperature sampling circuit, characterized in that: include: The voltage-dividing sampling circuit is used to connect the temperature sensor; an amplifier circuit, used to amplify and output the received divided voltage sampling signal according to the type of the temperature sensor; A selection circuit is connected between the amplifying circuit and the voltage-dividing sampling circuit, and is used to adjust a selection state based on the type of the temperature sensor to connect the voltage-dividing sampling circuit and the amplifying circuit, so that the voltage-dividing sampling circuit performs voltage-dividing sampling on the output signal of the temperature sensor based on the type of the temperature sensor, and outputs the voltage-dividing sampling signal.
2. The temperature sampling circuit according to claim 1, characterized in that: The selection circuit includes a switch unit; The first fixed end of the switch unit is connected to one end of the temperature sensor, the second fixed end of the switch unit is connected to the other end of the temperature sensor, and the movable end of the switch unit is connected to the amplifier circuit.
3. The temperature sampling circuit according to claim 2, characterized in that: The voltage division sampling circuit comprises: a first resistor, one end of the first resistor being connected between the other end of the temperature sensor and the second fixed end, and the other end of the first resistor being grounded; a second resistor, one end of the second resistor being connected between one end of the temperature sensor and the first fixed end, and the other end of the second resistor being connected to a reference power supply; a third resistor, one end of which is connected between one end of the temperature sensor and the first fixed end; a fourth resistor, one end of which is connected between the other end of the temperature sensor and the second fixed end; a first switch tube, wherein a first end of the first switch tube is connected to the other end of the third resistor, and a second end of the first switch tube is connected to a control end of the first switch tube and connected to the reference power supply; A second switch tube, wherein a first end of the second switch tube is connected to the other end of the fourth resistor, and a second end of the second switch tube is connected to the control end of the second switch tube and is grounded.
4. The temperature sampling circuit according to claim 3, characterized in that: The voltage-dividing sampling circuit further includes: a fifth resistor, one end of which is connected between the other end of the temperature sensor and the second fixed end; A third switch tube, wherein a first end of the third switch tube is connected to the other end of the fifth resistor, and a second end of the third switch tube is connected to the control end of the third switch tube and is grounded.
5. The temperature sampling circuit according to claim 4, characterized in that: The first switch tube is a PMOS tube; the second switch tube and the third switch tube are both NMOS tubes.
6. The temperature sampling circuit according to any one of claims 2 to 5, characterized in that: The amplifying circuit comprises: an operational amplifier, wherein a positive input terminal of the operational amplifier is connected to the selection circuit; a sixth resistor, one end of the sixth resistor being connected to the inverting input terminal of the operational amplifier, and the other end of the sixth resistor being connected to the output terminal of the operational amplifier; A gain adjustment circuit is connected to the inverting input terminal of the operational amplifier and is used to perform gain adjustment on the voltage-divided sampling signal based on the type of the temperature sensor.
7. The temperature sampling circuit according to claim 6, characterized in that: The gain adjustment circuit comprises: a seventh resistor, one end of the seventh resistor being connected between the inverting input end of the operational amplifier and one end of the sixth resistor; A fourth switch tube, wherein a first end of the fourth switch tube is connected to the other end of the seventh resistor, and a second end of the fourth switch tube is connected to the control end of the fourth switch tube and is grounded.
8. The temperature sampling circuit according to claim 7, characterized in that: The gain adjustment circuit also includes: an eighth resistor, one end of the eighth resistor being connected between the inverting input terminal of the operational amplifier and one end of the seventh resistor; A fifth switch tube, wherein a first end of the fifth switch tube is connected to the other end of the eighth resistor, and a second end of the fifth switch tube is connected to the control end of the fifth switch tube and is grounded.
9. A temperature sampling system, characterized in that: It comprises a controller and the temperature sampling circuit according to any one of claims 1 to 8; wherein the controller is respectively connected to the control end of the voltage-dividing sampling circuit, the control end of the amplifying circuit and the control end of the selecting circuit.
10. An automobile, characterized in that: Comprising the temperature sampling system as claimed in claim 9.
