Resistance value detection device and thermometer
By setting the resistance value detection device of switches and dual ADCs in the MCU, power is only supplied during detection and sampling of dual ADCs, the problems of high power consumption and inaccurate detection of the thermistor detection device are solved, and low power consumption and high Accurate temperature monitoring.
Patent Information
- Application Number
- CN202420361026.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-26
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2034-02-26
AI Technical Summary
When using thermistor for temperature monitoring, the usual power supply causes large power consumption of the resistance value detection device, and single ADC sampling is easily disturbed by power fluctuations, reducing detection accuracy.
Design a resistance value detection device, by setting a switch and a dual ADC in the MCU, power is only provided when it is necessary to detect the thermistor resistance value, and the ADC values of the first resistor and thermistor are detected respectively through both ends. Avoid the influence of power supply fluctuations and realize power sharing to reduce power consumption.
The power consumption of the resistance value detection device is reduced, the accuracy of thermistor resistance value detection is improved, the power utilization rate is improved, and the circuit wiring complexity is simplified.
Smart Images

Figure CN222145115U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic circuits, and in particular to a resistance value detection device and a thermometer. Background Art
[0002] A thermistor is a sensor resistor whose resistance value changes with temperature. Therefore, temperature monitoring can be achieved through a thermistor. When using a thermistor for temperature monitoring, it is necessary to detect the resistance value of the thermistor. At present, the thermistor can be powered by a constant power supply so that the resistance value of the thermistor can be detected. However, the constant power supply method consumes a lot of power. Utility Model Content
[0003] The embodiment of the present application discloses a resistance value detection device and a thermometer, which are used to reduce the power consumption of the resistance value detection device.
[0004] In a first aspect, an embodiment of the present application discloses a resistance value detection device, including a first resistor, a thermistor, a switch, an analog to digital converter (ADC) and a microcontroller unit (MCU), wherein the switch and the ADC are arranged in the MCU;
[0005] One end of the first resistor is connected to the ground, the other end of the first resistor is connected to one end of the thermistor, the other end of the thermistor is respectively connected to one end of the switch and the first end of the ADC through the first pin of the MCU, the second end of the ADC is connected to the other end of the first resistor through the second pin of the MCU, and the other end of the switch is connected to the power supply through the power pin of the MCU;
[0006] The MCU is used to control the switch to be turned on according to the control signal when a control signal is detected, control the ADC to detect a first ADC value through the first end, and to detect a second ADC value through the second end, and determine the resistance value of the thermistor according to the first ADC value and the second ADC value, wherein the control signal is a control signal for detecting the resistance value of the thermistor.
[0007] As a possible implementation manner, the resistance value detection device further includes a second resistor, and the second resistor is arranged in the MCU;
[0008] The second resistor is connected in series between the switch and the power pin.
[0009] As a possible implementation manner, a time interval between detection times of the first ADC value and the second ADC value is less than or equal to a time threshold.
[0010] As a possible implementation manner, the MCU is further configured to control the switch to turn off after detecting the first ADC value and the second ADC value.
[0011] As a possible implementation manner, the MCU is specifically configured to determine the resistance value of the thermistor according to the first ADC value, the second ADC value, and the resistance value of the first resistor.
[0012] As a possible implementation manner, the MCU is further used to determine the target temperature corresponding to the resistance value of the thermistor according to the corresponding relationship between the resistance value and the temperature.
[0013] As a possible implementation, the thermistor is a negative temperature coefficient (NTC) thermistor.
[0014] As a possible implementation manner, the MCU is also used to output the target temperature.
[0015] As a possible implementation manner, the MCU is further configured to output a warning message when the target temperature is greater than or equal to a high temperature threshold, or less than or equal to a low temperature threshold.
[0016] In a second aspect, an embodiment of the present application discloses a thermometer, comprising the resistance value detection device disclosed in the first aspect.
[0017] In the embodiment of the present application, the resistance value detection device includes a first resistor, a thermistor, a switch, an ADC and an MCU, and the switch and the ADC are arranged in the MCU; one end of the first resistor is connected to the ground end, the other end of the first resistor is connected to one end of the thermistor, the other end of the thermistor is respectively connected to one end of the switch and the first end of the ADC through the first pin of the MCU, the second end of the ADC is connected to the other end of the first resistor through the second pin of the MCU, and the other end of the switch is connected to the power supply through the power pin of the MCU; when the MCU detects a control signal for detecting the resistance value of the thermistor, the MCU controls the switch to be turned on, controls the ADC to detect the first ADC value through the first end, and detects the second ADC value through the second end, and determines the resistance value of the thermistor according to the first ADC value and the second ADC value. It can be seen that a switch is connected in series between the thermistor and the power supply. When the resistance value of the thermistor needs to be detected, the MCU can control the switch to be turned on to power the thermistor, which can avoid the thermistor being constantly powered, thereby reducing the power consumption of the resistance value detection device. In addition, the ADC can detect the ADC value of the first resistor and the ADC value of the first resistor and the thermistor through the two ends, respectively, to achieve dual ADC sampling, which can avoid the influence of power supply fluctuation on ADC sampling, thereby improving the accuracy of ADC detection, and further improving the accuracy of the resistance value detection of the thermistor. Furthermore, since the thermistor and the MCU share a power supply, the number of power supplies used can be reduced, thereby improving power supply utilization and reducing the complexity of circuit wiring. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 It is a structural schematic diagram of a resistance value detection device disclosed in an embodiment of the present application;
[0020] Figure 2 It is a structural schematic diagram of another resistance value detection device disclosed in an embodiment of the present application;
[0021] Figure 3 It is a structural schematic diagram of another resistance value detection device disclosed in an embodiment of the present application;
[0022] Figure 4 It is a structural schematic diagram of another resistance value detection device disclosed in an embodiment of the present application;
[0023] Figure 5It is a structural schematic diagram of another resistance value detection device disclosed in an embodiment of the present application;
[0024] Figure 6 It is a structural schematic diagram of a swimming pool thermometer disclosed in an embodiment of the present application;
[0025] Figure 7 It is a structural schematic diagram of a barbecue thermometer disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0027] The present application embodiment discloses a resistance value detection device and a thermometer, which are used to reduce the power consumption of the resistance value detection device.
[0028] In order to better understand the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below.
[0029] See also Figure 1 , Figure 1 Schematic diagram of a resistance value detection device disclosed in an embodiment of the present application. Figure 1 As shown, the power supply VDD, thermistor RT, resistor R and ground terminal form a circuit loop. The power supply VDD always supplies power to thermistor RT and resistor R. It can be seen that the structure of the resistance value detection device is relatively simple. However, since the power supply VDD always supplies power to thermistor RT and resistor R, thermistor RT and resistor R1 will continue to generate power consumption, resulting in large power consumption. In addition, since the MCU uses a single ADC for sampling, and the single ADC sampling is easily disturbed by power supply fluctuations, the accuracy of the determined resistance value of the thermistor is low.
[0030] See also Figure 2 , Figure 2 It is a structural schematic diagram of another resistance value detection device disclosed in an embodiment of the present application. Figure 2 The resistance value detection device shown is Figure 1 Compared with the resistance value detection device shown in FIG, the dual ADC is used for sampling, which can avoid the influence of power supply fluctuation on ADC sampling, thereby improving the accuracy of the resistance value of the thermistor. However, since the power supply VDD always supplies power to the thermistor RT and the resistor R, the thermistor RT and the resistor R1 will continue to generate power consumption, resulting in large power consumption.
[0031] See also Figure 3 , Figure 3 FIG. 1 is a schematic diagram of the structure of another resistance value detection device disclosed in the embodiment of the present application. Figure 3 As shown, Figure 2 Compared with the resistance value detection device shown in FIG. 1 , a metal oxide semiconductor (MOS) tube Q is connected between the power supply VDD and the thermistor RT. When the resistance value of the thermistor RT does not need to be detected, the MCU can turn off the MOS tube Q to cut off the power supply VDD to the thermistor RT and the resistor R1, thereby avoiding the thermistor RT and the resistor R1 from always generating power consumption, thereby reducing power consumption. However, since a MOS and a separate power supply are required, the circuit structure is relatively complicated.
[0032] In order to solve the above problems, the present application designs a resistance value detection device, including a first resistor, a thermistor, a switch, an ADC and an MCU, wherein the switch and the ADC are arranged in the MCU; one end of the first resistor is connected to the ground end, the other end of the first resistor is connected to one end of the thermistor, the other end of the thermistor is respectively connected to one end of the switch and the first end of the ADC through the first pin of the MCU, the second end of the ADC is connected to the other end of the first resistor through the second pin of the MCU, and the other end of the switch is connected to the power supply through the power pin of the MCU; when the MCU detects a control signal, the MCU controls the switch to turn on, controls the ADC to detect the first ADC value through the first end, and detects the second ADC value through the second end, determines the resistance value of the thermistor according to the first ADC value and the second ADC value, and the control signal is a control signal for detecting the resistance value of the thermistor. It can be seen that a switch is connected in series between the thermistor and the power supply, and when the resistance value of the thermistor needs to be detected, the MCU can control the switch to turn on to power the thermistor, which can avoid the thermistor being constantly powered, thereby reducing the power consumption of the resistance value detection device. In addition, the ADC can detect the ADC value of the first resistor and the ADC value of the first resistor and the thermistor through the two ends, respectively, to achieve dual ADC sampling, which can avoid the influence of power supply fluctuation on ADC sampling, thereby improving the accuracy of ADC detection, and further improving the accuracy of the resistance value detection of the thermistor. Furthermore, since the thermistor and the MCU share a power supply, the number of power supplies used can be reduced, thereby improving power supply utilization and reducing the complexity of circuit wiring.
[0033] See also Figure 4 , Figure 4 FIG. 1 is a schematic diagram of the structure of another resistance value detection device disclosed in the embodiment of the present application. Figure 4 As shown, the resistance value detection device may include a first resistor R1, a thermistor RT, a switch K, an ADC and an MCU.
[0034] Switch K and ADC are set in MCU.
[0035] One end of the first resistor R1 is connected to the ground, the other end of the first resistor R1 is connected to one end of the thermistor RT, the other end of the thermistor RT is respectively connected to one end of the switch K and the first end of the ADC through the first pin of the MCU, the second end of the ADC is connected to the other end of the first resistor R1 through the second pin of the MCU, and the other end of the switch K is connected to the power supply through the power pin of the MCU.
[0036] When the MCU detects a control signal for detecting the resistance value of the thermistor RT, it can control the switch K to be turned on according to the control signal, control the ADC to detect a first ADC value through the first end, and detect a second ADC value through the second end, and determine the resistance value of the thermistor according to the first ADC value and the second ADC value.
[0037] The first pin of the MCU and the second pin of the MCU are two different pins. The first pin of the MCU and the second pin of the MCU may be general purpose input / output (GPIO) pins among the pins of the MCU. The GPIO pin may be used as an input pin, an output pin, or both an input pin and an output pin.
[0038] The power supply VDD is connected to the power pin of the MCU, the two ends of the switch K are connected to the power pin and the first pin of the MCU respectively, and the power pin of the MCU is connected to the thermistor RT, the first resistor R1 and the ground in sequence. Therefore, the power supply VDD, the switch K, the thermistor RT, the first resistor R1 and the ground can form a circuit loop.
[0039] In order to reduce the power consumption of the resistance value detection device, when the resistance value of the thermistor RT does not need to be detected, the MCU can control the switch K to be in the off state. Therefore, when the MCU detects the control signal for detecting the resistance value of the thermistor RT, it indicates that the resistance value of the thermistor RT needs to be detected, and the switch K can be controlled to switch from the off state to the on state according to the control signal, that is, the switch K is controlled to be turned on, so that the circuit loop of the power supply VDD, the switch K, the thermistor RT, the first resistor R1 and the ground terminal can be connected, and current will flow through this circuit loop.
[0040] Thereafter, the MCU may control the ADC to detect a first ADC value through the first end and a second ADC value through the second end, and further determine the resistance value of the thermistor RT according to the first ADC value and the second ADC value.
[0041] The first ADC value is the ADC value of the thermistor RT and the first resistor R1 , and the second ADC value is the ADC value of the first resistor R1 .
[0042] The ADC value is not a voltage value, but a value obtained by ADC sampling. The ADC value is an integer greater than 0.
[0043] The resistance value of the first resistor R1 is already known. Therefore, the MCU can determine the resistance value of the thermistor RT according to the first ADC value, the second ADC value and the resistance value of the first resistor R1.
[0044] According to the principle of equal loop current in the same circuit, the following formula can be obtained:
[0045]
[0046] Wherein, V1 represents the voltage at the connection end of the thermistor RT and the first resistor R1, that is, the voltage drop across the first resistor R1, R1 represents the resistance value of the first resistor R1, V2 represents the voltage drop across the thermistor RT and the first resistor R1, R T Indicates the resistance value of thermistor RT.
[0047] The reference voltage of MCU is V ref , the accuracy of ADC is n, then the reference voltage can be divided into V ref / 2 n V1 can be expressed as follows:
[0048]
[0049] Among them, ADC1 represents the second ADC value. It can be seen that the second ADC value is the reference voltage divided into 1 / 2 n After the first resistor R1 is connected, the voltage drop across the first resistor R1 accounts for the proportion.
[0050] V2 can be expressed as follows:
[0051]
[0052] ADC2 represents the first ADC value. It can be seen that the first ADC value is the reference voltage divided into 1 / 2 n After the first resistor R1 and the thermistor RT account for the same proportion.
[0053] Substituting V1 and V2 into the above formula, we can get the following formula:
[0054]
[0055] After simplifying the above formula, we can get the following formula:
[0056]
[0057] It can be seen from the above formula that the reference voltage will not affect the determination of the resistance value of the thermistor RT. Since the resistance value R1 of the first resistor R1 is known, after the MCU detects the first ADC value ADC2 and the second ADC value ADC1, the resistance value R1 of the thermistor RT can be directly determined according to the first ADC value ADC2, the second ADC value ADC1 and the resistance value R1 of the first resistor R1. T .
[0058] The above reference voltage V ref It can be the voltage of the power supply VDD, that is, the power supply voltage, it can also be the internal reference voltage of the MCU, or it can also be the input voltage of the external pin of the MCU.
[0059] The control signal detected by the MCU may be generated by the MCU. For example, in the case of periodically detecting the resistance value of the thermistor RT, the MCU may generate a control signal when the detection period is reached. For example, in the case where the current condition satisfies the preset condition for detecting the resistance value of the thermistor RT, the MCU may generate a control signal.
[0060] The control signal detected by the MCU may also be received by the MCU. Exemplarily, the control signal may come from a processor of the device where the resistance value detection device is located, that is, the control signal may be sent to the MCU by the processor of the device where the resistance value detection device is located. Exemplarily, the control signal may come from a host computer, that is, the control signal may be sent to the MCU by the host computer.
[0061] exist Figure 4The described resistance value detection device includes a first resistor R1, a thermistor RT, a switch K, an ADC and an MCU, wherein the switch K and the ADC are arranged in the MCU; one end of the first resistor R1 is connected to the ground, the other end of the first resistor R1 is connected to one end of the thermistor RT, the other end of the thermistor RT is respectively connected to one end of the switch K and the first end of the ADC through the first pin of the MCU, the second end of the ADC is connected to the other end of the first resistor R1 through the second pin of the MCU, and the other end of the switch K is connected to the power supply through the power pin of the MCU; when the MCU detects a control signal for detecting the resistance value of the thermistor, the MCU controls the switch K to turn on, controls the ADC to detect the first ADC value through the first end, and detects the second ADC value through the second end, and determines the resistance value of the thermistor RT according to the first ADC value and the second ADC value. It can be seen that a switch is connected in series between the thermistor and the power supply, and when the resistance value of the thermistor needs to be detected, the MCU can control the switch to turn on to power the thermistor, thereby avoiding the thermistor from being constantly powered, thereby reducing the power consumption of the resistance value detection device. In addition, the ADC can detect the ADC value of the first resistor and the ADC value of the first resistor and the thermistor through the two ends, respectively, to achieve dual ADC sampling, which can avoid the influence of power supply fluctuation on ADC sampling, thereby improving the accuracy of ADC detection, and further improving the accuracy of the resistance value detection of the thermistor. Furthermore, since the thermistor and the MCU share a power supply, the number of power supplies used can be reduced, thereby improving power supply utilization and reducing the complexity of circuit wiring.
[0062] In some embodiments, a time interval between detection times of the first ADC value and the second ADC value is less than or equal to a time threshold.
[0063] In one case, since the voltage of the power supply VDD may fluctuate, the voltage of the power supply VDD may be different at different times, so that the current in the circuit loop of the power supply VDD, the switch K, thermistor RT, the first resistor R1 and the ground terminal may be different at different times, resulting in different voltage drops across the thermistor RT and the first resistor R1 at different times.
[0064] In another case, the temperature of the thermistor RT may be different at different times, and the resistance value of the thermistor RT changes with the temperature, so that the current in the circuit loop of the power supply VDD, the switch K, thermistor RT, the first resistor R1 and the ground may be different at different times, so that the voltage drop across the thermistor RT and the first resistor R1 may be different at different times.
[0065] It can be seen that when the detection time of the first ADC value is different from the detection time of the second ADC value, the accuracy of the resistance value determination of the thermistor RT is affected. The greater the time interval between the detection time of the first ADC value and the detection time of the second ADC value, the greater the above-mentioned influence. Therefore, in order to reduce the influence of the detection time of the first ADC value and the second ADC value on the accuracy of the resistance value of the thermistor RT, the time interval between the detection time of the first ADC value and the second ADC value is less than or equal to the time threshold, that is, it cannot exceed the time threshold. The time threshold is a smaller value.
[0066] In some embodiments, after detecting the first ADC value and the second ADC value, the MCU may control the switch K to be turned off.
[0067] After the MCU detects the first ADC value and the second ADC value, if there is no need to detect the resistance value of the thermistor RT, the switch K can be controlled to turn off to cut off the circuit loop of the power supply VDD, the switch K, thermistor RT, the first resistor R1 and the ground terminal, thereby avoiding unnecessary power consumption on the thermistor RT and the first resistor R1, thereby reducing the power consumption of the resistance value detection device.
[0068] It can be seen that when the resistance value of the thermistor RT needs to be detected, the MCU can control the switch K to be turned on, and when the resistance value of the thermistor RT does not need to be detected, the MCU can control the switch K to be turned off, which can reduce unnecessary power consumption generated by the thermistor RT and the first resistor R1, thereby realizing the detection of the resistance value of the thermistor RT while reducing the power consumption of the entire device.
[0069] In some embodiments, the MCU is further configured to determine a target temperature corresponding to the resistance value of the thermistor RT according to a corresponding relationship between the resistance value and the temperature.
[0070] The MCU can store the correspondence between resistance and temperature, that is, the correspondence between the resistance value of the thermistor RT and the temperature. After the MCU determines the resistance value of the thermistor RT, it can determine the target temperature corresponding to the resistance value of the thermistor RT according to the correspondence between the resistance value and the temperature, and can realize the temperature monitoring through the thermistor.
[0071] In some embodiments, the thermistor RT may be a NTC thermistor.
[0072] The resistance value of NTC thermistors decreases as the temperature increases, that is, the corresponding relationship between the resistance value of NTC thermistors and temperature is inversely correlated. NTC thermistors are highly sensitive to temperature changes, so they can accurately detect and measure even small temperature changes. This sensitivity allows fine-grained temperature control and monitoring, ensuring optimal performance and safety for temperature-sensitive applications.
[0073] In some embodiments, the thermistor RT may be a positive temperature coefficient (PTC) thermistor.
[0074] The resistance value of the PTC thermistor increases with the increase of temperature, that is, the resistance value of the PTC thermistor is positively correlated with the temperature.
[0075] In some embodiments, the MCU is also configured to output a target temperature.
[0076] After the MCU determines the target temperature corresponding to the resistance value of the thermistor RT, it can output the target temperature so that the user can view the monitored temperature.
[0077] When the device where the resistance value detection device is located is provided with a display device, the MCU can output the target temperature to the display device so that the display device can display the target temperature, making it convenient for the user to view the monitored temperature through the temperature displayed on the display device, thereby providing a good user experience.
[0078] When the device where the resistance value detection device is located is provided with a communication device, and the device has a corresponding client, the MCU can output the target temperature to the communication device, so that the communication device can send the target temperature to the client corresponding to the device. The user can view the monitored temperature through the terminal device installed with the client, which can realize the user's remote viewing of the temperature, and the user does not need to go to the location of the device to view the temperature, which can provide a better user experience.
[0079] In some embodiments, the MCU is further configured to output a warning message when the target temperature is greater than or equal to a high temperature threshold, or less than or equal to a low temperature threshold.
[0080] The MCU may store a high temperature threshold and / or a low temperature threshold. The high temperature threshold and / or the low temperature threshold in the MCU may be set by a user or determined based on other information.
[0081] When the required temperature is within a certain temperature range, the MCU can store a high temperature threshold and a low temperature threshold. When the required temperature cannot be too high, the MCU can store a high temperature threshold. When the required temperature cannot be too low, the MCU can store a low temperature threshold.
[0082] In the case where the MCU stores a low temperature threshold, after the MCU determines the target temperature, it can determine whether the target temperature is less than or equal to the low temperature threshold. When it is determined that the target temperature is less than or equal to the low temperature threshold, a warning message can be output, which can warn the user that the current temperature is low so that the user can take corresponding measures in time according to the warning message.
[0083] In the case where the MCU stores a high temperature threshold, after the MCU determines the target temperature, it can determine whether the target temperature is greater than or equal to the low temperature threshold. When it is determined that the target temperature is greater than or equal to the low temperature threshold, a warning message can be output. The warning message can warn the user that the current temperature is high so that the user can take corresponding measures in time according to the warning message.
[0084] In the case where the MCU stores a low temperature threshold and a high temperature threshold, after the MCU determines the target temperature, it can determine whether the target temperature is greater than or equal to the high temperature threshold, or whether the target temperature is less than or equal to the low temperature threshold. In the case where it is determined that the target temperature is greater than or equal to the high temperature threshold, or less than or equal to the low temperature threshold, it indicates that the current temperature does not meet the requirements, and a warning message can be output. The warning message can warn the user that the current temperature does not meet the requirements, so that the user can take corresponding measures in time according to the warning message. In the case where it is determined that the target temperature is greater than or equal to the high temperature threshold, the MCU can output a first warning message for prompting the user that the temperature is too high. In the case where it is determined that the target temperature is less than or equal to the high temperature threshold, the MCU can also output a first warning message for prompting the user that the temperature is too low. So that the user can take different measures for different situations.
[0085] See also Figure 5 , Figure 5 is a schematic diagram of the structure of another resistance value detection device disclosed in the embodiment of the present application. Figure 5 The resistance value detection device shown is composed of Figure 4 The resistance value detection device shown is optimized. Figure 5 As shown, the resistance value detection device may further include a second resistor R2.
[0086] The second resistor R2 is arranged in the MCU and is connected in series between the switch K and the power supply pin.
[0087] After the MCU controls the switch K to be turned on, the MCU initializes the GPIO pin to a pull-up state, so that the second resistor R2 is connected to the circuit, and the second resistor R2 becomes a pull-up resistor.
[0088] The resistance value of the second resistor R2 may be different for different MCU models. For example, the resistance value of the second resistor R2 may be 30 kΩ.
[0089] Even in the same MCU, the resistance value of the second resistor R2 may not be a fixed value, and the resistance value of the second resistor R2 may be within a range. Therefore, the resistance value of the thermistor RT cannot be determined based on the resistance value of the second resistor R2.
[0090] In some embodiments, the resistance value detection device can be applied to a swimming pool thermometer.
[0091] When the swimming pool is in use, the swimming pool thermometer needs to monitor the temperature of the water in the swimming pool in real time. However, since it is inconvenient to replace the battery of the swimming pool thermometer, the swimming pool thermometer needs to have lower power consumption. The above resistance value detection device can be applied to the swimming pool thermometer. When the swimming pool is in use, the MCU can control the switch K to turn on. When the swimming pool is not in use, the MCU can control the switch K to turn off, which can reduce the power consumption of the swimming pool thermometer.
[0092] See also Figure 6 , Figure 6 Schematic diagram of the structure of a swimming pool thermometer disclosed in the embodiment of the present application. Figure 6 As shown, the swimming pool thermometer may include a resistance value detection device and a display device, and the resistance value detection device is connected to the display device.
[0093] The resistance value detection device can detect the temperature of water, and the display device can display the temperature detected by the resistance value detection device.
[0094] The detailed description of the resistance value detection device can refer to the above related description, which will not be repeated here.
[0095] In some embodiments, the resistance value detection device can be applied to heating equipment.
[0096] As people have higher and higher requirements for the quality of life, when the weather is cold, people will use heating equipment for heating. When people use heating equipment, they often forget to turn off the heating equipment. Heating equipment is a high-power device, which is prone to fire when used for a long time, especially when no one is around. Therefore, in order to avoid fires caused by excessive temperature of the heating equipment, a resistance value detection device can be set in the heating equipment. So that the temperature of the heating equipment can be detected by the resistance value detection device, and when the temperature of the heating equipment is greater than the high temperature threshold, the heating equipment can be controlled to stop working to avoid fires caused by excessive temperature.
[0097] In some embodiments, the resistance value detection device can be applied to a barbecue thermometer.
[0098] Barbecue is a kind of food that people like, and different meats may require different roasting temperatures. Even for the same kind of meat, different users may prefer different degrees of doneness, so different roasting temperatures need to be used to roast different barbecues. In order to solve the above problem, a barbecue thermometer is needed, which can monitor the temperature inside the meat. Exemplarily, the barbecue thermometer can be shaped like a steel needle, which can be inserted into the barbecue to detect the temperature inside the meat, so that the roasting state of the meat and / or the doneness of the meat can be determined by the temperature inside the meat.
[0099] For example, see 7, Figure 7 Schematic diagram of the structure of a barbecue thermometer disclosed in the embodiment of the present application. Figure 7 As shown, the barbecue thermometer may include a probe, a charging base, a display device and a buzzer. The probe is connected to the charging base wirelessly, and the charging base is connected to the display device and the buzzer respectively. The probe includes the above-mentioned resistance value detection device, which can be inserted into the meat to detect the temperature inside the meat, and the detected temperature of the meat can be sent to the charging base in a wireless form. The charging base can send the received temperature to the display device. The display device can display the temperature inside the meat. When the temperature inside the meat reaches the preset temperature, the charging base can control the buzzer to work to prompt the user that the barbecue is ready. The preset temperature is the temperature set by the user as needed.
[0100] It should be understood that the above is an exemplary description of the structure of the barbecue thermometer, and does not limit the structure of the barbecue thermometer. Exemplarily, the barbecue thermometer may further include a temperature setting unit.
[0101] At present, in order to ensure the safety of food, food is refrigerated. In the case of a malfunction of the refrigeration equipment, the food may deteriorate due to the increase in temperature. Therefore, in order to solve the above problem, a temperature detection device may be provided in the refrigeration equipment, and the temperature detection device may be the above resistance value detection device.
[0102] It should be understood that the connection in the present application can be understood as an electrical connection.
[0103] It should be understood that in different embodiments, the same or corresponding information may be referenced to each other.
[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A resistance value detection device, It is characterized in that It includes a first resistor, a thermistor, a switch, an analog-to-digital converter ADC and a microprocessor unit MCU, wherein the switch and the ADC are arranged in the MCU; One end of the first resistor is connected to the ground, the other end of the first resistor is connected to one end of the thermistor, the other end of the thermistor is respectively connected to one end of the switch and the first end of the ADC through the first pin of the MCU, the second end of the ADC is connected to the other end of the first resistor through the second pin of the MCU, and the other end of the switch is connected to the power supply through the power pin of the MCU; The MCU is used to control the switch to be turned on according to the control signal when a control signal is detected, control the ADC to detect a first ADC value through the first end, and to detect a second ADC value through the second end, and determine the resistance value of the thermistor according to the first ADC value and the second ADC value, wherein the control signal is a control signal for detecting the resistance value of the thermistor.
2. The resistance value detection device according to claim 1, It is characterized in that The resistance value detection device further includes a second resistor, and the second resistor is arranged in the MCU; The second resistor is connected in series between the switch and the power pin.
3. The resistance value detection device according to claim 1, It is characterized in that A time interval between detection times of the first ADC value and the second ADC value is less than or equal to a time threshold.
4. The resistance value detection device according to claim 1, It is characterized in that The MCU is further configured to control the switch to be turned off after detecting the first ADC value and the second ADC value.
5. The resistance value detection device according to claim 1, It is characterized in that The MCU is specifically configured to determine the resistance value of the thermistor according to the first ADC value, the second ADC value, and the resistance value of the first resistor.
6. The resistance value detection device according to any one of claims 1 to 5, It is characterized in that The MCU is further used to determine the target temperature corresponding to the resistance value of the thermistor according to the corresponding relationship between the resistance value and the temperature.
7. The resistance value detection device according to claim 6, It is characterized in that The thermistor is a thermistor with a negative temperature coefficient (NTC).
8. The resistance value detection device according to claim 6, It is characterized in that The MCU is also used to output the target temperature.
9. The resistance value detection device according to claim 6, It is characterized in that The MCU is further configured to output a warning message when the target temperature is greater than or equal to a high temperature threshold, or less than or equal to a low temperature threshold.
10. A thermometer, It is characterized in that It comprises a resistance value detection device as described in any one of claims 1 to 9.
