Temperature detection device and method, controller and air conditioner

By increasing the I/O ports of the main control chip and software control, compatibility with different temperature sensors was achieved, solving the hardware and software change problems when replacing the air conditioner temperature sensor detection circuit and reducing maintenance costs.

CN120868602APending Publication Date: 2025-10-31GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511192662.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-25
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

When the existing air conditioner temperature sensor detection circuit needs to be replaced with a different temperature sensor, the hardware circuit and software comparison table need to be changed simultaneously, increasing maintenance and hardware costs.

Method used

By adding an I/O port to the main control chip, and combining hardware circuitry and software control, the I/O port level of the main control chip can be configured to match the nominal value of the resistor and the temperature sensor, thus achieving compatibility with various sensors.

Benefits of technology

This improves the adaptability and hardware compatibility of the temperature sensor detection circuit, and reduces maintenance costs when replacing sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120868602A_ABST
    Figure CN120868602A_ABST
Patent Text Reader

Abstract

The invention discloses a temperature detection device, a controller, an air conditioner and a temperature detection method thereof, the device comprises a temperature sensor module, a matching resistor module and a main control chip, the temperature sensor module is provided with a temperature sensor, the matching resistor module is provided with a matching resistor, and the main control chip is provided with an IO port; wherein the temperature sensor module and the matching resistor module are arranged between a preset power supply and the ground; the common end of the temperature sensor module and the matching resistor module is connected to the IO port of the main control chip; the use number of IO ports of the main control chip is greater than the number of temperature sensors in the temperature sensor module; and the main control chip is used for configuring the level state of the IO port of the main control chip, so that the nominal value of the matching resistor in the matching resistor module is the same as that of the temperature sensor in the temperature sensor module. According to the scheme, one IO port of the main control chip is additionally arranged, and a hardware circuit and software control are matched, so that the adaptability of the temperature sensor detection circuit is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of air conditioning technology, specifically relating to a temperature detection device, controller, air conditioner and its temperature detection method, and more particularly to a control device, controller, air conditioner and its temperature sensor detection circuit and its temperature detection method. Background Technology

[0002] With societal development, air conditioning has become an indispensable household appliance. In recent years, with the increasing sophistication and intelligence of control, the types and quantities of temperature sensors used in actual air conditioning products have also increased. Temperature sensors are used to detect the current temperature at various points in a system (such as an air conditioning control system). Different temperature sensors require different detection circuits and software temperature lookup tables. However, if new requirements necessitate replacing different temperature sensors, the corresponding hardware circuits also need to be modified accordingly, increasing maintenance and hardware costs.

[0003] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The purpose of this invention is to provide a temperature detection device, controller, air conditioner, and temperature detection method thereof, in order to solve the problem that the detection circuits for temperature sensors (such as those used in air conditioning control systems) are different for different temperature sensors, and the corresponding detection circuits and software temperature reference tables are also different. If there is a new requirement to replace different temperature sensors, the corresponding hardware circuits also need to be changed simultaneously, which increases maintenance and hardware costs. The invention achieves the effect of improving the adaptability of the temperature sensor detection circuit by adding an I / O port of the main control chip and coordinating the hardware circuit and software control.

[0005] This invention provides a temperature detection device, comprising: a temperature sensor module, a matching resistor module, and a main control chip. The temperature sensor module has a temperature sensor, the matching resistor module has a matching resistor, and the main control chip has I / O ports. The temperature sensor module and the matching resistor module are disposed between a preset power supply and ground. The common terminal of the temperature sensor module and the matching resistor module is connected to the I / O port of the main control chip. The number of I / O ports used by the main control chip is greater than the number of temperature sensors in the temperature sensor module. The main control chip is used to configure the voltage levels of its I / O ports such that the matching resistor in the matching resistor module has the same nominal value as the temperature sensor in the temperature sensor module.

[0006] In some embodiments, the temperature sensor module has N temperature sensors, the matching resistor module has N+2 matching resistors, and the main control chip has M I / O ports, where M and N are both positive integers, N is greater than or equal to 1, and M is greater than or equal to N+1. One of the N temperature sensors and its corresponding matching resistor from the N+2 matching resistors are positioned between a preset power supply and ground to form a detection branch; thus, N detection branches are formed. The first to the (N-1)th detection branches are defined within these N detection branches. For each detection branch: the common terminal of the temperature sensor and the matching resistor in each detection branch is connected to one of the corresponding IO ports among the M IO ports of the main control chip; for the Nth detection branch among the N detection branches: the common terminal of the temperature sensor and the matching resistor in the Nth detection branch is connected to the Nth IO port among the M IO ports of the main control chip after passing through the (N+1)th matching resistor; the common terminal of the temperature sensor and the matching resistor in the Nth detection branch is also connected to the (N+1)th IO port among the M IO ports of the main control chip after passing through the (N+2)th matching resistor.

[0007] In some implementations, for each of the first to the (N-1)th detection branches in the N detection branches: the nominal value of the temperature sensor in each detection branch is the same as the resistance value of the matching resistor; for the Nth detection branch in the N detection branches: the nominal value of each temperature sensor corresponds to the resistance value of a preset matching resistor corresponding to the nominal value of the temperature sensor.

[0008] In some implementations, when N=3 and M is greater than or equal to 4, the sensor module includes: a first sensor, a second sensor, and a third sensor; the matching resistor module includes: a first matching resistor, a second matching resistor, a third matching resistor, a fourth matching resistor, and a fifth matching resistor; the M I / O ports of the main control chip include: a first I / O port, a second I / O port, a third I / O port, and a fourth I / O port; wherein, a preset power supply is grounded after passing through the first sensor and the first matching resistor; the common terminal of the first sensor and the first matching resistor is connected to the first I / O port of the main control chip; the preset power supply... The power supply is grounded after passing through the second sensor and the second matching resistor; the common terminal of the second sensor and the second matching resistor is connected to the second I / O port of the main control chip; the preset power supply is grounded after passing through the third sensor and the third matching resistor; the common terminal of the third sensor and the third matching resistor is connected to the third I / O port of the main control chip after passing through the fourth matching resistor; the preset power supply is grounded after passing through the third sensor and the third matching resistor; the common terminal of the third sensor and the third matching resistor is also connected to the fourth I / O port of the main control chip after passing through the fifth matching resistor.

[0009] In some implementations, when the type of the first sensor is determined, the type of the second sensor is determined, and the type of the third sensor needs to be changed, the main control chip is used to configure the level state of the third or fourth I / O port of the main control chip, such that the resistance value of the corresponding matching resistor among the third matching resistor, the fourth matching resistor, and the fifth matching resistor is the same as the nominal value corresponding to the change in the type of the third sensor.

[0010] In some embodiments, the main control chip configures the level state of its third or fourth I / O port, including: if the type of the third sensor is a preset first type, then the fourth I / O port of the main control chip is configured as an output state and outputs a preset low-level signal; if the type of the third sensor is a preset second type, then the fourth I / O port of the main control chip is configured as a high-impedance state; if the type of the third sensor is a preset third type, then the third I / O port of the main control chip is configured as an output state and outputs a preset low-level signal.

[0011] In conjunction with the above-described device, the present invention further provides a controller comprising: the temperature detection device described above.

[0012] In conjunction with the above-described device, the present invention further provides an air conditioner, comprising: the temperature detection device described above, or the controller described above.

[0013] In conjunction with the aforementioned air conditioner, this invention further provides a temperature detection method for an air conditioner, comprising: after the air conditioner is powered on, acquiring the operating parameters of the air conditioner and the types of sensors in the sensor module; when N=3 and M is greater than or equal to 4, determining the type of the first sensor, the type of the second sensor, and the type of the third sensor according to the types of sensors in the sensor module; configuring the first I / O port of the main control chip as the AD detection port of the first sensor in the sensor module according to the type of the first sensor, acquiring the temperature detected by the first sensor, and recording it as the first temperature of the air conditioner; configuring the second I / O port of the main control chip as the AD detection port of the second sensor in the sensor module according to the type of the second sensor, acquiring the temperature detected by the second sensor, and recording it as the second temperature of the air conditioner; configuring the level state of the third I / O port or the fourth I / O port of the main control chip according to the type of the third sensor, acquiring the temperature detected by the third sensor, and recording it as the third temperature of the air conditioner; adjusting the operating parameters of the air conditioner according to the first temperature, the second temperature, and the third temperature of the air conditioner to achieve control of the air conditioner.

[0014] In some implementations, the level state of the third or fourth I / O port of the main control chip is configured according to the type of the third sensor in the sensor module, including: determining which of the following types of the third sensor in the sensor module is a preset first type, a preset second type, or a preset third type; if the type of the third sensor is the preset first type, then the fourth I / O port of the main control chip is configured as an output state and outputs a preset low-level signal; if the type of the third sensor is the preset second type, then the fourth I / O port of the main control chip is configured as a high-impedance state; if the type of the third sensor is the preset third type, then the third I / O port of the main control chip is configured as an output state and outputs a preset low-level signal.

[0015] Therefore, the solution of the present invention, for the detection circuit of temperature sensors (such as temperature sensors used in air conditioning control systems), sets up a detection branch for each of the N (N is a positive integer and N is greater than or equal to 1) sensors. For example, a first detection branch is set up for the first sensor (such as sensor 1) (such as the detection branch set between sensor 1 and resistor R1 between the 3.3V power supply and ground). In each detection branch, the common terminal of the sensor and the resistor is connected to one IO port of the main control chip, and an additional IO port is added, that is, N+1 IO ports are used. When the type of the Nth sensor changes, the matching resistor of the Nth sensor is configured through the Nth IO port and the N+1 IO port to detect and find the temperature of the Nth sensor. Thus, by adding one IO port of the main control chip, the hardware circuit and software control are coordinated to improve the adaptability of the temperature sensor detection circuit.

[0016] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention.

[0017] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0018] Figure 1 This is a schematic diagram of the structure of an embodiment of the temperature detection device of the present invention;

[0019] Figure 2 This is a schematic diagram of the temperature sensor detection circuit in the relevant scheme;

[0020] Figure 3 This is a flowchart illustrating the control method of the temperature sensor detection circuit in the relevant scheme;

[0021] Figure 4 This is a schematic diagram of the temperature sensor detection circuit of the present invention;

[0022] Figure 5 This is a schematic flowchart of the control method for the temperature sensor detection circuit of the present invention;

[0023] Figure 6 This is a schematic flowchart of an embodiment of the air conditioner temperature detection method of the present invention;

[0024] Figure 7 This is a flowchart illustrating an embodiment of configuring the level state of the third or fourth I / O port of the main control chip in the method of the present invention. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0026] Considering that the detection circuits and software temperature lookup tables for different temperature sensors (such as those used in air conditioning control systems) vary, if a new requirement necessitates replacing the temperature sensor, the corresponding hardware circuit must also be modified accordingly, increasing maintenance and hardware costs. Temperature sensors are generally made using NTC resistors with a negative temperature coefficient. Due to material limitations, the sensitivity and applicable range of thermistors with different nominal resistance values ​​vary. To better match the characteristics of various thermistors, their detection circuits and software temperature lookup tables also differ. This means that when a new requirement necessitates replacing the temperature sensor, the corresponding hardware circuit must also be modified accordingly, increasing maintenance and hardware costs.

[0027] In other words, temperature sensors are used to detect the current temperature at various points in the system. They are generally made of NTC resistors with negative temperature coefficients. Due to material limitations, the sensitivity and applicable range of thermistors with different nominal resistance values ​​are different. In order to better match the characteristics of various thermistors, their detection circuits are also different. Figure 2 This is a schematic diagram of the temperature sensor detection circuit in the relevant scheme. (Example:) Figure 2 For example, consider the three temperature sensor detection circuits of a certain controller: sensor 1, sensor 2, and sensor 3.

[0028] exist Figure 2In the example shown, Sensor 1 has a nominal value of 15kΩ and requires a 15kΩ resistor R1. The temperature is obtained by using the software to find a 15kΩ sensor temperature meter. Sensor 2 has a nominal value of 50kΩ and requires a 10kΩ resistor R2. The temperature is obtained by using the software to find a 50kΩ sensor temperature meter. Sensor 3 has a nominal value of 20kΩ and requires a 20kΩ resistor R3. The temperature is obtained by using the software to find a 20kΩ sensor temperature meter.

[0029] exist Figure 2 In the example shown, the main control chip pin descriptions are as follows: Power- and Power+: Power supply pins that supply power to the main control chip. The main control chip's power supply voltage is typically 3.3V. IO Port 1, IO Port 2, IO Port 3, and IO Port 4: General-purpose input / output IO ports of the main control chip. These can be configured by software for input / output and AD detection functions. Here, they are used to detect the voltage value of the temperature sensor's detection circuit to obtain the current temperature value. Other pins: General-purpose input / output pins, which can be configured by the program to implement various functions such as input detection, output high / low level, and AD detection. The 3.3V power supply is connected to the main control chip's Power+ pin, and the main control chip's Power- pin is grounded (GND). The main control chip's IO Port 1 pin is connected to the first connection terminal of sensor 1, the main control chip's IO Port 2 pin is connected to the first connection terminal of sensor 2, the main control chip's IO Port 3 pin is connected to the third connection terminal of sensor 3, and the main control chip's IO Port 4 pin is left floating.

[0030] exist Figure 2 In the example shown, each sensor (such as sensor 1, sensor 2, and sensor 3) is a negative temperature coefficient NTC resistor, meaning its resistance is temperature-dependent; the higher the temperature, the lower the resistance, and the lower the temperature, the higher the resistance. A 3.3V power supply is connected to the first terminal of sensor 1, and the second terminal of sensor 1 is grounded to GND via resistor R1; a 3.3V power supply is connected to the first terminal of sensor 2, and the second terminal of sensor 2 is grounded to GND via resistor R2; a 3.3V power supply is connected to the first terminal of sensor 3, and the second terminal of sensor 3 is grounded to GND via resistor R3.

[0031] Taking the sensor 1 detection circuit as an example, a 3.3V power supply is connected to one end of sensor 1; the other end of sensor 1 is connected to the detection pin (IO port 1) of the main control chip, and the other end of sensor 1 is synchronously connected to one end of resistor R1, with the other end of resistor R1 grounded. In the circuit, the voltage at IO port 1 = 3.3V * R1 resistance / (R1 resistance + sensor resistance). Therefore, temperature changes cause changes in sensor resistance, which in turn causes changes in the voltage at IO port 1. The main control chip uses the voltage acquired at IO port 1 to look up the current temperature in the built-in 15kΩ sensor voltage-temperature lookup table.

[0032] Figure 3This is a flowchart illustrating the control method of the temperature sensor detection circuit in the relevant scheme. The detection method in the relevant scheme is as follows: Figure 2 and Figure 3 As shown. Figure 3 As shown, the control method for the temperature sensor detection circuit in the relevant scheme includes:

[0033] Step 11: After the main control chip is powered on, it will first read the EEPROM (Electrically Erasable Programmable Read-Only Memory) to obtain the unit's (i.e., the unit where the air conditioner is located) operating parameters and unit type, and then execute step 12.

[0034] Step 12: Then configure IO port 1 as an AD detection port to detect the current AD value and obtain the current temperature according to the built-in 15kΩ sensor temperature meter; then configure IO port 2 as an AD detection port to detect the current AD value and obtain the current temperature according to the built-in 50kΩ sensor temperature meter; then configure IO port 3 as an AD detection port to detect the current AD value and obtain the current temperature according to the built-in 20kΩ sensor temperature meter. The temperature sensor, the corresponding detection circuit, and the built-in sensor temperature meter must correspond. Then proceed to step 13.

[0035] Step 13: After the unit obtains three temperatures, it can control the load according to the established control functions.

[0036] In actual use, there is often a need to change the temperature sensor model. For example, a certain model needs to change sensor 3 to a 50kΩ model. Due to the different detection circuit, the controller hardware model can only be changed, and the resistor R3 can be changed from 20kΩ to 10kΩ. After the synchronous software IO port 3 detects the AD value, it obtains the current temperature according to the built-in 50kΩ sensor temperature meter. Both software and hardware need to be modified, which is time-consuming, laborious, increases the risk of quality problems and after-sales maintenance costs.

[0037] Therefore, the present invention proposes a temperature detection device that can solve the above problems. Specifically, it is a control device for a temperature sensor detection circuit that can solve the above problems. For the main control chip and detection resistor in the temperature sensor detection circuit, an additional IO port of the main control chip is added. By configuring different states of the pins in the software, the hardware of the detection circuits of three commonly used sensors, namely 15kΩ, 20kΩ and 50kΩ, can be universal. Through the cooperation of hardware circuit and software control, the adaptability of the temperature sensor detection circuit is improved.

[0038] According to an embodiment of the present invention, a temperature detection device is provided. See also Figure 1The diagram shows a structural schematic of an embodiment of the device of the present invention. The temperature detection device may include: a temperature sensor module, a matching resistor module, and a main control chip. The temperature sensor module has a temperature sensor, the matching resistor module has a matching resistor, and the main control chip has an I / O port. The matching resistor in the matching resistor module is a resistor matched to the nominal value of the temperature sensor in the temperature sensor module. The resistance value of the matching resistor is not equal to the nominal value of the temperature sensor. The resistance values ​​of the matching resistor and the sensor are not equal, but rather have a fixed matching relationship: 20kΩ to 20kΩ, 15kΩ to 15kΩ, 50kΩ to 10kΩ. This matching resistor is required to collect voltage and thus measure temperature.

[0039] The temperature sensor module and the matching resistor module are positioned between a preset power supply and ground.

[0040] The common terminal of the temperature sensor module and the matching resistor module is connected to the I / O port of the main control chip; and the number of I / O ports used by the main control chip is greater than the number of temperature sensors in the temperature sensor module.

[0041] The main control chip is used to configure the level state of its I / O ports so that the matching resistor in the matching resistor module is the same as the nominal value of the temperature sensor in the temperature sensor module. By configuring the level state of the main control chip's I / O ports, the matching resistor in the matching resistor module is made to have the same nominal value as the temperature sensor in the temperature sensor module.

[0042] The present invention proposes a control scheme for a temperature sensor detection circuit, which improves the adaptability of the temperature sensor detection circuit, enhances the compatibility of controller hardware using different temperature sensors, and improves the universality of after-sales parts through the cooperation of hardware circuit and software control.

[0043] In some embodiments, the temperature sensor module has N temperature sensors, the matching resistor module has N+2 matching resistors, and the main control chip has M I / O ports, where M and N are both positive integers, N is greater than or equal to 1, and M is greater than or equal to N+1. For N temperature sensors, if the detection method in related schemes is used, N matching resistors and N I / O ports are required. Similarly, for N temperature sensors, if the solution of this invention is used, it can be compatible with three temperature sensor detection methods, requiring 3N matching resistors and 2N I / O ports.

[0044] Among them, one of the N temperature sensors and one of the corresponding matching resistors from the N+2 matching resistors are set between the preset power supply and ground to form a detection branch; thus, N detection branches are formed.

[0045] For each of the N detection branches, from the first to the (N-1)th detection branch: the common terminal of the temperature sensor and the matching resistor in each detection branch is connected to one of the corresponding I / O ports among the M I / O ports of the main control chip. For example: the common terminal of the temperature sensor and the matching resistor in the first detection branch is connected to the first I / O port among the M I / O ports of the main control chip; the common terminal of the temperature sensor and the matching resistor in the second detection branch is connected to the second I / O port among the M I / O ports of the main control chip; ...; the common terminal of the temperature sensor and the matching resistor in the (N-1)th detection branch is connected to the (N-1)th I / O port among the M I / O ports of the main control chip.

[0046] For the Nth detection branch among the N detection branches: the common terminal of the temperature sensor and the matching resistor in the Nth detection branch is connected to the Nth IO port among the M IO ports of the main control chip after passing through the (N+1)th matching resistor; the common terminal of the temperature sensor and the matching resistor in the Nth detection branch is also connected to the (N+1)th IO port among the M IO ports of the main control chip after passing through the (N+2)th matching resistor.

[0047] In the solution of this invention, by adding an IO port of the main control chip, the software can configure different states of the pins to make the hardware of the three commonly used sensor detection circuits of 15kΩ, 20kΩ and 50kΩ universal, thereby improving the adaptability of the temperature sensor detection circuit, improving the compatibility of the controller hardware, and improving the universality of after-sales parts.

[0048] In some implementations, for each of the first to the (N-1)th detection branches out of the N detection branches: the nominal value of the temperature sensor in each detection branch is the same as the resistance value of the matching resistor.

[0049] For the Nth detection branch out of N detection branches: the nominal value of each temperature sensor corresponds to the preset resistance value of the matching resistor corresponding to the nominal value of that temperature sensor.

[0050] In this invention, a main control I / O port is added to the hardware circuit. The state of the I / O port is controlled by the main control chip. In conjunction with the existing circuit's detection port, the different input / output states of the two I / O ports allow for the hardware compatibility of detection circuits for three commonly used sensors: 15kΩ, 20kΩ, and 50kΩ. This improves the compatibility of the controller hardware and the universality of after-sales parts. The main control chip's I / O output can be measured using an oscilloscope, multimeter, etc.

[0051] In some implementations, when N=3 and M is greater than or equal to 4, the sensor module includes: a first sensor, a second sensor, and a third sensor, wherein the first sensor is as follows: Figure 4 Sensor 1 is shown, and the second sensor is as follows: Figure 4 Sensor 2 is shown, and the third sensor is as follows: Figure 4 Sensor 3 is shown.

[0052] The matching resistor module includes: a first matching resistor, a second matching resistor, a third matching resistor, a fourth matching resistor, and a fifth matching resistor, wherein the first matching resistor is as follows: Figure 4 The resistor R1 shown is paired with the second resistor as follows: Figure 4 The resistor R2 shown is paired with the third resistor as follows: Figure 4 The resistor R3 shown is paired with the fourth resistor as follows: Figure 4 The resistor R4 shown is paired with the fifth resistor as follows. Figure 4 The resistor R5 is shown.

[0053] The main control chip has M I / O ports, including: a first I / O port, a second I / O port, a third I / O port, and a fourth I / O port. The first I / O port is as follows: Figure 4 As shown in the diagram, I / O port 1 is the second I / O port. Figure 4 As shown in the diagram, I / O port 2 is the third I / O port. Figure 4 As shown in the diagram, I / O port 3 is the fourth I / O port. Figure 4 The shown is I / O port 4.

[0054] The preset power supply, such as a 3.3V power supply, is grounded after passing through the first sensor and the first matching resistor; the common terminal of the first sensor and the first matching resistor is connected to the first IO port of the main control chip.

[0055] The preset power supply is grounded after passing through the second sensor and the second matching resistor; the common terminal of the second sensor and the second matching resistor is connected to the second IO port of the main control chip.

[0056] The preset power supply is grounded after passing through the third sensor and the third matching resistor; the common terminal of the third sensor and the third matching resistor is connected to the third IO port of the main control chip after passing through the fourth matching resistor.

[0057] The preset power supply is grounded after passing through the third sensor and the third matching resistor; the common terminal of the third sensor and the third matching resistor is also connected to the fourth IO port of the main control chip after passing through the fifth matching resistor.

[0058] Figure 4 This is a schematic diagram of the temperature sensor detection circuit of the present invention. Figure 2 compared to, Figure 4 An additional I / O port 4 was added, and the resistance value of sensor 3 is selectable from three. To solve... Figure 2 and Figure 3To address the problems of the illustrated solution, the present invention proposes a new control method. Figure 2 and Figure 3 The proposed solution has been modified; the hardware principle of the modified solution can be found in [link to hardware diagram]. Figure 4 In comparison Figure 2 The sensor 3 detection circuit adds a detection port IO port 4 and a 20kΩ resistor R4 and a 60kΩ resistor R5. Figure 4 The goal is to make the detection circuit hardware of three commonly used sensors, namely 15kΩ, 20kΩ and 50kΩ, universal, improve the compatibility of controller hardware, and improve the universality of after-sales parts.

[0059] In some implementations, when the type of the first sensor is determined, the type of the second sensor is determined, and the type of the third sensor needs to be changed, the main control chip is used to configure the level state of the third or fourth I / O port of the main control chip, such that the resistance value of the corresponding matching resistor among the third matching resistor, the fourth matching resistor, and the fifth matching resistor is the same as the nominal value corresponding to the change in the type of the third sensor.

[0060] In the solution of this invention, the hardware circuit adds a main control IO port. The state of the IO port is controlled by the main control chip. The combination of different input and output states of the third and fourth IO ports can make the hardware of the detection circuits of three commonly used sensors, namely 15kΩ, 20kΩ and 50kΩ, universal, improve the compatibility of the controller hardware, and improve the universality of after-sales parts.

[0061] In some implementations, the main control chip configures the level state of its third or fourth I / O port, including:

[0062] If the type of the third sensor is the preset first type, such as sensor type 3 being 15kΩ, then the fourth IO port of the main control chip is configured to be in output state and outputs a preset low-level signal.

[0063] If the type of the third sensor is the preset second type, such as sensor type 3 being 15kΩ, then the fourth IO port of the main control chip is configured to be in a high-impedance state.

[0064] If the type of the third sensor is a preset third type, such as sensor type 3 being 50kΩ, then the third IO port of the main control chip is configured to be in output state and outputs a preset low-level signal.

[0065] Figure 5 This is a schematic flowchart of the control method for the temperature sensor detection circuit of the present invention. Figure 4 The corresponding control flow diagram is as follows: Figure 5 As shown. Figure 5 As shown, the control method for the temperature sensor detection circuit of the present invention includes:

[0066] Step 21: After power-on, read the EEPROM to obtain the unit operating parameters, including sensor type 3, and the unit type, then proceed to step 22. The unit operating parameters and unit type may specifically include parameters representing certain characteristics of the unit, such as the number of sensors, sensor types, air conditioner operating frequency range, air conditioner operating temperature range, and air conditioner settable temperature range. The EEPROM is similar to the unit's identification card; various unit information is pre-stored at the factory. After leaving the factory, the software sends specific high and low level signals to the EEPROM to read the pre-stored information.

[0067] Step 22: Configure IO port 1 as an AD detection port to detect AD values ​​and obtain temperature using a 15kΩ sensor temperature meter. Configure IO port 2 as an AD detection port to detect AD values ​​and obtain temperature using a 50kΩ sensor temperature meter. Specific configurations can be made according to the chip datasheet by reading and writing specific registers. Then, based on the parameter values ​​stored in the EEPROM, determine the sensor type using the program. After that, execute step 23, step 24, or step 25. The same IO port can be configured with different functions according to specific needs.

[0068] For example, at the factory, the first parameter value stored in the EEPROM is specified to be 0, representing 20kΩ; 1 represents 15kΩ; and 2 represents 50kΩ. If a unit is connected to a 20kΩ sensor, then 0 is stored in the first parameter of the EEPROM at the factory. When the program runs, it reads the first parameter stored in the EEPROM. If the read value is 0, it means the sensor type is 20kΩ.

[0069] Step 23: If sensor type 3 is 15kΩ, configure IO port 4 to output state, outputting a low level. This is equivalent to connecting one end of a 60kΩ resistor R5 to resistor R3, and the other end of R5 to ground. That is, resistors R5 and R3 are connected in parallel, and the equivalent resistance after series connection is R. According to the series resistance calculation formula: 1 / R = 1 / R5 + 1 / R3, we get R = 15kΩ. Now configure IO port 3 as an AD detection port to detect the AD value. The temperature can be obtained using a 15kΩ sensor temperature gauge. Then proceed to step 26. Detecting the AD value through the program is a function unique to the main chip; enabling this function will obtain the AD value. The purpose is to make the detection circuit hardware for the three commonly used sensors (15kΩ, 20kΩ, and 50kΩ) universal, improving the compatibility of the controller hardware and the universality of after-sales parts.

[0070] Step 24: If sensor type 3 is 20kΩ, configure I / O port 4 to a high-impedance state. This is equivalent to one end of a 60kΩ resistor R5 being connected to resistor R3, while the other end of R5 is floating, meaning resistor R5 has no function. Configure I / O port 3 as an AD detection port, detect the AD value, and obtain the temperature using a 20kΩ sensor temperature gauge. Then proceed to step 26. This description explains why configuring I / O port 4 to a high-impedance state can detect a 20kΩ sensor.

[0071] Step 25: If neither of the above two scenarios applies, then sensor type 3 is 50kΩ. Configure I / O port 3 to output state, outputting a low level. This is equivalent to connecting one end of a 20kΩ resistor R4 to resistor R3, and the other end of R4 to ground. That is, resistors R4 and R3 are connected in parallel, and the equivalent resistance after series connection is R. According to the series resistance calculation formula: 1 / R = 1 / R4 + 1 / R3, we get R = 10kΩ. Now configure I / O port 4 as the AD detection port, detect the AD value, and obtain the temperature using a 20kΩ sensor temperature gauge. Then proceed to step 26. This description explains why configuring I / O port 3 to output state, outputting a low level, can detect a 50kΩ sensor type.

[0072] Step 26: After the unit obtains three temperatures, it can control the load according to the established control functions.

[0073] In the solution of this invention, the detection circuit of sensor 3 is compatible with these three types of temperature sensors. If the sensor type is changed, only the software unit type parameter needs to be changed, achieving better versatility and compatibility. The specific number of sensors depends on actual needs; sensor 3 is compatible with all three types but can only connect one sensor to measure the temperature of one location.

[0074] The technical solution of this invention, through the detection circuit for temperature sensors (such as those used in air conditioning control systems), sets up a detection branch for each of N (N is a positive integer and N is greater than or equal to 1) sensors. For example, a first detection branch is set up for the first sensor (such as sensor 1) (such as the detection branch set between sensor 1 and resistor R1 between the 3.3V power supply and ground). The common terminal of the sensor and resistor in each detection branch is connected to one IO port of the main control chip, and an additional IO port is added, that is, N+1 IO ports are used. When the type of the Nth sensor changes, the matching resistor of the Nth sensor is configured through the Nth IO port and the N+1 IO port to detect and find the temperature of the Nth sensor. Thus, by adding one IO port of the main control chip, the hardware circuit and software control are coordinated to improve the adaptability of the temperature sensor detection circuit.

[0075] According to an embodiment of the present invention, a controller corresponding to a temperature detection device is also provided. This controller may include the temperature detection device described above.

[0076] Since the processing and functions implemented by the controller in this embodiment are basically the same as those in the embodiments, principles and examples of the device, any details not covered in this embodiment can be found in the relevant descriptions in the foregoing embodiments, and will not be repeated here.

[0077] According to an embodiment of the present invention, an air conditioner corresponding to a temperature detection device is also provided. This air conditioner may include: the temperature detection device described above, or the controller described above.

[0078] Since the processing and functions implemented by the air conditioner in this embodiment are basically corresponding to the embodiments, principles and examples of the device, any details not covered in the description of this embodiment can be found in the relevant descriptions in the foregoing embodiments, and will not be repeated here.

[0079] According to embodiments of the present invention, a temperature detection method for an air conditioner corresponding to an air conditioner is also provided, such as... Figure 6 The diagram shows a flowchart of an embodiment of the method of the present invention. The temperature detection method for the air conditioner may include steps S110 to S160.

[0080] In step S110, after the air conditioner is powered on, the operating parameters of the air conditioner and the types of sensors in the sensor module are obtained.

[0081] In step S120, when N=3 and M is greater than or equal to 4, the type of the first sensor, the type of the second sensor, and the type of the third sensor are determined according to the type of the sensor in the sensor module.

[0082] In step S130, according to the type of the first sensor, the first IO port of the main control chip is configured as the AD detection port of the first sensor in the sensor module, and the temperature detected by the first sensor is obtained and recorded as the first temperature of the air conditioner.

[0083] In step S140, according to the type of the second sensor, the second IO port of the main control chip is configured as the AD detection port of the second sensor in the sensor module to obtain the temperature detected by the second sensor, which is recorded as the second temperature of the air conditioner.

[0084] In step S150, the level state of the third or fourth IO port of the main control chip is configured according to the type of the third sensor to obtain the temperature detected by the third sensor, which is recorded as the third temperature of the air conditioner.

[0085] In step S160, the operating parameters of the air conditioner are adjusted according to the first temperature, the second temperature, and the third temperature of the air conditioner to achieve control of the air conditioner.

[0086] In the solution of the present invention, such as Figure 4 As shown, the hardware circuit adds a main control IO port. The state of the IO port is controlled by the main control chip. The combination of different input and output states of the third and fourth IO ports can make the hardware of the detection circuits of three commonly used sensors, namely 15kΩ, 20kΩ and 50kΩ, universal, improve the compatibility of the controller hardware and improve the universality of after-sales parts.

[0087] In some implementations, the specific process of configuring the level state of the third or fourth I / O port of the main control chip according to the type of the third sensor in the sensor module in step S150 is described in the following exemplary description.

[0088] The following is combined Figure 7 The flowchart shown is a schematic diagram of an embodiment of configuring the level state of the third or fourth I / O port of the main control chip in the method of the present invention. It further illustrates the specific process of configuring the level state of the third or fourth I / O port of the main control chip in step S150, including steps S210 to S240.

[0089] Step S210: Determine which of the following preset types of sensors in the sensor module the third sensor is: a first type, a second type, or a third type.

[0090] Step S220: If the type of the third sensor is a preset first type, such as sensor type 3 being 15kΩ, then configure the fourth IO port of the main control chip to be in output state and output a preset low-level signal.

[0091] Step S230: If the type of the third sensor is the preset second type, such as sensor type 3 being 15kΩ, then configure the fourth IO port of the main control chip to be in a high-impedance state.

[0092] Step S240: If the type of the third sensor is a preset third type, such as sensor type 3 being 50kΩ, then configure the third IO port of the main control chip to be in output state and output a preset low-level signal.

[0093] like Figure 5 As shown, the control method for the temperature sensor detection circuit of the present invention includes:

[0094] Step 21: After powering on, read the EEPROM to obtain the unit operating parameters, including sensor type 3, and the unit type, and then execute step 22. The unit operating parameters and unit type may specifically include parameters representing some characteristics of the unit, such as the number of sensors, the type of each sensor, the air conditioner operating frequency range, the air conditioner operating temperature range, and the air conditioner settable temperature range.

[0095] Step 22: Configure IO port 1 as an AD detection port to detect AD values ​​and obtain temperature using a 15kΩ sensor temperature meter. Configure IO port 2 as an AD detection port to detect AD values ​​and obtain temperature using a 50kΩ sensor temperature meter. Then, based on the parameter values ​​stored in the EEPROM, determine the sensor type 3 through program analysis. After that, execute step 23, step 24, or step 25. The same IO port can be configured with different functions according to specific requirements.

[0096] Step 23: If sensor type 3 is 15kΩ, configure IO port 4 to output state, outputting a low level. This is equivalent to connecting one end of a 60kΩ resistor R5 to resistor R3, and the other end of R5 to ground. That is, resistors R5 and R3 are connected in parallel, and the equivalent resistance after series connection is R. According to the series resistance calculation formula: 1 / R = 1 / R5 + 1 / R3, we get R = 15kΩ. Now configure IO port 3 as an AD detection port to detect the AD value. The temperature can be obtained using a 15kΩ sensor temperature gauge. Then proceed to step 26. Detecting the AD value through the program is a function unique to the main chip; enabling this function will obtain the AD value. The purpose is to make the detection circuit hardware for the three commonly used sensors (15kΩ, 20kΩ, and 50kΩ) universal, improving the compatibility of the controller hardware and the universality of after-sales parts.

[0097] Step 24: If sensor type 3 is 20kΩ, configure I / O port 4 to a high-impedance state. This is equivalent to one end of a 60kΩ resistor R5 being connected to resistor R3, while the other end of R5 is floating, meaning resistor R5 has no function. Configure I / O port 3 as an AD detection port, detect the AD value, and obtain the temperature using a 20kΩ sensor temperature gauge. Then proceed to step 26. This description explains why configuring I / O port 4 to a high-impedance state can detect a 20kΩ sensor.

[0098] Step 25: If neither of the above two scenarios applies, then sensor type 3 is 50kΩ. Configure I / O port 3 to output state, outputting a low level. This is equivalent to connecting one end of a 20kΩ resistor R4 to resistor R3, and the other end of R4 to ground. That is, resistors R4 and R3 are connected in parallel, and the equivalent resistance after series connection is R. According to the series resistance calculation formula: 1 / R = 1 / R4 + 1 / R3, we get R = 10kΩ. Now configure I / O port 4 as the AD detection port, detect the AD value, and obtain the temperature using a 20kΩ sensor temperature gauge. Then proceed to step 26. This description explains why configuring I / O port 3 to output state, outputting a low level, can detect a 50kΩ sensor type.

[0099] Step 26: After the unit obtains three temperatures, it can control the load according to the established control functions.

[0100] In the solution of this invention, the sensor 3 detection circuit can be compatible with these three types of temperature sensors. If the sensor type is changed, only the software unit type parameter needs to be changed, so as to achieve better versatility and compatibility.

[0101] Since the processing and functions implemented by the method in this embodiment are basically the same as the aforementioned embodiments, principles and examples of air conditioners, any details not covered in this embodiment can be found in the relevant descriptions in the aforementioned embodiments, and will not be repeated here.

[0102] In summary, it is readily understood by those skilled in the art that, without conflict, the aforementioned advantageous methods can be freely combined and superimposed.

[0103] The above description is merely an embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of the claims of the present invention.

Claims

1. A temperature detection device, characterized in that, include: The system comprises a temperature sensor module, a matching resistor module, and a main control chip. The temperature sensor module includes a temperature sensor, the matching resistor module includes a matching resistor, and the main control chip includes I / O ports. The temperature sensor module and the matching resistor module are positioned between a preset power supply and ground. The common terminal of the temperature sensor module and the matching resistor module is connected to the I / O port of the main control chip; and the number of I / O ports used by the main control chip is greater than the number of temperature sensors in the temperature sensor module. The main control chip is used to configure the level state of the I / O port of the main control chip so that the matching resistor in the matching resistor module is the same as the nominal value of the temperature sensor in the temperature sensor module.

2. The temperature detection device according to claim 1, characterized in that, The temperature sensor module has N temperature sensors, the matching resistor module has N+2 matching resistors, and the main control chip has M I / O ports, where M and N are both positive integers, N is greater than or equal to 1, and M is greater than or equal to N+1; where, One of the N temperature sensors, along with one of the N+2 matching resistors, is placed between a preset power supply and ground to form a detection branch; thus, N detection branches are formed. For each of the N detection branches, from the first to the (N-1)th detection branch: the common terminal of the temperature sensor and the matching resistor in each detection branch is connected to one of the M IO ports of the main control chip. For the Nth detection branch among the N detection branches: the common terminal of the temperature sensor and the matching resistor in the Nth detection branch is connected to the Nth IO port among the M IO ports of the main control chip after passing through the (N+1)th matching resistor; the common terminal of the temperature sensor and the matching resistor in the Nth detection branch is also connected to the (N+1)th IO port among the M IO ports of the main control chip after passing through the (N+2)th matching resistor.

3. The temperature detection device according to claim 2, characterized in that, in, For each of the N detection branches, from the first to the (N-1)th detection branch: the nominal value of the temperature sensor in each detection branch is the same as the resistance value of the matching resistor; For the Nth detection branch out of N detection branches: the nominal value of each temperature sensor corresponds to the preset resistance value of the matching resistor corresponding to the nominal value of that temperature sensor.

4. The temperature detection device according to claim 2 or 3, characterized in that, When N=3 and M is greater than or equal to 4, the sensor module includes: a first sensor, a second sensor, and a third sensor; The matching resistor module includes: a first matching resistor, a second matching resistor, a third matching resistor, a fourth matching resistor, and a fifth matching resistor; The main control chip has M I / O ports, including: the first I / O port, the second I / O port, the third I / O port, and the fourth I / O port; wherein, The preset power supply is grounded after passing through the first sensor and the first matching resistor; the common terminal of the first sensor and the first matching resistor is connected to the first IO port of the main control chip. The preset power supply is grounded after passing through the second sensor and the second matching resistor; the common terminal of the second sensor and the second matching resistor is connected to the second IO port of the main control chip; The preset power supply is grounded after passing through the third sensor and the third matching resistor; the common terminal of the third sensor and the third matching resistor is connected to the third IO port of the main control chip after passing through the fourth matching resistor. The preset power supply is grounded after passing through the third sensor and the third matching resistor; the common terminal of the third sensor and the third matching resistor is also connected to the fourth IO port of the main control chip after passing through the fifth matching resistor.

5. The temperature detection device according to claim 4, characterized in that, When the type of the first sensor is determined, the type of the second sensor is determined, and the type of the third sensor needs to be changed, the main control chip is used to configure the level state of the third or fourth IO port of the main control chip, so that the resistance value of the corresponding matching resistor among the third matching resistor, the fourth matching resistor and the fifth matching resistor is the same as the nominal value corresponding to the change of the type of the third sensor.

6. The temperature detection device according to claim 5, characterized in that, The main control chip configures the level state of its third or fourth I / O port, including: If the type of the third sensor is the preset first type, then the fourth IO port of the main control chip is configured to be in output state and outputs a preset low-level signal; If the third sensor is of the preset second type, then the fourth I / O port of the main control chip is configured to be in a high-impedance state; If the third sensor is of a preset third type, then the third I / O port of the main control chip is configured to be in an output state and outputs a preset low-level signal.

7. A controller, characterized in that, include: The temperature detection device as described in any one of claims 1 to 6.

8. An air conditioner, characterized in that, include: The temperature detection device as described in any one of claims 1 to 6, or the controller as described in claim 7.

9. A temperature detection method for an air conditioner as described in claim 8, characterized in that, include: After the air conditioner is powered on, the operating parameters of the air conditioner and the types of sensors in the sensor module are obtained; When N=3 and M is greater than or equal to 4, the type of the first sensor, the type of the second sensor, and the type of the third sensor are determined according to the type of the sensors in the sensor module. Based on the type of the first sensor, the first IO port of the main control chip is configured as the AD detection port of the first sensor in the sensor module to obtain the temperature detected by the first sensor, which is recorded as the first temperature of the air conditioner; Based on the type of the second sensor, the second IO port of the main control chip is configured as the AD detection port of the second sensor in the sensor module to obtain the temperature detected by the second sensor, which is recorded as the second temperature of the air conditioner; According to the type of the third sensor, configure the level state of the third or fourth IO port of the main control chip to obtain the temperature detected by the third sensor, which is recorded as the third temperature of the air conditioner; The operating parameters of the air conditioner are adjusted according to the first temperature, the second temperature, and the third temperature to achieve control of the air conditioner.

10. The temperature detection method for an air conditioner according to claim 9, characterized in that, Based on the type of the third sensor in the sensor module, configure the level state of the third or fourth I / O port of the main control chip, including: Determine which of the following preset types—first, second, and third—the type of the third sensor in the sensor module is; If the type of the third sensor is the preset first type, then the fourth IO port of the main control chip is configured to be in output state and outputs a preset low-level signal; If the third sensor is of the preset second type, then the fourth I / O port of the main control chip is configured to be in a high-impedance state; If the third sensor is of a preset third type, then the third I / O port of the main control chip is configured to be in an output state and outputs a preset low-level signal.